/*
 * Mobile layout revision based on the manager brief dated 2026-08-11.
 * This file deliberately contains only mobile media queries so the approved
 * desktop layout remains pixel-identical. Rollback details are stored in:
 * /Users/ajtumi/Codex проекты/Моторвей/backups/mobile-20260811-185733-VL-before-manager-tz/RESTORE.md
 */

@media (max-width: 768px) {
    :root {
        --mw-mobile-edge: 16px;
        --mw-mobile-gap: 12px;
        --mw-mobile-section: 48px;
        --mw-slider-section-rhythm: 24px;
        --mw-mobile-radius: 18px;
        --mw-mobile-card-width: min(84vw, 336px)
    }

    html {
        overflow-x: clip;
        scroll-padding-top: 88px;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%
    }

    body,
    .content,
    main {
        max-width: 100%;
        overflow-x: clip
    }

    img,
    picture,
    video,
    iframe {
        max-width: 100%
    }

    .container {
        width: 100%;
        padding-right: var(--mw-mobile-edge) !important;
        padding-left: var(--mw-mobile-edge) !important
    }

    .section + .section,
    .countries {
        padding-top: var(--mw-mobile-section) !important
    }

    .section_block__title,
    .bosses__title,
    .delivery__title,
    .selection_showcase__title,
    .estimate_showcase__title {
        font-size: clamp(28px, 7.5vw, 34px) !important;
        line-height: 1.12 !important;
        letter-spacing: -.025em
    }

    .section_block__text,
    .delivery__text,
    .selection_showcase__text,
    .estimate_showcase__text {
        font-size: 15px !important;
        line-height: 1.45 !important
    }

    .section_block__text,
    .home .section_block__text {
        margin-top: 10px !important
    }

    .section_block__btn {
        margin-top: 16px !important
    }

    .btn {
        max-width: 100%;
        min-height: 48px;
        padding-right: 18px;
        padding-left: 18px;
        border-radius: 12px;
        white-space: normal;
        overflow-wrap: anywhere;
        text-align: center
    }

    .btn__text {
        min-width: 0;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        text-align: center
    }

    /* Stable, compact mobile header. */
    .header,
    .header.is-compact,
    body[data-scroll-direction="down"] .header {
        padding-top: 10px !important
    }

    .header__container,
    .header.is-compact .header__container,
    body[data-scroll-direction="down"] .header .header__container {
        padding-right: 12px !important;
        padding-left: 12px !important;
        transform: none !important
    }

    .header__bar,
    .header.is-compact .header__bar,
    body[data-scroll-direction="down"] .header .header__bar {
        min-height: 62px !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 10px !important;
        padding: 8px 10px 8px 14px !important;
        border-radius: 20px !important
    }

    .header__logo,
    .header.is-compact .header__logo,
    body[data-scroll-direction="down"] .header .header__logo {
        width: min(52vw, 194px) !important;
        height: 44px !important;
        min-height: 44px !important
    }

    .header__right {
        grid-column: 2;
        gap: 8px !important
    }

    .header__menu,
    .header.is-compact .header__menu,
    body[data-scroll-direction="down"] .header .header__menu {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important
    }

    /* First screen: message first, controls close to the slide they control. */
    .home,
    .home--main,
    .home--about {
        height: auto !important;
        min-height: min(760px, 100svh) !important
    }

    .home__container {
        min-height: min(760px, 100svh);
        padding-top: 96px !important;
        padding-bottom: 18px !important
    }

    .home--main .home__container {
        justify-content: flex-start !important
    }

    .home__hero_content {
        gap: 10px !important
    }

    .home__hero_content .section_block {
        gap: 10px !important
    }

    .home .section_block__title {
        max-width: 12em;
        font-size: clamp(32px, 9vw, 40px) !important;
        line-height: 1.08 !important;
        letter-spacing: -.035em
    }

    .home--main .home__table {
        height: 168px !important;
        margin-top: 12px !important
    }

    .home_feature_slider__track {
        inset: 0 0 54px !important
    }

    .home--main .home__table::before,
    .home--main .home__table::after {
        right: 0 !important;
        bottom: 21px !important
    }

    .home_table_block {
        min-height: 96px
    }

    .home_table_block__title {
        font-size: 16px !important;
        line-height: 1.25 !important
    }

    .home_table_block__text {
        max-width: 22em !important;
        font-size: 13px !important;
        line-height: 1.35 !important
    }

    .yandex_rating_badge_wrap {
        width: 170px;
        height: 57px;
        margin-top: auto
    }

    .yandex_rating_badge {
        transform: scale(1.13) !important
    }

    .home--japan .home__hero_content,
    .home--korea .home__hero_content,
    .home--china .home__hero_content {
        top: 92px !important;
        bottom: 0 !important;
        right: var(--mw-mobile-edge) !important;
        left: var(--mw-mobile-edge) !important;
        max-width: none !important;
        transform: none !important
    }

    /* Country pages: one clear mobile composition — text, car, responsibility, brands. */
    .home--japan::before,
    .home--korea::before,
    .home--china::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        background: linear-gradient(180deg,
            rgba(2, 7, 11, .92) 0%,
            rgba(2, 7, 11, .84) 28%,
            rgba(2, 7, 11, .50) 42%,
            rgba(2, 7, 11, .14) 58%,
            rgba(2, 7, 11, .08) 72%,
            rgba(2, 7, 11, .46) 100%)
    }

    .home--japan .home__container,
    .home--korea .home__container,
    .home--china .home__container {
        padding-top: 0 !important;
        padding-bottom: 0 !important
    }

    .home--japan .section_block,
    .home--korea .section_block,
    .home--china .section_block {
        width: 100%;
        max-width: 358px
    }

    .home--japan .section_block__title,
    .home--korea .section_block__title,
    .home--china .section_block__title {
        max-width: 10em;
        text-shadow: 0 2px 18px rgba(0, 0, 0, .38)
    }

    .home__country_accent {
        color: #14ffca
    }

    .home--japan .section_block__text,
    .home--korea .section_block__text,
    .home--china .section_block__text {
        max-width: 358px;
        margin-top: 4px !important;
        font-size: 14px !important;
        line-height: 1.38 !important;
        text-shadow: 0 1px 12px rgba(0, 0, 0, .72)
    }

    .home--japan .home_resp_block,
    .home--korea .home_resp_block,
    .home--china .home_resp_block {
        position: absolute;
        right: 0;
        bottom: 92px;
        left: 0;
        width: 100%;
        min-height: 56px;
        padding: 6px 16px 6px 7px;
        border: 1px solid rgba(255, 255, 255, .08);
        background: rgba(27, 28, 29, .94);
        box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
        backdrop-filter: blur(10px)
    }

    .home--japan .home_resp_block__pic,
    .home--korea .home_resp_block__pic,
    .home--china .home_resp_block__pic {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        border: 2px solid rgba(20, 255, 202, .45);
        background: #fff
    }

    .home--japan .home_resp_block__pic .image,
    .home--korea .home_resp_block__pic .image,
    .home--china .home_resp_block__pic .image {
        width: 100%;
        height: 100%;
        object-position: center;
        object-fit: cover
    }

    .home--japan .home_resp_block__text,
    .home--korea .home_resp_block__text,
    .home--china .home_resp_block__text {
        margin-left: 12px;
        font-size: 14px;
        line-height: 1.25
    }

    /* Benefits: one compact card at a time instead of a six-card vertical wall. */
    .general_info__slider,
    .general_info__mosaic,
    .advantages__slider,
    .reviews__slider,
    .team__slider,
    .faq__content {
        margin-top: 24px !important
    }

    .general_info__mosaic {
        position: relative;
        overflow: visible !important
    }

    .general_info__mosaic::before {
        content: "Листайте карточки свайпом →";
        display: block;
        margin-bottom: 10px;
        color: #727277;
        font-size: 13px;
        line-height: 1.3
    }

    .general_info__mosaic_grid,
    .general_info .swiper-wrapper {
        display: flex !important;
        align-items: flex-start !important;
        grid-template-columns: none !important;
        gap: var(--mw-mobile-gap) !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 0 0 8px !important;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 0;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        transform: none !important;
        -webkit-overflow-scrolling: touch
    }

    .general_info__mosaic_grid::-webkit-scrollbar,
    .general_info .swiper-wrapper::-webkit-scrollbar,
    .countries__content::-webkit-scrollbar,
    .scheme__block_wrap::-webkit-scrollbar {
        display: none
    }

    .general_info__mosaic .general_info_slide:nth-child(n),
    .general_info .swiper-wrapper > .general_info_slide {
        display: flex !important;
        flex-direction: column !important;
        width: var(--mw-mobile-card-width) !important;
        min-width: var(--mw-mobile-card-width) !important;
        max-width: var(--mw-mobile-card-width) !important;
        height: auto !important;
        min-height: 0 !important;
        flex: 0 0 var(--mw-mobile-card-width) !important;
        padding: 18px !important;
        box-sizing: border-box !important;
        align-items: stretch !important;
        border: 1px solid #e8e8ea;
        border-radius: var(--mw-mobile-radius) !important;
        scroll-snap-align: start;
        scroll-snap-stop: always
    }

    .general_info__mosaic .general_info_slide::before {
        width: 42px;
        height: 42px;
        margin-bottom: 12px
    }

    .general_info__mosaic .general_info_slide:nth-child(n) .general_info_slide__title,
    .general_info__mosaic .general_info_slide:nth-child(n) .general_info_slide__text {
        order: 1 !important;
        width: 100% !important
    }

    .general_info_slide__title {
        font-size: 20px !important;
        line-height: 1.2 !important
    }

    .general_info_slide__text {
        font-size: 14px !important;
        line-height: 1.35 !important
    }

    .general_info__mosaic .general_info_slide:nth-child(n) > .general_info_slide__img {
        position: relative !important;
        inset: auto !important;
        order: 2 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 188px !important;
        min-height: 188px !important;
        flex: 0 0 188px !important;
        margin: 14px 0 0 !important;
        overflow: hidden !important
    }

    .general_info__mosaic .general_info_slide:nth-child(n) > .general_info_slide__img .image {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        object-fit: contain !important;
        object-position: center center !important;
        transform: none !important
    }

    .general_info__mosaic .general_info_slide:nth-child(n) > .general_info_slide__btn {
        position: relative !important;
        order: 3 !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        min-height: 50px !important;
        flex: 0 0 50px !important;
        margin: 14px 0 0 !important;
        padding: 10px 14px !important;
        box-sizing: border-box !important;
        align-self: stretch !important;
        justify-content: center !important;
        white-space: normal !important;
        text-align: center !important
    }

    .general_info__mosaic .general_info_slide:nth-child(n) > .general_info_slide__btn .btn__text {
        max-width: 100% !important;
        line-height: 1.15 !important;
        white-space: normal !important
    }

    /* Country cards stack vertically, same as the desktop layout. */
    .countries__content {
        display: grid !important;
        grid-template-columns: 100% !important;
        gap: var(--mw-mobile-gap) !important;
        margin-top: 24px !important;
        overflow: visible !important;
        padding-bottom: 0
    }

    .countries_card {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: 420px !important;
        border: 1px solid #e8e8ea !important;
        border-radius: var(--mw-mobile-radius) !important
    }

    .countries_card__info {
        padding: 24px 18px 10px !important
    }

    .countries_card__title {
        font-size: 42px !important
    }

    .countries_card__btn {
        width: auto !important;
        margin-top: 14px !important
    }

    /* Filter chips stay inside the global gutter and wrap instead of clipping. */
    .best_offers {
        height: auto !important;
        min-height: 0 !important
    }

    .best_offers__tabs {
        display: flex !important;
        width: 100%;
        max-width: 100%;
        flex-wrap: wrap !important;
        align-items: stretch !important;
        justify-content: center !important;
        gap: 8px !important;
        margin-top: 24px !important;
        margin-bottom: 18px !important;
        padding: 0 !important;
        overflow: visible !important;
        touch-action: auto !important
    }

    .best_offers__tabs_btn,
    .best_offers__tabs_btn + .best_offers__tabs_btn {
        min-width: 0;
        max-width: 100%;
        min-height: 44px;
        flex: 0 1 auto !important;
        margin: 0 !important;
        padding: 10px 14px !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
        font-size: 14px !important;
        line-height: 20px !important;
        text-align: center
    }

    .best_offers__content {
        min-height: 0 !important
    }

    .navigation .pages {
        display: flex;
        width: 100%;
        max-width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px
    }

    .navigation .pages > * {
        margin: 0 !important
    }

    .countries_card__img,
    .countries_card__img--japan,
    .countries_card__img--korea,
    .countries_card__img--china {
        height: 210px !important
    }

    /* Existing Swiper sections: compact card, swipe first, arrows below. */
    .advantages_slide {
        min-height: 224px;
        padding: 18px !important;
        border: 1px solid #e8e8ea !important;
        border-radius: var(--mw-mobile-radius) !important
    }

    .advantages_slide__icon {
        width: 42px !important;
        height: 42px !important;
        margin-bottom: 12px
    }

    .advantages_slide__title {
        font-size: 19px !important;
        line-height: 1.25 !important
    }

    .advantages_slide__text {
        font-size: 14px !important;
        line-height: 1.4 !important
    }

    .slider__nav,
    .slider__nav.grid,
    .advantages__nav,
    .reviews__nav,
    .team__nav {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        justify-content: center;
        margin-top: 12px !important
    }

    .slider__buttons {
        margin-bottom: 0 !important
    }

    /* Keep carousel controls visually attached to the cards above and make
       the start of the next section unmistakable. */
    .advantages__nav,
    .reviews__nav {
        position: relative;
        width: 100%;
        min-height: 80px;
        margin-top: var(--mw-slider-section-rhythm) !important;
        padding-bottom: var(--mw-slider-section-rhythm);
        isolation: isolate
    }

    /* A divider already marks the boundary, so both sides use the same
       24px rhythm instead of stacking the generic 48px section gap below it. */
    .advantages + .section,
    .reviews + .section {
        padding-top: var(--mw-slider-section-rhythm) !important
    }

    .advantages__nav::after,
    .reviews__nav::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        height: 2px;
        border-radius: 999px;
        background: linear-gradient(90deg, rgba(21, 21, 21, 0) 0%, rgba(21, 21, 21, .14) 18%, rgba(20, 255, 202, .78) 50%, rgba(21, 21, 21, .14) 82%, rgba(21, 21, 21, 0) 100%)
    }

    .advantages__nav .slider__buttons,
    .reviews__nav .slider__buttons {
        position: relative;
        z-index: 1;
        display: flex;
        gap: 8px;
        margin: 0 !important;
        padding: 6px;
        border: 1px solid #e1e3e5;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 8px 22px rgba(21, 21, 21, .08)
    }

    .advantages__nav .slider__button + .slider__button,
    .reviews__nav .slider__button + .slider__button {
        margin-left: 0 !important
    }

    .slider__button {
        width: 44px !important;
        height: 44px !important
    }

    .reviews_slide,
    .team_slide {
        border: 1px solid #e8e8ea !important;
        border-radius: var(--mw-mobile-radius) !important
    }

    .reviews__slider .swiper-wrapper {
        align-items: flex-start !important
    }

    .reviews__slider .reviews_slide {
        height: auto !important;
        align-self: flex-start !important
    }

    .reviews_slide__img {
        height: 176px !important
    }

    .reviews_slide__info,
    .team_slide__info {
        margin-top: 14px !important;
        padding: 0 8px 10px !important
    }

    .reviews_slide__text--link {
        margin-top: 12px !important
    }

    .team_slide__img {
        aspect-ratio: 4 / 4.65 !important
    }

    .team_slide__title {
        min-height: 0 !important;
        font-size: 18px !important;
        line-height: 1.25 !important
    }

    /* Purchase stages: two swipe rows, preserving all text and actions. */
    .scheme__content {
        margin-top: 24px !important;
        padding: 18px 0 0 !important;
        border-radius: var(--mw-mobile-radius) !important;
        background: transparent !important
    }

    .scheme__block + .scheme__block {
        margin-top: 28px !important
    }

    .scheme__block_title {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
        padding: 0 2px;
        font-size: 22px !important;
        line-height: 1.25 !important
    }

    .scheme__block_title::after {
        content: "Свайп →";
        flex: none;
        color: #727277;
        font-size: 12px;
        font-weight: 500
    }

    .scheme__block_wrap {
        display: flex !important;
        align-items: flex-start !important;
        gap: var(--mw-mobile-gap);
        margin-top: 12px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        scroll-snap-type: x mandatory;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch
    }

    .scheme_step {
        width: var(--mw-mobile-card-width) !important;
        min-width: var(--mw-mobile-card-width) !important;
        max-width: var(--mw-mobile-card-width) !important;
        height: auto !important;
        min-height: 0 !important;
        flex: 0 0 var(--mw-mobile-card-width) !important;
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 14px !important;
        overflow: hidden;
        border: 1px solid #e8e8ea;
        border-radius: var(--mw-mobile-radius);
        background: #fff;
        scroll-snap-align: start;
        scroll-snap-stop: always
    }

    .scheme_step + .scheme_step::before {
        display: none !important
    }

    .scheme_step__img {
        width: 100% !important;
        height: 142px !important;
        flex: 0 0 142px !important;
        margin: 0 0 14px !important;
        border-radius: 13px !important
    }

    .scheme_step__info {
        width: 100% !important;
        min-width: 0;
        flex: 0 0 auto !important
    }

    .scheme_step__title {
        font-size: 17px !important;
        line-height: 1.3 !important
    }

    .scheme_step__text {
        margin-top: 8px !important;
        font-size: 14px !important;
        line-height: 1.4 !important
    }

    .scheme_step__btn {
        width: 100% !important;
        margin-top: 12px !important
    }

    /* Delivery should read as one compact card, not a near-fullscreen banner. */
    .delivery__content {
        min-height: 430px !important;
        border-radius: var(--mw-mobile-radius) !important;
        background-color: #050709 !important;
        background-image: linear-gradient(180deg, rgba(3, 5, 8, .96) 0%, rgba(3, 5, 8, .9) 37%, rgba(3, 5, 8, .34) 58%, rgba(3, 5, 8, .08) 78%, rgba(3, 5, 8, .5) 100%), url("/templates/mwvl/assets/img/delivery-motorway-white-sedan-mobile-20260821.webp") !important;
        background-position: center, right 0 bottom 68px !important;
        background-size: cover, auto 60% !important;
        background-repeat: no-repeat !important
    }

    .delivery__info {
        width: 100% !important;
        max-width: none !important;
        min-height: 430px !important;
        padding: 24px 18px !important;
        background: transparent !important
    }

    .delivery__text {
        margin-top: 12px !important
    }

    .delivery__btn {
        width: 100% !important;
        margin-top: auto !important
    }

    /* Lead forms: readable, no clipping, no accidental iOS zoom. */
    .selection_showcase,
    .estimate_showcase {
        margin-bottom: 0 !important
    }

    .selection_showcase__content,
    .estimate_showcase__card {
        grid-template-columns: 100% !important;
        gap: 16px !important;
        padding: 16px !important;
        border-radius: var(--mw-mobile-radius) !important
    }

    .estimate_showcase__card {
        padding: 0 !important;
        background-position: center bottom !important;
        background-size: 100% auto !important
    }

    .estimate_showcase__content {
        padding: 18px !important
    }

    .selection_showcase__text,
    .estimate_showcase__text {
        margin-top: 12px !important
    }

    .selection_showcase__form.selection_form,
    .estimate_showcase__form.selection_form {
        margin-top: 18px !important
    }

    .selection_showcase__fields,
    .estimate_showcase__fields {
        gap: 10px !important
    }

    .selection_showcase__field,
    .estimate_showcase__field {
        min-height: 54px !important;
        grid-template-columns: 24px minmax(0, 1fr) !important;
        gap: 10px !important;
        padding: 0 14px !important;
        border-radius: 13px !important
    }

    .selection_showcase__field img,
    .estimate_showcase__field img {
        width: 24px !important;
        height: 24px !important
    }

    .selection_showcase__field input,
    .selection_showcase__field textarea,
    .estimate_showcase__field input,
    .estimate_showcase__field textarea {
        min-height: 52px !important;
        font-size: 16px !important
    }

    .selection_showcase__field textarea,
    .estimate_showcase__field textarea {
        min-height: 86px !important;
        padding: 14px 0 !important
    }

    .selection_showcase__field--textarea img,
    .estimate_showcase__field--textarea img {
        margin-top: 14px !important
    }

    .selection_showcase__consent,
    .estimate_showcase__consent {
        min-height: 44px !important;
        margin-top: 10px !important;
        font-size: 13px !important;
        line-height: 1.4 !important
    }

    .selection_showcase__consent a,
    .estimate_showcase__consent a {
        min-height: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important
    }

    .selection_showcase__submit.btn,
    .estimate_showcase__submit.btn {
        min-height: 52px !important;
        margin-top: 10px !important;
        border-radius: 13px !important
    }

    .selection_showcase__visual {
        min-height: 340px !important;
        aspect-ratio: auto !important;
        border-radius: 15px !important;
        background-position: center 32% !important
    }

    .selection_showcase__benefits {
        right: 10px !important;
        bottom: 10px !important;
        left: 10px !important;
        grid-template-columns: 100% !important;
        gap: 7px !important;
        padding: 10px !important;
        border-radius: 13px !important
    }

    .selection_showcase__benefit {
        grid-template-columns: 24px minmax(0, 1fr) !important;
        gap: 8px !important
    }

    .selection_showcase__benefit img {
        width: 24px !important;
        height: 24px !important
    }

    .selection_showcase__benefit p {
        font-size: 12px !important;
        line-height: 1.3 !important
    }

    .estimate_showcase__visual {
        min-height: 0 !important;
        aspect-ratio: 832 / 600
    }

    /* Boss/reassurance block remains visual but no longer consumes a full screen. */
    .bosses__content {
        height: 760px !important;
        border-radius: var(--mw-mobile-radius) !important
    }

    .bosses__info {
        width: 100%;
        align-items: flex-start !important;
        padding: 24px 18px 0 !important;
        text-align: left !important
    }

    .bosses__title {
        width: 100%;
        text-align: left !important
    }

    .bosses__title br {
        display: none
    }

    .bosses__text {
        width: 100%;
        max-width: none !important;
        margin-top: 8px !important;
        font-size: 13px !important;
        line-height: 1.4 !important;
        text-align: left !important
    }

    .bosses__text + .bosses__text {
        margin-top: 6px !important
    }

    .bosses__bottom {
        margin-top: 14px !important
    }

    .bosses__info___links {
        display: flex !important;
        width: 100%;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        margin-top: 16px !important
    }

    .bosses__info___links a {
        width: 44px;
        min-width: 44px;
        height: 44px;
        min-height: 44px;
        margin: 0 !important;
        padding: 0
    }

    .bosses__info___links img {
        width: 40px !important;
        height: 40px !important;
        object-fit: contain
    }

    .bosses__pic--left {
        width: clamp(250px, 54vw, 330px) !important;
        height: auto !important;
        aspect-ratio: 2 / 3;
        right: auto !important;
        bottom: -12px !important;
        left: 50% !important;
        transform: translateX(-50%) !important
    }

    .bosses__pic--right {
        display: none !important
    }

    .bosses__pic--logo {
        display: none !important
    }

    /* Mobile map: full-width controls above and below a clear marker zone. */
    .contacts__content {
        height: clamp(1200px, 200vw, 1320px) !important;
        margin-top: 24px !important;
        overflow: hidden !important;
        border-radius: var(--mw-mobile-radius) !important;
        background: #0d4439;
        isolation: isolate
    }

    .contacts__map {
        position: absolute !important;
        inset: 0;
        z-index: 0;
        width: 100% !important;
        height: 100% !important;
        overflow: hidden !important;
        border-radius: inherit !important
    }

    .contacts__route_btn {
        position: absolute !important;
        top: 16px !important;
        right: 16px !important;
        bottom: auto !important;
        left: 16px !important;
        z-index: 3;
        width: auto !important;
        min-height: 52px;
        margin: 0 !important;
        border-radius: 14px !important
    }

    .contacts_info {
        position: absolute !important;
        top: 80px !important;
        right: 16px !important;
        left: 16px !important;
        z-index: 3;
        width: auto !important;
        margin: 0 !important;
        padding: 18px !important;
        border-radius: 16px !important;
        box-shadow: 0 12px 32px rgba(7, 10, 14, .18)
    }

    .contacts_info__wrap + .contacts_info__wrap {
        margin-top: 14px !important
    }

    .contacts_info__caption {
        margin-bottom: 4px !important;
        font-size: 13px !important;
        line-height: 18px !important
    }

    .contacts_info__title {
        max-width: 100%;
        font-size: 17px !important;
        line-height: 1.3 !important;
        white-space: normal;
        overflow-wrap: anywhere
    }

    .contacts_info__line {
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 6px !important
    }

    .contacts_info__socials_link,
    .contacts_info__socials_link + .contacts_info__socials_link {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px;
        min-height: 44px;
        margin: 0 !important
    }

    .contacts_info__btn {
        min-height: 50px;
        margin-top: 16px !important
    }

    .contacts_people {
        position: absolute !important;
        right: 16px !important;
        bottom: 16px !important;
        left: 16px !important;
        z-index: 3;
        display: grid;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        gap: 10px !important
    }

    .contacts_person {
        width: 100%;
        min-height: 64px;
        grid-template-columns: 48px minmax(0, 1fr) 24px !important;
        gap: 12px !important;
        padding: 7px 12px !important;
        border-radius: 16px !important
    }

    .contacts_person__avatar {
        width: 48px !important;
        height: 48px !important
    }

    .contacts_person__name {
        overflow: visible;
        font-size: 15px !important;
        line-height: 1.2;
        text-overflow: clip;
        white-space: normal
    }

    .contacts_person__role {
        min-height: 0 !important;
        overflow: visible;
        font-size: 13px !important;
        line-height: 1.25;
        text-overflow: clip;
        white-space: normal
    }

    .contacts_person__icon {
        width: 24px !important;
        height: 24px !important
    }

    .contacts__map .mapboxgl-ctrl-top-right {
        display: none !important
    }

    /* FAQ, video and footer: denser rhythm and usable controls. */
    .faq__content,
    .faq_static__list {
        border-radius: var(--mw-mobile-radius) !important
    }

    .faq_static__list {
        margin-top: 24px !important
    }

    .faq_static__header {
        display: none !important
    }

    .faq_static__row {
        display: block !important
    }

    .faq_static__question {
        display: flex !important;
        min-height: 58px;
        align-items: center !important;
        justify-content: space-between;
        gap: 14px;
        padding: 16px !important;
        font-size: 16px !important;
        line-height: 1.3 !important;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent
    }

    .faq_static__question::after {
        content: "+";
        width: 28px;
        height: 28px;
        flex: 0 0 28px;
        border-radius: 50%;
        background: #14ffca;
        color: #151515;
        font-size: 20px;
        font-weight: 500;
        line-height: 27px;
        text-align: center;
        transition: transform .2s
    }

    .faq_static__question:focus-visible {
        outline: 3px solid rgba(20, 255, 202, .48);
        outline-offset: -3px
    }

    .faq_static__row.is-open .faq_static__question::after {
        transform: rotate(45deg)
    }

    .faq_static__answer {
        margin: 0 12px 12px !important;
        padding: 14px !important;
        border: 0 !important;
        border-radius: 12px !important
    }

    .faq_static__answer[hidden] {
        display: none !important
    }

    .faq_static__answer p {
        font-size: 14px !important;
        line-height: 1.45 !important
    }

    .faq_block__head,
    .faq_block__content {
        padding-right: 16px !important;
        padding-left: 16px !important
    }

    .youtube__iframe {
        height: auto !important;
        aspect-ratio: 16 / 9;
        margin-top: 24px !important;
        border-radius: 16px !important
    }

    .youtube__table {
        display: flex !important;
        gap: var(--mw-mobile-gap) !important;
        overflow-x: auto;
        padding-bottom: 8px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none
    }

    .youtube__table > * {
        width: var(--mw-mobile-card-width);
        min-width: var(--mw-mobile-card-width);
        flex: 0 0 var(--mw-mobile-card-width);
        scroll-snap-align: start
    }

    .footer {
        margin-top: var(--mw-mobile-section) !important
    }

    .footer_form {
        padding: 24px 0 !important
    }

    .footer_form__container {
        gap: 16px !important
    }

    .footer_form__title {
        font-size: 24px !important;
        line-height: 1.2 !important
    }

    .footer_form__form {
        gap: 10px !important
    }

    .footer_form__form input,
    .footer_form__form textarea,
    .footer_form__form button {
        font-size: 16px !important
    }

    .footer_form__form .input_wrapper__control,
    .footer_form__form button {
        min-height: 52px !important
    }

    .footer_form__form .footer_form__consent_input {
        min-height: 0 !important
    }

    .modal_menu {
        padding-top: 92px !important
    }

    .modal_menu__content {
        height: calc(100% - 72px) !important
    }
}

@media (max-width: 374px) {
    :root {
        --mw-mobile-edge: 12px;
        --mw-mobile-card-width: min(87vw, 318px)
    }

    .home .section_block__title {
        font-size: 30px !important
    }

    .header__logo,
    .header.is-compact .header__logo,
    body[data-scroll-direction="down"] .header .header__logo {
        width: min(50vw, 170px) !important
    }
}

@media (max-width: 500px) {
    .bosses__content {
        height: 800px !important
    }

    .bosses__pic--left {
        width: clamp(250px, 72vw, 300px) !important
    }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
    .general_info__mosaic_grid,
    .countries__content,
    .scheme__block_wrap,
    .youtube__table {
        scroll-behavior: auto
    }
}
