/* ==========================================================================
   АДАПТИВНОСТЬ (MEDIA QUERIES)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ПЛАНШЕТЫ И ЭКРАНЫ ДО 992px
   -------------------------------------------------------------------------- */
@media screen and (max-width: 992px) {
    .header-top {
        gap: 15px;
    }

    .company-title {
        font-size: 24px;
    }

    .company-subtitle {
        font-size: 16px;
    }

    .hero-title {
        font-size: 30px;
    }

    .hero-description {
        font-size: 18px;
    }
}

/* --------------------------------------------------------------------------
   2. МОБИЛЬНЫЕ УСТРОЙСТВА И ПЛАНШЕТЫ ДО 768px
   -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
    
    /* Шапка: перестройка логотипа и описания в колонку */
    .header-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .logo-img {
        width: 150px;
        height: 150px;
    }

    .header-info {
        width: 100%;
        border-left: none;
        border-top: 4px solid #0284c7;
        padding: 15px 20px;
    }

    .company-title {
        font-size: 20px;
    }

    .company-subtitle {
        font-size: 15px;
    }

    .company-tagline {
        font-size: 14px;
    }

    /* Контакты и языки */
    .header-contacts-bar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .contacts-list {
        flex-direction: column;
        gap: 10px;
    }

    .lang-switch {
        justify-content: center;
    }

    /* Мобильное меню ("Гамбургер" без JS) */
    .nav-toggle-label {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 20px;
        cursor: pointer;
        background-color: #1e293b;
        color: #ffffff;
        font-size: 16px;
        font-weight: 600;
        user-select: none;
    }

    /* Иконка "гамбургер" (3 полоски) */
    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        display: block;
        background-color: #ffffff;
        height: 3px;
        width: 25px;
        border-radius: 2px;
        position: relative;
        transition: all 0.3s ease;
    }

    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        content: '';
        position: absolute;
    }

    .nav-toggle-label span::before {
        bottom: 8px;
    }

    .nav-toggle-label span::after {
        top: 8px;
    }

    /* Скрытие списка меню по умолчанию */
    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #0f172a;
    }

    .nav-list li {
        width: 100%;
        border-top: 1px solid #1e293b;
    }

    .nav-list li a {
        padding: 12px 20px;
    }

    /* Открытие меню при клике на чекбокс */
    .nav-toggle:checked ~ .nav-list {
        display: flex;
    }

    /* Главный экран */
    .hero-section {
        padding: 40px 0;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-description {
        font-size: 16px;
    }

    .btn-order {
        width: 100%;
        padding: 12px 20px;
    }
}

/* --------------------------------------------------------------------------
   3. МАЛЕНЬКИЕ ЭКРАНЫ ДО 480px
   -------------------------------------------------------------------------- */
@media screen and (max-width: 480px) {
    .header-info {
        padding: 12px 15px;
    }

    .company-title {
        font-size: 18px;
    }

    .hero-title {
        font-size: 20px;
    }
}

/* Адаптивность для блока «О нас» */
@media screen and (max-width: 992px) {
    .about-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .about-section {
        padding: 45px 0;
    }

    .section-title {
        font-size: 26px;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Адаптивность для блока «Сервисы» */
@media screen and (max-width: 768px) {
    .services-section {
        padding: 45px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 20px;
    }
}

/* Адаптивность для блока «Наши специалисты» */
@media screen and (max-width: 992px) {
    .specialists-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media screen and (max-width: 576px) {
    .specialists-section {
        padding: 45px 0;
    }

    .specialists-grid {
        grid-template-columns: 1fr;
    }
}

/* Адаптивность для блока «Почему именно мы?» */
@media screen and (max-width: 768px) {
    .why-us-section {
        padding: 45px 0;
    }

    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .why-us-card {
        padding: 20px;
    }
}

/* Адаптивность для блока «Партнеры» */
@media screen and (max-width: 992px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media screen and (max-width: 576px) {
    .partners-section {
        padding: 45px 0;
    }

    .partners-grid {
        grid-template-columns: 1fr;
    }

    .partner-card {
        padding: 20px 15px;
    }
}

/* Адаптивность для блока «Контакты» */
@media screen and (max-width: 992px) {
    .contacts-wrapper {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media screen and (max-width: 576px) {
    .contacts-section {
        padding: 45px 0;
    }

    .contacts-info-card,
    .contacts-form-card {
        padding: 20px 15px;
    }

    .map-container iframe {
        height: 300px;
    }
}

