/* ==========================================================================
   Responsive — Metincom
   Breakpoints: 1200 | 991 | 767 | 480
   ========================================================================== */

/* --- Base --- */
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    overflow-x: clip;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- 1200px: tablet landscape / small laptop --- */
@media (max-width: 1200px) {
    .home_services_panel.active {
        grid-template-columns: 1fr;
    }

    .home_services_media {
        min-height: 240px;
    }

    .home_why_grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home_prices_grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home_services_heading,
    .home_why_heading,
    .home_prices_heading,
    .home_steps_title,
    .home_problems_title,
    .home_clients_title {
        font-size: 24px;
    }

    .home_seo {
        margin: 60px 0;
    }

    .main_advantages {
        margin-bottom: 80px;
    }

    .catalog {
        margin-bottom: 80px;
    }
}

.header_drawer_contacts {
    display: none;
}

/* --- 991px: tablet portrait --- */
@media (max-width: 991.98px) {
    .inner-page .page_hero {
        margin-top: 65px;
    }

    .header_warpper {
        gap: 12px;
        padding: 12px 0;
    }

    .header_messages {
        gap: 10px;
        margin-right: 0;
    }

    .header_message img {
        width: 26px;
        height: 26px;
    }

    .header_warpper .header_search.is-open {
        right: 76px;
    }

    .header_warpper .header_search.is-open .header_search-input {
        width: min(200px, calc(100vw - 120px));
    }

    .main_lead {
        font-size: 15px;
        line-height: 1.55;
        padding: 14px 16px;
        margin-bottom: 20px;
    }

    .main_option {
        width: 100%;
        max-width: 100%;
    }

    .home_seo_body {
        gap: 20px;
    }

    .home_intro_stat-value {
        font-size: 30px;
    }

    .home_services,
    .home_why,
    .home_prices,
    .home_steps,
    .home_clients,
    .home_problems {
        padding: 32px 24px;
    }

    .home_services_title {
        font-size: 20px;
    }

    .home_cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .home_prices_footer {
        flex-direction: column;
        align-items: stretch;
    }

    .home_prices_cta {
        width: 100%;
        min-width: 0;
    }

    .home_prices_phone {
        text-align: center;
    }

    .works_slider-wrapper {
        padding: 0 4px;
    }

    .works_slider-arrows {
        display: flex;
        justify-content: center;
        gap: 12px;
        margin-top: 16px;
    }

    .works_slider-arrow {
        position: static;
        transform: none;
    }

    .works_slider-arrow.prev,
    .works_slider-arrow.next {
        left: auto;
        right: auto;
    }

    .article {
        margin: -24px 0 60px;
    }

    .inner-page .article_content .home_seo_body {
        gap: 20px;
    }

    .page_hero {
        padding: 36px 0 44px;
    }

    .breadcrumbs {
        font-size: 11px;
        margin-bottom: 16px;
        padding: 6px 12px;
    }

    /* Mobile drawer extras */
    .header_bot .header_menu a {
        font-size: 16px;
        font-weight: 600;
        padding: 12px 0;
        border-bottom: 1px solid #E8ECF2;
    }

    .header_bot .header_menu li:last-child a {
        border-bottom: none;
    }

    .header_bot {
        align-items: flex-start;
        padding: 24px 16px 32px;
    }

    .header_bot .header_menu {
        width: 100%;
        margin: 0;
    }

    .header_drawer_contacts {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        margin-top: 24px;
        padding-top: 24px;
        border-top: 1px solid #E8ECF2;
    }

    .header_drawer_addrs {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 8px;
    }

    .header_drawer_addr {
        font-size: 13px;
        line-height: 1.45;
        color: #3F4C51;
    }

    .header_drawer_addr span {
        display: block;
        margin-bottom: 2px;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #324883;
    }

    .header_drawer_phone {
        font-size: 20px;
        font-weight: 600;
        color: #324883;
    }

    .header_drawer_mail {
        font-size: 15px;
        color: #3F4C51;
    }

    .header_drawer_social {
        display: flex;
        gap: 12px;
        margin-top: 4px;
    }

    .header_drawer_social a {
        display: flex;
    }

    .header_drawer_social img {
        width: 32px;
        height: 32px;
    }
}

/* --- 767px: mobile --- */
@media (max-width: 767.98px) {
    .container {
        padding: 0 16px;
    }

    .inner-page .page_hero {
        margin-top: 65px;
    }

    .header_warpper {
        gap: 8px;
    }

    .header_message img {
        width: 24px;
        height: 24px;
    }

    .header_messages {
        gap: 8px;
    }

    .header_warpper .header_search.is-open {
        right: 64px;
    }

    .header_warpper .header_search.is-open .header_search-input {
        width: min(180px, calc(100vw - 108px));
        font-size: 14px;
    }

    .main {
        padding: 28px 0 32px;
    }

    .main_title {
        font-size: 22px;
        padding: 12px 16px;
        border-left-width: 4px;
    }

    .main_lead {
        font-size: 14px;
        line-height: 1.5;
    }

    .main_advantages {
        margin: 28px 0 48px;
    }

    .main_advantages-item img {
        width: 48px;
    }

    .catalog {
        margin-bottom: 48px;
    }

    .catalog_item {
        height: 160px;
    }

    .catalog_item-title {
        font-size: 14px;
        padding: 12px 14px;
    }

    .home_seo {
        margin: 40px 0;
        padding: 12px 0 28px;
    }

    .home_intro_stat-value {
        font-size: 26px;
    }

    .home_intro_stat-label {
        font-size: 12px;
    }

    .home_intro_text {
        font-size: 15px;
    }

    .home_services_heading,
    .home_why_heading,
    .home_prices_heading,
    .home_faq_title {
        font-size: 20px;
    }

    .home_services_sub,
    .home_prices_sub,
    .home_problems_lead,
    .home_clients_lead,
    .home_steps_lead {
        font-size: 14px;
    }

    .home_services_tab,
    .home_clients_tab {
        font-size: 12px;
        padding: 8px 14px;
    }

    .home_why_grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .home_why_card {
        padding: 18px 16px;
    }

    .home_why_card:hover {
        transform: none;
    }

    .home_price_card {
        padding: 18px 16px;
    }

    .home_price_value {
        font-size: 24px;
    }

    .home_step {
        padding: 18px 16px;
    }

    .home_step:hover {
        transform: none;
    }

    .home_step_arrow {
        display: none;
    }

    .home_cta_title {
        font-size: 20px;
    }

    .home_cta_text {
        font-size: 14px;
    }

    .home_faq {
        padding: 32px 0 48px;
    }

    .faq_q {
        font-size: 15px;
        padding: 16px 44px 16px 16px;
    }

    .faq_a {
        font-size: 14px;
    }

    .works {
        margin-bottom: 48px;
    }

    .works_slide-img {
        height: 200px;
    }

    .works_slide-text {
        padding: 14px 0 0;
    }

    .works_slide-title {
        font-size: 16px;
    }

    .works_slide-desc {
        font-size: 13px;
    }

    .calc {
        padding: 48px 0;
    }

    .calc_title {
        font-size: 22px;
    }

    .article {
        margin: -16px 0 48px;
    }

    .page_hero {
        padding: 24px 0 32px;
    }

    .page_hero .main_title {
        font-size: 22px;
        padding: 12px 16px;
    }

    .footer {
        padding-top: 48px;
    }

    .footer_item {
        width: 100%;
    }

    .footer_item-title {
        margin-bottom: 12px;
    }

    .footer_item-menu a {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .footer_number {
        font-size: 22px;
    }

    .footer_messages {
        flex-wrap: wrap;
        gap: 12px;
    }

    .service_steps_grid--5,
    .service_steps_grid--6,
    .fermy_steps_grid {
        grid-template-columns: 1fr !important;
    }

    .home_steps_grid.service_steps_grid--5,
    .home_steps_grid.service_steps_grid--6 {
        grid-template-columns: 1fr;
    }
}

/* --- 480px: small mobile --- */
@media (max-width: 480px) {
    .header_logo {
        width: 108px;
    }

    .header_message img {
        width: 22px;
        height: 22px;
    }

    .header_messages {
        gap: 6px;
    }

    .header_links {
        width: 22px;
        height: 22px;
        margin-right: 6px;
    }

    .header_links img {
        width: 22px;
        height: auto;
    }

    .mobile_burger {
        width: 26px;
        margin-left: 6px;
    }

    .header_warpper .header_search.is-open {
        right: 56px;
        padding: 4px 6px;
    }

    .main_title,
    .page_hero .main_title {
        font-size: 20px;
    }

    .home_intro_stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .home_intro_stat-value {
        font-size: 22px;
    }

    .main_advantages-item {
        width: 100%;
        flex-direction: row;
        text-align: left;
        gap: 12px;
    }

    .main_advantages-item img {
        width: 40px;
        flex-shrink: 0;
    }

    .home_problems_nav-item {
        min-width: 160px;
    }

    .catalog_item {
        height: 140px;
    }

    .callback_modal-box {
        width: calc(100vw - 32px);
        max-width: none;
        padding: 24px 20px;
        margin: 16px;
    }

    .callback_modal-title {
        font-size: 20px;
    }
}

/* --- Body states --- */
body.menu-open {
    overflow: hidden;
}
