/* ==========================================================================
   TOKENS
   Плейсхолдеры проекта — цвет/шрифт/размеры подменяются под конкретный макет.
   В правилах используем var(--…), а не хардкод.
   ========================================================================== */
:root {
  --c-dark: #141414;
  --c-accent: #eb9201;
  --c-accent-h: #ffa51c;
  --c-white: #fff;
  --c-muted: #c9c9c9;
  --c-border: #505050;
  --font-base: "TENETSans", sans-serif;
  --font-exp: "TENETSansSemiExp", "TENETSans", sans-serif;
  --container-w: 1420px;
  --control-h: 48px;
  --radius: 10px;
  --radius-lg: 20px;
  --header-h: 72px;
  --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: #000;
  overflow-x: hidden;
}

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

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;
}

/* ==========================================================================
   BUTTONS — .btn + модификаторы .btn--white / .btn--glass
   ========================================================================== */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--control-h);
  padding: 0 20px;
  font: 700 16px/1.25 var(--font-base);
  color: var(--c-white);
  text-align: center;
  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),
    box-shadow var(--transition),
    transform var(--transition);
}

.btn:hover {
  background: var(--c-accent-h);
  border-color: var(--c-accent-h);
  color: var(--c-white);
  box-shadow: 0 6px 20px rgb(235 146 1 / 35%);
}

.btn:active {
  box-shadow: none;
}

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

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

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

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

.btn--glass {
  background: rgb(255 255 255 / 20%);
  border-color: var(--c-white);
}

.btn--glass:hover {
  background: rgb(255 255 255 / 35%);
  border-color: var(--c-white);
  box-shadow: none;
}

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

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

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

.form-group input:hover,
.form-group select:hover {
  background: rgb(255 255 255 / 30%);
}

.form-group input:focus,
.form-group select:focus {
  background: rgb(255 255 255 / 30%);
  border-color: var(--c-accent);
}

.form-group select {
  appearance: none;
  background-color: rgb(255 255 255 / 20%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E");
  background-position: right 18px center;
  background-repeat: no-repeat;
}

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

/* Согласие на обработку ПД — мелкая сноска под формой. */
.agree-field {
  position: relative;
  display: block;
  width: fit-content;
  padding-left: 19px;
  font-size: 12px;
  line-height: 1.25;
  color: var(--c-white);
}

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

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

.agree-field input {
  position: absolute;
  top: 2px;
  left: 0;
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: var(--c-accent);
}

/* Подсветка невалидного поля + блок кнопки без согласия (классы вешает 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: 460px;
  max-width: 100%;
  padding: 32px;
  color: var(--c-white);
  background: var(--c-dark);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
}

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

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

.form_title {
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  text-align: center;
}

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

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

.fancybox-close {
  width: 22px !important;
  height: 22px !important;
  top: -25px !important;
  right: -25px !important;
  background:
    linear-gradient(var(--c-white), var(--c-white)) center / 100% 2px no-repeat,
    linear-gradient(var(--c-white), var(--c-white)) center / 2px 100% no-repeat !important;
  transform: rotate(45deg);
  transition: opacity var(--transition);
}

.fancybox-close:hover {
  opacity: 0.6;
}

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

/* ==========================================================================
   HEADER — фикс-шапка (активная разметка)
   ========================================================================== */
header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 15;
  height: 72px;
  background: #000;
  backdrop-filter: blur(22px);
}

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

.logo-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-group img {
  display: block;
}

.logo-group__item--main {
  padding-right: 12px;
  border-right: 1px solid #7a7a7a;
}

.logo-group__item--main img {
  width: 162px;
}

.logo-group__item--partner img {
  width: 147px;
}

.header__addr {
  font-size: 16px;
}

.header__phone {
  font-size: 16px;
  font-weight: 700;
  transition: color var(--transition);
}

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

header .btn {
  width: 215px;
}

.m_btn {
  display: none;
}

/* ==========================================================================
   NAV — навигация
   ========================================================================== */
.menu {
  position: fixed;
  top: 72px;
  right: 0;
  left: 0;
  z-index: 14;
  height: 44px;
  background: rgb(0 0 0 / 50%);
  backdrop-filter: blur(22px);
}

.menu .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

.menu__group--model {
  text-transform: uppercase;
}

.menu a {
  flex: none;
  font-size: 16px;
  white-space: nowrap;
  transition: color var(--transition);
}

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

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

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

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

.banner::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgb(0 0 0 / 0%) 80%, #000 99%);
  pointer-events: none;
}

.banner .container {
  height: 100%;
  padding-top: 50px;
  text-align: center;
}

/* .banner__glow {
  position: absolute;
  top: 32px;
  left: 50%;
  z-index: -1;
  width: 1207px;
  max-width: 100%;
  height: 215px;
  background: rgb(255 255 255 / 20%);
  border-radius: 50%;
  transform: translateX(-50%);
  filter: blur(60px);
}

.banner__title {
  max-width: 1067px;
  margin: 0 auto;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.26;
  color: #000;
  text-transform: uppercase;
}

.banner .btn {
  width: 278px;
  margin: 13px auto 0;
} */

.banner-heading {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 25px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  box-sizing: border-box;
  color: #FFFFFF;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.9) 30%, rgba(0, 0, 0, 0.9) 70%, rgba(0, 0, 0, 0) 100%);
  overflow: hidden;
}

.banner__deadline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.banner__deadline-text {
  font-size: 22px;
  line-height: 28px;
  font-weight: 400;
}

.badge-icon {
  position: relative;
  width: 32px;
  height: 32px;
  min-width: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  border: 1px solid #505050;
  border-radius: 6px;
  box-sizing: border-box;
  overflow: hidden;
}

.badge-icon::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 90%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  background: var(--c-accent);
  filter: blur(14px);
  z-index: 0;
  pointer-events: none;
}

.badge-icon img,
.badge-icon svg {
  position: relative;
  z-index: 1;
  display: block;
}

.banner__title {
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  max-width: 1040px;
}

.banner__title span{
  color: #eb9201;
  background-color: #fff;
  border-radius: 12px;
  padding: 0px 6px;
}

.banner__subtitle {
  margin: 0;
  font-size: 22px;
  line-height: 28px;
  font-weight: 400;
  text-transform: uppercase;
  max-width: 768px;
}

.banner__badges {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 4px;
}

.banner__badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  height: 37px;
}

.banner__badge .badge-icon {
  margin-right: -8px;
  z-index: 2;
  overflow: hidden;
  width: 37px;
  height: 37px;
}

.banner__badge .badge-icon img {
  width: 35px;
  height: 35px;
}

.banner__badge .badge-text {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 1px 16px 0 16px;
  background: #000000;
  border: 1px solid #505050;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 35px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  margin-left: 10px;
}

.banner__badge .badge-text::before {
  content: '';
  position: absolute;
  left: -25px;
  bottom: -50px;
  width: 67px;
  height: 67px;
  background: var(--c-accent);
  filter: blur(17px);
  z-index: -1;
  pointer-events: none;
}

.banner-badges-mob {
  display: none;
}

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

.timer__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 32px;
  background: rgb(20 20 20 / 60%);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(22px);
}

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

.timer__title {
  max-width: 476px;
  margin-bottom: 16px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

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

.timer__row .form-group {
  width: 260px;
  flex: none;
}

.timer__row .btn {
  width: 260px;
  flex: none;
}

.timer__clock {
  width: 632px;
  flex: none;
}

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

.car {
  position: relative;
  height: 509px;
}

.car--benefit .car__adv {
  top: 74px; 
  gap: 10px;
}

.car+.car {
  margin-top: 80px;
}

/* Плитка 44×44 с оранжевым свечением — иконки преимуществ и плашки. */
.car__tile {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}

.car__tile::before {
  position: absolute;
  top: 17px;
  left: 17px;
  width: 49px;
  height: 49px;
  content: "";
  background: var(--c-accent);
  border-radius: 50%;
  filter: blur(17px);
}

.car__tile img {
  position: absolute;
  inset: 0;
  width: 44px;
  height: 44px;
}

/* .car__head {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 117px;
  padding: 0 32px;
  overflow: hidden;
  background: var(--c-dark);
  border: 1px solid var(--c-border);
  border-radius: 30px;
} */

.car__head {
  position: absolute;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 44px;
  height: 117px;
  padding: 0 32px;
  overflow: hidden;
  background: var(--c-dark);
  border: 1px solid var(--c-border);
  border-radius: 30px;
}

.car__head> :nth-child(1) {
  grid-column: 1;
}

.car__head> :nth-child(2) {
  grid-column: 2;
}

.car__head> :nth-child(3) {
  grid-column: 4;
  justify-self: end;
}

.car__head::before {
  position: absolute;
  inset: 0;
  content: "";
  background: url(../img/card_top.jpg) center / cover no-repeat;
  opacity: 0.1;
  mix-blend-mode: lighten;
  pointer-events: none;
}

.car__title {
  position: relative;
  font-size: 32px;
  line-height: 53px;
  text-transform: uppercase;
}

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

.car__badge {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ************************* */
.car__status {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  height: 44px;
  padding: 0 16px 0 0;
  box-sizing: border-box;
  background: #000000;
  border-radius: 11px;
  position: relative;
  user-select: none;
  flex-shrink: 0;
}

.car__status-icon {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  display: flex;
  justify-content: center;
  z-index: 3;
}

.car__status-icon::before {
  position: absolute;
  top: 17px;
  left: 17px;
  width: 49px;
  height: 49px;
  content: "";
  background: var(--c-accent);
  border-radius: 50%;
  filter: blur(17px);
}

.car__status-text {
  font-style: normal;
  font-weight: 400;
  font-size: 22px;
  line-height: 28px;
  text-transform: uppercase;
  color: #FFFFFF;
  white-space: nowrap;
}

/* ************************* */

.car__badge-text {
  position: relative;
  display: flex;
  align-items: center;
  width: 282px;
  height: 44px;
  padding: 0 15px;
  overflow: hidden;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  background:
    radial-gradient(circle 50px at 15px 52px,
      rgb(235 146 1 / 85%),
      rgb(235 146 1 / 0%) 100%),
    #000;
  border: 1px solid var(--c-border);
  border-radius: 12px;
}

.car__body {
  position: absolute;
  inset: 129px 0 0;
  background: var(--c-dark);
  border: 1px solid var(--c-border);
  border-radius: 30px;
}

.car__adv {
  position: absolute;
  top: 32px;
  left: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  list-style: none;
  max-width: 380px;
}

.car__adv li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 22px;
  /* white-space: nowrap; */
}

.car__benefit {
  position: absolute;
  top: 24px;
  left: 32px;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  font-size: 22px;
  font-weight: 700;
  color: #eb9201;
  white-space: nowrap;
  background: #fff;
  border-radius: 12px;
}

.car__photo {
  position: absolute;
  top: 45px;
  left: 416px;
  z-index: 2;
  width: 628px;
  pointer-events: none;
}

/* ********************************* */
/* .car__photo {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
} */

.car__photo img {
  display: block;
  max-width: 90%;
  height: auto;
}

.car__specs {
  position: absolute;
  bottom: -45px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  width: max-content;
  max-width: calc(100% - 32px);
  box-sizing: border-box;
  z-index: 2;
}

.car__spec-item {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 144px;
  height: 47px;
  padding: 4px 12px;
  background: #000000;
  border-left: 1px solid var(--c-accent);
  border-radius: 8px;
  flex: none;
}

.car__spec-label {
  font-family: var(--font-base);
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  color: var(--c-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.car__spec-val {
  font-family: var(--font-base);
  font-style: normal;
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  color: var(--c-white);
}

/* *********************************** */
.car__btns {
  position: absolute;
  inset: auto 32px 32px;
  display: flex;
  gap: 12px;
}

.car__btns .btn {
  width: calc((100% - 24px) / 3);
}

/* Вертикальная галерея миниатюр. */
.car__gallery {
  position: absolute;
  top: 144px;
  left: 1083px;
  z-index: 3;
  width: 245px;
  height: 274px;
}

.car__gallery .car_gallery_slider {
  position: absolute;
  top: 7px;
  left: 0;
  width: 245px;
  height: 260px;
}

/* Шаг слайдов меньше их высоты, поэтому в контейнер попадает больше трёх —
   лишние гасим, видимы только предыдущий, активный и следующий. */
.car__gallery .swiper-slide {
  z-index: 1;
  opacity: 0;
  transition: opacity var(--transition);
}

.car__gallery .swiper-slide-prev,
.car__gallery .swiper-slide-active,
.car__gallery .swiper-slide-next {
  opacity: 1;
}

.car__gallery .swiper-slide-active {
  z-index: 2;
}

/* Масштаб вешаем на ссылку внутри слайда: сам .swiper-slide плагин занимает
   под свой transform. */
.car__gallery .swiper-slide a {
  display: block;
  height: 100%;
  transition: transform var(--transition);
  transform: scale(0.875);
}

.car__gallery .swiper-slide-active a {
  transform: scale(1);
}

.car__gallery .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.car__arrow {
  position: absolute;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgb(0 0 0 / 60%);
  border: 1px solid rgb(255 255 255 / 80%);
  border-radius: 6px;
  cursor: pointer;
  backdrop-filter: blur(3px);
  transform: translateX(-50%);
  transition:
    background var(--transition),
    border-color var(--transition);
}

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

.car__arrow--prev {
  top: 0;
}

.car__arrow--prev img {
  transform: rotate(180deg);
}

.car__arrow--next {
  top: 240px;
}

.car__arrow.swiper-button-disabled {
  opacity: 0.4;
  cursor: default;
}

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

/* ==========================================================================
   SECTION — общие элементы секций (надзаголовок, заголовок, строка формы)
   ========================================================================== */
.section__eyebrow {
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 1.28;
  color: #eaeaea;
}

.section__eyebrow::before {
  position: relative;
  top: -1px;
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  content: "";
  vertical-align: middle;
  background: var(--c-accent);
  border-radius: 50%;
}

.section__eyebrow span {
  text-transform: uppercase;
}

.section__title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.26;
  text-transform: uppercase;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 568px;
  max-width: 100%;
}

.form-row .form-group,
.form-row .btn {
  width: 280px;
  flex: none;
}

.form-row .agree-field {
  width: 100%;
}

/* ==========================================================================
   TRADEIN — трейд-ин
   ========================================================================== */
.tradein {
  position: relative;
  height: 634px;
  margin-top: 120px;
}

.tradein__img {
  position: absolute;
  inset: 0;
}

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

.tradein::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgb(0 0 0 / 0%) 47.7%, #000 99%);
  pointer-events: none;
}

.tradein .container {
  height: 100%;
}

.tradein__wrap {
  position: absolute;
  top: 380px;
  left: 30px;
  z-index: 2;
}

.tradein__comment {
  width: 563px;
  max-width: 100%;
  margin: 32px 0 20px;
  font-size: 22px;
  line-height: 1.27;
}

.tradein__adv {
  position: absolute;
  top: 380px;
  right: 30px;
  z-index: 2;
  display: flex;
  gap: 24px;
}

.tradein__card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 108px;
  width: 272px;
  height: 254px;
  padding: 32px;
  font-size: 18px;
  background: rgb(0 0 0 / 20%);
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(7px);
}

/* Плитка 36×36 — иконки в контактах и трейд-ине. */
.tile--36 {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--c-border);
  border-radius: 8px;
}

.tile--36::before {
  position: absolute;
  top: 17px;
  left: 17px;
  width: 49px;
  height: 49px;
  content: "";
  background: var(--c-accent);
  border-radius: 50%;
  filter: blur(17px);
}

.tile--36 img {
  position: absolute;
  inset: 0;
  width: 36px;
  height: 36px;
}

/* ==========================================================================
   CREDIT — кредит
   ========================================================================== */
.credit {
  position: relative;
  height: 600px;
  margin-top: 120px;
}

.credit__img {
  position: absolute;
  inset: 0 auto 0 0;
  width: 982px;
  max-width: min(982px, calc(50vw + 22px));
}

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

.credit__img::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgb(0 0 0 / 0%) 87.6%, #000 99.8%);
}

.credit .container {
  height: 100%;
}

.credit__wrap {
  position: absolute;
  top: 0;
  right: 30px;
  width: 568px;
}

.credit__comment {
  margin: 32px 0 16px;
  font-size: 22px;
  line-height: 1.27;
}

.credit__comment span {
  text-transform: uppercase;
}

.credit__photo {
  margin-top: 62px;
}

.credit__photo img {
  width: 568px;
  max-width: 100%;
  height: 288px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* ==========================================================================
   TEST-DRIVE — пробная поездка
   ========================================================================== */
.test-drive {
  position: relative;
  height: 705px;
  margin-top: 52px;
}

.test-drive__img {
  position: absolute;
  inset: 0;
}

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

.test-drive .container {
  height: 100%;
}

.test-drive__wrap {
  position: absolute;
  top: 80px;
  left: 30px;
  z-index: 2;
}

.test-drive__comment {
  width: 449px;
  max-width: 100%;
  margin-top: 32px;
  font-size: 22px;
  line-height: 1.27;
}

.test-drive__form {
  position: absolute;
  top: 68px;
  right: 30px;
  z-index: 2;
  width: 417px;
  padding: 32px;
  background: rgb(0 0 0 / 20%);
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 30px;
  backdrop-filter: blur(27px);
}

.test-drive__form-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.test-drive__form-note {
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.25;
  color: #e3e3e3;
}

.test-drive__label {
  margin: 32px 0 16px;
  font-size: 16px;
  line-height: 1.25;
}

.test-drive__models {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.test-drive__model {
  flex: 1;
  cursor: pointer;
}

.test-drive__model input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.test-drive__model-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  height: 110px;
  padding: 6px;
  background: var(--c-dark);
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.test-drive__model:hover .test-drive__model-box {
  border-color: rgb(235 146 1 / 60%);
}

.test-drive__model input:checked+.test-drive__model-box {
  border-color: var(--c-accent);
}

/* Галочка выбранной модели. */
.test-drive__model input:checked+.test-drive__model-box::after {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  font-size: 9px;
  font-weight: 700;
  color: #000;
  content: "✓";
  background: var(--c-accent);
  border-radius: 50%;
}

.test-drive__model-name {
  font-size: 16px;
  text-transform: uppercase;
}

.test-drive__form .form-group {
  margin-bottom: 8px;
}

.test-drive__form .btn {
  width: 100%;
  margin: 8px 0;
}

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

#map1 {
  height: 711px;
  background: var(--c-dark);
}

.contacts::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(0deg, rgb(0 0 0 / 0%) 77%, #000 99%);
  pointer-events: none;
}

.contacts .container {
  position: absolute;
  inset: 100px 0 auto;
  z-index: 2;
}

.contacts__wrap {
  width: 383px;
  padding-bottom: 32px;
  background: rgb(0 0 0 / 40%);
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 16px;
  backdrop-filter: blur(7px);
}

.contacts__photo img {
  width: 100%;
  height: 167px;
  object-fit: cover;
  border-radius: 15px;
}

.contacts__body {
  padding: 32px 32px 0;
}

.contacts__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0 16px;
}

.contacts__list>* {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
}

.contacts__phone {
  font-weight: 700;
  transition: color var(--transition);
}

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

.contacts__cta-text {
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.25;
}

.contacts .btn {
  width: 317px;
  max-width: 100%;
}

/* ==========================================================================
   FOOTER — подвал
   ========================================================================== */
footer {
  position: relative;
  height: 340px;
  overflow: hidden;
  background: #000;
}

.footer__wrap {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding-top: 32px;
  font-size: 16px;
}

.footer__links a,
.footer__sinoby {
  transition: color var(--transition);
  margin-inline: 10px;
}



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

.footer__logo {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 100%;
  max-width: 1920px;
  transform: translateX(-50%);
  pointer-events: none;
}

.footer__logo img {
  width: 100%;
}

.disclamer {
  position: relative;
  z-index: 2;
  display: none;
  padding: 24px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--c-muted);
}

.disclamer a {
  text-decoration: underline;
}

/* ==========================================================================
   MEDIA — медиазапросы
   ========================================================================== */
@media (min-width: 769px) and (max-width: 1160px) {
  .car__head {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    height: auto;
    padding: 20px 15px;
  }

  .car__body {
    margin-top: 70px;
    height: 380px;
  }

  .car__specs {
    max-width: 350px;
    display: flex;
    flex-wrap: wrap;
    bottom: -100px;
    left: 195px;
  }
}

@media (max-width: 1050px) {
  .banner-heading {
    padding: 15px 20px;
    gap: 5px;
  }
}

@media (max-width: 767px) {
  :root {
    --header-h: 60px;
  }

  .container {
    padding: 0 15px;
  }

  /* HEADER */
  header {
    height: 60px;
  }

  header .container {
    justify-content: flex-start;
  }

  .logo-group {
    gap: 10px;
  }

  .logo-group__item--main {
    padding-right: 8px;
  }

  .logo-group__item--main img {
    width: 110px;
  }

  .logo-group__item--partner img {
    width: 100px;
  }

  .header__addr,
  header .btn {
    display: none;
  }

  /* Телефон на мобиле — такая же плитка со свечением, как в контактах. */
  .header__phone {
    position: relative;
    width: 36px;
    height: 36px;
    margin: 0 46px 0 auto;
    overflow: hidden;
    font-size: 0;
    background: #000;
    border: 1px solid var(--c-border);
    border-radius: 8px;
  }

  .header__phone::before {
    position: absolute;
    top: 17px;
    left: 17px;
    width: 49px;
    height: 49px;
    content: "";
    background: var(--c-accent);
    border-radius: 50%;
    filter: blur(17px);
  }

  .header__phone::after {
    position: absolute;
    inset: 0;
    content: "";
    background: url(../img/ico/phone.svg) center / 36px 36px no-repeat;
  }

  /* Бургер. */
  .m_btn {
    position: absolute;
    top: 19px;
    right: 15px;
    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: 60px;
    right: -100%;
    left: auto;
    z-index: 14;
    width: 100%;
    height: auto;
    padding: 20px 0;
    background: rgb(0 0 0 / 90%);
    transition: right var(--transition);
  }

  .menu.active {
    right: 0;
  }

  .menu .container,
  .menu__group {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    row-gap: 10px;
  }

  /* BANNER — высоту задаёт картинка в потоке, текст лежит поверх абсолютом */
  .banner {
    height: auto;
    padding: 0;
  }

  .banner__media {
    position: relative;
    z-index: 0;
    display: block;
  }

  .banner__media img {
    height: auto;
  }

  .banner .container {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding-top: 0;
  }

  /* .banner__title {
    font-size: 6.4vw;
    line-height: 1.2;
  }

  .banner__glow {
    top: 5vw;
    height: 40vw;
  }

  .banner .btn {
    width: 72vw;
    height: 12vw;
    max-width: none;
    min-height: 44px;
    margin-top: 5vw;
    font-size: 4vw;
  } */

  .banner-heading {
    margin-top: 25px;
    padding: 24px 16px;
    gap: 12px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.72) 30%, rgba(0, 0, 0, 0.72) 70%, rgba(0, 0, 0, 0.4) 100%);

  }

  .banner__title {
    font-size: 22px;
  }

  .banner__subtitle,
  .banner__deadline-text {
    font-size: 4.3vw;
  }

  .banner__badges {
    align-items: center;
    gap: 12px;
  }

  .banner__badge .badge-text {
    font-size: 15px;
  }

  /* TIMER */
  .timer {
    margin-top: 0;
  }

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

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

  .timer__form,
  .timer__clock {
    width: 100%;
  }

  .timer__title {
    font-size: 18px;
  }

  .timer__row {
    flex-wrap: wrap;
  }

  .timer__row .form-group,
  .timer__row .btn {
    width: 100%;
  }

  /* SECTION */
  .section__title {
    font-size: 24px;
  }

  /* CARS */
  .cars {
    padding-top: 60px;
  }

  /* Порядок на мобиле: шапка → авто → преимущества/кнопки → галерея. */
  .car {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  .car__head {
    order: 1;
  }

  .car__photo {
    order: 2;
  }

  .car__benefit {
    position: absolute;
    top: 140px;
    left: 13px;
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 16px;
    font-size: 22px;
    font-weight: 700;
    color: #eb9201;
    white-space: nowrap;
    background: #fff;
    border-radius: 12px;
  }

    .car--benefit .car__adv {
    top: 17px;
    gap: 10px;
    margin-top: 20px; 
  }

  .car__body {
    order: 3;
  }

  .car__gallery {
    order: 4;
  }

  /* .car+.car {
    margin-top: 40px;
  }

  .car__head {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    height: auto;
    padding: 20px 15px;
    border-radius: 20px;
  }

  .car__title {
    font-size: 22px;
    line-height: 1.4;
  }

  .car__title b {
    font-size: 28px;
  }

  .car__badge {
    width: 100%;
  }

  .car__badge-text {
    width: auto;
    flex: 1;
    padding: 0 12px;
    font-size: 15px;
  } */

  .car__head {
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    height: auto;
    padding: 20px 15px;
    border-radius: var(--radius-lg, 20px);
  }

  .car__head> :nth-child(1),
  .car__head> :nth-child(2),
  .car__head> :nth-child(3) {
    grid-column: auto;
    justify-self: stretch;
    width: 100%;
  }

  /* Заголовок модели */
  .car__title {
    font-size: 4.3vw;
    line-height: 1.5;
    font-family: var(--font-base);
  }

  .car__title b {
    font-size: 5vw;
  }

  .car__status {
    width: 100%;
    height: 40px;
    gap: 10px;
    padding-right: 12px;
    border-radius: var(--radius, 10px);
  }

  .car__status-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius, 10px);
  }

  .car__status-icon img {
    width: 32px;
    height: 32px;
    margin: 5px 0 0 3px;
  }

  .car__status-text {
    font-size: 15px;
    line-height: 20px;
  }

  .car__badge {
    width: 100%;
    display: flex;
  }

  .car__badge-text {
    width: auto;
    flex: 1;
    padding: 0 12px;
    font-size: 15px;
  }

  .car__body {
    position: relative;
    inset: auto;
    margin-top: -130px;
    padding: 150px 15px 20px;
    border-radius: 20px;
  }

  .car__photo {
    position: relative;
    top: auto;
    left: auto;
    z-index: 2;
    width: 100%;
    margin: 10px 0 0;
  }

  .car__specs {
    position: static;
    transform: none;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    width: 110%;
  }

  .car__spec-item {
    min-width: 100px;
    padding: 4px 0 4px 10px;
    height: auto;
  }

  .car__spec-label {
    font-size: 11px;
    line-height: 14px;
  }

  .car__spec-val {
    font-size: 14px;
    line-height: 18px;
  }

  .car__adv {
    position: relative;
    top: auto;
    left: auto;
    gap: 14px;
  }

  .car__adv li {
    font-size: 16px;
    white-space: normal;
  }

  .car__btns {
    position: relative;
    inset: auto;
    flex-direction: column;
    margin-top: 24px;
  }

  .car__btns .btn {
    width: 100%;
  }

  .car__gallery {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: calc(35vw - 20px);
    min-height: 105px;
    margin-top: 20px;
  }

  .car__gallery .car_gallery_slider {
    top: 0;
    width: 100%;
    height: 100%;
  }

  .car__gallery .swiper-slide {
    height: 100%;
  }

  .car__arrow--prev,
  .car__arrow--next {
    top: 50%;
    left: auto;
    transform: translateY(-50%);
  }

  .car__arrow--prev {
    left: 0;
  }

  .car__arrow--prev img {
    transform: rotate(90deg);
  }

  .car__arrow--next {
    right: 0;
  }

  .car__arrow--next img {
    transform: rotate(-90deg);
  }

  /* TRADEIN */
  .tradein {
    height: auto;
    margin-top: 60px;
    padding: 0;
  }

  .tradein__img {
    position: relative;
    display: block;
  }

  .tradein__img img {
    height: auto;
  }

  .tradein__img::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgb(0 0 0 / 0%) 60%, #000 99%);
  }

  .tradein::after {
    display: none;
  }

  .tradein__wrap,
  .tradein__adv {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
  }

  .tradein__wrap {
    margin-top: -24px;
  }

  .section__eyebrow {
    font-size: 14px;
  }

  .tradein__comment {
    margin: 20px 0;
    font-size: 16px;
  }

  .tradein__adv {
    flex-direction: column;
    margin-top: 32px;
  }

  .tradein__card {
    width: 100%;
    height: auto;
    gap: 20px;
    padding: 20px;
    font-size: 16px;
  }

  /* CREDIT */
  .credit {
    height: auto;
    margin-top: 60px;
  }

  .credit__img {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .credit__img img {
    height: auto;
  }

  .credit__img::after {
    background: linear-gradient(180deg, rgb(0 0 0 / 0%) 60%, #000 99%);
  }

  .credit__wrap {
    position: relative;
    right: auto;
    width: 100%;
    margin-top: 24px;
  }

  .credit__comment {
    margin: 20px 0;
    font-size: 16px;
  }

  .credit__comment br {
    display: none;
  }

  .credit__photo {
    display: none;
  }

  /* Формы секций — во всю ширину блока. */
  .form-row,
  .form-row .form-group,
  .form-row .btn {
    width: 100%;
  }

  /* TEST-DRIVE */
  .test-drive {
    height: auto;
    margin-top: 60px;
    padding: 0 0 40px;
  }

  .test-drive__img {
    position: relative;
    display: block;
  }

  .test-drive__img img {
    height: auto;
  }

  .test-drive__img::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgb(0 0 0 / 0%) 60%, #000 99%);
  }

  .test-drive__wrap,
  .test-drive__form {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
  }

  .test-drive__wrap {
    margin-top: 24px;
  }

  .test-drive__comment {
    margin-top: 20px;
    font-size: 16px;
  }

  .test-drive__form {
    width: 100%;
    margin-top: 32px;
    padding: 20px 15px;
    border-radius: 20px;
  }

  /* CONTACTS */
  .contacts {
    margin-top: 60px;
  }

  #map1 {
    height: 420px;
  }

  .contacts .container {
    position: relative;
    inset: auto;
    padding-top: 24px;
  }

  .contacts__wrap {
    width: 100%;
    margin-bottom: 24px;
  }

  .contacts__body {
    padding: 20px 15px 0;
  }

  .contacts__list>* {
    font-size: 16px;
  }

  .contacts::after {
    display: none;
  }

  /* FOOTER */
  footer {
    height: auto;
    padding-bottom: 30px;
  }

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

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

  .footer__logo {
    width: 100%;
  }

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

  /* fancybox на мобиле — на весь экран. */
  .fancybox-wrap,
  .fancybox-inner,
  .fancybox-type-image {
    width: 100% !important;
    left: 0 !important;
    margin: 0 !important;
  }

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

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

  .banner-heading {
    max-width: 550px;
    width: 100%;
    padding: 20px 0;
    margin: 20px auto;
  }

  .banner__subtitle,
  .banner__deadline-text {
    font-size: 6vw;
  }

  .banner__title {
    font-weight: 700;
    font-size: 5vw;
    line-height: 120%;
    text-align: center;
    text-transform: uppercase;
    margin: 0 auto;
    padding: 0 30px
  }

  .banner__subtitle {
    font-style: normal;
    font-weight: 400;
    font-size: 4.5vw;
    line-height: 120%;
    display: inline-block;
    align-items: center;
    text-align: center;
    text-transform: uppercase;
    margin-top: 5px;
  }

  .banner__badges {
    display: none;
  }

  .banner-badges-mob {
    display: block;
    padding: 20px 0;
  }

  .banner__badges--mobile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
  }

  .banner__badges--mobile .banner__badge {
    display: inline-flex;
    margin: 0;
  }
}

.alert {
  font-size: 20px;
  color: #000;
}