/* ==========================================================================
   TOKENS
   ========================================================================== */
:root {
  --c-dark: #0A0C17;
  --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: #84858B;
  --font-base: "Geist", sans-serif;
  --container-w: 1420px;
  --control-h: 48px;
  --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;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* height: 223px; */
}

main > section:not(.banner, .timer) {
  margin-bottom: var(--gap-block);
  position: relative;
  /* z-index: -1; */
  pointer-events: all;
}

/* Инициализированный Swiper раскладывает слайды сам — flex у контейнера
   ломает ширину скроллбара (он становится flex-элементом). */
.swiper[data-mslider],
.swiper[data-cslider] {
  display: block;
}

/* Светлая зона макета: комплектации + технологии. */
.light-zone {
  padding: var(--gap-block) 0;
  background: var(--c-accent);
  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: 48px;
  font-weight: 700;
  /* line-height: 1; */
  text-transform: uppercase;
}

.title::before {
}

.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: 4px;
  height: var(--control-h);
  padding: 0 26px;
  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);
  border-color: var(--c-dark2);
}

.btn--white {
  background: var(--c-white);
}

.btn--white:hover {
  background: var(--c-accent);
}

.btn--glass {
  color: var(--c-dark);
  background: transparent;
  border-color: var(--c-dark);
}

.btn--glass:hover {
  color: var(--c-dark2);
  background: var(--c-accent);
color: var(--c-accent);
    background: var(--c-dark2);
}

.btn--dark {
  color: var(--c-accent);
  background: var(--c-dark2);
}

.btn--dark:hover {
  color: var(--c-dark2);
  background: var(--c-accent);
  border:0;
}

/* ==========================================================================
   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 39px 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;
  cursor: pointer;
}

.agree-field a {
  text-decoration: underline;
}

.agree-field input {
  position: absolute;
  top: 2px;
  left: 0;
  width: 13px;
  height: 13px;
  appearance: none;
  background: var(--c-white);
  border: 0;
  border-radius: 2px;
  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;
  color: var(--c-dark);
}

.header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 32px;
  height: 70px;
  background: #FFFFFF;
  border-bottom: 1px solid #2B95CA;
}

.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);
  display: none;
}

.header__value {
  font-weight: 500;
  white-space: nowrap;
  padding-left: 26px;
  letter-spacing: 0.2px;
}

.addr .header__value {
  background: url(../img/addr.svg) left center no-repeat;
}

.phone .header__value {
  background: url(../img/phone.svg) left center no-repeat;
  letter-spacing: 0;
}

.worktime .header__value {
  background: url(../img/worktime.svg) left center no-repeat;
  letter-spacing: 0;
}



.header__btn {
  flex: none;
}

.m_btn {
  display: none;
}

/* ==========================================================================
   NAV — нижняя строка шапки (стеклянная)
   ========================================================================== */
.menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 32px;
  height: 54px;
  background: #FFFFFFE5;
  backdrop-filter: blur(7px);
  /* border-radius: 0 0 var(--radius) var(--radius); */
  border-top: 1px solid #0A0C17;
  position:relative;
}

.menu .container {
  height:100%;
}

.menu__group {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 52px;
  margin: 0 auto;
}

.menu__contact {
  display: none;
}

.menu a {
  transition: color var(--transition);
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 2px 16px;
}

.menu a:after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    height: 2px;
    transition: 0.5s;
    width: 0px;
    background: var(--c-dark);
}

.menu a:hover {
  /* color: var(--c-accent); */
  text-shadow: 1px 0px 0px white;
}

.menu a:hover:after {
    width: 100%;
}

/* ==========================================================================
   BANNER — hero-баннер
   ========================================================================== */
.banner {
  position: relative;
}

.banner__media img {
  width: 100%;
  height: 777px;
  object-fit: cover;
}

.banner__badge {
  position: absolute;
  top: 141px;
  left: 50%;
  z-index: 2;
  padding: 10px 18px;
  padding-top: 11px;
  height: 45px;
  padding-left: 42px;
  font-size: 18px;
  font-weight: 700;
  color: var(--c-accent);
  white-space: nowrap;
  background: var(--c-dark2);
  border-radius: var(--radius);
  transform: translateX(-50%);
  background: var(--c-dark2) url(../img/ico/date.svg) 16px center no-repeat;
}

.banner__panel {
  position: absolute;
  top: 165px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 900px;
  max-width: calc(100% - 60px);
  padding: 36px 24px 22px;
  background: #FFFFFFCC;
  backdrop-filter: blur(15px);
  border-radius: var(--radius);
  transform: translateX(-50%);
  color: var(--c-dark2);
}

.banner__title {
  margin-bottom: -8px;
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  /* text-transform: uppercase; */
  line-height: 1.43;
}

.banner__sub {
  font-size: 20px;
  font-weight: 500;
  text-align: center;
}

.banner .btn {
  padding: 0 52px;
  display: none;
}

/* ==========================================================================
   TIMER — блок таймера акции
   ========================================================================== */
.timer {
  position: relative;
  z-index: 2;
  /* margin-top: -81px; */
}

.timer__card {
  position: relative;
  display: flex;
  column-gap: 20px;
  justify-content: space-between;
  row-gap: 10px;
  /* align-items: center; */
  padding: 47px 0;
  width: 100%;
  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: 48.5%;
}

.timer__title {
  margin-bottom: 12px;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.8px;
}

.timer__row {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
}

.timer__row .form-group {
  flex: 1;
  margin: 0;
}

.timer__row .btn {
  width: 100%;
}

.timer__clock {
  width: 42%;
}

/* ==========================================================================
   CARS — карточки моделей
   ========================================================================== */
.cars {}
.cars .title {
    /* color: var(--c-dark); */
    text-align: center;
    justify-content: center;
    margin-bottom: -3px;
}

.cars .container {
  display: flex;
  flex-direction: column;
  /* gap: 80px; */
  gap: 48px;
}

.car {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  /*height: 485px;*/
  padding: 35px 32px;
  overflow: hidden;
  /* border: 1px solid rgba(222, 238, 250, 0.2); */
  border-radius: var(--radius);
  /* background: linear-gradient(82.81deg, #FFFFFF 0%, rgba(255, 255, 255, 0.7) 66.86%, rgba(255, 255, 255, 0) 100%); */
  /* color: var(--c-dark); */
  background: linear-gradient(82.81deg, #FFFFFF 0%, rgba(255, 255, 255, 0.7) 66.86%, rgba(255, 255, 255, 0) 100%);
}

.car__bg {
  position: absolute;
  right: 18px;
  top: 3px;
  z-index: -1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.car__bg img {
  /* width: 100%; */
  /* height: 100%; */
  /* object-fit: cover; */
}

.car__bg::after {
  position: absolute;
  inset: 0;
  content: "";
}

.car__row1 {
    display: flex;
}

.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;
  letter-spacing: 1px;
}

.car__title::before {
  content: "";
}

.car__mob {
  display: none;
}

.car__badge {
  position: absolute;
  top: 32px;
  right: 32px;
  height: 40px;
  padding: 8px 17px;
  font-size: 16px;
  font-weight: 700;
  color: var(--c-accent);
  white-space: nowrap;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.1px;
}

.car__badge:before {
  content:'';
  background:url(../img/ico/badge.svg);
  width: 20px;
  height: 20px;
  display: block;
}

.car__badge .an {
  position:absolute;
  background: linear-gradient(88.96deg, #000000 1.64%, #6E6E6E 61.12%, #000000 100%);
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  border-radius: var(--radius);
}

.car__badge .an:before {
  content:'';
  position:absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  border-radius: var(--radius);
  background: linear-gradient(88.96deg, #000000 1.64%, #000000 61.12%, #000000 100%);
  opacity:0;
  transition:all 0.3s;
}

.car__badge:hover .an:before {
  opacity:1;
}

.car__utp {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
  width: 419px;
  max-width: 100%;
}

.car__utp li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: bold;
  min-height: 40px;
  line-height: 1;
  list-style: none;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(90deg, #DEEEFA 0%, rgba(222, 238, 250, 0.3) 100%);
  padding-left: 13px;
}

.car__utp li::before {
  flex: none;
  width: 28px;
  height: 28px;
  background-color: rgba(222, 238, 250, 0.3);
  background-position: left center;
  background-repeat: no-repeat;
  /* background-size: 16px 20px; */
  border: 1px solid var(--c-accent);
  border-radius: 4px;
  content: "";
}

.car__utp li:nth-child(1)::before {
  background-image: url(../img/ico/utp_ya.svg?v=2);
  /* background-size: 20px 20px; */
}

.car__utp li:nth-child(2)::before {
  background-image: url(../img/ico/utp_robot.svg?v=2);
  /* background-size: 20px 22px; */
}

.car__utp .icon-cred7::before {
  background-image: url(../img/ico/utp_avail.svg);
}

.car__utp li:nth-child(3)::before {
  background-image: url(../img/ico/utp_avail.svg);
}

.icon-cred7:before {
  background-image: url(../img/ico/utp_avail.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);
  column-gap: 32px;
  row-gap: 15px;
  margin-bottom: 33px;
}

.car__specs li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 40px;
  padding: 4px 11px;
  line-height: normal;
  list-style: none;
  background: var(--c-field);
  border-left: 1px solid var(--c-dark);
  /* border-radius: 4px; */
}

.car__specs span {
  font-size: 14px;
  font-weight: 300;
}

.car__specs b {
  font-weight: 500;
}

.car__btns {
  display: flex;
  gap: 20px;
  margin-top: auto;
}

.car__btns .btn {
  flex: 1;
}

/* Контейнер всего блока выбора цвета */
.car__colors {
    /* margin: 20px 0; */
    position: absolute;
    top: 118px;
    left: 472px;
    width: 157px;
    max-width: 100%;
}

/* Заголовок "Выберите цвет:" */
.car__colors-title {
    font-size: 16px;
    color: #333333;
    margin-bottom: 8px;
    font-weight: 500;
    min-height: 40px;
    background: #DEEEFA4D;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: var(--radius);
}

/* Сетка/список для кнопок переключения */
.car__colors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* Отступы между плашками */
}

/* Элемент плашки (кнопка-капсула) */
.car__colors-item {
    display: block;
    position: relative;
    width: 47px;       /* Ширина капсулы */
    height: 20px;      /* Высота капсулы */
    border-radius: var(--radius); /* Идеальное скругление под капсулу */
    cursor: pointer;
    box-sizing: border-box;
    transition: transform 0.2s ease;
    text-decoration: none;
    outline: none;
}

/* Состояние при наведении на плашку */
.car__colors-item:hover {
    transform: scale(1.04);
}

/* CSS-ГАЛОЧКА (появляется только у активного элемента) */
.car__colors-item.active::after {
    content: '';
    position: absolute;
    /* Центрирование внутри капсулы */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* transform: translate(-50%, -60%) rotate(45deg); */
    
    /* Размеры сторон галочки */
    /* width: 6px; */
    /* height: 12px; */
    
    /* Толщина и цвет линий галочки */
    /* border-right: 2px solid var(--c-dark); */
    /* border-bottom: 2px solid var(--c-dark); */
    
    /* Эффект тени, чтобы белую галочку было видно на белом фоне плашки */
    /* filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.8)); */
    background: url(../img/ico/color_checked.svg) center center no-repeat;
}

.car__row2 {}

.car__photos {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 10px;
  /* height: 421px; */
  margin-top: 81px;
}

/* Скроллбар галереи 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: 78px;
  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)
   ========================================================================== */
#instock {
    padding-top: var(--gap-block);
    /* padding-bottom: var(--gap-block); */
}
#instock .container {}
#instock .container .title {
    margin-bottom: 43px;
}
#instock .complects {
    width: 100%;
}
.complects__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  gap: 0;
  margin-bottom: -16px;
}

.complects__menu {
  display: flex;
  overflow: hidden;
  column-gap: 20px;
  row-gap: 5px;
}

.complects__menu li {
  list-style: none;
  flex-direction: column;
  display: flex;
  opacity: 0.4;
}

.complects__menu li.current {
    opacity: 1;
}

.complects__menu button {
  font: 700 20px/1 var(--font-base);
  text-transform: uppercase;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition);
  background: linear-gradient(180deg, #DEEEFA 0%, rgba(222, 238, 250, 0.7) 100%);
  height: 115px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 18px;
}

.complects__menu img {
  transform: translateY(-63px);
  pointer-events: none;
}

.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(1, 1fr);
  gap: 48px;
  width: 100%;
}

.complects__card {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.complects__body {
  display: grid;
  grid-template-columns: 1fr 523px;
  width: 100%;
  height: 270px;
  gap: 23px;
  /* height: 245px; */
  background: var(--c-light);
  border-radius: var(--radius);
background: linear-gradient(87.89deg, #DEEEFA 0.19%, #DEEEFA 59.91%, #FFFFFF 100%);
  padding: 32px;
}

.complects__image {
  overflow: hidden;
  border-radius: var(--radius) 0 0 var(--radius);
  order: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.complects__image img {
  width: 100%;
  /* height: 100%; */
  /* object-fit: cover; */
}

.complects__info {
  color: var(--c-dark2);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.complects__name {
  display: flex;
  line-height: 1.3;
  align-items: center;
  /* justify-content: space-between; */
  gap: 20px;
  margin-bottom: 23px;
  font-size: 48px;
  font-weight: bold;
  text-transform: uppercase;
}

.complects__name span {
  padding: 8px 25px;
  font-size: 16px;
  background: var(--c-dark);
  color: var(--c-accent);
  border-radius: var(--radius);
}

.complects__specs {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 663px;
  max-width: 100%;
  margin-bottom: 32px;
}

.complects__specs li {
  display: flex;
  flex-direction: column;
  /* align-items: center; */
  gap: 0px;
  /* line-height: 23px; */
  list-style: none;
  position: relative;
  padding-left: 13px;
  padding-right: 31px;
  /* flex-grow: 1; */
  height: 40px;
}

.complects__specs li::before {
  flex: none;
  width: 1px;
  /* 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: "";
  position: absolute;
  left: 0;
  bottom: 0;
  top: 0;
}

.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
  );
  display: none;
}

.complects__specs span {
  /* color: #5f6366; */
  font-size: 14px;
  font-weight: 300;
}

.complects__specs b {
  font-size: 16px;
  font-weight: 500;
  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;
}


/* ==========================================================================
   Кредит 
   ========================================================================== */
.credit {}
.credit .container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
}
.credit__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 27px;
  margin-bottom: 18px;
}

.credit__note {
  width: 413px;
  max-width: 100%;
  font-size: 22px;
  line-height: 1.2;
  border-left: 1px solid #FFFFFF;
  padding-left: 9px;
  letter-spacing: 0.3px;
}

.credit__row {
  display: flex;
  align-items: stretch;
  gap: 24px;
  /* height: 512px; */
}

.credit__card {
  position: relative;
  flex: 0 0 670px;
  padding: 32px;
  padding-top: 21px;
  padding-bottom: 30px;
  overflow: hidden;
  background: var(--c-gray);
  border-radius: var(--radius);
}

.credit__title {
  margin-bottom: 24px;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.credit__card form {
  /* margin-top: 19px; */
}

.credit__card .btn {
  width: 100%;
  margin-bottom: 8px;
}

.credit__img {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius);
}

.credit__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}






/* ==========================================================================
   tradein
   ========================================================================== */
.tradein {}
.tradein .container {
}
.tradein__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 22px;
}

.tradein__note {
  font-size: 22px;
  line-height: 1.2;
  border-left: 1px solid #FFFFFF;
  padding-left: 9px;
}

.tradein__row {
  display: flex;
  align-items: stretch;
  gap: 20px;
}

.tradein__card {
  position: relative;
  flex: 0 0 670px;
  padding: 32px;
  padding-top: 20px;
  padding-bottom: 29px;
  overflow: hidden;
  background: var(--c-gray);
  border-radius: var(--radius);
  border: 1px solid var(--c-accent);
}

.tradein__title {
  margin-bottom: 24px;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.tradein__card form {
  margin-top: 19px;
}

.tradein__card .btn {
  width: 100%;
  margin-bottom: 8px;
}

.tradein__img {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
}

.tradein__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.tradein-buttons {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 14px;
    margin-top: 20px;
    flex-wrap: wrap;
    padding: 32px;

    display: flex;
    flex-direction: column; /* если элементы должны быть друг под другом */
    align-items: flex-start; /* это прижмет внутреннюю кнопку влево */
    width: 100%;
}

.tradein-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 4px 16px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius);
    text-decoration: none;
    color: #ffffff; /* Цвет текста */
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
    flex: 1; /* Кнопки будут одинаковой ширины */
    min-width: 280px; /* Чтобы не сжимались слишком сильно */
    box-sizing: border-box;
    font-weight: bold;
}

.tradein-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.7);
}

.tradein-btn:active {
    transform: scale(0.98);
}

.tradein-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    /* width: 36px; */
    /* height: 36px; */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    flex-shrink: 0; /* Запрещаем иконке сжиматься */
}

.tradein-btn-text {
    display: flex;
    flex-direction: column; /* Разделяем на две строки */
    text-align: left;
    line-height: 100%;
    letter-spacing: 0.3px;
}

.tradein-btn-text span {
    font-size: 13px;
    opacity: 0.8; /* Делаем вторую строку чуть приглушеннее */
}





/* ==========================================================================
   testdrive
   ========================================================================== */
.testdrive {
}
.testdrive .container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
}
.testdrive__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 27px;
  width: 509px;
  max-width: 100%;
}

.testdrive__note {
  /* max-width: 367px; */
  font-size: 22px;
  line-height: 1.2;
  border-left: 1px solid #FFFFFF;
  padding-left: 9px;
  letter-spacing: 0.3px;
}

.testdrive__row {
  display: flex;
  align-items: stretch;
  gap: 24px;
}

.testdrive__card {
  position: relative;
  flex: 0 0 670px;
  padding: 18px 33px;
  overflow: hidden;
  background: var(--c-gray);
  border-radius: var(--radius);
  /* height: 539px; */
}

.testdrive__title {
  margin-bottom: 24px;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.testdrive__card form {
  margin-top: 19px;
}

.testdrive__card .btn {
  width: 100%;
  margin-bottom: 8px;
}

.testdrive__img {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius);
}

.testdrive__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}




/* ==========================================================================
   CONTACTS — контакты + карта
   ========================================================================== */
.contacts {
  position: relative;
  margin-bottom: 0 !important;
}

#map1 {
  height: 652px;
  background: var(--c-gray);
}

.contacts .container {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.contacts__wrap {
  width: 441px;
  pointer-events: auto;
  border-radius: var(--radius);
  overflow: hidden;
}

.contacts__card {
  position: relative;
  padding: 32px;
  overflow: hidden;
  background: var(--c-dark);
  background: var(--c-accent);
  color: var(--c-dark);
}

.contacts__card .logo-group {
  margin-bottom: 15px;
}

.contacts__info {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 23px;
}

.contacts__info .header__col {
    background: linear-gradient(90deg, #FFFFFF 0%, rgba(255, 255, 255, 0.4) 100%);
    min-height: 40px;
    padding: 7px 16px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
}
.contacts__info .header__value {
    white-space: normal;
    padding-left:30px;
}

.contacts__help {
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.4px;
}

.contacts__card .btn {
  width: 100%;
}

.contacts__img {
  display: block;
  height: 118px;
  width: 100%;
  object-fit: cover;
}

/* ==========================================================================
   FOOTER — подвал
   ========================================================================== */
footer {
  padding: 24px 0 31px;
}

footer .container {
  display:flex; 
  flex-direction:column;
}

.footer__wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.footer__legal {
    width: 500px;
    letter-spacing: 0.21px;
}

.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: 1400px) {
  .car__utp {
    width: 330px;
}
  .car__specs {
    grid-template-columns: repeat(2, 176px);
}
  .car__colors {
    left: 370px;
  }
  .complects__body {
    display: grid;
    grid-template-columns: 1fr 323px;
  }
  .complects__specs {
    width: 100%;
  }
  .complects__btns {
    gap:10px;
  }
  .tradein-buttons {
    padding: 15px;
    gap: 5px;
}
  .tradein__card {
    position: relative;
    flex: 0 0 50%;
  }
  .tradein-buttons a {}
  .credit {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .credit__card {
    position: relative;
    flex: 0 0 50%;
  }
  .credit__row { width:100%; }
  .credit .container {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    z-index: 1;
}
  .credit__img {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
}
  
  .testdrive {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .testdrive .container {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    z-index: 1;
  }
  .testdrive__img {
    position: absolute;
    top: 0;
    bottom: 0;
  }
}

@media (max-width: 1100px) {
  header .addr.header__col { display:none; }
  .menu__group { gap:0px; }
  .timer__card {
    gap:20px;
    flex-direction: column;
    width: 100%;
  }
  .timer__form { width:100%; }
  .timer__clock { width:100%; }
  .complects__body {
    height: auto;
    padding: 15px 20px;
}
  .complects__name {
    margin-bottom: 10px;
  }
  .complects__specs {
    flex-wrap: wrap;
    margin-bottom: 10px;
    gap:5px;
  }
  .complects__specs li {
    width: calc( 50% - 12px );
    height:auto;
    padding-right:0;
  }
}

@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-dark);
    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; */
    margin: 0;
    top: 0;
    padding: 20px;
    /* background: rgba(2, 2, 2, 0.92); */
    border-radius: var(--radius);
    transition: right var(--transition);
    height: auto;
  }

  .menu.active {
    right: 15px;
    height: auto;
  }

  .menu__group {
    flex-direction: column;
    align-items: center;
    row-gap: 12px;
    order: 2;
  }

  .menu .container {
  display: flex;
  flex-direction: column;
  }

  /* Телефон — первой строкой меню. */
  .menu__contact {
    display: flex;
    align-items: center;
    order: -1;
  }

  .menu__contact .header__col {
    flex: none;
    padding: 12px 0;
  }

  /* Баннер. */
  .banner__media img {
    height: auto;
  }

  .banner__badge {
    top: 75px;
    /* padding: 7px 14px; */
    font-size: 14px;
    height: auto;
  }

  .banner__panel {
    top: 100px;
    gap: 10px;
    width: calc(100% - 30px);
    padding: 24px 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;
    margin-top: -40px;
  }

  .car__mob img {
    width: 100%;
  }

  .lead br {
    display: none;
  }

  .header__value {
    white-space: normal;
    padding: 0;
  }

  .car__title {
    margin-bottom: 16px;
    font-size: 28px;
  }

  .car__title::before {
    width: 18px;
    height: 14px;
  }

  .car__badge {
position: relative;
        top: unset;
        left: unset;
        right: unset;
    align-self: flex-start;
    order: -1;
    margin-bottom: 0;
    font-size: 14px;
  }

  .car__utp {
    gap: 12px;
    margin-bottom: 10px;
    margin-top: 0px;
    width: 100%;
    gap: 5px;
    order: 1;
  }

  .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: 0px;
    column-gap: 15px;
    row-gap: 10px;
    order: 2;
  }

  .car__specs li {
    height: auto;
    padding: 2px 8px;
  }

  .car__btns {
    flex-direction: column;
    gap: 5px;
  }

  .car__btns .btn {
    flex: none;
  }

  .car__colors {
	position: absolute;
        z-index: 1;
        top: 66px;
        right: 0;
        left: unset;
        width: 104px;
  }

  .car__colors-title {
	padding:0;
	white-space:nowrap;
	justify-content: flex-end;
	margin: 0;
  }

  .car__colors-list {
        justify-content: flex-start;
        flex-direction: column;
        align-items: flex-end;
        height: 110px;
 }

  .car__colors-item {}

  .car__row1 {
    flex-direction: column;
    gap: 10px;
}
  
  .car__row2 {}

  .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: -20px;
  }

  .complects__menu {
    width: 100%;
  }

  .complects__menu li {
    flex: 1;
  }

  .complects__menu button {
    color: var(--c-dark2);
    width: 100%;
    padding: 0;
    padding-top: 10px;
  }

  .complects__list {
    display: flex;
    gap: 12px;
  }

  .complects__list .complects__card {
    width: 85%;
    height: auto;
  }

  .complects__body {
    grid-template-columns: 1fr;
    height: auto;
  }

  .complects__image {
    border-radius: var(--radius) var(--radius) 0 0;
        margin-top: 10px;
        margin-bottom: 20px;
  }

  .complects__info {
    padding: 0px;
    order:2;
  }

  .complects__name {
    font-size: 22px;
  }

  .complects__btns {
    flex: none;
    flex-direction: column;
    gap: 8px;
  }

  .complects__btns .btn,
  .complects__body {
    flex: none;
    gap:0;
  }

  /*credit*/
  .credit {
    gap: 10px;
    display: flex;
    flex-direction: column;
}
  .credit .container {
    order: 2;
}
  .credit__img {
    position: static;
    padding: 0 15px;
    border-radius: 15px;
}
  .credit__img img {
    border-radius: var(--radius);
}
  .credit__row {}
  .credit__card {
    flex: 0 0 100%;
    border: 1px solid var(--c-accent);
}
  .credit__head {}
  .credit__card form {}

  /*tradein*/
  .tradein {
    gap: 20px;
    display: flex;
    flex-direction: column;
}
  .tradein .container {
    order: 2;
}
  .tradein__img {
    position: static;
}
  .tradein__img img {}
  .tradein__row {
    flex-direction: column;
    gap: 10px;
}
  .tradein__card {
    flex: 0 0 100%;
}
  .tradein__head {}
  .tradein__card form {}

  /*testdrive*/
  .testdrive {
    gap: 10px;
    display: flex;
    flex-direction: column;
}
  .testdrive .container {
    order: 2;
}
  .testdrive__img {
    position: static;
    padding: 0 15px;
}
  .testdrive__img img {
    border-radius: var(--radius);
}
  .testdrive__row {
    width: 100%;
}
  .testdrive__card {
    flex: 0 0 100%;
    border: 1px solid var(--c-accent);
}
  .testdrive__head {}
  .testdrive__card form {}

  

  /* Контакты. */
  #map1 {
    height: 320px;
    order: 3;
  }

  .contacts {
    display:flex;
    flex-direction:column;
    gap: 40px;
  }

  .contacts .container {
    position: static;
    transform: none;
    order: 2;
  }

  .contacts__wrap {
    width: 100%;
    /* margin-top: -40px; */
  }

  .contacts__card {
    padding: 20px 15px;
  }

  /* Подвал. */
  .footer__wrap {
    flex-direction: column;
    gap: 16px;
    font-size: 14px;
  }

  .footer__legal {
    width:100%;
  }

  .footer__links {
    align-items: flex-start;
    text-align: left;
    width: 100%;
  }

  /* Попап на всю ширину. */
  .popup_container {
    width: 100%;
  }

  .fancybox-close {
    top: 9px !important;
    right: 9px !important;
  }
}




