/* ============ Токены ============ */
:root {
  color-scheme: light;
  --bg: #d4d4d4;
  --bg-2: #c9c9c9;
  --ink: #0d0d0d;
  --ink-2: #3d3d3d;
  --muted: #747474;
  --muted-2: #9a9a9a;
  --line: rgba(255, 255, 255, .6);
  --line-dark: rgba(0, 0, 0, .08);
  --green: #0e8c55;
  --green-2: #0a7445;
  --green-soft: rgba(14, 140, 85, .12);
  --glass: linear-gradient(180deg, rgba(238, 238, 238, .66), rgba(222, 222, 222, .5));
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 24px 48px -28px rgba(0, 0, 0, .28);
  --r-xl: 30px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --pad: clamp(16px, 3.2vw, 44px);
  --header-h: 76px;
  --gap: clamp(72px, 9vw, 128px);   /* промежуток между блоками: каждая секция даёт половину сверху и снизу */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ============ База ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1100px 700px at 78% -8%, #e6e6e6 0%, transparent 60%),
    radial-gradient(900px 600px at -10% 30%, #dcdcdc 0%, transparent 60%),
    var(--bg);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--green); color: #fff; }

.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }

.ic {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--glass-shadow);
}
.glass--blur {
  background: linear-gradient(180deg, rgba(236, 236, 236, .6), rgba(220, 220, 220, .48));
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  backdrop-filter: blur(22px) saturate(1.2);
}

.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; color: var(--muted);
  margin-bottom: 20px;
}
.label::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.label--light { color: rgba(255, 255, 255, .78); }
.label--light::before { background: #fff; }

.h2 {
  font-size: clamp(34px, 5vw, 76px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 16ch;
}

.section-head { margin-bottom: clamp(36px, 5vw, 64px); }

/* Маски анимации текста: запас по краям, чтобы не обрезать буквы и выносные элементы */
.char-mask, .line-mask { padding: .08em .1em .16em; margin: -.08em -.1em -.16em; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 26px;
  border-radius: 14px;
  font-size: 16px; font-weight: 500; white-space: nowrap;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.btn .ic { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn--sm { height: 44px; padding: 0 18px; font-size: 15px; }
.btn--green { background: var(--green); color: #fff; box-shadow: 0 12px 24px -12px rgba(14, 140, 85, .7); }
.btn--green:hover { background: var(--green-2); }
.btn--glass { background: rgba(240, 240, 240, .6); border: 1px solid var(--line); box-shadow: var(--glass-shadow); }
.btn--glass:hover { background: rgba(250, 250, 250, .8); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: #f1f1f1; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 18px;
  border-radius: var(--r-sm);
  background: rgba(232, 232, 232, .72);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
  font-size: 15px; white-space: nowrap;
  transition: background-color .3s var(--ease);
}
.pill .ic { width: 17px; height: 17px; }
.pill:hover { background: rgba(245, 245, 245, .9); }

.icon-btn, .tile-btn {
  display: inline-grid; place-items: center; flex: none;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: rgba(232, 232, 232, .72);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
  transition: background-color .3s var(--ease), color .3s;
}
.icon-btn:hover { background: #f3f3f3; }
.icon-btn.is-active { background: #bcbcbc; }
.icon-btn:disabled { opacity: .4; cursor: default; }
.tile-btn { width: 44px; height: 44px; border-radius: 12px; }
.tile-btn .ic { width: 18px; height: 18px; }
.tile-btn--green { background: var(--green); color: #fff; border-color: transparent; }

.radio {
  width: 20px; height: 20px; border-radius: 50%; flex: none;
  border: 2px solid #9d9d9d; position: relative; transition: border-color .3s;
}
.radio::after {
  content: ''; position: absolute; inset: 3px; border-radius: 50%;
  background: var(--green); transform: scale(0); transition: transform .35s var(--ease);
}
.radio.is-on { border-color: var(--green); }
.radio.is-on::after { transform: scale(1); }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* ============ Прелоадер ============ */
.preloader { display: none; }
html.js .preloader {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--pad) + 8px) var(--pad);
  background: #0b0b0c;
  color: #f3f3f3;
  animation: preloader-failsafe 0s 5s forwards;
}
@keyframes preloader-failsafe { to { visibility: hidden; } }
.preloader__logo { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 18px; }
.preloader__logo img { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .22); }
.preloader__count { font-size: clamp(90px, 20vw, 300px); font-weight: 500; letter-spacing: -0.06em; line-height: .8; }
.preloader__bar { height: 2px; background: rgba(255, 255, 255, .1); border-radius: 2px; overflow: hidden; }
.preloader__bar span { display: block; height: 100%; background: var(--green); transform-origin: left; transform: scaleX(0); }

/* ============ Шапка ============ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding-top: 14px;
  transition: transform .6s var(--ease);
}
.header.is-hidden { transform: translateY(-120%); }
.header__inner {
  position: relative;
  max-width: 1440px; margin: 0 auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.header.is-scrolled .header__inner::before {
  content: ''; position: absolute; inset: -14px 0 -10px; z-index: -1;
  background: linear-gradient(180deg, rgba(212, 212, 212, .92), rgba(212, 212, 212, 0));
  pointer-events: none;
}
.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; white-space: nowrap; }
.logo img { width: 40px; height: 40px; }
.nav { display: flex; gap: 8px; }
.nav__link.is-active { background: #bdbdbd; }
.header__right { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }

.langs {
  display: inline-flex; align-items: center; gap: 2px;
  height: 44px; padding: 0 6px;
  border-radius: var(--r-sm);
  background: rgba(232, 232, 232, .72);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}
.langs__btn {
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 12px; font-weight: 600; color: var(--ink-2);
  transition: background-color .3s var(--ease), color .3s;
}
.langs__btn:hover { background: rgba(0, 0, 0, .06); }
.langs__btn.is-active { background: var(--green); color: #fff; }

/* Шапка: меню, телефон и языки — просто текст */
.logo--text .logo__text { font-size: 19px; font-weight: 600; letter-spacing: -0.03em; }
.header .nav { display: flex; align-items: center; gap: 30px; }
.header .nav .nav__link, .header .phone-link {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 0; font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--ink); opacity: .72; background: none; border: 0; box-shadow: none;
  transition: opacity .3s var(--ease);
}
.header .nav .nav__link::after, .header .phone-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 1.5px; border-radius: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.header .nav .nav__link:hover, .header .phone-link:hover { opacity: 1; }
.header .nav .nav__link:hover::after, .header .phone-link:hover::after { transform: scaleX(1); transform-origin: left; }
/* текущий раздел — зелёная точка над словом */
.header .nav .nav__link.is-active { opacity: 1; background: none; }
.header .nav .nav__link::before {
  content: ''; position: absolute; left: 50%; top: -1px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%;
  background: var(--green); transform: scale(0); transition: transform .4s var(--ease);
}
.header .nav .nav__link.is-active::before { transform: scale(1); }
.header .phone-link { white-space: nowrap; }
.header .phone-link .ic { width: 16px; height: 16px; }
.header .langs.langs { height: auto; padding: 0; gap: 4px; background: none; border: 0; box-shadow: none; }
.header .langs .langs__btn {
  position: relative; width: auto; height: auto; padding: 8px 5px; border-radius: 0;
  font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--ink); opacity: .5; background: none;
  transition: opacity .3s var(--ease);
}
.header .langs .langs__btn:hover { opacity: .9; background: none; }
.header .langs .langs__btn.is-active { opacity: 1; background: none; color: var(--ink); }
.header .langs .langs__btn::after {
  content: ''; position: absolute; left: 5px; right: 5px; bottom: 3px; height: 2px; border-radius: 2px;
  background: var(--green); transform: scaleX(0); transition: transform .4s var(--ease);
}
.header .langs .langs__btn.is-active::after { transform: scaleX(1); }
.header__right { gap: 22px; }

/* Заголовок, освещённый лучом лампы: серые буквы, в луче — белые.
   Градиент считается в координатах всего заголовка, каждая буква сдвигает его на свою позицию (--ox) */
.hero__title { --lit: 1; }
.hero__title, .hero__title .char {
  background-image:
    var(--lit-bg, linear-gradient(transparent, transparent)),
    linear-gradient(#a3a3a8, #a3a3a8);
  background-size: var(--tw, 100%) 100%;
  background-position: calc(-1 * var(--ox, 0px)) 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
/* когда буквы разбиты на отдельные, фон рисуют они, а не общий заголовок */
.hero__title.is-split { background: none; }

/* ============ Hero ============ */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 28px);
  padding-bottom: clamp(20px, 3vw, 36px);
  overflow: hidden;
  isolation: isolate;
}
.hero.theme-dark {
  /* снизу — плавный переход из чёрной студии в светлый фон следующей секции */
  --fade: clamp(320px, 40vw, 560px);
  padding-bottom: calc(var(--fade) + 10px);
  background:
    linear-gradient(180deg,
      rgba(212, 212, 212, 0) calc(100% - var(--fade)),
      rgba(212, 212, 212, .04) calc(100% - var(--fade) * .82),
      rgba(212, 212, 212, .14) calc(100% - var(--fade) * .64),
      rgba(212, 212, 212, .32) calc(100% - var(--fade) * .46),
      rgba(212, 212, 212, .56) calc(100% - var(--fade) * .3),
      rgba(212, 212, 212, .8) calc(100% - var(--fade) * .15),
      #d4d4d4 100%),
    radial-gradient(120% 80% at 50% 0%, #1a1a1c 0%, #0b0b0c 55%, #070708 100%);
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  grid-template-rows: auto minmax(260px, 1fr) auto;
  column-gap: 28px;
  min-height: calc(100svh - var(--header-h) - 28px);
}
.hero__rail { display: flex; flex-direction: column; gap: 12px; align-self: center; z-index: 3; }
.hero__rail--left { grid-column: 1; grid-row: 1 / 3; }
.hero__rail--right { grid-column: 4; grid-row: 1 / 3; }

.hero__head { grid-column: 1; grid-row: 1; z-index: 2; padding-top: 8px; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); margin-bottom: 14px; }
.hero__title {
  font-size: clamp(54px, 8.4vw, 148px);
  font-weight: 500;
  line-height: .92;
  letter-spacing: -0.055em;
  white-space: nowrap;
}
.hero__sub { margin-top: 20px; max-width: 34ch; font-size: clamp(16px, 1.3vw, 19px); color: var(--ink-2); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.hero__car {
  grid-column: 1 / 3; grid-row: 2;
  align-self: end;
  position: relative; z-index: 1;
  width: min(100%, 1040px);
  justify-self: center;   /* машина по центру — задняя часть уходит под стеклянную панель */
  pointer-events: none;
}
.hero__car > * { will-change: transform; }
.hero__car .car-svg, .hero__car .car-photo { width: 100%; height: auto; filter: brightness(.58) drop-shadow(0 30px 30px rgba(0, 0, 0, .6)); }
/* у фото свет и тень дают отдельные слои (.car-light, .car-shadow) */
.hero__car .car-photo { filter: none; }

.hero__panel {
  grid-column: 2; grid-row: 1 / 3;
  align-self: center;
  z-index: 3;
  border-radius: var(--r-lg);
  padding: 22px;
}
.panel-head { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid rgba(0, 0, 0, .07); }
.panel-head__title { font-size: 18px; font-weight: 500; }
.panel-head__sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.hero__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 14px 0; }
.mini { display: flex; gap: 10px; padding: 10px; border-radius: 12px; transition: background-color .3s; }
.mini:hover, .mini.is-hl { background: rgba(255, 255, 255, .45); }
.mini .ic { width: 18px; height: 18px; margin-top: 2px; }
.mini b { display: block; font-size: 15px; font-weight: 500; line-height: 1.2; }
.mini small { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; margin-top: 2px; }
.panel-input {
  margin-top: 4px; padding: 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .32); border: 1px solid var(--line);
}
.panel-input__text { font-size: 16px; min-height: 1.5em; padding-bottom: 14px; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; vertical-align: -0.15em; background: var(--green); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.panel-input__row { display: flex; gap: 8px; margin-top: 14px; }
.btn--send { flex: 1; height: 44px; padding: 0 16px; }
.btn--send:hover .ic { transform: translate(2px, -2px); }

.hero__cards {
  grid-column: 1 / 3; grid-row: 3;
  position: relative; z-index: 4;   /* машина при отъезде проходит под карточками */
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 20px;
}
.hcard { border-radius: var(--r-lg); padding: 20px; min-height: 190px; display: flex; flex-direction: column; }
.hcard__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; min-height: 80px; padding-bottom: 14px; border-bottom: 1px solid rgba(0, 0, 0, .07); }
.hcard__title { font-size: 17px; font-weight: 500; line-height: 1.25; }
.hcard__sub { font-size: 13px; color: var(--muted); }
.hcard__body { margin-top: 16px; flex: 1; }
.hcard__price { display: flex; align-items: baseline; gap: 10px; }
.hcard__big { font-size: 64px; font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.hcard__unit { color: var(--muted); }
.hcard__duo { display: grid; grid-template-columns: 1.1fr .9fr; gap: 10px; }
.duo { display: flex; align-items: center; justify-content: center; gap: 12px; border-radius: 14px; background: rgba(255, 255, 255, .35); padding: 14px; }
.duo__num { font-size: 36px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.duo__arrow { width: 16px; height: 16px; color: var(--muted); }
.duo__arrow.is-green { color: var(--green); }
.duo--muted { flex-direction: column; gap: 2px; background: transparent; }
.duo--muted small { color: var(--muted); }
.hcard__row { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, .38); transition: background-color .3s; }
.hcard__row:hover { background: rgba(255, 255, 255, .6); }
.hcard__row > span:nth-child(2) { flex: 1; }
.hcard__row b { display: block; font-weight: 500; }
.hcard__row small { color: var(--muted); }

/* ============ Манифест ============ */
.manifesto__inner { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: var(--header-h); }
.manifesto__text {
  font-size: clamp(38px, 6.4vw, 112px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.045em;
  max-width: 17ch;
}

/* ============ Видео-блок ============ */
.cinema {
  position: relative; overflow: hidden; isolation: isolate;
  margin: calc(var(--gap) / 2) var(--pad);
  min-height: min(92svh, 860px);
  display: flex; align-items: center;
  border-radius: clamp(24px, 3vw, 36px);
  background: #0b0b0c; color: #fff;
}
.cinema__media { position: absolute; inset: 0; z-index: -1; }
.cinema__video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  object-position: 82% 30%;   /* лицо водителя — справа вверху, не обрезаем на узких экранах */
  transform-origin: 82% 35%;
  /* дневное видео приглушаем под тёмный стиль сайта */
  filter: saturate(.85) contrast(1.06) brightness(.82);
}
.cinema__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 8, 9, .9) 0%, rgba(8, 8, 9, .7) 32%, rgba(8, 8, 9, .25) 62%, rgba(8, 8, 9, .1) 100%),
    linear-gradient(0deg, rgba(8, 8, 9, .55) 0%, transparent 40%);
}
.cinema__content { padding-top: clamp(60px, 8vw, 100px); padding-bottom: clamp(60px, 8vw, 100px); }
.cinema__content .h2 { max-width: 12ch; }
.cinema__text { margin: 22px 0 0; max-width: 42ch; font-size: clamp(16px, 1.3vw, 19px); color: rgba(255, 255, 255, .82); }
@media (max-width: 900px) {
  .cinema { min-height: 80svh; align-items: flex-end; }
  .cinema__shade { background: linear-gradient(0deg, rgba(8, 8, 9, .92) 0%, rgba(8, 8, 9, .6) 45%, rgba(8, 8, 9, .15) 100%); }
}

/* ============ Цифры ============ */
.stats { padding: calc(var(--gap) / 2) 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { border-radius: var(--r-lg); padding: 26px; min-height: 240px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.stat__num { display: flex; align-items: flex-start; gap: 6px; font-size: clamp(60px, 6.6vw, 112px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.stat__unit { font-size: .36em; letter-spacing: -0.02em; margin-top: .14em; color: var(--muted); }
.stat p { color: var(--ink-2); max-width: 22ch; }
.stat--green { background: var(--green); color: #fff; border-color: transparent; }
.stat--green .stat__unit, .stat--green p { color: rgba(255, 255, 255, .8); }

.odo { display: inline-flex; align-items: flex-start; height: 1em; line-height: 1; overflow: hidden; }
.odo__col { display: flex; flex-direction: column; }
.odo__col span { display: block; height: 1em; line-height: 1; text-align: center; }

/* ============ Автопарк ============ */
.fleet { position: relative; }
.fleet__pin {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 8px) 0 40px;
  overflow: hidden;
}
.fleet__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.fleet__top .label { margin-bottom: 14px; }
.fleet__top .h2 { font-size: clamp(30px, 3.8vw, 58px); max-width: 18ch; }
.fleet__controls { display: flex; align-items: center; gap: 10px; }
.fleet__count { font-size: 15px; color: var(--muted); margin-right: 10px; font-variant-numeric: tabular-nums; }
.fleet__count b { color: var(--ink); font-weight: 600; font-size: 22px; }

.fleet__stage {
  position: relative;
  height: clamp(340px, 54vh, 560px);
  margin: clamp(20px, 3vh, 36px) 0;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
}
.fleet__stage.is-dragging { cursor: grabbing; }
.fleet__track { position: absolute; inset: 0; }

.car-card {
  position: absolute; top: 0; bottom: 0; left: 0; right: 0;
  margin: 0 auto;
  width: min(780px, 76vw);
  border-radius: var(--r-xl);
  padding: clamp(18px, 2.4vw, 30px);
  display: grid; grid-template-rows: auto 1fr auto;
  will-change: transform, opacity;
  background: linear-gradient(180deg, rgba(240, 240, 240, .86), rgba(226, 226, 226, .78));
  backface-visibility: hidden;
  overflow: hidden;   /* машина при параллаксе не вылезает за карточку */
}
/* соседние карточки гасим непрозрачной вуалью, а не opacity — иначе сквозь машину видно буквы фона */
.car-card::after {
  content: ''; position: absolute; inset: 0; z-index: 5;
  border-radius: inherit;
  background: #e2e2e2;
  opacity: var(--dim, 0);
  pointer-events: none;
}
.car-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.car-card { container-type: inline-size; }
.car-card__head, .car-card__visual, .car-card__chips { position: relative; z-index: 1; }
.car-card__brand { font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
/* название модели — крупно за машиной: стоит прямо над ней, крыша заходит на низ букв */
.car-card__visual > :first-child { position: relative; z-index: 1; }
.car-card__visual > .car-card__model {
  order: -1; position: relative; z-index: 0;
  width: 100%; max-height: none; filter: none;
  margin-bottom: -0.3em;
  text-align: center;
  font-size: min(23cqw, 220px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: .9;
  white-space: nowrap;
}
.car-card__model .ch {
  display: inline-block;
  color: transparent;
  background: linear-gradient(180deg, rgba(20, 20, 24, .22) 0%, rgba(20, 20, 24, .1) 60%, rgba(20, 20, 24, .02) 100%);
  -webkit-background-clip: text; background-clip: text;
}
.car-card__tag { font-size: 14px; color: var(--ink-2); margin-top: 6px; max-width: 32ch; }
.car-card__num { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.car-card__visual { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 0; padding: 4px 0; container-type: size; }
.car-card__visual > * { width: 94%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 24px 22px rgba(0, 0, 0, .2)); pointer-events: none; }
/* ширина ограничена и высотой области: машина + видимая часть названия должны поместиться */
.car-card__visual > .car-photo--card { width: min(84cqw, calc((100cqh - 15cqw) * var(--ar, 2.4))); flex: none; filter: none; }
.car-spin { display: block; width: 100%; height: auto; position: relative; z-index: 1; }
/* студийный свет за машиной: мягкое пятно, у активной карточки идёт за курсором */
.car-card__visual::before {
  content: ''; position: absolute; z-index: -1;
  inset: -12% -8% -6%;
  background: radial-gradient(ellipse 46% 52% at var(--mx, 50%) var(--my, 45%), rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}
/* пол: лёгкое затемнение под машиной, шире самой тени */
.car-photo--card::before {
  content: ''; position: absolute; z-index: -1;
  left: -10%; right: -10%; bottom: -9%; height: 34%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .13), rgba(0, 0, 0, 0));
  pointer-events: none;
}
.car-photo--card { will-change: transform; }
/* блик по кузову: проходит один раз, когда карточка становится активной */
.car-card__sheen {
  position: absolute; inset: 0; z-index: 2;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 44%, rgba(255, 255, 255, .22) 48.5%, rgba(255, 255, 255, .42) 49.6%, rgba(255, 255, 255, .1) 51%, rgba(255, 255, 255, 0) 53%) no-repeat;
  background-size: 300% 100%;
  background-position: 130% 0;
  mix-blend-mode: screen;
  pointer-events: none;
}
.car-photo--card.is-front .car-card__sheen { animation: card-sheen 1.8s .15s cubic-bezier(.3, .6, .2, 1) both; }
@keyframes card-sheen { from { background-position: 130% 0; } to { background-position: -30% 0; } }
/* ходовые огни: вспыхивают у активной карточки */
.car-card__lights { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .2s; }
.car-photo--card.is-front .car-card__lights { opacity: 1; }
.car-card__lights > img.car-card__glow { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.car-card__lights > img.car-card__glow--bloom { filter: blur(5px) brightness(1.8); mix-blend-mode: screen; }
.car-photo--card.is-front .car-card__glow { animation: card-drl .9s .25s steps(1, end) both; }
.car-photo--card.is-front .car-card__glow--bloom { animation: card-drl-bloom 1.2s .25s ease-out both; }
@keyframes card-drl { 0% { opacity: 0; } 12% { opacity: 1; } 22% { opacity: .2; } 34% { opacity: 1; } 100% { opacity: 1; } }
@keyframes card-drl-bloom { 0% { opacity: 0; } 12% { opacity: .9; } 22% { opacity: 0; } 34% { opacity: 1; } 60% { opacity: .95; } 100% { opacity: .75; } }
@media (prefers-reduced-motion: reduce) {
  .car-photo--card.is-front .car-card__sheen { animation: none; }
  .car-photo--card.is-front .car-card__glow, .car-photo--card.is-front .car-card__glow--bloom { animation: none; opacity: .8; }
}
.car-card__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 14px;
  border-radius: 10px; font-size: 14px;
  background: rgba(255, 255, 255, .45); border: 1px solid var(--line);
}
.chip--green { background: var(--green-soft); color: var(--green); border-color: transparent; }
.chip--green::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.fleet__bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.fleet__bottom .fleet__thumbs { flex: 1; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.fleet__bottom .fleet__thumbs::-webkit-scrollbar { display: none; }
.fleet__bottom .thumb { flex: none; }
.fleet__thumbs { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
.thumb {
  display: inline-flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 14px 0 6px;
  border-radius: 12px;
  background: rgba(232, 232, 232, .72); border: 1px solid var(--line);
  font-size: 14px; color: var(--ink-2);
  transition: background-color .3s var(--ease), color .3s;
}
.thumb__dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: rgba(0, 0, 0, .06); transition: background-color .3s, color .3s; }
.thumb:hover { background: #f0f0f0; }
.thumb.is-active { color: var(--ink); background: rgba(250, 250, 250, .9); }
.thumb.is-active .thumb__dot { background: var(--green); color: #fff; }
.fleet__meta { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; width: 200px; }
.fleet__hint { font-size: 13px; color: var(--muted); text-align: right; }
.fleet__progress { width: 200px; height: 2px; background: rgba(0, 0, 0, .1); border-radius: 2px; overflow: hidden; }
.fleet__progress span { display: block; height: 100%; background: var(--green); transform-origin: left; transform: scaleX(0); }

/* ============ Раскрытая карточка машины ============ */
.car-card__open { position: relative; z-index: 2; cursor: pointer; }
.car-card.is-active { cursor: pointer; }
.car-card.is-active .car-card__open:hover { background: #f6f6f6; }
.car-card.is-lifted { visibility: hidden !important; }
html.is-modal, html.is-modal body { overflow: hidden; }

.car-modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: clamp(12px, 3vw, 40px);
}
.car-modal[hidden] { display: none; }
.car-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(190, 190, 190, .5);
  -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1);
}
.car-modal__panel {
  position: relative;
  width: min(1180px, 100%); max-height: min(780px, 100%);
  display: grid; grid-template-columns: 1.3fr 1fr;
  overflow: auto; overscroll-behavior: contain;
  scrollbar-width: none;   /* полоса прокрутки мелькала у края при сворачивании */
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(243, 243, 243, .98), rgba(228, 228, 228, .97));
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .45);
}
.car-modal__panel::-webkit-scrollbar { display: none; }
.car-modal__close { position: absolute; top: 18px; right: 18px; z-index: 5; cursor: pointer; }
.car-modal__close:hover { background: #f6f6f6; }
.car-modal__media {
  position: relative; container-type: inline-size;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 480px; padding: clamp(24px, 3vw, 40px);
  overflow: hidden;
}
/* студийный свет за машиной */
.car-modal__media::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 60% 55% at 50% 58%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}
.car-modal__head { position: relative; z-index: 2; }
.car-modal__brand { font-size: 17px; font-weight: 500; color: var(--ink-2); }
.car-modal__title { margin-top: 4px; font-size: clamp(30px, 3.4vw, 48px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.02; }
.car-modal__stage {
  position: relative; z-index: 1; flex: 1;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding-top: 12px;
}
.car-modal__name {
  position: relative; z-index: 1; width: 100%;
  margin-bottom: -0.2em;   /* крыша машины заходит на низ букв */
  text-align: center; white-space: nowrap;
  font-size: min(21cqw, 220px); font-weight: 700; letter-spacing: -0.055em; line-height: .9;
  color: transparent;
  background: linear-gradient(180deg, rgba(20, 20, 24, .17) 0%, rgba(20, 20, 24, .07) 60%, rgba(20, 20, 24, 0) 100%);
  -webkit-background-clip: text; background-clip: text;
  pointer-events: none;
}
.car-modal__car { position: relative; z-index: 2; width: 100%; max-width: 720px; }
.car-modal__car img, .car-modal__car svg { display: block; width: 100%; height: auto; transform-origin: 0 0; }
.car-modal__info {
  display: flex; flex-direction: column; gap: 26px;
  padding: clamp(28px, 3.4vw, 48px) clamp(24px, 3vw, 44px);
  border-left: 1px solid var(--line);
  background: rgba(255, 255, 255, .25);
}
.car-modal__lead { font-size: 17px; line-height: 1.5; color: var(--ink-2); max-width: 44ch; padding-right: 44px; }
.car-modal__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.car-modal__label { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.car-modal__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.car-modal__specs > div {
  padding: 14px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .5); border: 1px solid var(--line);
}
.car-modal__specs dt { font-size: 13px; color: var(--muted); }
.car-modal__specs dd { margin: 4px 0 0; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.car-modal__specs dd small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.car-modal__note { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.car-modal__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.car-modal__ctas .btn { flex: 1 1 auto; justify-content: center; }

@media (max-width: 900px) {
  .car-modal { padding: 0; place-items: end stretch; }
  .car-modal__panel {
    width: 100%; max-height: 94svh;
    grid-template-columns: 1fr;
    border-radius: 28px 28px 0 0;
  }
  .car-modal__media { min-height: 0; padding: 22px 20px 8px; }
  .car-modal__stage { padding: 18px 0 8px; }
  .car-modal__info { border-left: 0; border-top: 1px solid var(--line); padding: 22px 20px calc(24px + env(safe-area-inset-bottom)); gap: 20px; }
  .car-modal__lead { padding-right: 0; font-size: 16px; }
  .car-modal__close { top: 14px; right: 14px; }
}

/* ============ Условия ============ */
.terms { padding: calc(var(--gap) / 2) 0; }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tcard {
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.tcard__top { display: flex; justify-content: space-between; align-items: center; padding-bottom: clamp(40px, 5vw, 72px); }
.tcard h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.tcard p { color: var(--ink-2); font-size: 15px; max-width: 40ch; }
.tcard--big { grid-column: span 2; grid-row: span 2; }
.tcard--wide { grid-column: span 2; }
.tcard__price { display: flex; align-items: baseline; gap: 14px; margin: -16px 0 18px; }
.tcard__price .odo { font-size: clamp(90px, 11vw, 180px); font-weight: 500; letter-spacing: -0.06em; }
.tcard__unit { font-size: 18px; color: var(--muted); }
.tcard--green { background: var(--green); color: #fff; box-shadow: 0 30px 60px -30px rgba(14, 140, 85, .6); }
.tcard--green p { color: rgba(255, 255, 255, .82); }
.tcard--green .tile-btn { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .25); box-shadow: none; }
.tcard--green .radio { border-color: #fff; }
.tcard--green .radio::after { background: #fff; }

/* ============ Бонус ============ */
.bonus { padding: calc(var(--gap) / 2) 0; }
.bonus__card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 72px); align-items: center;
  padding: clamp(28px, 5vw, 72px);
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(800px 420px at 85% 0%, rgba(255, 255, 255, .22), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(0, 0, 0, .18), transparent 60%),
    var(--green);
}
.bonus__card .h2 { max-width: 13ch; }
.bonus__lead { margin: 22px 0 30px; max-width: 46ch; font-size: 17px; color: rgba(255, 255, 255, .85); }
.bonus__calc {
  border-radius: var(--r-lg); padding: 26px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .24);
}
.bonus__q { font-size: 15px; color: rgba(255, 255, 255, .85); }
.stepper { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 14px; }
.stepper__btn { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .16); transition: background-color .3s; }
.stepper__btn:hover { background: rgba(255, 255, 255, .28); }
.stepper__val { font-size: 64px; font-weight: 500; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.range { width: 100%; appearance: none; -webkit-appearance: none; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .25); outline-offset: 6px; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); cursor: pointer; }
.range::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; cursor: pointer; }
.bonus__total { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .22); }
.bonus__total span { font-size: 14px; color: rgba(255, 255, 255, .75); }
.bonus__total p { font-size: 28px; color: rgba(255, 255, 255, .85); }
.bonus__total b { font-size: clamp(64px, 7vw, 104px); font-weight: 500; letter-spacing: -0.05em; color: #fff; font-variant-numeric: tabular-nums; }

/* ============ Выкуп ============ */
.buyout { padding: calc(var(--gap) / 2) 0; }
.buyout__card { border-radius: 34px; padding: clamp(28px, 5vw, 64px); }
.buyout__head { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 48px; align-items: end; }
.buyout__head .badge { grid-column: 1 / -1; }
.buyout__text { color: var(--ink-2); font-size: 17px; max-width: 48ch; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; justify-self: start;
  height: 36px; padding: 0 14px; border-radius: 10px;
  background: var(--green-soft); color: var(--green); font-weight: 500; font-size: 14px;
}
.badge i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(14, 140, 85, .5); } 100% { box-shadow: 0 0 0 10px rgba(14, 140, 85, 0); } }
.road { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; margin-top: clamp(40px, 6vw, 72px); }
.road__label { font-size: 15px; color: var(--muted); display: inline-flex; align-items: center; gap: 10px; }
.road__label--end { color: var(--ink); font-weight: 500; }
.road__line { position: relative; height: 6px; border-radius: 6px; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .12) 0 18px, transparent 18px 30px); }
.road__fill { position: absolute; inset: 0; border-radius: 6px; background: var(--green); transform-origin: left; transform: scaleX(.12); }
.road__car { position: absolute; bottom: 4px; left: 12%; width: clamp(90px, 10vw, 140px); transform: translateX(-50%); }
.road__car .car-svg { transform: scaleX(-1); }

/* ============ Цитата ============ */
.quote { padding: var(--gap) 0; text-align: center; }   /* цитате — больше воздуха */
.quote__text {
  margin: 0 auto;
  max-width: 22ch;
  font-size: clamp(30px, 4.4vw, 70px);
  font-weight: 500; line-height: 1.08; letter-spacing: -0.04em;
}
.quote__by { margin-top: 36px; display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 500; }
.quote__by img { width: 28px; height: 28px; }

/* ============ Где мы работаем (карта) ============ */
.where { padding: calc(var(--gap) / 2) 0; }
.where__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.where__text { margin-top: 22px; max-width: 42ch; font-size: 17px; color: var(--ink-2); }
.where__cities { display: grid; gap: 10px; margin-top: 32px; max-width: 420px; }
.city {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px; border-radius: 18px;
  transition: background-color .3s, transform .4s var(--ease);
}
.city:hover, .city.is-hot { background: rgba(248, 248, 248, .85); transform: translateX(4px); }
.city__dot { position: relative; flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(14, 140, 85, .15); }
.city__txt b { display: block; font-size: 19px; font-weight: 500; letter-spacing: -0.02em; }
.city__txt small { color: var(--muted); font-size: 14px; }

.where__map { position: relative; }
.where__map::before {   /* мягкий свет за картой */
  content: ''; position: absolute; inset: 6% 4%; z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .75), rgba(255, 255, 255, 0));
}
.plmap { display: block; width: 100%; height: auto; overflow: visible; }
.plmap__shape { fill: rgba(255, 255, 255, .38); stroke: rgba(0, 0, 0, .12); stroke-width: 2; stroke-linejoin: round; }
#pl-dots circle { fill: rgba(20, 20, 24, .22); }   /* цвет точек — в узоре; у прямоугольника заливка url(#pl-dots), её не перебиваем */
.plmap__route { fill: none; stroke: var(--green); stroke-width: 6; stroke-linecap: round; stroke-dasharray: .1 16; }
.plmap__car { fill: var(--green); filter: drop-shadow(0 0 6px rgba(14, 140, 85, .7)); }
.plmap__km rect { fill: rgba(250, 250, 250, .92); stroke: rgba(0, 0, 0, .08); stroke-width: 1.5; }
.plmap__km text { font-size: 24px; font-weight: 600; text-anchor: middle; fill: var(--ink); letter-spacing: -0.01em; }
.pin__dot { fill: var(--green); stroke: #fff; stroke-width: 4; }
.pin__ring { fill: rgba(14, 140, 85, .14); transition: r .4s var(--ease); }
.pin__pulse { fill: none; stroke: var(--green); stroke-width: 2.5; transform-box: fill-box; transform-origin: center; animation: pin-pulse 2.4s ease-out infinite; }
.pin[data-city="warszawa"] .pin__pulse { animation-delay: 1.2s; }
.pin__label { font-size: 34px; font-weight: 600; letter-spacing: -0.02em; fill: var(--ink); paint-order: stroke; stroke: rgba(230, 230, 230, .9); stroke-width: 8px; stroke-linejoin: round; }
.pin.is-hot .pin__ring { r: 26; }
@keyframes pin-pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pin__pulse { animation: none; opacity: 0; } .plmap__car { display: none; } }
@media (max-width: 900px) {
  .where__grid { grid-template-columns: 1fr; }
  .where__map { order: 2; margin: 0 -6px; }
  .where__cities { max-width: none; }
  .pin__label { font-size: 46px; stroke-width: 10px; }   /* карта на телефоне мельче — подписи крупнее */
  .plmap__km text { font-size: 30px; }
  .plmap__km rect { x: -72px; y: -29px; width: 144px; height: 58px; rx: 29px; }
}

/* ============ Шаги ============ */
.steps { padding: calc(var(--gap) / 2) 0; }
.steps__line { position: relative; height: 2px; background: rgba(0, 0, 0, .1); margin: 0 12.5% 28px; }
.steps__line span { position: absolute; inset: 0; background: var(--green); transform-origin: left; transform: scaleX(0); }
.steps__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; border-radius: var(--r-lg); padding: 26px; min-height: 260px; display: flex; flex-direction: column; }
.step__dot {
  position: absolute; top: -36px; left: 50%; width: 16px; height: 16px; margin-left: -8px;
  border-radius: 50%; background: var(--bg); border: 2px solid #a9a9a9;
  transition: background-color .4s var(--ease), border-color .4s, transform .4s var(--ease);
}
.step.is-on .step__dot { background: var(--green); border-color: var(--green); transform: scale(1.15); }
.step__num { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.step__ic { width: 28px; height: 28px; margin-top: 28px; color: var(--green); }
.step h3 { margin-top: 40px; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.step p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }

/* ============ Контакты ============ */
.contact { padding: calc(var(--gap) / 2) 0; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: stretch; }
.contact__text { margin-top: 22px; max-width: 46ch; font-size: 17px; color: var(--ink-2); }
.contact__links { display: grid; gap: 12px; margin-top: 36px; }
.clink { display: flex; align-items: center; gap: 16px; padding: 14px 18px 14px 14px; border-radius: 18px; transition: background-color .3s; }
.clink:hover { background: rgba(248, 248, 248, .85); }
.clink__txt { flex: 1; }
.clink__txt b { display: block; font-weight: 500; font-size: 17px; }
.clink__txt small { color: var(--muted); font-size: 14px; }
.clink__arrow { color: var(--muted); transition: transform .4s var(--ease), color .3s; }
.clink:hover .clink__arrow { transform: translateX(4px); color: var(--green); }

.cform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cform { border-radius: var(--r-xl); padding: clamp(20px, 2.6vw, 30px); display: flex; flex-direction: column; gap: 14px; }   /* форма по высоте левой колонки, растёт поле сообщения */
.cform__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 6px; }
.field {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, .38); border: 1px solid var(--line);
  transition: border-color .3s, background-color .3s;
}
.field:focus-within { border-color: var(--green); background: rgba(255, 255, 255, .6); }
.field.is-error { border-color: #c0392b; }
.field__label { font-size: 13px; color: var(--muted); }
.field input { border: 0; outline: 0; background: transparent; font-size: 17px; padding: 0; width: 100%; }
.choice { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice legend { padding: 0; margin-bottom: 8px; }
.choice__opt {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 14px; cursor: pointer;
  background: rgba(255, 255, 255, .38); border: 1px solid var(--line);
  transition: background-color .3s, border-color .3s;
}
.choice__opt span:nth-of-type(1) { flex: 1; }
.choice__opt input { position: absolute; opacity: 0; pointer-events: none; }
.choice__opt:has(input:checked) { background: rgba(255, 255, 255, .7); }
.choice__opt:has(input:checked) .radio { border-color: var(--green); }
.choice__opt:has(input:checked) .radio::after { transform: scale(1); }
.choice__opt:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }
.cform__msg { flex: 1; display: flex; flex-direction: column; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .32); border: 1px solid var(--line); }
.cform__msg textarea {
  flex: 1; min-height: 90px;
  width: 100%; resize: none; border: 0; outline: 0; background: transparent;
  font-size: 17px; padding: 0 0 12px; border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.cform__msg textarea::placeholder { color: var(--muted-2); }
.cform__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 14px 16px; margin-top: 14px; }
.cform__row .btn--send { flex: none; height: 50px; padding: 0 26px; }
.consent { flex: 1 1 260px; display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.4; color: var(--muted); cursor: pointer; }
.consent input { position: absolute; opacity: 0; pointer-events: none; }
.consent__box { flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; border: 2px solid #a5a5a5; transition: background-color .3s, border-color .3s; }
.consent__box .ic { width: 14px; height: 14px; stroke-width: 3; color: #fff; opacity: 0; transition: opacity .2s; }
.consent input:checked + .consent__box { background: var(--green); border-color: var(--green); }
.consent input:checked + .consent__box .ic { opacity: 1; }
.consent input:focus-visible + .consent__box { outline: 2px solid var(--green); outline-offset: 2px; }
.consent.is-error .consent__box { border-color: #c0392b; }
.cform__status { min-height: 1.4em; font-size: 14px; font-weight: 500; }
.cform__status.is-ok { color: var(--green); }
.cform__status.is-error { color: #c0392b; }

/* ============ Футер ============ */
.footer { padding: calc(var(--gap) / 2) 0 28px; overflow: hidden; }
.footer__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid rgba(0, 0, 0, .1); }
.footer__tagline { flex: 1; max-width: 46ch; color: var(--ink-2); }
.footer__actions { display: flex; gap: 8px; }
.footer__giant {
  margin: clamp(30px, 5vw, 60px) 0 clamp(20px, 3vw, 36px);
  font-size: clamp(64px, 15.4vw, 236px);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: .86;
}
/* Надпись проявляется вокруг курсора (как у Bugatti): буквы с зерном, вне пятна — едва видны */
.footer__giant { --mx: -999px; --my: -999px; --r: 0px; position: relative; }
.footer__giant .char, .footer__giant:not(:has(.char)) {
  color: transparent;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .3 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #2a2a2c, #111);
  -webkit-background-clip: text; background-clip: text;
}
@media (hover: hover) and (pointer: fine) {
  .footer__giant {
    -webkit-mask-image: radial-gradient(circle var(--r) at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, .85) 35%, rgba(0, 0, 0, .07) 100%);
    mask-image: radial-gradient(circle var(--r) at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, .85) 35%, rgba(0, 0, 0, .07) 100%);
  }
}
.footer__giant .ch { display: inline-block; overflow: hidden; vertical-align: top; }
.footer__giant .ch > span { display: inline-block; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--muted); font-size: 14px; }
.footer__legal { display: grid; gap: 6px; }
.footer__legal p:last-child { font-size: 12.5px; opacity: .85; }
.footer__legal a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0, 0, 0, .25); margin-left: 6px; }
.footer__legal a:hover { color: var(--green); }
.consent__link { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.consent__link:hover { color: var(--green); }
.langs--footer { height: 40px; }

/* ============ Мобильная панель ============ */
.mbar { display: none; }

/* ============ Адаптив ============ */
@media (max-width: 1180px) {
  .phone-link { display: none !important; }
  .nav { gap: 6px; }
  .nav .pill { padding: 0 14px; }
  .hero__inner { grid-template-columns: minmax(0, 1fr) 320px; column-gap: 20px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tcard--big { grid-row: span 1; }
}

@media (max-width: 1060px) {
  .header .nav { gap: 18px; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .header__inner { grid-template-columns: auto 1fr; }
  .nav, .header .nav { display: none; }
  .header .langs { height: 40px; }
  .header .btn--sm { height: 40px; }

  .hero { padding-top: calc(var(--header-h) + 52px); }   /* лампа висит над заголовком, а не на нём */
  .hero.theme-dark { --fade: 190px; }   /* переход из тёмного в светлое короче — без пустой прокрутки */
  .hero__inner { display: flex; flex-direction: column; min-height: 0; }
  .hero__rail { display: none; }
  .hero__title { font-size: clamp(48px, 14vw, 96px); white-space: normal; }
  .hero__car { width: 112%; margin: 28px -6% 0; }
  .hero__panel { margin-top: -10px; }
  .hero__cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); margin: 16px calc(var(--pad) * -1) 0; padding: 0 var(--pad) 8px; transform: none; scrollbar-width: none; }
  .hero__cards::-webkit-scrollbar { display: none; }
  .hcard { flex: 0 0 82%; scroll-snap-align: start; }

  .manifesto { padding: 110px 0 60px; }
  .manifesto__inner { min-height: 0; padding-top: 0; }

  .fleet__pin { min-height: 0; padding: 72px 0 24px; }
  .fleet__top { flex-direction: column; align-items: flex-start; }
  .fleet__controls { width: 100%; }
  .fleet__count { margin-right: auto; }
  .fleet__stage { height: clamp(350px, 100vw, 430px); }
  .car-card__chips { gap: 6px; }
  .car-card .chip { height: 30px; padding: 0 10px; font-size: 13px; }
  .car-card { width: 84vw; }
  .fleet__bottom { flex-direction: column; align-items: stretch; }
  .fleet__thumbs, .fleet__bottom .fleet__thumbs { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--pad) * -1); padding: 2px var(--pad) 4px; scroll-padding-inline: var(--pad); scrollbar-width: none; }
  .fleet__thumbs::-webkit-scrollbar { display: none; }
  .thumb { flex: none; }
  .fleet__meta { align-items: stretch; }
  .fleet__hint { text-align: left; }
  .fleet__progress { width: 100%; }

  .bonus__card { grid-template-columns: 1fr; }
  .buyout__head { grid-template-columns: 1fr; }
  .road { grid-template-columns: 1fr; gap: 14px; }
  .road__line { margin: 34px 0 8px; }
  .road__label--end { justify-self: end; }

  .steps__line { display: none; }
  .steps__list { grid-template-columns: 1fr 1fr; }
  .step__dot { display: none; }

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

  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer { padding-bottom: 100px; }

  .mbar {
    position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 40;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px;
    padding: 8px; border-radius: 18px;
    background: rgba(220, 220, 220, .8); border: 1px solid var(--line);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .35);
    transition: transform .5s var(--ease);
  }
  .mbar .btn { height: 50px; padding: 0 12px; min-width: 0; }
  .mbar .btn span { overflow: hidden; text-overflow: ellipsis; }
  .mbar.is-hidden { transform: translateY(150%); }
}

@media (max-width: 600px) {
  .bento, .steps__list { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 18px; gap: 14px; }
  .stat__num { font-size: clamp(40px, 12.5vw, 60px); }
  .stat p { font-size: 14px; }
  .step h3 { margin-top: 22px; }
  .bonus__card .btn { width: 100%; justify-content: center; }
  /* бонус: меньше внутренних отступов, текст не зажат */
  .bonus__card { padding: 24px 20px; border-radius: 26px; gap: 22px; }
  .bonus__calc { padding: 18px; }
  .stepper__val { font-size: 52px; }
  /* условия: маленькие карточки — компактная строка «значок + текст» */
  .bento { gap: 10px; }
  .tcard:not(.tcard--big) {
    display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; align-items: start;
    padding: 16px 18px;
  }
  .tcard:not(.tcard--big) .tcard__top { grid-row: 1 / span 2; padding: 0; }
  .tcard:not(.tcard--big) .tcard__top > :not(:first-child) { display: none; }
  .tcard:not(.tcard--big) h3 { grid-column: 2; font-size: 18px; margin-top: 2px; }
  .tcard:not(.tcard--big) p { grid-column: 2; font-size: 14px; margin-top: 4px; }
  .tcard--big { padding: 20px; }
  .tcard__price .odo { font-size: clamp(76px, 26vw, 110px); }
  /* автопарк: машина крупнее, метки в одну строку */
  .car-card { padding: 18px 16px; }
  .car-card__visual > .car-photo--card { width: min(100cqw, calc((100cqh - 15cqw) * var(--ar, 2.4))); }
  .car-card__visual > .car-card__model { font-size: min(26cqw, 220px); }
  .car-card__chips { gap: 5px; }
  .car-card .chip { height: 28px; padding: 0 9px; font-size: 12.5px; gap: 6px; }
  .tcard--big, .tcard--wide { grid-column: auto; }
  .stat { min-height: 150px; }
  .tcard { min-height: 0; }
  .tcard__top { padding-bottom: 20px; }
  .step { min-height: 0; }
  .step__ic { margin: 20px 0 0; }
  .cform__fields, .choice { grid-template-columns: 1fr; }
  .cform__row { flex-direction: column; align-items: stretch; }
  .cform__row .consent { flex: none; }   /* в колонке flex-basis 260px превращался в высоту */
  .hero__tiles { gap: 2px; }
  .hero__ctas .btn { flex: 1 1 100%; justify-content: center; }
  .car-card__tag { display: none; }
  .header__cta { display: none; }
  .footer__actions { flex-wrap: wrap; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html.js .preloader { display: none; }
}


/* ============ Фото машины с крутящимися колёсами ============ */
.car-photo { position: relative; width: 100%; }
.car-photo > img { display: block; width: 100%; height: auto; }
/* колесо — круглый кусок той же фотографии, повёрнутый вокруг центра колеса */
.car-photo > img { position: relative; z-index: 1; }
.car-wheel {
  --re: calc(var(--r) * var(--rim, .8));
  /* колёса поверх слоёв света/тени кузова: те повторяют силуэт кузова и иначе ложатся на колесо пятном */
  position: absolute; z-index: 7;
  left: calc(var(--x) * 100%);
  top: calc(var(--y) * 100%);
  width: calc(var(--re) * 200%);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  transform: translate(-50%, -50%) rotate(var(--rot, 0deg));
}
.car-wheel img {
  position: absolute; max-width: none;
  width: calc(100% / (var(--re) * 2));
  left: calc((var(--re) - var(--x)) / (var(--re) * 2) * 100%);
  top: calc((var(--re) - var(--y) * var(--a, .33)) / (var(--re) * 2) * 100%);
}
/* Колесо слоями: контейнер не крутится, крутятся только спицы */
.car-wheel--layers { width: calc(var(--s) * 100%); transform: translate(-50%, -50%); }
.car-wheel--layers img { left: 0; top: 0; width: 100%; height: 100%; }
.car-wheel--layers .car-wheel__spin { transform: rotate(var(--rot, 0deg)); }
/* Свет лампы на кузове: два слоя по контуру машины, центр привязан к лампе (--gx) */
.car-shade, .car-light {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
/* тень: дальше от луча и ниже — темнее (слои перемножаются) */
.car-shade {
  z-index: 3;
  mix-blend-mode: multiply;
  background-blend-mode: multiply;
  background:
    radial-gradient(80% 170% at var(--gx, 50%) -10%, #fff 0%, #ececec 32%, #9a9a9a 66%, #5a5a5a 100%),
    linear-gradient(180deg, #fff 0%, #fff 50%, #cfcfcf 78%, #a8a8a8 100%);
}
/* блики: горячее пятно под лампой на крыше/капоте и мягкий отсвет по плечу кузова */
.car-light {
  z-index: 4;
  mix-blend-mode: screen;
  background:
    radial-gradient(26% 38% at var(--gx, 50%) 4%, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03) 55%, transparent 100%),
    radial-gradient(55% 55% at var(--gx, 50%) 30%, rgba(255, 255, 255, .05), transparent 70%),
    linear-gradient(180deg, transparent 80%, rgba(255, 255, 255, .05) 100%);
}
/* блик по верхней кромке кузова (крыша, капот, багажник): маска *-top.png из обработки фото */
.car-toplight {
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
  mix-blend-mode: screen;
  filter: blur(1px);
  background: radial-gradient(34% 260% at var(--gx, 50%) 0%, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06) 45%, transparent 85%);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
/* свет на колесе не крутится: верх освещён, низ в тени */
.car-wheel__light {
  position: absolute; inset: 0; z-index: 2; border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(70% 45% at 50% 6%, rgba(255, 255, 255, .15), transparent 70%),
    linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .3) 100%);
}
/* нарисованные на диске блики приглушаем — иначе они «ездят» по кругу */
.car-wheel--layers .car-wheel__spin { filter: brightness(.82) contrast(.9); }
/* в тёмной студии колёса в тени кузова — приглушаем, чтобы не выделялись */
.hero__car .car-wheel { filter: brightness(.58); }
/* горящие огни: отдельный слой над машиной (не затемняется), размытое свечение + чёткая полоса */
.car-glow-layer { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; will-change: transform; }
.car-glow-layer img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; mix-blend-mode: screen; filter: brightness(1.35); }
.car-glow-layer img.car-glow--bloom { filter: blur(7px) brightness(2.4); opacity: .9; }
/* шашка TAXI на крыше */
.car-sign {
  position: absolute; z-index: 8; pointer-events: none; max-width: none; height: auto;
  transform: translate(-50%, -100%) rotate(var(--rot, 0deg));
  transform-origin: 50% 100%;
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .55));
}
.car-glow-layer img.car-sign { right: auto; bottom: auto; height: auto; mix-blend-mode: normal; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .55)); }
.car-glow-layer img.car-sign--bloom { mix-blend-mode: screen; filter: blur(10px) brightness(1.4); opacity: .55; }
/* отражение на глянцевом полу */
.car-photo > img.car-reflection {
  position: absolute; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
  top: calc((2 * var(--f, .97) - 1) * 100%);
  transform: scaleY(-1);
  opacity: .16;
  filter: blur(1.5px);
  -webkit-mask-image: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, .35) 18%, transparent 45%);
  mask-image: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, .35) 18%, transparent 45%);
}
/* плотная тень под машиной */
.car-shadow {
  position: absolute; z-index: 0; pointer-events: none;
  left: 5%; right: 5%; top: calc(var(--floor-in, 97%) - 5%); height: 10%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .95), rgba(0, 0, 0, .55) 55%, transparent);
  filter: blur(5px);
}

/* ============ Liquid glass (как в iOS): блики по кромке + преломление в Chromium ============ */
.liquid {
  isolation: isolate;
  -webkit-backdrop-filter: blur(12px) saturate(1.6) brightness(1.05);
  backdrop-filter: blur(12px) saturate(1.6) brightness(1.05);
}
.liquid:not(.car-card):not(.fleet__track *):not(.mbar) { position: relative; }
/* светлое стекло (светлые секции) */
.liquid.liquid {
  background: linear-gradient(180deg, rgba(255, 255, 255, .44), rgba(255, 255, 255, .14));
  border-color: rgba(255, 255, 255, .78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -1px 0 rgba(255, 255, 255, .3),
    0 18px 40px -22px rgba(0, 0, 0, .32);
}
.liquid.is-active.nav__link, .liquid.icon-btn.is-active { background: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .35)); }
/* карточки автопарка двигаются каждый кадр — только вид стекла, без размытия фона */
.car-card.liquid { -webkit-backdrop-filter: none; backdrop-filter: none; }
.theme-dark .liquid.liquid {
  background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .02));
  border-color: rgba(255, 255, 255, .16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .38),
    inset 0 -1px 0 rgba(255, 255, 255, .07),
    inset 1px 0 0 rgba(255, 255, 255, .08),
    inset -1px 0 0 rgba(255, 255, 255, .05),
    0 24px 60px -28px rgba(0, 0, 0, .85);
}
.theme-dark .liquid.is-active { background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .1)); }
/* блик стекла: светлая дуга сверху-слева и слабый отсвет снизу-справа */
.liquid::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background:
    radial-gradient(120% 70% at 18% -10%, rgba(255, 255, 255, .16), transparent 55%),
    radial-gradient(90% 60% at 100% 110%, rgba(255, 255, 255, .06), transparent 60%);
}
/* яркая тонкая кромка (градиентная рамка) */
.liquid::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px;
  background: linear-gradient(140deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .06) 35%, rgba(255, 255, 255, .02) 60%, rgba(255, 255, 255, .25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
/* ============ Тёмная тема (hero и шапка над ним) ============ */
.theme-dark {
  --ink: #f3f3f3;
  --ink-2: #b4b4b4;
  --muted: #8a8a8a;
  --muted-2: #6d6d6d;
  --line: rgba(255, 255, 255, .1);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .035));
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 60px -30px rgba(0, 0, 0, .8);
  color: var(--ink);
}
.theme-dark .pill, .theme-dark .icon-btn, .theme-dark .tile-btn, .theme-dark .langs, .theme-dark .btn--glass {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  color: var(--ink);
}
.theme-dark .pill:hover, .theme-dark .icon-btn:hover, .theme-dark .btn--glass:hover { background: rgba(255, 255, 255, .12); }
.theme-dark .icon-btn.is-active, .theme-dark .nav__link.is-active { background: rgba(255, 255, 255, .18); }
.theme-dark .tile-btn--green { background: var(--green); border-color: transparent; color: #fff; }
.theme-dark .langs__btn { color: var(--ink-2); }
.theme-dark .langs__btn:hover { background: rgba(255, 255, 255, .08); }
.theme-dark .langs__btn.is-active { background: var(--green); color: #fff; }
.theme-dark .glass--blur { background: linear-gradient(180deg, rgba(34, 34, 36, .55), rgba(20, 20, 22, .45)); }
.theme-dark .panel-head, .theme-dark .hcard__head, .theme-dark .panel-input__text { border-color: rgba(255, 255, 255, .08); }
.theme-dark .mini:hover, .theme-dark .mini.is-hl { background: rgba(255, 255, 255, .07); }
.theme-dark .panel-input, .theme-dark .duo, .theme-dark .hcard__row { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .08); }
.theme-dark .hcard__row:hover { background: rgba(255, 255, 255, .09); }
.theme-dark .duo--muted { background: transparent; }
.theme-dark .radio { border-color: #6a6a6a; }
.theme-dark .radio.is-on { border-color: var(--green); }
.theme-dark .logo img { border-radius: 12px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .22); }
.header { transition: transform .6s var(--ease), color .4s; }
.header.theme-dark.is-scrolled .header__inner::before { background: linear-gradient(180deg, rgba(11, 11, 12, .92), rgba(11, 11, 12, 0)); }

/* ============ Студийный свет ============ */
/* Позицию (--lx центр машины, --cw ширина машины, --floor уровень пола) считает JS */
.studio { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
/* Задняя стена студии: едва заметные швы панелей и отсвет лампы за машиной */
.studio__wall {
  position: absolute; left: 0; right: 0; top: 0;
  height: calc(var(--floor, 70%) - var(--cw, 800px) * .07);
  background:
    radial-gradient(40% 58% at var(--lx, 45%) 78%, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02) 55%, transparent 80%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 160px),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .03) 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
/* стык стены и пола + пол чуть светлее у машины */
.studio__ground {
  position: absolute; left: 0; right: 0; bottom: 0;
  top: calc(var(--floor, 70%) - var(--cw, 800px) * .07);
  border-top: 1px solid rgba(255, 255, 255, .09);
  background:
    radial-gradient(45% 70% at var(--lx, 45%) 0%, rgba(255, 255, 255, .04), transparent 75%),
    linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 55%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.studio__lamp {
  position: absolute; left: var(--lx, 45%); top: calc(var(--header-h) + 26px);
  width: 96px; height: 6px; margin-left: -48px; border-radius: 6px;
  background: #f6f6f6;
  box-shadow: 0 0 14px 3px rgba(255, 255, 255, .4), 0 0 80px 20px rgba(255, 255, 255, .1);
}
.studio__floor {
  position: absolute; left: var(--lx, 45%); top: var(--floor, 70%);
  width: calc(var(--cw, 800px) * 1.45); height: calc(var(--cw, 800px) * .22);
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 255, 255, .18), rgba(255, 255, 255, .07) 45%, rgba(255, 255, 255, .02) 75%, transparent);
}
.studio-beam {
  position: absolute; z-index: 0; pointer-events: none;
  left: var(--lx, 45%); top: calc(var(--header-h) + 28px);
  width: calc(var(--cw, 800px) * 1.25);
  height: calc(var(--floor, 70%) - var(--header-h) - 14px);
  transform: translateX(-50%);
  mix-blend-mode: screen;
  filter: blur(16px);
}
.studio-beam::before {
  content: ''; position: absolute; inset: 0;
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .07) 45%, rgba(255, 255, 255, .04) 80%, rgba(255, 255, 255, .01));
}
.studio-dust {
  position: absolute; z-index: 2; pointer-events: none;
  left: var(--lx, 45%); top: calc(var(--header-h) + 28px);
  width: calc(var(--cw, 800px) * 1.25);
  height: calc(var(--floor, 70%) - var(--header-h) - 24px);
  transform: translateX(-50%);
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
}
.studio-dust span {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: #fff; opacity: 0;
  animation: dust var(--d, 9s) linear var(--delay, 0s) infinite;
}
@keyframes dust {
  0% { transform: translate(0, 0); opacity: 0; }
  20% { opacity: .55; }
  80% { opacity: .35; }
  100% { transform: translate(var(--dx, 12px), -70px); opacity: 0; }
}
@media (max-width: 900px) {
  .studio-beam { filter: blur(10px); }
}

/* Телефоны: шапка при прокрутке — сплошная матовая полоса, текст секций под ней не просвечивает */
@media (max-width: 900px) {
  .header.is-scrolled .header__inner::before,
  .header.theme-dark.is-scrolled .header__inner::before {
    inset: -14px 0 -12px;
    background: rgba(214, 214, 214, .86);
    -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid rgba(0, 0, 0, .06);
  }
  .header.theme-dark.is-scrolled .header__inner::before { background: rgba(12, 12, 13, .86); border-bottom-color: rgba(255, 255, 255, .06); }
}
