/* ==========================================================================
   TOKENS
   Плейсхолдеры проекта — цвет/шрифт/размеры подменяются под конкретный макет.
   В правилах используем var(--…), а не хардкод.
   ========================================================================== */
:root {
  --c-dark: #000;
  --c-bg: #3e3a39;
  --c-accent: #c30d23;
  --c-accent-hover: #af1414;
  --c-white: #fff;
  --c-muted: #aca8a7;
  --c-card: #f7f0eb;
  --c-beige: #e5d7c9;
  --c-line: #706c6b;
  --font-base: "TENET Sans", sans-serif;
  --container-w: 1420px;
  --control-h: 48px;
  --radius: 12px;
  --transition: 0.2s linear;
  --header-h: 116px;
}

/* ==========================================================================
   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-bg);
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul {
  list-style: none;
}

em {
  font-style: normal;
}

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

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

main {
  padding-top: var(--header-h);
}

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

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.section-head__tag {
  padding: 5px 8px 3px;
  font-size: 12px;
  line-height: normal;
  color: var(--c-bg);
  text-transform: uppercase;
  background: var(--c-beige);
  border-radius: 30px;
}

.section-head__title {
  font-size: 44px;
  font-weight: 700;
  line-height: normal;
  color: var(--c-white);
  text-transform: uppercase;
}

.section-head--dark .section-head__title {
  color: var(--c-dark);
}

/* ==========================================================================
   BUTTONS — .btn + модификаторы .btn--arrow / .btn--outline / .btn--dark
   ========================================================================== */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: var(--control-h);
  padding: 0 20px;
  font: inherit;
  font-weight: 700;
  line-height: normal;
  color: var(--c-white);
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--c-accent);
  border: 1px solid var(--c-accent);
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
}

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

.btn--arrow::after {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url(../img/ico/arrow.svg) center / contain no-repeat;
  mask: url(../img/ico/arrow.svg) center / contain no-repeat;
}

.btn--outline {
  color: var(--c-dark);
  background: transparent;
}

.btn--dark {
  background: var(--c-bg);
  border-color: var(--c-bg);
}

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

.form-group input,
.form-group select {
  width: 100%;
  height: var(--control-h);
  padding: 0 20px;
  font: inherit;
  font-weight: 700;
  color: var(--c-dark);
  background: transparent;
  border: 1px solid var(--c-dark);
  border-radius: var(--radius);
  outline: none;
}

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

.form-group select {
  appearance: none;
  background: url(../img/ico/chevron.svg) right 15px center no-repeat
    var(--c-white);
}

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

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inline-form .form-group {
  flex: 1 0 auto;
  margin-bottom: 0;
}

.inline-form .form-group:first-child {
  flex: 999 1 220px;
  min-width: 0;
}

.inline-form .form-group:last-child .btn {
  width: 100%;
}

.inline-form .btn {
  width: auto;
  padding: 0 48px;
}

/* Согласие на обработку ПД — мелкая сноска под формой. */
.agree-field {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 8px;
  font-size: 10px;
  line-height: 1.2;
  color: var(--c-dark);
  cursor: pointer;
}

.agree-field input {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  appearance: none;
  background: var(--c-white);
  border: 1px solid var(--c-bg);
  border-radius: 2px;
  cursor: pointer;
}

.agree-field input:checked {
  background: url(../img/ico/check.svg) center / 9px 7px no-repeat var(--c-bg);
}

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

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

.not_agree button {
  background: #ccc !important;
  border-color: #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: 607px;
  max-width: 100%;
  padding: 30px;
  color: #615952;
  text-align: center;
  background: var(--c-card);
  border-radius: 32px;
}

.form_title {
  margin-bottom: 30px;
  font-size: 24px;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
}

.form_subtitle {
  margin: -16px 0 24px;
  font-size: 16px;
  line-height: normal;
  text-transform: uppercase;
}

.form_subtitle a {
  font-weight: 700;
  color: var(--c-dark);
  white-space: nowrap;
}

.popup_container .form-group {
  margin-bottom: 19px;
}

.popup_container .form-group input {
  height: 56px;
  font-size: 13px;
  font-weight: 400;
  color: #615952;
  text-transform: uppercase;
  border-color: #998e83;
}

.popup_container .form-group input::placeholder {
  color: #998e83;
}

.popup_container .btn {
  width: 100%;
  height: 56px;
}

.popup_container .agree-field {
  justify-content: center;
  margin-top: 0;
  font-size: 12px;
  color: #615952;
  text-align: left;
}

.popup_container .agree-field input {
  margin-top: 1px;
  border-color: #615952;
}

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

.fancybox-bg {
  background: #1e1e1e;
}

.fancybox-is-open .fancybox-bg {
  opacity: 0.9;
}

.fancybox-slide--html .popup_container {
  padding: 30px;
  background: var(--c-card);
  border-radius: 32px;
}

.fancybox-slide--html .fancybox-close-small {
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  padding: 10px;
  color: #615952;
  opacity: 0.8;
}

.fancybox-slide--html .fancybox-close-small:hover {
  opacity: 1;
}

.alert {
  padding: 30px 40px;
  color: var(--c-dark);
  text-align: center;
}

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

/* ==========================================================================
   HEADER — фикс-шапка (активная разметка)
   ========================================================================== */
header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 15;
  max-width: 1920px;
  margin: 0 auto;
  background: var(--c-bg);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__top .container {
  gap: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-group__logo {
  width: 182px;
  height: 18px;
}

.logo-group__dealer {
  display: flex;
  flex-direction: column;
  min-width: 148px;
  white-space: nowrap;
  padding-left: 12px;
  font-size: 10px;
  line-height: normal;
  color: var(--c-white);
  border-left: 1px solid currentColor;
}

.logo-group__dealer b {
  margin-bottom: -4px;
  font-size: 15px;
  text-transform: uppercase;
}

.logo-group--dark .logo-group__logo {
  filter: brightness(0);
}

.logo-group--dark .logo-group__dealer {
  color: var(--c-dark);
}

.header__addr,
.header__phone {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: normal;
}

.header__addr {
  width: 362px;
}

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

.header__btn {
  padding: 0 32px;
}

.header__call {
  display: none;
}

.m_btn {
  display: none;
}

/* ==========================================================================
   NAV — навигация
   ========================================================================== */
.menu {
  border-top: 1px solid var(--c-line);
}

.menu .container {
  padding-top: 12px;
  padding-bottom: 12px;
}

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

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

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

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

.banner__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  margin: 54px auto 0;
  padding: 32px 40px 40px;
  color: var(--c-dark);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 30px;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.banner__date {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -54px 0 -4px;
  padding: 10px 16px;
  font-size: 18px;
  font-weight: 700;
  line-height: normal;
  color: var(--c-white);
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--c-accent);
  border-radius: 60px;
}

.banner__title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 30px;
  font-weight: 700;
  line-height: normal;
  text-align: center;
  text-transform: uppercase;
}

.banner__title em {
  color: var(--c-accent);
}

.banner__pills {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.pill,
.benefit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  line-height: normal;
  color: var(--c-dark);
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 1px solid var(--c-accent);
  border-radius: 60px;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
}

.pill {
  padding: 10px 16px;
  font-size: 18px;
  background: var(--c-white);
}

.pill:hover,
.benefit:hover {
  color: var(--c-white);
  background: var(--c-accent);
  border-bottom-color: var(--c-white);
}

.pill__ico {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: center / contain no-repeat;
}

.pill__br {
  display: none;
}

.pill__ico--garant { background-image: url(../img/ico/garant.svg); }
.pill__ico--gift { background-image: url(../img/ico/gift.svg); }
.pill__ico--credit { background-image: url(../img/ico/credit.svg); }
.pill:hover .pill__ico--garant { background-image: url(../img/ico/garant_hover.svg); }
.pill:hover .pill__ico--gift { background-image: url(../img/ico/gift_hover.svg); }
.pill:hover .pill__ico--credit { background-image: url(../img/ico/credit_hover.svg); }

.banner__btn {
  margin: 6px 0 -68px;
  padding: 0 44px;
}

/* ==========================================================================
   TICKER — бегущая строка
   ========================================================================== */
.ticker {
  display: flex;
  height: 47px;
  overflow: hidden;
  background: var(--c-accent);
}

.ticker__track {
  display: flex;
  flex-shrink: 0;
  animation: ticker 24s linear infinite;
}

.ticker__group {
  display: flex;
  align-items: center;
}

.ticker__group span {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-left: 32px;
  font-size: 18px;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker__group span::after {
  content: "";
  width: 1px;
  height: 22px;
  background: #f7a0aa;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   TIMER — блок таймера акции
   ========================================================================== */
.timer {
  margin-top: 24px;
}

.timer__wrap {
  display: flex;
}

.timer__card {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 52px;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 242px;
  padding: 30px 40px;
  color: var(--c-dark);
  background: var(--c-card);
  border-radius: 30px;
}

.timer__form {
  flex: 0 1 480px;
  min-width: 0;
}

.timer__title {
  margin-bottom: 12px;
  font-size: 32px;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
}

.timer__form .inline-form .btn {
  padding: 0 20px;
}

.timer__form .agree-field {
  max-width: 351px;
}

.timer__clock {
  flex: 0 1 515px;
  min-width: 0;
}

.timer__img {
  display: block;
  flex: 0 0 260px;
  margin-left: -29px;
}

.timer__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 30px 30px 0;
}

/* ==========================================================================
   ADVANTAGES — преимущества покупки
   ========================================================================== */
.advantages {
  padding-top: 120px;
}

.advantages__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.advantages__item {
  position: relative;
  display: block;
  height: 200px;
  padding: 20px;
  overflow: hidden;
  color: var(--c-dark);
  background: var(--c-card);
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.advantages__item:hover {
  transform: translateY(-10px);
}

.advantages__title {
  position: relative;
  z-index: 1;
  max-width: 282px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.advantages__num {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-size: 14px;
  font-weight: 700;
  line-height: normal;
  color: var(--c-bg);
}

.advantages__img {
  position: absolute;
  top: 89px;
  right: -52px;
  width: 206px;
  height: 206px;
  transition: transform 0.5s ease;
}

.advantages__item:hover .advantages__img {
  transform: scale(1.08);
}

/* ==========================================================================
   CARS — карточки / слайдер авто
   ========================================================================== */
.cars {
  padding-top: 120px;
}

.cars__tabs {
  margin-top: 40px;
}

.cars__tab {
  display: flex;
  flex-direction: column;
}

.cars__tabs > .cars__tabs-scrollbar.swiper-scrollbar {
  position: relative;
  inset: auto;
  width: auto;
  height: 4px;
  margin: 16px 0 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

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

.cars__tabs-scrollbar.swiper-scrollbar-lock {
  display: none;
}

.cars__tab-img {
  display: flex;
  justify-content: center;
  height: 95px;
  margin-bottom: 8px;
  padding-top: 8px;
  overflow: hidden;
  background: url(../img/tab_bg.jpg) center / cover no-repeat #c7b9ab;
  border-radius: 20px;
}

.cars__tab-img img {
  width: 201px;
  height: 80px;
  object-fit: contain;
}

.cars__tab-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: normal;
  color: var(--c-white);
  text-transform: uppercase;
  transition: color var(--transition);
}

.cars__tab-name::after {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background: var(--c-white);
  -webkit-mask: url(../img/ico/arrow.svg) center / contain no-repeat;
  mask: url(../img/ico/arrow.svg) center / contain no-repeat;
  transition: background var(--transition);
}

.cars__tab:hover .cars__tab-name {
  color: var(--c-beige);
}

.cars__tab:hover .cars__tab-name::after {
  background: var(--c-beige);
}

.cars__tab-sub {
  font-size: 14px;
  line-height: normal;
  color: #c0bcbb;
}

.cars__list {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-top: 60px;
}

.car {
  position: relative;
  display: grid;
  grid-template-columns: 552px 1fr;
  grid-template-rows: 1fr auto;
  min-height: 545px;
  color: var(--c-dark);
  background: var(--c-card);
  border-radius: 30px;
  overflow: hidden;
}

.car::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(../img/model_bg.png) center / cover no-repeat;
  opacity: 0.7;
  pointer-events: none;
}

.car__info {
  position: relative;
  display: flex;
  flex-direction: column;
  grid-row: 1 / 3;
  padding: 30px 40px 40px;
  background: var(--c-beige);
  border-radius: 29px;
}

.car__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.car__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.car__title {
  margin-bottom: 19px;
  font-size: 42px;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
}

.benefit {
  padding: 8px 12px;
  font-size: 20px;
  background: var(--c-card);
}

.benefit em {
  color: var(--c-accent);
  transition: color var(--transition);
}

.benefit:hover em {
  color: var(--c-white);
}

.benefit__ico {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: url(../img/ico/benefit.svg) center / contain no-repeat;
}

.benefit:hover .benefit__ico {
  background-image: url(../img/ico/benefit_hover.svg);
}

.car__utp {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 16px 0 20px;
}

.car__utp li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  line-height: normal;
}

.car__utp img {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.car__btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: auto;
}

.car__media {
  position: relative;
  min-width: 0;
  padding: 0 40px;
}

.car__count {
  position: absolute;
  top: 41px;
  left: 40px;
  z-index: 2;
  display: flex;
  align-items: center;
}

.car__count b {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  font-size: 26px;
  line-height: normal;
  color: var(--c-accent);
  background: var(--c-white);
  border-radius: 50%;
}

.car__count span {
  margin-left: -24px;
  padding: 4px 12px 4px 34px;
  line-height: normal;
  color: var(--c-white);
  white-space: nowrap;
  background: var(--c-accent);
  border: 1px solid var(--c-white);
  border-left: 0;
  border-radius: 0 60px 60px 0;
}

.car__view {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 16px 0 -16px 13px;
}

.car__img {
  position: relative;
  flex: 0 1 684px;
  min-width: 0;
  aspect-ratio: 684 / 343;
}

.car__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.car__img img.active {
  opacity: 1;
}

.car__colors {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 40px;
}

.car__colors button,
.car__colors span {
  width: 28px;
  height: 28px;
  background: linear-gradient(210deg, var(--c1), var(--c2) 50%, var(--c1));
  border: 1px solid #dbd8d5;
  border-radius: 50%;
  transition:
    width var(--transition),
    height var(--transition);
}

.car__colors .active {
  width: 40px;
  height: 40px;
}

.car__gallery {
  position: relative;
  grid-column: 2;
  min-width: 0;
  padding: 0 40px 40px;
}

.car__gallery .swiper-slide {
  display: block;
  aspect-ratio: 237 / 160;
  overflow: hidden;
  border-radius: 26px;
}

.car__gallery-inner {
  position: relative;
}

.car__gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  background: var(--c-white);
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: background var(--transition);
}

.car__gallery-arrow::before {
  content: "";
  width: 16px;
  height: 16px;
  background: var(--c-dark);
  -webkit-mask: url(../img/ico/arrow.svg) center / contain no-repeat;
  mask: url(../img/ico/arrow.svg) center / contain no-repeat;
  transition: background var(--transition);
}

.car__gallery-arrow:hover {
  background: var(--c-accent);
}

.car__gallery-arrow:hover::before {
  background: var(--c-white);
}

.car__gallery-arrow--prev {
  left: -10px;
}

.car__gallery-arrow--prev::before {
  transform: scaleX(-1);
}

.car__gallery-arrow--next {
  right: -10px;
}

.car__gallery-arrow.swiper-button-lock {
  display: none;
}

.car__gallery .car__gallery-scrollbar.swiper-scrollbar {
  position: relative;
  inset: auto;
  width: auto;
  height: 4px;
  margin-top: 12px;
  background: rgba(62, 58, 57, 0.15);
  border-radius: 2px;
}

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

.car__gallery-scrollbar.swiper-scrollbar-lock {
  display: none;
}

.car__gallery img,
.photo-card img,
.test-drive__img img,
.contacts__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.car__gallery .swiper-slide:hover img,
.photo-card:hover img,
.test-drive__img:hover img,
.contacts__photo:hover img {
  transform: scale(1.08);
}

/* ==========================================================================
   COMPLECTS — таблица комплектаций (include.table.php)
   ========================================================================== */
.instock {
  padding-top: 120px;
}

.complects {
  display: grid;
  grid-template-columns: 322px 1fr;
  align-items: start;
  gap: 24px;
  margin-top: 40px;
}

.complects__aside {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.complects__drop {
  color: var(--c-dark);
  background: var(--c-beige);
  border-radius: 20px;
  transition: border-radius 0.35s ease;
}

.complects__drop.open {
  border-radius: 26px;
}

.complects__drop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px;
  font-size: 18px;
  line-height: normal;
  text-align: left;
}

.complects__drop-head::after {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: url(../img/ico/chevron.svg) center / contain no-repeat;
  transition: transform 0.35s ease;
}

.complects__drop.open .complects__drop-head::after {
  transform: scaleY(-1);
}

.complects__drop-body {
  display: none;
  padding: 0 20px 20px;
  margin-top: -7px;
}

.complects__menu,
.complects__options {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.complects__menu button,
.complects__options button {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 49px;
  padding: 4px 10px 4px 0;
  font-size: 18px;
  line-height: normal;
  text-align: left;
  text-transform: uppercase;
  border-radius: 10px;
  transition: background var(--transition);
}

.complects__options button {
  min-height: 41px;
  padding: 4px 12px;
  text-transform: none;
}

.complects__menu img {
  flex-shrink: 0;
  width: 103px;
  height: 41px;
  object-fit: contain;
}

.complects__menu button:hover,
.complects__options button:hover,
.complects__menu .current button,
.complects__options button.current {
  background: #f5ebdd;
}

.complects__filter {
  display: none;
}

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

.complects__card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0 40px 40px;
  color: var(--c-dark);
  background: var(--c-card);
  border-radius: 26px;
}

.complects__benefit {
  position: absolute;
  top: -25px;
  left: 40px;
  z-index: 1;
}

.complects__image {
  margin: 0 -21px 0 -11px;
  aspect-ratio: 447 / 169;
}

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

.complects__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 27px;
}

.complects__name {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
}

.complects__name span {
  color: var(--c-accent);
  text-align: right;
}

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

.complects__specs li {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding-left: 20px;
  font-size: 16px;
  line-height: normal;
  color: #756e69;
}

.complects__specs li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--c-bg);
  border-radius: 50%;
}

.complects__specs li span {
  display: flex;
  flex: 1 1 auto;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}

.complects__specs li span::after {
  content: "";
  flex: 1 1 auto;
  border-bottom: 1px dashed var(--c-dark);
}

.complects__specs b {
  font-size: 20px;
  color: var(--c-dark);
  text-align: right;
}

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

.complects__more {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px auto 0;
  line-height: normal;
  color: var(--c-white);
}

.complects__more::after {
  content: "";
  width: 10px;
  height: 10px;
  background: url(../img/ico/plus.svg) center / contain no-repeat;
  transition: transform var(--transition);
}

.complects__more:hover::after {
  transform: rotate(90deg);
}

/* Авторский display у .btn перебивает display:none из UA-стилей для [hidden],
   поэтому кнопку «Показать ещё» прячем явно. */
.complects__more[hidden],
.complects__options li[hidden] {
  display: none;
}

/* ==========================================================================
   TRADEIN / CREDIT — обмен и кредит
   ========================================================================== */
.offers {
  padding-top: 120px;
}

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

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

.form-card {
  position: relative;
  min-height: 321px;
  padding: 40px;
  color: var(--c-dark);
  background: var(--c-card);
  border-radius: 30px;
  overflow: hidden;
}

.form-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(../img/form_bg.jpg) center / cover no-repeat;
  opacity: 0.7;
  pointer-events: none;
}

.form-card > * {
  position: relative;
}

.form-card__text {
  margin: 22px 0 12px;
  font-size: 22px;
  line-height: normal;
}

#credit .form-card__text {
  margin-top: 40px;
}

.photo-card {
  height: 520px;
  overflow: hidden;
  border-radius: 30px;
}

/* ==========================================================================
   TEST DRIVE — тестовая поездка
   ========================================================================== */
.test-drive {
  padding-top: 120px;
}

.test-drive__card {
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.test-drive__card::before {
  background-image: url(../img/test_drive_bg.jpg);
}

.test-drive__form {
  flex: 0 1 588px;
}

.test-drive__form .form-card__text {
  max-width: 554px;
  margin-top: 22px;
}

.test-drive__items {
  display: flex;
  gap: 24px;
}

.test-drive__item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 302px;
  height: 242px;
  padding: 20px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  background: var(--c-beige);
  border-radius: 30px;
}

.test-drive__item img {
  width: 40px;
  height: 40px;
}

.test-drive__img {
  height: 370px;
  margin-top: -48px;
  overflow: hidden;
  border-radius: 0 0 30px 30px;
}

/* ==========================================================================
   CONTACTS — контакты + карта
   ========================================================================== */
.contacts {
  padding-top: 120px;
}

.contacts__grid {
  display: grid;
  grid-template-columns: 442px 1fr;
  gap: 24px;
}

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

.contacts__card {
  position: relative;
  min-height: 413px;
  overflow: hidden;
  color: var(--c-dark);
  background: url(../img/contacts_bg.jpg) center / cover no-repeat var(--c-card);
  border-radius: 30px;
}

.contacts__photo {
  height: 160px;
  overflow: hidden;
  border-radius: 30px;
}

.contacts__body {
  padding: 20px 40px 40px;
}

.contacts__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
  font-size: 18px;
  line-height: normal;
}

.contacts__row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contacts__label {
  font-size: 14px;
  color: #433c37;
}

.contacts__phone {
  font-weight: 700;
}

.contacts__ask {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 40px;
  color: var(--c-dark);
  background: var(--c-beige);
  border-radius: 26px;
}

.contacts__ask-title {
  font-size: 24px;
  font-weight: 700;
  line-height: normal;
}

.contacts__ask-text {
  max-width: 338px;
  font-size: 18px;
  line-height: 1.2;
}

.contacts__map {
  min-height: 0;
  overflow: hidden;
  background: #e8e4df;
  border-radius: 30px;
}

/* ==========================================================================
   FOOTER — подвал
   ========================================================================== */
footer {
  margin-top: 24px;
  padding-bottom: 24px;
}

.footer__wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding: 16px 0;
  font-size: 12px;
  line-height: 1.4;
  border-top: 1px solid var(--c-line);
}

.footer__legal,
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer__legal span:nth-child(2) {
  max-width: 351px;
  line-height: 1.2;
}

.footer__links a,
.footer__terms {
  transition: color var(--transition);
}

.footer__links a:hover,
.footer__terms:hover,
.footer__sinoby:hover {
  color: var(--c-beige);
}

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

.disclamer p {
  white-space: pre-line;
}

/* ==========================================================================
   COOKIE — плашка cookie
   ========================================================================== */
.cookie {
  position: fixed;
  right: max(20px, calc(50vw - 940px));
  bottom: 20px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 640px;
  padding: 16px 20px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--c-dark);
  background: var(--c-card);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.cookie[hidden] {
  display: none;
}

.cookie a {
  text-decoration: underline;
}

.cookie__btn {
  flex-shrink: 0;
  height: 40px;
  font-size: 14px;
}

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

@media (max-width: 1439px) {
  .car {
    grid-template-columns: 42% 1fr;
  }

  .car__title {
    font-size: 36px;
  }

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

  .timer__card {
    gap: 30px;
  }

  .timer__title {
    font-size: 28px;
  }

  .complects__card {
    padding: 0 24px 24px;
  }

  .complects__image {
    margin: 0;
  }

  .complects__benefit {
    left: 24px;
  }
}

@media (max-width: 1279px) {
  .header__addr {
    display: none;
  }

  .banner__title {
    font-size: 26px;
  }

  .pill {
    font-size: 15px;
  }

  .timer__card {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .timer__form {
    flex-basis: auto;
    width: 100%;
    max-width: 520px;
  }

  .timer__clock {
    flex-basis: auto;
    width: 100%;
    max-width: 515px;
  }

  .timer__img {
    flex-basis: 230px;
    margin-left: -30px;
  }

  .advantages__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .advantages__title {
    max-width: 70%;
  }

  .advantages__img {
    right: -20px;
    top: auto;
    bottom: -60px;
  }

  .cars__tabs .cars__tab {
    width: 230px;
  }

  .car {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    min-height: 0;
    background: none;
    border-radius: 0;
    overflow: visible;
  }

  .car::before {
    position: static;
    grid-row: 1 / 4;
    grid-column: 1;
    background: var(--c-card);
    border-radius: 30px;
    opacity: 1;
  }

  .car__info {
    display: contents;
  }

  .car__head {
    grid-row: 1;
    grid-column: 1;
    padding: 30px 40px;
    background: var(--c-beige);
    border-radius: 30px;
  }

  .car__media {
    grid-row: 2;
    grid-column: 1;
    padding: 24px 40px;
  }

  .car__body {
    grid-row: 3;
    grid-column: 1;
    padding: 30px 40px 40px;
    background: var(--c-beige);
    border-radius: 30px;
  }

  .car__gallery {
    grid-row: 4;
    grid-column: 1;
    margin-top: 16px;
    padding: 0;
  }

  .car__gallery .car__gallery-scrollbar.swiper-scrollbar {
    background: rgba(255, 255, 255, 0.15);
  }

  .car__gallery-scrollbar .swiper-scrollbar-drag {
    background: var(--c-beige);
  }

  .car__count {
    top: 24px;
    left: 40px;
  }

  .car__utp {
    margin-top: 0;
  }

  .car__view {
    justify-content: center;
    gap: 30px;
    margin: 0;
  }

  .car__img {
    flex-basis: 70%;
  }

  .car__btns {
    max-width: 472px;
  }

  .complects {
    grid-template-columns: 280px 1fr;
  }

  .complects__list {
    grid-template-columns: 1fr;
  }

  .test-drive__card {
    flex-direction: column;
  }

  .test-drive__form {
    flex: none;
  }

  .test-drive__item {
    flex: 1 1 0;
    width: auto;
    height: 180px;
  }

  .contacts__grid {
    grid-template-columns: 380px 1fr;
  }
}

@media (max-width: 991px) {
  :root {
    --header-h: 64px;
  }

  .header__phone,
  .header__btn {
    display: none;
  }

  .header__top .container {
    min-height: 64px;
  }

  .header__call {
    display: block;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    margin-left: auto;
    background: var(--c-white);
    -webkit-mask: url(../img/ico/phone.svg) center / contain no-repeat;
    mask: url(../img/ico/phone.svg) center / contain no-repeat;
  }

  /* Бургер. */
  .m_btn {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
  }

  .m_btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--c-white);
    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: var(--header-h);
    right: -100%;
    z-index: 2;
    width: 100%;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    background: var(--c-bg);
    transition: right var(--transition);
  }

  .menu.active {
    right: 0;
  }

  .menu .container {
    flex-direction: column;
    gap: 14px;
    padding-top: 20px;
    padding-bottom: 24px;
  }

  .banner {
    height: 600px;
  }

  .banner__card {
    width: 100%;
    margin-top: 44px;
  }

  .banner__pills {
    flex-wrap: wrap;
  }

  .offers__grid {
    grid-template-columns: 1fr;
  }

  .offers__col:last-child {
    flex-direction: column-reverse;
  }

  .complects {
    grid-template-columns: 1fr;
  }

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

  .contacts__grid {
    grid-template-columns: 1fr;
  }

  .contacts__col {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .contacts__map {
    min-height: 450px;
  }

  .footer__wrap {
    flex-wrap: wrap;
  }
}

@media (max-width: 767px) {
  .container {
    padding: 0 15px;
  }

  .section-head__tag {
    font-size: 10px;
  }

  .section-head__title {
    font-size: 7.5vw;
  }

  .btn {
    font-size: 14px;
  }

  .inline-form {
    flex-direction: column;
  }

  .inline-form .form-group,
  .inline-form .form-group:first-child {
    flex: none;
  }

  .inline-form .btn {
    width: 100%;
  }

  .logo-group__logo {
    width: 120px;
    height: 12px;
  }

  .logo-group {
    gap: 8px;
  }

  .logo-group__dealer {
    min-width: 120px;
    padding-left: 8px;
    font-size: 8px;
  }

  .logo-group__dealer b {
    margin-bottom: -2px;
    font-size: 12px;
  }

  .banner {
    display: grid;
    height: auto;
  }

  .banner__media,
  .banner > .container {
    grid-area: 1 / 1;
  }

  .banner__media img {
    position: static;
    display: block;
    height: auto;
  }

  .banner > .container {
    padding: 0 4vw;
  }

  .banner__card {
    gap: 1.9vw;
    margin-top: 8.3vw;
    padding: 6.4vw 3.2vw 3.2vw;
    border-radius: 5.3vw;
  }

  .banner__date {
    gap: 2.1vw;
    margin: -11.2vw 0 0;
    padding: 1.6vw 3.7vw;
    font-size: 3.7vw;
  }

  .banner__date img {
    width: 5.3vw;
    height: 5.3vw;
  }

  .banner__title {
    gap: 1.3vw;
    font-size: 3.9vw;
    line-height: 1.2;
  }

  .banner__line {
    text-wrap: balance;
  }

  .banner__pills {
    flex-wrap: wrap;
    align-self: stretch;
    gap: 1.3vw;
  }

  .pill {
    flex: 1 1 auto;
    justify-content: flex-start;
    gap: 1.6vw;
    padding: 1.3vw 2.7vw;
    font-size: 3vw;
    white-space: normal;
  }

  .pill__ico {
    width: 5.3vw;
    height: 5.3vw;
  }

  .pill--wide {
    flex: none;
    order: 1;
    margin: 0 auto;
  }

  .pill__br {
    display: inline;
  }

  .banner__btn {
    display: none;
  }

  .ticker {
    height: 40px;
  }

  .ticker__group span {
    gap: 20px;
    padding-left: 20px;
    font-size: 14px;
  }

  .ticker__group span::after {
    height: 18px;
  }

  .timer__wrap {
    flex-direction: column;
  }

  .timer__card {
    padding: 24px 16px;
  }

  .timer__title {
    font-size: 5.5vw;
  }

  .timer__clock {
    order: -1;
  }

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

  .timer__img {
    flex-basis: auto;
    margin: -62px 0 0;
  }

  .timer__img img {
    display: block;
    height: auto;
    aspect-ratio: 330 / 200;
    border-radius: 0 0 30px 30px;
  }

  .advantages,
  .cars,
  .instock,
  .offers,
  .test-drive,
  .contacts {
    padding-top: 70px;
  }

  .advantages__list,
  .cars__tabs,
  .complects {
    margin-top: 24px;
  }

  .advantages__list {
    gap: 12px;
  }

  .advantages__item {
    height: 170px;
    padding: 14px;
  }

  .advantages__item:hover {
    transform: none;
  }

  .advantages__title {
    max-width: none;
    font-size: 3.5vw;
  }

  .advantages__num {
    bottom: 14px;
    left: 14px;
    font-size: 12px;
  }

  .advantages__img {
    right: -36px;
    bottom: -44px;
    width: 120px;
    height: 120px;
  }

  .cars__tabs .cars__tab {
    width: 180px;
  }

  .cars__tab-img {
    height: 72px;
  }

  .cars__tab-img img {
    width: 150px;
    height: 60px;
  }

  .cars__tab-name {
    font-size: 4vw;
  }

  .cars__tab-sub {
    font-size: 12px;
  }

  .cars__list {
    gap: 48px;
    margin-top: 30px;
  }

  .car::before {
    border-radius: 24px;
  }

  .car__head {
    padding: 20px 16px 16px;
    border-radius: 24px;
  }

  .car__media {
    padding: 44px 16px 16px;
  }

  .car__body {
    padding: 20px 16px;
    border-radius: 24px;
  }

  .car__gallery {
    margin-top: 12px;
  }

  .car__title {
    margin-bottom: 8px;
    font-size: 7vw;
  }

  .benefit {
    gap: 8px;
    padding: 6px 10px;
    font-size: 4vw;
  }

  .benefit__ico {
    width: 24px;
    height: 24px;
  }

  .car__utp {
    gap: 10px;
    margin: 0 0 20px;
  }

  .car__utp li {
    gap: 10px;
    font-size: 4vw;
  }

  .car__utp img {
    width: 24px;
    height: 24px;
  }

  .car__count {
    top: 12px;
    left: 16px;
  }

  .car__count b {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .car__count span {
    padding: 3px 10px 3px 32px;
    margin-left: -20px;
    font-size: 13px;
  }

  .car__view {
    flex-direction: column;
    gap: 4px;
    margin: 0 0 4px;
  }

  .car__img {
    flex: none;
    align-self: flex-start;
    width: 115%;
    margin-left: -12%;
  }

  .car__colors {
    flex-direction: row;
    justify-content: center;
    width: auto;
    height: 40px;
  }

  .car__gallery .swiper-slide {
    border-radius: 14px;
  }

  .complects__drop-head {
    padding: 16px;
    font-size: 16px;
  }

  .complects__drop-body {
    padding: 0 16px 16px;
  }

  .complects__menu button {
    font-size: 15px;
  }

  .complects__list {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 16px;
  }

  .complects__card {
    padding: 15px 16px 20px;
  }

  .complects__body {
    margin-top: 8px;
  }

  .complects__benefit {
    left: 16px;
  }

  .complects__name {
    font-size: 4.5vw;
  }

  .complects__specs li {
    font-size: 13px;
  }

  .complects__specs b {
    font-size: 15px;
  }

  .form-card {
    min-height: 0;
    padding: 24px 16px;
    border-radius: 24px;
  }

  .form-card__text,
  #credit .form-card__text,
  .test-drive__form .form-card__text {
    margin: 14px 0 16px;
    font-size: 4.5vw;
  }

  .photo-card {
    height: auto;
    aspect-ratio: 668 / 520;
    border-radius: 24px;
  }

  .offers__grid,
  .offers__col {
    gap: 16px;
  }

  .test-drive__card {
    gap: 20px;
  }

  .test-drive__items {
    gap: 12px;
  }

  .test-drive__item {
    height: 140px;
    padding: 14px;
    font-size: 3.5vw;
    border-radius: 20px;
  }

  .test-drive__item img {
    width: 32px;
    height: 32px;
  }

  .test-drive__img {
    height: 220px;
    margin-top: -40px;
    border-radius: 0 0 24px 24px;
  }

  .test-drive__img img {
    object-position: 33% 50%;
  }

  .contacts__col {
    display: flex;
    gap: 16px;
  }

  .contacts__card {
    min-height: 0;
    border-radius: 24px;
  }

  .contacts__photo {
    border-radius: 24px;
  }

  .contacts__body {
    padding: 20px 16px 24px;
  }

  .contacts__list {
    font-size: 16px;
  }

  .contacts__ask {
    padding: 24px 16px;
    border-radius: 24px;
  }

  .contacts__ask-title {
    font-size: 5.3vw;
  }

  .contacts__ask-text {
    font-size: 16px;
  }

  .contacts__map {
    min-height: 360px;
    border-radius: 24px;
  }

  .footer__wrap {
    flex-direction: column;
    gap: 14px;
  }

  .cookie {
    right: 10px;
    bottom: 10px;
    left: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
  }

  /* Попап на всю ширину. */
  .popup_container,
  .fancybox-slide--html .popup_container {
    width: 100%;
    padding: 30px 15px;
  }

  .form_title {
    font-size: 6vw;
  }

  .form_subtitle {
    margin: -18px 0 20px;
    font-size: 3.5vw;
  }
}
