/* home.css - Индивидуальные стили для главной страницы */
/* Герой-секция */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(41, 128, 185, 0.05) 100%);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    padding-right: 30px;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--dark-gray);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: scale(1.03);
}

/* О компании */
.about-preview {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.about-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.features {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 30px;
    gap: 20px;
}

.feature {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 20px 15px;
    background-color: var(--light-gray);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature h3 {
    font-size: 1.2rem;
}

.about-image {
    flex: 1;
    min-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

/* Услуги */
.services-preview {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 0;
}

.service-card ul {
    list-style: none;
    margin-bottom: 25px;
    flex-grow: 1;
}

.service-card ul li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.service-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.service-link {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    color: var(--primary-color);
}

.service-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(5px);
}

/* Документы */
.documents-preview {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 50px;
}

.document-card {
    background-color: var(--light-gray);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.document-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.document-card h3 {
    margin-bottom: 10px;
}

.document-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* Адаптивность для главной страницы */
@media (max-width: 992px) {
    .hero-content, .about-text, .about-image {
        padding-right: 0;
    }
    
    .hero .container, .about-content {
        flex-direction: column;
    }
    
    .hero-image, .about-image {
        margin-top: 40px;
    }
    
    .features {
        justify-content: center;
    }
    
    .feature {
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .documents-grid {
        grid-template-columns: 1fr;
    }
}

/* Дополнительные стили для секции документов */
.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.document-icon {
    width: 70px;
    height: 70px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.document-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.document-status {
    color: #27ae60;
    font-size: 0.9rem;
    margin: 10px 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.document-status i {
    font-size: 1rem;
}

.documents-cta {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--medium-gray);
}

.documents-cta p {
    color: var(--text-light);
    font-size: 1rem;
}

.documents-cta a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px dashed var(--primary-color);
}

.documents-cta a:hover {
    color: var(--primary-dark);
    border-bottom: 1px solid var(--primary-dark);
}

/* Адаптивность для логотипа */
@media (max-width: 768px) {
    .logo {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .logo-image {
        width: 50px;
        height: 50px;
    }
    
    .logo-text h1 {
        font-size: 1.3rem;
    }
    
    .logo-text p {
        font-size: 0.85rem;
    }
}

/* Исправление секции документов */
.documents-preview {
    padding: 80px 0;
    background-color: var(--secondary-color);
    text-align: center; /* Добавляем выравнивание по центру */
}

.documents-grid {
    display: flex;
    justify-content: center; /* Центрируем карточки */
    gap: 30px;
    flex-wrap: wrap;
    max-width: 900px; /* Ограничиваем максимальную ширину */
    margin: 0 auto; /* Центрируем сетку */
}

.document-card {
    background-color: var(--light-gray);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1;
    min-width: 280px; /* Минимальная ширина карточки */
    max-width: 350px; /* Максимальная ширина карточки */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.document-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.document-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.document-card h3 {
    margin-bottom: 10px;
    color: var(--dark-gray);
    font-size: 1.3rem;
}

.document-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
    flex-grow: 1;
}

.document-card .btn-outline {
    margin-top: auto; /* Кнопка всегда внизу */
    padding: 10px 25px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.document-card .btn-outline:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Адаптивность для документов */
@media (max-width: 768px) {
    .documents-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .document-card {
        width: 100%;
        max-width: 400px;
    }
}

/* Стили для логотипа с изображением */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-image {
    width: 100px; /* Размер логотипа */
    height: 60px;
    border-radius: 8px; /* Можно убрать если нужно квадратное */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-color);
    padding: 5px;
}

.logo-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Сохраняет пропорции */
}

.logo-text h1 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--dark-gray);
}

.logo-text p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* Для футера */
.footer .logo-image {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.footer .logo-text h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
}

.footer .logo-text p {
    color: rgba(255, 255, 255, 0.7);
}