/* ==========================================================================
   TOKENS
   ========================================================================== */
:root {
  --c-dark: #020202;
  --c-dark2: #0a0c17;
  --c-gray: #202020;
  --c-accent: #deeefa;
  --c-light: #e1e5e8;
  --c-white: #fff;
  --c-muted: #a2a2a2;
  --c-placeholder: #c2c2c2;
  --c-field: rgba(255, 255, 255, 0.1);
  --c-field-br: rgba(255, 255, 255, 0.5);
  --font-base: "Geist", sans-serif;
  --container-w: 1420px;
  --control-h: 47px;
  --radius: 10px;
  --gap-block: 120px;
  --transition: 0.3s ease;
}

/* ==========================================================================
   RESET / BASE
   ========================================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  max-width: 1920px;
  margin: 0 auto;
  font: 400 16px/1.4 var(--font-base);
  color: var(--c-white);
  background: var(--c-dark);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
}

sup {
  font-size: 0.7em;
  vertical-align: super;
}

/* Клавиатурный фокус (мышь/тач не трогаем). */
:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.container {
  position: relative;
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 30px;
}

main > section:not(.banner, .timer) {
  margin-top: var(--gap-block);
}

/* Инициализированный Swiper раскладывает слайды сам — flex у контейнера
   ломает ширину скроллбара (он становится flex-элементом). */
.swiper[data-mslider],
.swiper[data-cslider] {
  display: block;
}

/* Светлая зона макета: комплектации + технологии. */
.light-zone {
  padding: var(--gap-block) 0;
  margin-top: var(--gap-block);
  background: var(--c-white);
  color: var(--c-dark2);
}

.light-zone > section {
  margin-top: 0;
}

.light-zone > section + section {
  margin-top: var(--gap-block);
}

/* Заголовок блока: маркер + текст. */
.title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.title::before {
  flex: none;
  width: 27px;
  height: 21px;
  background: var(--c-accent);
  -webkit-mask: url(../img/ico/marker_dark.svg) center / contain no-repeat;
  mask: url(../img/ico/marker_dark.svg) center / contain no-repeat;
  content: "";
}

.light-zone .title {
  gap: 20px;
  line-height: 1.3;
}

.light-zone .title::before {
  background: var(--c-dark2);
}

.title--multiline {
  align-items: flex-start;
  line-height: 1.3;
}

.title--multiline::before {
  margin-top: 18px;
}

/* Подпись у левой голубой черты. */
.lead {
  padding-left: 8px;
  font-size: 22px;
  line-height: 1.2;
  border-left: 1px solid var(--c-accent);
}

/* ==========================================================================
   BUTTONS — .btn + модификаторы .btn--white / .btn--glass / .btn--dark
   ========================================================================== */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--control-h);
  padding: 0 22px;
  font: 700 16px/1 var(--font-base);
  color: var(--c-dark2);
  text-align: center;
  white-space: nowrap;
  background: var(--c-accent);
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
}

/* Иконка-стрелка: маска красится в currentColor, поэтому ховер меняет и её. */
.btn::after {
  flex: none;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url(../img/ico/btn_arrow.svg) center / contain no-repeat;
  mask: url(../img/ico/btn_arrow.svg) center / contain no-repeat;
  animation: arrow-move-x 2s linear infinite;
  content: "";
}

@keyframes arrow-move-x {
  0% {
    transform: translateX(0);
    animation-timing-function: ease-in-out;
  }

  50% {
    transform: translateX(clamp(3px, 3%, 10px));
    animation-timing-function: ease-in-out;
  }

  100% {
    transform: translateX(0);
  }
}

.btn--noico::after {
  display: none;
}

.btn:hover {
  background: var(--c-white);
  color: var(--c-dark2);
}

.btn--white {
  background: var(--c-white);
}

.btn--white:hover {
  background: var(--c-accent);
}

.btn--glass {
  color: var(--c-accent);
  background: transparent;
  border-color: var(--c-accent);
}

.btn--glass:hover {
  color: var(--c-dark2);
  background: var(--c-accent);
}

.btn--dark {
  color: var(--c-accent);
  background: var(--c-dark2);
}

.btn--dark:hover {
  color: var(--c-dark2);
  background: var(--c-accent);
}

/* ==========================================================================
   FORMS — поле / селект / согласие ПД (сноска) / состояния
   ========================================================================== */
.form-group {
  position: relative;
  margin-bottom: 8px;
}

.form-group input,
.form-group select {
  width: 100%;
  height: var(--control-h);
  padding: 0 20px;
  font: 700 16px/1 var(--font-base);
  color: var(--c-white);
  background: var(--c-field);
  border: 1px solid var(--c-field-br);
  border-radius: var(--radius);
  outline: none;
}

.form-group input::placeholder {
  color: var(--c-placeholder);
}

.form-group select {
  appearance: none;
  padding-right: 46px;
  background: url(../img/ico/select_arrow.svg) right 20px center / 18px 18px
    no-repeat var(--c-field);
}

.form-group select option {
  color: var(--c-dark2);
  background: var(--c-white);
}

input[type="file"] {
  display: none;
}

/* Согласие на обработку ПД — мелкая сноска под формой. */
.agree-field {
  position: relative;
  display: block;
  padding-left: 19px;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
}

.agree-field a {
  text-decoration: underline;
}

.agree-field input {
  position: absolute;
  top: 1px;
  left: 0;
  width: 13px;
  height: 13px;
  appearance: none;
  background: var(--c-white);
  border: 0;
  border-radius: 1px;
  cursor: pointer;
}

.agree-field input:checked {
  background: url(../img/ico/done.svg) center / 11px 11px no-repeat
    var(--c-white);
}

/* Подсветка невалидного поля + блок кнопки без согласия (классы вешает JS). */
.has-danger input,
.has-danger select {
  border-color: #eba5a3;
  box-shadow: 0 0 6px #eba5a3;
}

.not_agree button {
  background: #ccc !important;
  color: var(--c-white) !important;
  cursor: default;
  pointer-events: none;
}

/* ==========================================================================
   POPUP — fancybox копирует innerHTML источника, поэтому стили вешаем
   на .popup_container, а не на #form_popup.
   ========================================================================== */
#form_popup {
  display: none;
}

.popup_container {
  width: 440px;
  max-width: 100%;
  padding: 32px;
  color: var(--c-white);
  background: var(--c-gray);
  border-radius: var(--radius);
}

.form_title {
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
}

.popup_container .btn {
  width: 100%;
  margin-bottom: 12px;
}

/* Системный alert рисуется во fancybox поверх белого фона. */
.alert {
  padding: 8px 44px;
  color: var(--c-dark2);
  text-align: center;
}

/* ==========================================================================
   FANCYBOX v3 — интеграция плагина (попапы форм + галереи)
   ========================================================================== */
.fancybox-content {
  overflow: hidden;
}

.fancybox-button svg {
  transform: scale(2);
}

.compensate-for-scrollbar {
  margin-right: auto !important;
  overflow: auto !important;
}

/* ==========================================================================
   HEADER — фикс-шапка + навигация
   ========================================================================== */
header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 15;
}

.header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 32px;
  background: var(--c-dark);
}

.logo-group img {
  display: block;
}

.header__col {
  padding-left: 8px;
  line-height: normal;
  border-left: 1px solid var(--c-accent);
}

.header__label {
  font-size: 14px;
  color: var(--c-muted);
}

.header__value {
  font-weight: 500;
  white-space: nowrap;
}

.header__btn {
  flex: none;
}

.m_btn {
  display: none;
}

/* ==========================================================================
   NAV — нижняя строка шапки (стеклянная)
   ========================================================================== */
.menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(2, 2, 2, 0.5);
  backdrop-filter: blur(7px);
  border-radius: 0 0 var(--radius) var(--radius);
}

.menu__group {
  display: flex;
  align-items: center;
  gap: 24px;
}

.menu__contact {
  display: none;
}

.menu a {
  transition: color var(--transition);
}

.menu a:hover {
  color: var(--c-accent);
}

/* ==========================================================================
   BANNER — hero-баннер
   ========================================================================== */
.banner {
  position: relative;
}

.banner__media img {
  width: 100%;
  height: 780px;
  object-fit: cover;
}

.banner__badge {
  position: absolute;
  top: 154px;
  left: 50%;
  z-index: 2;
  padding: 10px 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--c-dark2);
  white-space: nowrap;
  background: var(--c-light);
  border-radius: var(--radius);
  transform: translateX(-50%);
}

.banner__panel {
  position: absolute;
  top: 177px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: max-content;
  max-width: calc(100% - 60px);
  padding: 27px 32px 24px;
  background: rgba(2, 2, 2, 0.7);
  backdrop-filter: blur(15px);
  border-radius: var(--radius);
  transform: translateX(-50%);
}

.banner__title {
  margin-bottom: -8px;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.banner__sub {
  font-size: 28px;
  text-align: center;
}

.banner .btn {
  padding: 0 52px;
}

/* ==========================================================================
   TIMER — блок таймера акции
   ========================================================================== */
.timer {
  position: relative;
  z-index: 2;
  margin-top: -81px;
}

.timer__card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 120px;
  padding: 32px;
  overflow: hidden;
  background: var(--c-gray);
  border-radius: var(--radius);
}

.decor {
  position: absolute;
  top: 0;
  right: 0;
  pointer-events: none;
}

.timer__form {
  flex: none;
  width: 464px;
}

.timer__title {
  margin-bottom: 20px;
  font-size: 28px;
  font-weight: 700;
}

.timer__row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.timer__row .form-group {
  flex: 1;
  margin: 0;
}

.timer__row .btn {
  width: 100%;
}

.timer__clock {
  width: 623px;
  margin-right: 89px;
}

/* ==========================================================================
   CARS — карточки моделей
   ========================================================================== */
.cars .container {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.car {
  position: relative;
  display: flex;
  gap: 24px;
  height: 485px;
  padding: 19px 32px 32px;
  overflow: hidden;
  border: 1px solid rgba(222, 238, 250, 0.2);
  border-radius: var(--radius);
}

.car__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.car__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.car__bg::after {
  position: absolute;
  inset: 0;
  content: "";
}

.car__main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.car__title {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 29px;
  font-size: 46px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.car__title::before {
  flex: none;
  width: 27px;
  height: 21px;
  background: var(--c-accent);
  -webkit-mask: url(../img/ico/marker_dark.svg) center / contain no-repeat;
  mask: url(../img/ico/marker_dark.svg) center / contain no-repeat;
  content: "";
}

.car__mob {
  display: none;
}

.car__badge {
  position: absolute;
  top: 32px;
  left: 56.5%;
  padding: 8px 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--c-dark2);
  white-space: nowrap;
  background: var(--c-light);
  border-radius: var(--radius);
}

.car__utp {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 39px;
}

.car__utp li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  list-style: none;
}

.car__utp li::before {
  flex: none;
  width: 28px;
  height: 28px;
  background-color: rgba(222, 238, 250, 0.3);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px 14px;
  border: 1px solid var(--c-accent);
  border-radius: 4px;
  content: "";
}

.car__utp li:nth-child(1)::before {
  background-image: url(../img/ico/utp_robot.svg);
  background-size: 18px 18px;
}

.car__utp li:nth-child(2)::before {
  background-image: url(../img/ico/utp_ya.svg);
  background-size: 17px 16px;
}

.car__utp li:nth-child(3)::before {
  background-image: url(../img/ico/utp_money.svg);
}

.car__utp b {
  font-size: 22px;
  color: var(--c-accent);
}

.car__utp span {
  font-size: 18px;
}

.car__specs {
  display: grid;
  grid-template-columns: repeat(2, 186px);
  gap: 8px;
  margin-bottom: 38px;
}

.car__specs li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 47px;
  padding: 4px 8px;
  line-height: normal;
  list-style: none;
  background: var(--c-field);
  border-left: 1px solid var(--c-accent);
  border-radius: 4px;
}

.car__specs span {
  font-size: 14px;
  color: #cecece;
}

.car__specs b {
  font-weight: 500;
}

.car__btns {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.car__btns .btn {
  flex: 1;
}

.car__photos {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 8px;
  width: 208px;
  height: 421px;
  margin-top: 13px;
}

/* Скроллбар галереи Swiper прячет сам, пока слайды влезают целиком. */
.car__photos .swiper-scrollbar {
  background: rgba(255, 255, 255, 0.25);
}

.car__photos .swiper-scrollbar-drag {
  background: var(--c-white);
}

.car__photo {
  display: block;
  height: 135px;
  overflow: hidden;
  border-radius: 8px;
}

.car__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.car__photo:hover img {
  transform: scale(1.08);
}

/* ==========================================================================
   COMPLECTS — таблица комплектаций (include.table.php)
   ========================================================================== */
.complects__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.complects__menu {
  display: flex;
  overflow: hidden;
  background: rgba(225, 229, 232, 0.3);
  border-radius: var(--radius);
}

.complects__menu li {
  list-style: none;
}

.complects__menu button {
  height: var(--control-h);
  padding: 0 60px;
  font: 700 16px/1 var(--font-base);
  color: #4b4f52;
  text-transform: uppercase;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition);
}

.complects__menu button:hover {
  color: var(--c-dark2);
}

.complects__menu li.current button {
  color: var(--c-dark2);
  background: var(--c-light);
}

/* Селекты-фильтры костяка не нужны по макету (модель выбирается табами),
   но остаются в разметке — на них ссылается .anchor2 из шапки. */
.complects__filter {
  display: none;
}

.complects__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.complects__card {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.complects__body {
  display: grid;
  grid-template-columns: 322px 1fr;
  height: 245px;
  background: var(--c-light);
  border-radius: var(--radius);
}

.complects__image {
  overflow: hidden;
  border-radius: var(--radius) 0 0 var(--radius);
}

.complects__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.complects__info {
  padding: 32px 32px 32px 24px;
  color: var(--c-dark2);
}

.complects__name {
  display: flex;
  line-height: 1.3;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
}

.complects__name span {
  padding: 8px 30px;
  font-size: 16px;
  background: var(--c-white);
  border-radius: var(--radius);
}

.complects__specs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.complects__specs li {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 23px;
  list-style: none;
}

.complects__specs li::before {
  flex: none;
  width: 14px;
  height: 11px;
  background: var(--c-dark2);
  -webkit-mask: url(../img/ico/spec_bullet.svg) center / contain no-repeat;
  mask: url(../img/ico/spec_bullet.svg) center / contain no-repeat;
  content: "";
}

.complects__specs em {
  flex: 1;
  align-self: flex-end;
  height: 1px;
  margin-bottom: 5px;
  background: repeating-linear-gradient(
    to right,
    #b9bdc0 0 2px,
    transparent 2px 4px
  );
}

.complects__specs span {
  color: #5f6366;
}

.complects__specs b {
  font-size: 18px;
  line-height: 23px;
}

.complects__btns {
  display: flex;
  gap: 24px;
}

.complects__btns .btn {
  flex: 1;
}

/* В комплектациях ховер инвертирует пару голубая ↔ чёрная. */
.complects .btn:hover {
  color: var(--c-accent);
  background: var(--c-dark2);
}

.complects .btn--dark:hover {
  color: var(--c-dark2);
  background: var(--c-accent);
}

.complects__more {
  margin: 24px auto 0;
  padding: 0 40px;
}

.complects__more[hidden] {
  display: none;
}

/* ==========================================================================
   TECH — три плитки, активная раскрывается
   ========================================================================== */
.tech .title {
  max-width: 1100px;
  margin-bottom: 40px;
}

.tech__list {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.tech__item {
  position: relative;
  display: flex;
  flex: 0 0 322px;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  height: 488px;
  transition: flex-basis 0.5s ease;
}

.tech__item.current {
  flex-basis: 668px;
}

.tech__media {
  position: relative;
  height: 376px;
  overflow: hidden;
  border-radius: var(--radius);
}

.tech__media img,
.tech__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tech__text {
  position: absolute;
  top: 396px;
  left: 0;
  width: 100%;
  font-size: 22px;
  opacity: 0;
}

.tech__item.current .tech__text {
  opacity: 1;
  transition: opacity 0.3s ease 0.45s;
}

.tech__item.current .tech__text {
  opacity: 1;
}

/* ==========================================================================
   TEST DRIVE — тестовая поездка
   ========================================================================== */
.test-drive {
  position: relative;
  padding: 80px 0;
  margin-top: 0 !important;
}

.test-drive__mob {
  display: none;
}

.test-drive__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.test-drive__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.test-drive .container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.test-drive__intro {
  max-width: 642px;
}

.test-drive .title {
  margin-bottom: 32px;
}

.test-drive__card {
  position: relative;
  flex: none;
  width: 416px;
  padding: 32px;
  overflow: hidden;
  background: var(--c-gray);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
}

.test-drive__title {
  margin-bottom: 6px;
  font-size: 24px;
  font-weight: 700;
}

.test-drive__comment {
  margin-bottom: 20px;
  color: #e3e3e3;
}

.test-drive__label {
  margin-bottom: 8px;
}

.td-models {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.td-models label {
  position: relative;
  flex: 1;
  height: 110px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color var(--transition);
}

.td-models input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.td-models img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.td-models span {
  position: absolute;
  inset: auto 0 10px;
  text-align: center;
  text-transform: uppercase;
}

.td-models label::after {
  position: absolute;
  top: 8px;
  right: 20px;
  width: 14px;
  height: 14px;
  background: url(../img/ico/check_sel.svg) center / contain no-repeat;
  opacity: 0;
  transition: opacity var(--transition);
  content: "";
}

.td-models label:has(input:checked) {
  border-color: var(--c-accent);
}

.td-models label:has(input:checked)::after {
  opacity: 1;
}

.test-drive .btn {
  width: 100%;
  margin-bottom: 8px;
}

/* ==========================================================================
   BUY — способы покупки (кредит / лизинг)
   ========================================================================== */
.buy__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.buy__note {
  max-width: 367px;
  font-size: 22px;
  line-height: 1.2;
  color: #e8e8e8;
}

.buy__row {
  display: flex;
  align-items: stretch;
  gap: 24px;
}

.buy__card {
  position: relative;
  flex: 0 0 437px;
  padding: 32px;
  overflow: hidden;
  background: var(--c-gray);
  border-radius: var(--radius);
}

.buy__title {
  margin-bottom: 24px;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.buy__card form {
  margin-top: 19px;
}

.buy__card .btn {
  width: 100%;
  margin-bottom: 8px;
}

.buy__img {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius);
}

.buy__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   EXCHANGE — обмен автомобиля
   ========================================================================== */
.exchange {
  display: flex;
  gap: 24px;
}

.exchange__aside {
  position: relative;
  display: flex;
  flex: 0 0 437px;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  padding: 32px;
  overflow: hidden;
  border-radius: var(--radius);
}

.exchange__aside img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exchange__adv {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
}

.exchange__adv::before {
  flex: none;
  width: 48px;
  height: 48px;
  background: rgba(222, 238, 250, 0.3) center / 27px 27px no-repeat;
  border: 1px solid var(--c-accent);
  border-radius: 4px;
  content: "";
}

.exchange__adv--swap::before {
  background-image: url(../img/ico/ex_swap.svg);
}

.exchange__adv--doc::before {
  background-image: url(../img/ico/ex_doc.svg);
  background-size: 24px 26px;
}

.exchange__main {
  position: relative;
  flex: 1;
  padding: 32px;
  overflow: hidden;
  background: var(--c-gray);
  border-radius: var(--radius);
}

.exchange .title {
  margin-bottom: 32px;
}

.exchange__form {
  display: flex;
  gap: 8px;
  margin: 20px 0 8px;
}

.exchange__form .form-group {
  width: 273px;
  margin: 0;
}

.exchange__form .form-group input {
  border-color: var(--c-white);
}

.exchange__form .btn {
  padding: 0 54px;
}

.exchange__video {
  position: relative;
  height: 291px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}

.exchange__video img,
.exchange__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exchange__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 0;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: opacity var(--transition);
}

.exchange__video.playing .exchange__play {
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   CONTACTS — контакты + карта
   ========================================================================== */
.contacts {
  position: relative;
}

#map1 {
  height: 652px;
  background: var(--c-gray);
}

.contacts .container {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.contacts__wrap {
  width: 395px;
  pointer-events: auto;
}

.contacts__card {
  position: relative;
  padding: 32px;
  overflow: hidden;
  background: var(--c-gray);
  border-radius: var(--radius) var(--radius) 0 0;
}

.contacts__card .logo-group {
  margin-bottom: 24px;
}

.contacts__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.contacts__help {
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 500;
}

.contacts__card .btn {
  width: 100%;
}

.contacts__img {
  display: block;
  height: 118px;
  width: 100%;
  object-fit: cover;
  border-radius: 0 0 var(--radius) var(--radius);
}

/* ==========================================================================
   FOOTER — подвал
   ========================================================================== */
footer {
  padding: 24px 0 31px;
}

.footer__wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
}

.footer__links a:hover {
  color: var(--c-accent);
}

.disclamer {
  display: none;
  padding-top: 24px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--c-muted);
}

/* ==========================================================================
   MEDIA — медиазапросы
   ========================================================================== */

@media (max-width: 767px) {
  :root {
    --gap-block: 48px;
  }

  .container {
    padding: 0 15px;
  }

  .title {
    gap: 12px;
    font-size: 24px;
  }

  .light-zone .title {
    gap: 12px;
  }

  .title::before {
    width: 18px;
    height: 14px;
  }

  .title--multiline::before {
    margin-top: 7px;
  }

  .lead {
    font-size: 16px;
  }

  /* Шапка: логотип + бургер, остальное — в выезжающем меню. */
  .header__top {
    padding: 12px 15px;
    border-radius: 0 0 10px 10px;
  }

  .header__top .header__col,
  .header__top .header__btn {
    display: none;
  }

  .logo-group img {
    /* width: 200px; */
    height: auto;
  }

  .m_btn {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
  }

  .m_btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--c-accent);
    transition: var(--transition);
  }

  .m_btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(-45deg);
  }

  .m_btn.active span:nth-child(2) {
    opacity: 0;
  }

  .m_btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(45deg);
  }

  /* Выезжающее меню (позицию сверху JS уточняет по высоте хедера). */
  .menu {
    position: fixed;
    top: 48px;
    right: -100%;
    z-index: 2;
    flex-direction: column;
    align-items: stretch;
    row-gap: 16px;
    width: calc(100% - 30px);
    margin-top: 8px;
    padding: 20px;
    background: rgba(2, 2, 2, 0.92);
    border-radius: var(--radius);
    transition: right var(--transition);
  }

  .menu.active {
    right: 15px;
  }

  .menu__group {
    flex-direction: column;
    align-items: flex-start;
    row-gap: 12px;
  }

  /* Телефон — первой строкой меню. */
  .menu__contact {
    display: flex;
    align-items: center;
    order: -1;
  }

  .menu__contact .header__col {
    flex: none;
  }

  /* Баннер. */
  .banner__media img {
    height: auto;
  }

  .banner__badge {
    top: 75px;
    padding: 7px 14px;
    font-size: 14px;
  }

  .banner__panel {
    top: 100px;
    gap: 10px;
    width: calc(100% - 30px);
    padding: 14px 15px 16px;
  }

  .banner__title {
    margin-bottom: -6px;
    font-size: 16px;
  }

  .banner__sub {
    font-size: 14px;
  }

  .banner .btn {
    width: 100%;
    padding: 0 20px;
    display: none;
  }

  /* Таймер. */
  .timer {
    margin-top: -40px;
  }

  .timer__card {
    flex-direction: column-reverse;
    gap: 24px;
    padding: 24px 15px;
  }

  .timer__form {
    width: 100%;
  }

  .timer__title {
    margin-bottom: 16px;
    font-size: 20px;
    text-align: center;
  }

  .timer__row {
    flex-direction: column;
  }

  .timer__clock {
    width: 100%;
    margin-right: 0;
  }

  .decor {
    width: 120px;
    height: auto;
  }

  .sinoby-timer {
    min-height: auto !important;
  }

  /* Карточки моделей. */
  .cars .container {
    gap: 24px;
  }

  .car {
    flex-direction: column;
    gap: 16px;
    height: auto;
    padding: 20px 15px;
  }

  .car__bg {
    display: none;
  }

  .car__mob {
    display: block;
    margin-bottom: 8px;
    overflow: hidden;
    border-radius: 8px;
  }

  .car__mob img {
    width: 100%;
  }

  .lead br {
    display: none;
  }

  .header__value {
    white-space: normal;
  }

  .car__title {
    margin-bottom: 16px;
    font-size: 28px;
  }

  .car__title::before {
    width: 18px;
    height: 14px;
  }

  .car__badge {
    position: static;
    align-self: flex-start;
    order: -1;
    margin-bottom: 0;
    font-size: 14px;
  }

  .car__utp {
    gap: 12px;
    margin-bottom: 20px;
    margin-top: -50px;
  }

  .car__utp li {
    font-size: 18px;
    line-height: 1.2;
  }

  .car__utp li::before {
    width: 24px;
    height: 24px;
  }

  .car__utp b {
    font-size: 20px;
  }

  .car__utp span {
    font-size: 18px;
  }

  .car__specs {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 20px;
  }

  .car__specs li {
    height: auto;
    padding: 6px 8px;
  }

  .car__btns {
    flex-direction: column;
  }

  .car__btns .btn {
    flex: none;
  }

  .car__photos {
    flex-direction: row;
    width: auto;
    height: auto;
    margin-top: 0;
  }

  .car__photos .car__photo {
    flex: none;
    /* Swiper вешает margin-right на все слайды, включая последний. */
    width: calc((100% - 24px) / 3);
    height: 80px;
  }

  /* Комплектации. */
  .complects__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
  }

  .complects__menu {
    width: 100%;
  }

  .complects__menu li {
    flex: 1;
  }

  .complects__menu button {
    width: 100%;
    padding: 0;
  }

  .complects__list {
    display: flex;
    gap: 12px;
  }

  .complects__list .complects__card {
    width: 85%;
    height: auto;
  }

  .complects__body {
    grid-template-columns: 1fr;
    height: auto;
  }

  .complects__image {
    height: 160px;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .complects__info {
    padding: 16px;
  }

  .complects__name {
    font-size: 22px;
  }

  .complects__btns {
    flex: none;
    flex-direction: column;
    gap: 8px;
  }

  .complects__btns .btn,
  .complects__body {
    flex: none;
  }

  /* Технологии: все плитки раскрыты, горизонтальный слайдер. */
  .tech .title {
    margin-bottom: 24px;
    font-size: 22px;
  }

  .tech__list {
    gap: 12px;
  }

  .tech__list .tech__item {
    flex: 0 0 85%;
    width: 85%;
    height: auto;
    gap: 12px;
  }

  .tech__media {
    height: 240px;
  }

  .tech__text {
    position: static;
    font-size: 14px;
    opacity: 1;
  }

  .tech__item.current .tech__text {
    transition: none;
  }

  /* Слайдер: полоса прокрутки под слайдами (у Swiper она absolute поверх). */
  .swiper.swiper-horizontal > .swiper-scrollbar {
    position: relative;
    bottom: auto;
    left: auto;
    width: 100%;
    height: 4px;
    margin-top: 16px;
    background: rgba(10, 12, 23, 0.12);
    border-radius: 2px;
  }

  .swiper-scrollbar-drag {
    background: var(--c-dark2);
    border-radius: 2px;
  }

  /* Тестовая поездка. */
  .test-drive {
    padding: 40px 0;
  }

  .test-drive__bg {
    display: none;
  }

  .test-drive__mob {
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
  }

  .test-drive__mob img {
    width: 100%;
  }

  .test-drive .container {
    flex-direction: column;
    gap: 24px;
  }

  .test-drive__card {
    width: 100%;
    padding: 20px 15px;
  }

  .test-drive__title {
    font-size: 22px;
    line-height: 1.2;
  }

  /* Способы покупки: заголовок, описание, кредит, картинка, лизинг. */
  .buy__head {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
  }

  .buy__note {
    max-width: none;
    font-size: 16px;
  }

  .buy__row {
    flex-direction: column;
    gap: 16px;
  }

  .buy__card {
    flex: 1 1 auto;
    padding: 20px 15px;
  }

  .buy__title {
    margin-bottom: 16px;
    font-size: 22px;
  }

  .buy__img {
    height: 220px;
  }

  /* Обмен: левую карточку с преимуществами на мобиле не показываем. */
  main > section.tradein {
    margin-top: 16px;
  }

  .exchange {
    flex-direction: column;
    gap: 24px;
  }

  .exchange__aside {
    display: block;
    flex: none;
    height: auto;
    padding: 0;
  }

  .exchange__aside img {
    position: static;
    height: auto;
    aspect-ratio: 437 / 300;
    object-fit: cover;
  }

  .exchange__adv {
    display: none;
  }

  .exchange__main {
    padding: 20px 15px;
    margin-top: 80px;
  }

  .exchange .title {
    margin-bottom: 16px;
  }

  .exchange__form {
    flex-direction: column;
    margin: 16px 0 8px;
  }

  .exchange__form .form-group {
    width: 100%;
  }

  .exchange__form .btn {
    width: 100%;
    padding: 0 20px;
  }

  .exchange__video {
    height: 200px;
  }

  /* Контакты. */
  #map1 {
    height: 320px;
  }

  .contacts .container {
    position: static;
    transform: none;
  }

  .contacts__wrap {
    width: 100%;
    margin-top: -40px;
  }

  .contacts__card {
    padding: 20px 15px;
  }

  /* Подвал. */
  .footer__wrap {
    flex-direction: column;
    gap: 16px;
    font-size: 14px;
  }

  .footer__links {
    align-items: flex-start;
    text-align: left;
  }

  /* Попап на всю ширину. */
  .popup_container {
    width: 100%;
  }

  .fancybox-close {
    top: 9px !important;
    right: 9px !important;
  }
}
