/* Index.css - Стили для главной страницы */

/* Основной контент */
.main-content {
    padding: 2rem 0;
}

/* Заголовочная секция */
.header-section {
    max-width: 900px;
    margin: 0 auto 80px auto;
}

.header-title {
    font-size: 30px;
    font-weight: 500;
    color: #000;
    margin-bottom: 8px;
}

.header-subtitle {
    font-size: 20px;
    font-weight: 500;
    color: #000;
    margin: 0;
}

/* Карточки сервисов */
.services-container {
    max-width: 1200px;
    margin: 0 auto 80px auto;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 64px;
    flex-wrap:wrap;
}

.service-card {
    max-width: 300px;
    min-height: 380px;
    border-radius: 20px;
    padding: 40px;
    background-color: #007AFF;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.service-icon {
    height: 40px;
    margin-bottom: 16px;
}

.service-title {
    font-size: 55px;
    color: #FFFFFF;
    font-weight: 600;
    margin: 0 0 16px 0;
}

.service-description {
    font-size: 18px;
    color: #FFFFFF;
    font-weight: 400;
    height: 100%;
    max-height: 132px;
    margin: 0 0 16px 0;
}

.service-button {
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}

/* Секция "О нас" */
.about-section {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.about-text {
    flex: 1;
}

.about-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 1rem;
}

.about-description {
    font-size: 20px;
    font-weight: 500;
    color: #000;
    margin: 0;
}

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image img {
    width: 160px;
    height: auto;
}

/* Футер */
.footer {
    background-color: #f8f9fa;
    padding: 3rem 0;
    margin-top: 3rem;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
}

.footer-copyright {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
    margin-top: 1rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* Адаптивные стили для мобильных устройств */
@media (max-width: 768px) {
    .main-content {
        padding: 1rem 0;
    }
    
    .header-section {
        margin: 0 auto 40px auto;
        padding: 0 15px;
    }
    
    .header-title {
        font-size: 24px;
    }
    
    .header-subtitle {
        font-size: 16px;
    }
    
    .services-container {
        flex-direction: column;
        gap: 24px;
        margin: 0 auto 40px auto;
        padding: 0 15px;
    }
    
    .service-card {
        max-width: 100%;
        min-height: 300px;
        padding: 24px;
    }
    
    .service-title {
        font-size: 40px;
    }
    
    .service-description {
        font-size: 16px;
        max-height: 100px;
    }
    
    .service-button {
        font-size: 14px;
    }
    
    .about-section {
        padding: 0 15px;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .about-title {
        font-size: 1.5rem;
    }
    
    .about-description {
        font-size: 16px;
    }
    
    .about-image img {
        width: 120px;
    }
    
    .footer {
        padding: 2rem 0;
        margin-top: 2rem;
    }
    
    .footer-content {
        padding: 0 15px;
    }
    
    .footer-copyright {
        font-size: 14px;
    }
}

/* Адаптивные стили для планшетов */
@media (min-width: 769px) and (max-width: 1024px) {
    .main-content {
        padding: 1.5rem 0;
    }
    
    .header-section {
        margin: 0 auto 60px auto;
        padding: 0 20px;
    }
    
    .header-title {
        font-size: 27px;
    }
    
    .header-subtitle {
        font-size: 18px;
    }
    
    .services-container {
        gap: 48px;
        margin: 0 auto 60px auto;
        padding: 0 20px;
    }
    
    .service-card {
        max-width: 280px;
        min-height: 350px;
        padding: 32px;
    }
    
    .service-title {
        font-size: 48px;
    }
    
    .service-description {
        font-size: 17px;
        max-height: 120px;
    }
    
    .service-button {
        font-size: 15px;
    }
    
    .about-section {
        padding: 0 20px;
    }
    
    .about-content {
        gap: 1.8rem;
    }
    
    .about-title {
        font-size: 1.6rem;
    }
    
    .about-description {
        font-size: 18px;
    }
    
    .about-image img {
        width: 140px;
    }
    
    .footer {
        padding: 2.5rem 0;
        margin-top: 2.5rem;
    }
    
    .footer-content {
        padding: 0 20px;
    }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
    .header-title {
        font-size: 20px;
    }
    
    .header-subtitle {
        font-size: 14px;
    }
    
    .service-card {
        padding: 20px;
        min-height: 280px;
    }
    
    .service-title {
        font-size: 35px;
    }
    
    .service-description {
        font-size: 14px;
        max-height: 80px;
    }
    
    .about-title {
        font-size: 1.3rem;
    }
    
    .about-description {
        font-size: 14px;
    }
    
    .about-image img {
        width: 100px;
    }
}
