/* шрифты: Liberation Sans (основной текст), Open Sans (заголовки) — Regular и Bold, woff2 в fonts/ */
@font-face {
  font-family: 'Liberation Sans';
  src: url('../fonts/LiberationSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Liberation Sans';
  src: url('../fonts/LiberationSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/OpenSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/OpenSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}
img, picture {
    max-width: 100%;
    display: block;
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    display: none;
}

#cookies_popup {
    position: fixed;
    bottom: 12px;
    width: 65%;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    justify-content: space-between;
    align-items: center;
    background: inherit;
    padding: 20px;
    border-radius: 20px;
    z-index: 9999;
    box-shadow: 4px 4px 8px 0 rgba(34, 60, 80, 0.2);
}

#cookies_popup .text a {
    color: inherit;
    text-decoration: underline;
}

#cookies_popup .text p {
    margin: 0;
}

#cookies_popup .btn {
    width: 190px;
    flex-shrink: 0;
    margin-left: 15px;
    cursor: pointer;
}

@media (max-width: 767px) {
    #cookies_popup {
        flex-direction: column;
    }

    #cookies_popup .btn {
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
    }
}
h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
}
address {
    font-style: normal;
}
ul, ol {
  list-style: none;
}
:focus {
    outline: 0;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
blockquote, q {
    quotes: none;
}
q:before, q:after {
    content: "";
}
a, ins {
    text-decoration: none;
    color: inherit;
}
sub, sup {
    vertical-align: baseline;
    position: relative;
    font-size: .8em;
}
sup {
    top: -5px;
}
sub {
    bottom: -2px;
}
pre {
    font: inherit;
}

/*
 * Брейкпоинты. В макете только десктоп 1920 (контент 1320) и мобильный баннер.
 * Десктоп и планшет — резиновые (991px и шире), ниже 991px — отдельный адаптив (max-width: 990px).
 * Шапка: 1199 (прячется адрес), 767 (телефон только иконкой).
 * Остальные: 1279 (таймер в столбик), 1199 (карточки моделей и комплектаций), 990 (общий адаптив), 767 (мобильные).
 */
:root {
    --page-width: 1920px;
    --container: 1380px; /* контент 1320px (как в макете) + поля 2×30px */
    --container-pad: 30px; /* боковые поля контейнера */
    --font-main: "Liberation Sans", Arial, Helvetica, sans-serif; /* основной шрифт макета */
    --font-title: "Open Sans", Arial, sans-serif; /* заголовки секций, плашки, подпись «Официальный дилер» */
    --font-size: 16px;
    --font-size-title: 40px;
    --font-size-subtitle: 24px;
    --font-size-description: 20px;
    --font-size-comment: 18px;
    --font-size-control: 18px; /* текст кнопок и полей форм */
    --color-black: #000000;
    --color-white: #ffffff;
    --color-gray: #C4C4C4; /* рамки: меню, селекты, контурная кнопка */
    --color-blue: #002D96; /* основной цвет: кнопки, заголовки карточек моделей */
    --color-light: #F1F5F7; /* светлый фон: таймер, карточки моделей и комплектаций, круги УТП */
    --color-card-title: #30363A; /* название авто в карточке комплектации */
    --color-card-text: #25282A; /* характеристики в карточке комплектации */
    --color-map: #2B3040; /* подложка контейнера карты (тёмная тема, как в макете) */
    --input-place-primary: #757575;
    --input-color-primary: #000000; /* текст в поле */
    --input-border: #A8AAAC; /* рамка полей форм */
    --btn-radius: 0px; /* в макете у кнопок и полей скруглений нет */
    --block-radius-trinity: 20px; /* плашка на баннере */
    --btn-height: 56px;
    --select-height: 50px;
    --select-radius: 5px;
    --section-gap: 140px; /* отступ между секциями с контентом */
    --header-main-height: 100px; /* строка с логотипами и контактами */
    --header-menu-height: 50px; /* строка меню */
    --header-height: calc(var(--header-main-height) + var(--header-menu-height));
    --transition-primary: 0.25s ease;
    --transition-secondary: 0.45s ease;
    --anchor-offset: calc(var(--header-height) + 20px); /* отступ при переходе по якорю: фиксированная шапка + 20px */
}
/* переход по якорям: плавно (если пользователь не отключил анимацию) и с отступом под фиксированную шапку */
html {
    scroll-padding-top: var(--anchor-offset);
}
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}
body {
    font-family: var(--font-main);
    font-size: var(--font-size);
    color: var(--color-black);
    background: var(--color-white);
    position: relative;
    font-weight: 400;
    padding: 0px;
    overflow-x: hidden;
    max-width: var(--page-width);
    margin: 0 auto;
}
.compensate-for-scrollbar {
    margin: 0 auto !important;
    overflow: auto !important;
}
.fancybox-button svg {
    pointer-events: none;
}
.form-title {color: inherit;font-size: 32px;font-weight: 700;line-height: 1.05;text-transform: uppercase;padding: 0px;margin: 0px;text-align: center;padding-bottom: 32px;}
.form-title span {
    display: block;
    white-space: nowrap;
}
input, button, textarea, select {
    font: inherit;
    outline: none;
    color: var(--input-color-primary);
    width: 100%;
    margin: 0;
    border: 1px solid var(--input-border);
    box-shadow: none;
    padding: 5px 15px;
    background: transparent;
    height: var(--btn-height);
    border-radius: var(--btn-radius);
}

input::-moz-placeholder { color: var(--input-place-primary); }
input::-webkit-input-placeholder { color: var(--input-place-primary); }
input:-ms-input-placeholder { color: var(--input-place-primary); }
input::placeholder { color: var(--input-place-primary); }

button {
    cursor: pointer;
}
/* поле формы: белое с серой рамкой на любом фоне */
.form-control {
    padding: 0 24px;
    font-size: var(--font-size-control);
    color: var(--input-color-primary);
    background-color: var(--color-white);
    border-color: var(--input-border);
}
select {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    background-color: transparent;
    background-image: url(../img/select__arrow-ico.svg);
    background-repeat: no-repeat;
    background-position: 90% 50%;
    display: block;
    padding-left: 15px;
    padding-right: 35px;
}
/* селект (в макете — фильтры комплектаций): стрелка справа, рамка и скругление из :root */
.select {
    height: var(--select-height);
    padding: 0 52px 0 20px;
    border: 1px solid var(--color-gray);
    border-radius: var(--select-radius);
    background: url(../img/select__arrow-ico.svg) right 20px center / 24px 24px no-repeat var(--color-white);
    font-size: var(--font-size);
    line-height: 20px;
    color: var(--color-black);
    cursor: pointer;
}
.select::-ms-expand {
    display: none;
}
.select option {
    font-weight: normal;
    background: var(--color-white);
    color: var(--color-black);
}
form .form-group-wrapper {
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: space-between;
}

form .form-group-wrapper .form-group {
    width: 100%;
}
/* поля в столбик (формы на фото: трейд-ин, кредит, улучшим предложение) */
form .form-group-wrapper_column {
    flex-direction: column;
    gap: 0;
}
form .form-group {
    margin-bottom: 10px;
    position: relative;
}
.form-group_wide {width: 100%;}
.form-group_thin {/* width: 49%; */}
form .form-group .btn {
    width: 100%;
}
/*
 * Формы: .form_dark — на тёмном фоне (фото), .form_light — на светлом.
 * Поля и кнопки одинаковые (общие стили), отличаются цвет текста согласия и рамка галочки (currentColor).
 */
.form_dark .btn,
.form_light .btn {
    width: 100%;
}
.form_dark {
    color: var(--color-white);
}
.form_light {
    color: var(--color-black);
}
.has-danger input,
.has-danger select,
.has-danger textarea {
	border-width:2px;
	box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c86461;
}
#form_popup { display:none; }
.popup-container {width: 456px;max-width:100%;padding: 40px;overflow: hidden !important;position: relative;box-sizing: border-box;background: var(--color-black) !important;text-align: center;border-radius: 0;}
/* в попапе по макету у поля и кнопки скругление 2px, рамка поля чёрная */
.popup-container .form-control {
    border-color: var(--color-black);
    border-radius: 2px;
}
.popup-container .btn {
    border-radius: 2px;
}
/* согласие в попапе по макету: квадрат 13px синего цвета, текст 10px */
.popup-container .agree-field {
    font-family: var(--font-title);
    font-size: 10px;
    line-height: 12px;
    padding-left: 20px;
}
.popup-container .agree-field span {
    top: -1px;
    width: 13px;
    height: 13px;
    border-color: var(--color-blue);
    border-radius: 2.5px;
    background: transparent;
}
.popup-container .agree-field input:checked + span {
    background: var(--color-blue);
}
/* крестик fancybox: кнопка 48×48 в правом верхнем углу, иконка из макета */
.popup-container .fancybox-close-small {
    top: 0;
    right: 0;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: url(../img/popup__close-ico.svg) 50% 50% / 24px 24px no-repeat;
    opacity: 1;
    transition: opacity var(--transition-primary);
}
.popup-container .fancybox-close-small:hover {
    opacity: .7; /* уточнить: ховер в макете не задан */
}
.popup-container .fancybox-close-small svg {
    display: none;
}
.alert.fancybox-content {
    overflow: hidden;
    background: inherit;
}

.alert {
    font-size: 20px;
}
.not-agree button {
    background-color: #cccccc !important;
    cursor: auto !important;
    color: var(--color-white) !important;
}
/* согласие: белый квадрат 14px с рамкой цвета текста формы, галочка из макета */
.agree-field {
    font-size: 11px;
    line-height: 14px;
    position: relative;
    display: block;
    padding-left: 22px;
    text-align: left;
    top: 0px;
}
.agree-field a {
    color: inherit;
    text-decoration: underline;
}
.agree-field input {
    position: absolute;
    top: -1px;
    left: 0px;
    margin: -0px;
    height: auto;
    width: auto;
    opacity: 0;
}
.agree-field span {
    position: absolute;
    top: 0;
    left: 0px;
    margin: -0px;
    height: 14px;
    width: 14px;
    border: 1px solid currentColor;
    border-radius: 0;
    background-color: var(--color-white);
}
.agree-field input:checked + span {
    background: url(../img/input__checked.svg) 50% 50% / 9px 7px no-repeat var(--color-white);
}

@media only screen and (min-width: 768px) {
  .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition-property: all;
    transition-timing-function: ease-out;
  }
  .reveal.reveal-visible {
    opacity: 1;
    transform: translateY(0px);
  }
  .reveal-fast {
    transition-duration: 0.5s;
  }
  .reveal-normal {
    transition-duration: 0.6s;
  }
  .reveal-slow {
    transition-duration: 0.9s;
  }
  .reveal-slowest {
    transition-duration: 1.2s;
  }
  .reveal-delay-0 {
    transition-delay: 0s;
  }
  .reveal-delay-1 {
    transition-delay: 0.15s;
  }
  .reveal-delay-2 {
    transition-delay: 0.3s;
  }
  .reveal-delay-3 {
    transition-delay: 0.45s;
  }
  .reveal-delay-4 {
    transition-delay: 0.6s;
  }
  .reveal-delay-5 {
    transition-delay: 0.75s;
  }
  .reveal-delay-6 {
    transition-delay: 0.9s;
  }
  .reveal-delay-7 {
    transition-delay: 1.05s;
  }
}
/* пользователям с отключённой анимацией показываем всё сразу */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal.reveal-left,
    .reveal.reveal-right,
    .reveal.reveal-bottom {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
/* направления появления при скролле: слева, справа, снизу (вместе с .reveal) */
.reveal.reveal-left {
    transform: translateX(-120px);
}
.reveal.reveal-right {
    transform: translateX(120px);
}
.reveal.reveal-bottom {
    transform: translateY(120px);
}
.reveal.reveal-left.reveal-visible,
.reveal.reveal-right.reveal-visible,
.reveal.reveal-bottom.reveal-visible {
    transform: none;
}
/* на мобильных анимация появления отключена (скрипт не следит за .reveal) — без сдвига */
@media only screen and (max-width: 767px) {
    .reveal.reveal-left,
    .reveal.reveal-right,
    .reveal.reveal-bottom {
        transform: none;
    }
}

/* контент начинается под фиксированной шапкой */
.main {
    padding-top: var(--header-height);
}
section {
    margin-top: var(--section-gap);
}
.container {
    width: 100%;
    max-width: var(--container);
    padding: 0 var(--container-pad);
    margin: 0 auto;
}
/* заголовок секции: по умолчанию чёрный (на белом фоне), .title_white — на фото, .title_blue — название модели в карточке */
.title {
    font-family: var(--font-title);
    font-size: var(--font-size-title);
    font-weight: 700;
    line-height: 1.35;
    text-transform: uppercase;
    text-align: center;
    color: var(--color-black);
}
.title_white {
    color: var(--color-white);
}
.title_blue {
    color: var(--color-blue);
}
/* подзаголовок над формами (трейд-ин, кредит, «улучшим предложение») */
.subtitle {
    font-size: var(--font-size-subtitle);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-black);
}
.subtitle_white {
    color: var(--color-white);
}
.description {
    font-size: var(--font-size-description);
    font-weight: 500;
    color: var(--color-black);
}
.description_white {
    color: var(--color-white);
}
.comment {
    font-size: var(--font-size-comment);
    font-weight: 400;
    color: var(--color-black);
}
.comment_white {
    color: var(--color-white);
}
/* номер сноски: 12px, верх на уровне строки (УТП, выгоды в карточках моделей) */
.footnote-mark {
    top: 0;
    font-size: 12px;
    line-height: 1.15;
    vertical-align: top;
}
/* адрес и телефон с иконкой слева (шапка, полоса на карте) */
.addr {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size);
}
.phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size);
    font-weight: 700;
}
.addr-ico,
.phone-ico {
    flex-shrink: 0;
}
/*
 * Кнопки: базовый .btn + один цветовой модификатор.
 * .btn_blue — синяя (основная), .btn_dark — чёрная, .btn_white — белая с серой рамкой.
 * По макету: синяя и белая по ховеру становятся чёрными, чёрная — синей.
 * .btn_bold — жирный текст (шапка). Размеры и отступы задают блоки, цвета и ховеры — только эти классы.
 */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: var(--btn-height);
    padding: 0 32px;
    border: 1px solid transparent;
    border-radius: var(--btn-radius);
    font-size: var(--font-size-control);
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--transition-primary), border-color var(--transition-primary), color var(--transition-primary);
}
.btn span {
    display: inline-block;
    width: fit-content;
}
.btn_blue {
    background-color: var(--color-blue);
    border-color: var(--color-blue);
    color: var(--color-white);
}
.btn_blue:hover {
    background-color: var(--color-black);
    border-color: var(--color-black);
}
.btn_dark {
    background-color: var(--color-black);
    border-color: var(--color-black);
    color: var(--color-white);
}
.btn_dark:hover {
    background-color: var(--color-blue);
    border-color: var(--color-blue);
}
.btn_white {
    background-color: var(--color-white);
    border-color: var(--color-gray);
    color: var(--color-black);
}
.btn_white:hover {
    background-color: var(--color-black);
    border-color: var(--color-black);
    color: var(--color-white);
}
.btn_bold {
    font-weight: 700;
}

.header .mob-menu-btn {
    display: none;
}
/*
 * Шапка (фиксированная): строка с логотипами и контактами (100px) + строка меню (50px).
 * В строке JETOUR | Автомир «Официальный дилер», адрес, телефон, кнопка — с равными промежутками (как в макете).
 */
.header {
    position: fixed;
    z-index: 10;
    top: 0;
    left: 0;
    right: 0;
    max-width: var(--page-width);
    margin: 0 auto;
    color: var(--color-black);
    background: var(--color-white);
}
.header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: var(--header-main-height);
    white-space: nowrap;
}
.header__logos {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}
.header__logo_brand {
    width: 153px;
}
/* логотип дилера с подписью, слева вертикальная линия на всю высоту */
.header__dealer {
    display: flex;
    flex-direction: column;
    padding-left: 15px;
    border-left: 1px solid var(--color-black);
}
.header__logo_dealer {
    width: 145px;
}
.header__dealer-text {
    font-family: var(--font-title);
    font-size: 14px;
    line-height: 1.35;
}
.header__menu {
    background: var(--color-white);
    border-top: 1px solid var(--color-gray);
}
.header__menu-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    height: calc(var(--header-menu-height) - 1px); /* минус рамка сверху */
}
.header__menu-item {
    position: relative;
    display: flex;
    align-items: center;
    align-self: stretch; /* пункт на всю высоту меню, чтобы подчёркивание стояло на нижнем крае */
    font-size: var(--font-size);
    text-transform: uppercase;
    white-space: nowrap;
}
.header__menu-item:after {
    content: "";
    position: absolute;
    left: -16px; /* подчёркивание шире текста на 16px с каждой стороны */
    right: -16px;
    bottom: 0;
    height: 2px;
    background: var(--color-blue);
    opacity: 0;
    transition: opacity var(--transition-primary);
}
.header__menu-item:hover:after {
    opacity: 1;
}
/*
 * Баннер 1920×700 под шапкой: фото на всю ширину, сверху по центру полупрозрачная плашка с текстом,
 * кнопка стоит на нижнем крае плашки (центр кнопки = край плашки).
 * До 1920 всё масштабируется вместе с фото: px из макета / 19.2 = vw, но не крупнее макета.
 */
.intro {
    position: relative;
    isolation: isolate;
    margin: 0;
    overflow: hidden;
}
.intro__content {
    position: absolute;
    z-index: 1;
    left: 0;
    width: 100%;
    top: min(32px, 1.667vw);
}
.intro__bg img {
    width: 100%;
    height: auto;
}
.intro__title-block {
    position: relative;
    isolation: isolate;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    padding: min(20px, 1.042vw) min(40px, 2.083vw) calc(var(--btn-height) / 2 + min(20px, 1.042vw));
    text-align: center;
    color: var(--color-black);
}
/* плашка: белая 50% с размытием фона (в макете background blur 20) */
.intro__title-block:before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    border-radius: var(--block-radius-trinity);
    background: rgba(255, 255, 255, .5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.intro__title {
    font-family: var(--font-title);
    font-size: min(40px, 2.083vw);
    font-weight: 400;
    line-height: 1.25;
}
.intro__title b {
    font-weight: 700;
}
/* первая строка: прописными и жирным */
.intro__title-caps {
    font-weight: 700;
    text-transform: uppercase;
}
.intro__btn {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 50%);
    white-space: nowrap;
}

/*
 * Таймер: полоса на светлом фоне сразу под баннером.
 * Слева заголовок и форма (телефон и кнопка в строку), справа виджет Sinoby.
 */
.timer {
    margin-top: 0;
    padding: 40px 0 45px; /* в макете полоса 216px */
    background: var(--color-light);
}
.timer__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.timer__main {
    flex: 0 1 610px;
    min-width: 0;
}
.timer__title {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
    text-transform: uppercase;
}
.timer__form {
    margin-top: 16px;
}
.timer__timer {
    flex: 0 1 565px;
    min-width: 0;
}

/*
 * УТП: три плашки в ряд (427×64, зазор 20px) на светлом фоне.
 * Слева квадрат 64×64 с градиентом чёрный → синий и белой иконкой, справа заголовок 18px и подпись 14px.
 */
.benefits {
    margin-top: 64px;
}
.benefits__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 20px;
}
.benefits__item {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 64px;
    background: var(--color-light);
}
.benefits__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 64px;
    height: 64px;
    background: linear-gradient(225deg, var(--color-black), var(--color-blue));
}
.benefits__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding: 4px 12px 4px 0;
}
.benefits__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.15;
}
.benefits__text {
    font-size: 14px;
    line-height: 1.15;
}

/*
 * Модельный ряд: заголовок и меню из 4 карточек.
 * Карточка 315×95 на светлом фоне, фото 320×180 выступает над ней на половину своей высоты,
 * название поверх нижней части фото. По ховеру карточка синяя, текст белый.
 * Все размеры карточки в % от её ширины (у % в margin база — ширина), поэтому пропорции как в макете на любой ширине:
 * 28.57% = 90/315 (выступ фото), 9.52% = 30/315 (заход названия на фото).
 */
.models__title {
    margin-bottom: 10px; /* в макете 100px до карточки, 90 из них занимает выступ фото */
}
.models__menu {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px 20px;
}
.models__menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 28.57%;
    padding-bottom: 8px;
    background: var(--color-light);
    color: var(--color-black);
    transition: background-color var(--transition-primary), color var(--transition-primary);
}
.models__menu-item:hover {
    background: var(--color-blue);
    color: var(--color-white);
}
.models__menu-img {
    display: block;
    flex: none;
    width: calc(100% + 5px); /* фото 320 при карточке 315 */
    margin-top: -28.57%;
}
.models__menu-img img {
    width: 100%;
    height: auto;
}
.models__menu-text {
    position: relative;
    margin-top: -9.52%;
    font-family: var(--font-title);
    font-size: min(20px, 2.1vw);
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    white-space: nowrap;
}

/*
 * Карточки моделей (в макете 1321px): шапка — название и плашки;
 * тело — список выгод | фото машины выбранного цвета | цвета | живые фото (открываются в fancybox);
 * снизу три кнопки.
 */
.models__content {
    display: flex;
    flex-direction: column;
    gap: 64px;
    margin-top: 64px;
}
.model-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
}
.model-card__title {
    text-align: left;
}
.model-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
/* плашка: базовая синяя, _stock — с переходом в чёрный */
.model-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    min-width: 184px;
    height: 40px;
    padding: 0 15px 0 12px;
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    color: var(--color-white);
    background: var(--color-blue);
    white-space: nowrap;
}
.model-card__badge img {
    flex-shrink: 0;
}
.model-card__badge_stock {
    background: linear-gradient(90deg, var(--color-blue), var(--color-black));
}
.model-card__body {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 24px;
}
.model-card__benefits {
    flex: none;
    width: 373px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.model-card__benefit {
    font-size: var(--font-size-comment);
    line-height: 1.15;
}
/* пункт — ссылка на попап с заявкой */
.model-card__benefit-link {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}
.model-card__benefit-icon {
    flex: none;
    width: 40px; /* иконка с подложкой #f1f5f7 внутри svg */
    height: 40px;
}
.model-card__benefit-text {
    /* white-space: nowrap; */
}
.model-card__benefit-text b {
    font-weight: 700;
}

.model-card__photo {
    flex: 1 1 0;
    min-width: 0;
}
.model-card__photo-item {
    display: none;
    width: 125.68%;
    max-width: none; /* в общем сбросе у picture max-width: 100% */
    margin: -7.7% -16.37% -2.1% -9.31%;
}
.model-card__photo-item_active {
    display: block;
    animation: model-card-photo var(--transition-secondary);
}
.model-card__photo-item img {
    width: 100%;
    height: auto;
}
@keyframes model-card-photo {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
/* цвета: активный кружок 30px, остальные 20px */
.model-card__colors {
    flex: none;
    width: 30px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.model-card__colors-item {
    flex: none;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 1px solid var(--color-gray);
    border-radius: 50%;
    cursor: pointer;
    transition: width var(--transition-primary), height var(--transition-primary);
}
.model-card__colors-item_active {
    width: 30px;
    height: 30px;
}
/*
 * Галерея: полоса-стрелка 235×24 сверху, два фото 235×117 (зазор 4px), полоса-стрелка снизу — всего 294px.
 * Листает Swiper (index.js): вертикально от 768px, на телефоне горизонтально свайпом без стрелок.
 */
.model-card__gallery {
    flex: none;
    width: 235px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.model-card__gallery .model-card__gallery-slider {
    width: 100%;
    overflow: hidden;
}
/* вертикальный Swiper (от 768px): высота обязательно фиксированная, иначе слайды растут до миллионов px; 2 × 117 + 4 */
@media only screen and (min-width: 768px) {
    .model-card__gallery .model-card__gallery-slider {
        height: 238px !important;
    }
}
.model-card__gallery-arrow {
    flex: none;
    display: block;
    width: 100%;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--color-light) url(../img/gallery__arrow.svg) 50% 50% / 16px 8px no-repeat;
    cursor: pointer;
    transition: opacity var(--transition-primary);
}
.model-card__gallery-arrow_next {
    transform: rotate(180deg);
}
.model-card__gallery-arrow.swiper-button-disabled {
    opacity: .4;
    cursor: default;
}
.model-card__gallery-arrow.swiper-button-lock {
    display: none;
}
.model-card__gallery-item {
    display: block;
    overflow: hidden;
}
.model-card__gallery-item picture,
.model-card__gallery-item img {
    width: 100%;
    height: 100%;
}
.model-card__gallery-item img {
    object-fit: cover;
}
.model-card__buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

/* серая карточка начинается ниже: верх картинки «выступает» над ней */

/*
 * Комплектации: заголовок, три селекта (.select) и горизонтальные карточки 1320×171 на светлом фоне.
 * В карточке: фото 328×171 | название и комплектация | двигатель, привод, трансмиссия | две кнопки (260px) справа.
 * Показ карточек и «Показать ещё» — скрипт в complects.php.
 */
.complects__filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin-top: 64px;
}
.select:disabled {
    cursor: default;
    color: var(--input-place-primary); /* уточнить: состояние disabled в макете не задано */
}
.complects__cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
}
.complect {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 47px; /* 1320 − 25 (отступ справа) − 260 (кнопки) − 47 = 988: фото 328 + 16 + 644 под заголовок и три характеристики */
    min-height: 171px;
    padding-right: 25px;
    background: var(--color-light);
}
.complect.is-hidden {
    display: none;
}
.complect__main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
    width: 100%;
}
.complect__photo {
    flex: 0 1 328px;
    min-width: 328px;
}
.complect__photo img {
    width: 100%;
    height: auto;
}
.complect__info {
    display: flex;
    align-items: center;
    gap: 16px 40px;
    min-width: 0;
    width: 100%;
}
/* заголовок 133px: длинная комплектация («Премиум 5 мест») переносится на вторую строку */
.complect__heading {
    flex: none;
    width: 133px;
}
.complect__title {
    font-size: 25px;
    line-height: 29px;
    color: var(--color-card-title);
}
.complect__badge {
    margin-top: 2px;
    font-size: 24px;
    font-weight: 700;
    line-height: 28px;
    color: var(--color-card-title);
}
.complect__char {
    flex: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 20px;
    line-height: 23px;
    color: var(--color-card-text);
}
.complect__char-value {
    font-weight: 700;
}
.complect__buttons {
    display: flex;
    flex-direction: column;
    flex: 0 0 260px;
    gap: 10px;
}
.complects__footer {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}
.complects__more {
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: var(--color-black);
}
.complects__more[hidden] {
    display: none;
}
.complects__more:after {
    content: "";
    width: 13px;
    height: 7px;
    background: url(../img/complects__more-ico.svg) 50% 50% / contain no-repeat;
}

/*
 * Блоки на фото: трейд-ин, кредит, улучшим предложение — идут друг за другом без отступов.
 * Фон 1920×515 (улучшим предложение 1920×569) на всю ширину, поверх затемнение из макета,
 * форма 431px: трейд-ин и предложение слева, кредит справа. Отступы 100px сверху и снизу.
 */
.promo {
    position: relative;
    isolation: isolate;
    padding: 100px 0;
    overflow: hidden;
    color: var(--color-white);
    background: var(--color-black);
}
.promo + .promo,
.promo + .map {
    margin-top: 0;
}
.promo__bg {
    position: absolute;
    z-index: -2;
    inset: 0;
}
.promo__bg picture,
.promo__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* затемнение: трейд-ин слева 928px, предложение слева 1011px, кредит справа 1362px (в % от 1920) */
.promo:before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 0;
    width: 48.33%;
    background: linear-gradient(to right, rgba(0, 0, 0, .9), rgba(0, 0, 0, 0));
}
.promo_offer:before {
    width: 52.66%;
    background: linear-gradient(to right, rgba(0, 0, 0, .9) 0, rgba(0, 0, 0, .6) 64.3%, rgba(0, 0, 0, 0) 100%);
}
.promo_credit:before {
    left: auto;
    right: 0;
    width: 70.94%;
    background: linear-gradient(to left, rgba(0, 0, 0, .9) 0, rgba(0, 0, 0, .8) 54.8%, rgba(0, 0, 0, 0) 86%);
}
.promo__content {
    width: 431px;
    max-width: 100%;
}
.promo_credit .promo__content {
    margin-left: auto;
}
.promo__title {
    margin-bottom: 32px;
    text-align: left;
}
.promo_offer .promo__title {
    width: 471px; /* в макете заголовок шире формы (471 против 431) */
    max-width: none;
}
.promo__subtitle {
    margin-bottom: 20px;
}

/*
 * Карта: контейнер 1920×472 под карту (сама карта подключается отдельно),
 * сверху полоса 100px с контактами — белая 70% (те же логотипы, адрес, телефон и кнопка, что в шапке).
 */
.map {
    position: relative;
}
.map__bar {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, .7);
    color: var(--color-black);
}
.map__canvas {
    width: 100%;
    height: 472px;
    background: var(--color-map);
}
/*
 * Контакты поверх карты: два блока шириной 554px от левого края контейнера, на 52px ниже верха карты.
 * Сверху чёрный 80% с заголовком, под ним светлый 80% с логотипами, телефоном, адресом и графиком работы.
 */
.map__info {
    position: absolute;
    z-index: 1;
    top: 52px;
    left: 0;
    right: 0;
    pointer-events: none;
}
.map__box {
    width: 554px;
    max-width: 100%;
    padding: 24px;
    pointer-events: auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.map__box_title {
    background: rgba(0, 0, 0, .8);
}
.map__title {
    text-align: left;
}
.map__box_contacts {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: rgba(241, 245, 247, .8);
    color: var(--color-black);
}
.map__contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}
.map__contact {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    max-width: 100%;
    padding: 6px 12px;
    background: var(--color-white);
}
.map__contact_wide {
    width: 100%;
}
.map__contact-ico {
    flex-shrink: 0;
}
.map__contact-text {
    font-size: 24px;
    line-height: 1.17;
    overflow-wrap: anywhere;
}
.map__contact-text_bold {
    font-weight: 700;
}
/* тёмная тема карты, как в макете: инвертируем только подложку */
.map__canvas [class*="ground-pane"] {
    filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(.9);
}

/* футер: ссылки и логотип Синоби в одну строку, высота 120px */
.footer {
    background: var(--color-black);
    color: var(--color-white);
}
.footer__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px 40px;
    min-height: 120px;
}
.footer__sinoby {
    flex-shrink: 0;
}
.footer__disclamer {
    display: none;
    padding-bottom: 36px;
    font-size: 14px;
    text-align: left;
}
.footer__link {
    line-height: 1;
    transition: opacity var(--transition-primary);
}
.footer__link:hover {
    opacity: .7;
}
/* таймер: форма и виджет не помещаются в строку — в столбик по центру */
@media only screen and (max-width: 1279px) {
    .timer__content {
        flex-direction: column;
        gap: 24px;
    }
    .timer__main,
    .timer__timer {
        flex: none;
        width: 100%;
    }
    .timer__main {
        max-width: 610px;
    }
    .timer__timer {
        max-width: 565px;
    }
    .timer__title {
        text-align: center;
    }
}
/* шапка: адрес не помещается в строку */
@media only screen and (max-width: 1199px) {
    .header__addr {
        display: none;
    }
    /* карточки моделей: фото на всю ширину, цвета строкой под ним, ниже список и живые фото */
    .model-card__body {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 24px 40px;
    }
    .model-card__photo {
        order: 1;
        flex: 1 1 100%;
        max-width: 783px;
        margin: 0 auto;
    }
    .model-card__photo-item {
        width: 100%;
        margin: 0;
    }
    .model-card__colors {
        order: 2;
        flex: 1 1 100%;
        width: auto;
        flex-direction: row;
        justify-content: center;
    }
    .model-card__benefits {
        order: 3;
        flex: 1 1 0;
        width: auto;
        min-width: 0;
    }
    .model-card__gallery {
        order: 4;
    }
}
/* общий адаптив ниже 991px */
@media only screen and (max-width: 990px) {
    :root {
        --container-pad: 15px;
        --header-main-height: 60px;
        --header-menu-height: 0px; /* меню выезжает поверх страницы и в высоту шапки не входит */
    }
    section {
        margin-top: 50px !important;
    }
    .title {
        font-size: min(8vw, var(--font-size-title));
    }
    .popup-container {width:100%;}
    .fancybox-type-image {width: 100% !important;margin: 0px !important;left: 0px !important;}
	.fancybox-close {right: 9px !important;top: 9px !important;}
	.fancybox-inner {width: 100% !important;margin: 0px !important;padding: 0px !important;}
	.fancybox-wrap {margin:0px !important;width: 100% !important;left: 0px !important;top: 20px !important;}
	.fancybox-type-image .fancybox-close {top: -8px !important;}
	.simple_slider .btn_left {display:none !important;}
	.simple_slider .btn_right {display:none !important;}
    /*
     * шапка: строка 60px — логотипы, телефон, бургер; меню выезжает справа под шапкой.
     * логотипы в vw, но не крупнее макетных
     */
    .header__content {
        gap: 16px;
    }
    .header__logos {
        gap: min(3vw, 14px);
    }
    .header__logo_brand {
        width: min(26vw, 153px);
    }
    .header__dealer {
        padding-left: min(3vw, 15px);
    }
    .header__logo_dealer {
        width: min(24vw, 145px);
    }
    .header__dealer-text {
        font-size: min(2.32vw, 14px); /* подпись по ширине логотипа дилера */
    }
    .header__phone {
        margin-left: auto;
    }
    .header__btn {
        display: none;
    }
    .header .mob-menu-btn {
        display: block;
        position: relative;
        flex-shrink: 0;
        width: 30px;
        height: 22px;
        z-index: 1;
    }
    .header .mob-menu-btn span {
        position: absolute;
        display: block;
        width: 30px;
        height: 3px;
        background: var(--color-black);
        transition: all .2s linear;
    }
    .header .mob-menu-btn span:nth-child(1) {
        top: 0;
    }
    .header .mob-menu-btn span:nth-child(2) {
        top: calc(50% - 1px);
        opacity: 1;
    }
    .header .mob-menu-btn span:nth-child(3) {
        bottom: 0;
    }
    .header .mob-menu-btn.active span:nth-child(1) {
        transform-origin: top right;
        transform: rotate(-45deg);
        top: -1px;
    }
    .header .mob-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .header .mob-menu-btn.active span:nth-child(3) {
        transform-origin: bottom right;
        transform: rotate(45deg);
        bottom: -1px;
    }
    .header__menu {
        position: fixed;
        left: 100%;
        width: 100%;
        padding: 24px 0;
        border-bottom: 1px solid var(--color-gray); /* уточнить: мобильной версии в макете нет */
        transition: left .2s linear;
        z-index: 10;
    }
    .header__menu.active {
        left: 0;
    }
    .header__menu-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        height: auto;
    }
    .header__menu-item {
        align-self: auto;
        font-size: 18px;
    }
    .header__menu-item:after {
        display: none; /* подчёркивание только на десктопе */
    }
    /* баннер: мобильная картинка 800×800, плашка над машинами, текст переносится внутри строк */
    .intro {
        margin-top: 0 !important;
    }
    .intro__content {
        top: 4vw;
    }
    .intro__title-block {
        padding: 3vw 4vw calc(var(--btn-height) / 2 + 3vw);
    }
    .intro__title {
        font-size: 5.5vw;
    }
    /* таймер */
    .timer {
        margin-top: 0 !important;
        padding: 30px 0;
    }
    /* УТП: пункты в столбик */
    .benefits__list {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }
    /* модельный ряд */
    .models__menu {
        column-gap: 10px;
    }
    .model-card__btn {
        padding: 0 16px;
        font-size: 16px;
    }
}
@media only screen and (max-width: 767px) {
    /* шапка: телефон только иконкой (номер не помещается рядом с логотипами) */
    .header__phone-text {
        display: none;
    }
    .header__phone .phone-ico {
        width: 25px;
        height: 25px;
        min-width: 25px;
    }

.addr {
    font-size: 5vw;
}

.addr-ico, .phone-ico {
    width: 9vw;
    height: 9vw;
    min-width: 9vw;
}

.phone {
    font-size: 5vw !important;
}

.description {
    font-size: 4vw !important;
}
    /* таймер: заголовок по ширине экрана, телефон и кнопка в столбик */
    .timer__title {
        font-size: 6vw;
    }
    .timer__form .form-group-wrapper {
        flex-direction: column;
        gap: 0;
    }
    /* баннер: кнопка «Получить максимальную выгоду» должна помещаться в 290px */
    .intro__btn {
        padding: 0 20px;
        font-size: 16px;
    }
    /* модельный ряд: меню 2×2 */
    .models__menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .models__menu-text {
        font-size: min(20px, 4.27vw);
    }
    /* карточки моделей: всё в столбик, живые фото строкой */
    .models__content {
        gap: 40px;
        margin-top: 40px;
    }
    .model-card__badge {
        min-width: 0;
        font-size: 16px;
    }
    .model-card__body {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 20px;
    }
    .model-card__photo,
    .model-card__colors {
        flex: none;
    }
    .model-card__photo {
        width: 100%;
    }
    .model-card__benefits {
        flex: none;
        gap: 12px;
    }
    .model-card__gallery {
        width: auto;
    }
    .model-card__benefit {
        font-size: 16px;
    }
    /* на телефоне слайдер горизонтальный: высоту задают сами фото */
    .model-card__gallery-item {
        aspect-ratio: 235 / 117;
    }
    .model-card__gallery-arrow {
        display: none;
    }
    .model-card__buttons {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }
}

/* комплектации: до 1366px ряд из названия и трёх характеристик (644px) рядом с кнопками не помещается, кнопки уходят вниз */
@media only screen and (max-width: 1366px) {
    .complect {
        flex-wrap: wrap;
        row-gap: 20px;
        padding-bottom: 25px;
    }
    .complect__main {
        flex: 1 1 100%;
    }
    .complect__buttons {
        flex: 1 1 100%;
        flex-direction: row;
        padding-left: 25px;
    }
    .complect__buttons .btn {
        /* flex: 1 1 0; */
        min-width: 0;
    }
}
/* комплектации, блоки на фото, карта, футер: ниже 991px */
@media only screen and (max-width: 990px) {
    .promo + .promo,
    .promo + .map {
        margin-top: 0 !important;
    }
    /* мобильный баннер (800 px) идёт первым, под ним контент на чёрном фоне; затемнение не нужно */
    .promo {
        padding: 0 0 40px;
    }
    .promo:before,
    .promo_offer:before,
    .promo_credit:before {
        display: none;
    }
    .promo__bg {
        position: static;
        margin-bottom: 30px;
    }
    .promo__bg picture,
    .promo__bg img {
        height: auto;
    }
    .promo_credit .promo__content {
        margin-left: 0;
    }
    .promo_offer .promo__title {
        width: auto;
    }
    .promo__title {
        margin-bottom: 20px;
    }
    .promo__subtitle {
        font-size: 5vw;
    }
    .map__canvas {
        height: 380px;
    }
    /* контакты не перекрывают карту, а идут над ней */
    .map__info {
        position: static;
    }
    .map__info .container {
        padding: 0;
    }
    .map__box {
        width: 100%;
        padding: 16px 15px;
    }
    .map__contact-text {
        font-size: min(24px, 4.8vw);
    }
    .footer__content {
        min-height: 0;
        padding: 30px 0;
    }
    .footer__disclamer {
        padding-bottom: 30px;
    }
}
@media only screen and (max-width: 767px) {
    .complects__filters {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        margin-top: 24px;
    }
    .complects__cards {
        gap: 16px;
        margin-top: 16px;
    }
    .complect {
        row-gap: 32px; /* от последней строки характеристик до кнопок */
        padding: 15px;
    }
    /* карточка в макете: строка «название — комплектация», фото на всю ширину, три строки «характеристика — значение», кнопки */
    .complect__main {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .complect__info {
        display: contents; /* заголовок и характеристики встают в колонку .complect__main */
    }
    .complect__heading {
        order: 1;
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 10px;
        width: auto;
    }
    .complect__photo {
        order: 2;
        flex: none;
        min-width: 0;
        width: 100%;
    }
    .complect__char {
        order: 3;
        flex-direction: row;
        justify-content: space-between;
        align-items: baseline;
        gap: 10px;
        font-size: 4.2vw;
        line-height: 1.2;
    }
    .complect__char + .complect__char {
        margin-top: 15px;
    }
    .complect__char-value {
        text-align: right;
    }
    .complect__buttons {
        flex-direction: column;
        padding-left: 0;
    }
    .complect__title {
        font-size: 5vw;
        line-height: 1.2;
    }
    .complect__badge {
        margin-top: 0;
        font-size: 4.8vw;
        line-height: 1.2;
    }
    .complects__footer {
        margin-top: 20px;
    }
    .footer__content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .footer__sinoby {
        width: 130px;
        height: auto;
    }
}
