/* ===== шапка из «плиток», как у референса ===== */
.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-block: 12px;
  transition: padding .4s var(--ease);
}

/* вуаль под плитками: прокручиваемая страница растворяется у шапки,
   а не торчит углами полей в щелях между плитками */
.hdr::before {
  content: '';
  position: absolute;
  inset: 0 0 -20px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(var(--bg) 42%, color-mix(in srgb, var(--bg) 70%, transparent) 70%, transparent);
}

.hdr__in { display: flex; align-items: center; gap: 8px; }

.box {
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  transition: border-color .3s var(--ease), background-color .5s var(--ease);
}

a.box:hover, button.box:hover { border-color: var(--line-2); }

.hdr__logo { padding-right: 12px; }
.hdr__logo .logo__mark { width: 24px; height: 24px; }
.hdr__logo span { font-weight: 620; font-stretch: var(--wide); letter-spacing: -0.03em; font-size: 15px; }

.hdr__brand {
  width: 22px;
  height: 22px;
  fill: currentColor;
  padding-left: 10px;
  margin-left: 2px;
  box-sizing: content-box;
  border-left: 1px solid var(--line-2);
  color: var(--ink);
}

.hdr__icon { width: 44px; justify-content: center; padding: 0; }

.hdr__nav { flex: 1; justify-content: center; gap: 2px; padding: 4px; }

.hdr__nav a {
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color .25s, background-color .25s;
}

.hdr__nav a:hover { color: var(--ink); background: var(--card); }

.hdr__switch { font-size: 14px; font-weight: 560; font-stretch: var(--wide); letter-spacing: -0.02em; }
.hdr__switch .i-arrow { color: var(--ink-3); transition: transform .4s var(--ease), color .3s; }
.hdr__switch:hover .i-arrow { transform: translate(2px, -2px); color: var(--accent); }

.hdr__switch-logo {
  width: 20px;
  height: 20px;
  fill: currentColor;
  color: var(--ink-3);
  transition: color .4s var(--ease), transform .6s var(--ease);
}

.hdr__switch:hover .hdr__switch-logo { color: var(--accent); transform: rotate(var(--tilt, -12deg)); }

@media (max-width: 1080px) {
  .hdr__nav { display: none; }
  .hdr__switch { margin-left: auto; }
}

@media (max-width: 620px) {
  .hdr { padding-block: 10px; }
  .hdr__in { gap: 6px; }
  .hdr__tg span, .hdr__switch span, .hdr__brand { display: none; }
  .hdr__tg { width: 44px; padding: 0; }
  .hdr__cta { padding: 0 14px; }
  .hdr__switch { padding: 0 12px; }
}

/* узкий телефон: всё в одну строку без сжатых кнопок. Telegram есть на первом экране
   («записаться в telegram»), поэтому из шапки он уходит; у переключателя марки — без стрелки */
@media (max-width: 430px) {
  .hdr__in { gap: 4px; }
  .hdr__cta { padding: 0 12px; }
  .hdr__tg, .hdr__switch .i-arrow { display: none; }
}

@media (max-width: 359px) {
  .hdr__icon { display: none; }
}

/* ===== первый экран ===== */
.hero {
  min-height: clamp(400px, 70vh, 820px);
  display: flex;
  align-items: center;
  padding-block: 40px 56px;
}

/* на телефоне экран узкий и высокий: заголовок сразу под шапкой, кнопки записи — на первом экране */
@media (max-width: 760px) {
  .hero { min-height: 0; padding-block: 36px 44px; }
}

.hero__in { display: grid; gap: clamp(20px, 3vw, 36px); }

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-3);
  animation: line-in 1s var(--ease) backwards;
}

.hero__logo { width: 34px; height: 34px; fill: currentColor; color: var(--ink); }

.hero__title { font-size: clamp(2.5rem, 8.4vw, 8.4rem); }

.hero__line {
  display: block;
  animation: line-in 1.2s var(--ease) backwards;
  animation-delay: calc(.1s + var(--i) * .12s);
}

@keyframes line-in {
  from { opacity: 0; transform: translateY(.35em); filter: blur(10px); }
}

.hero__icon {
  display: inline-block;
  margin: 0 .04em;
  vertical-align: -.04em;
}

/* переключатель «вкл»: после появления заголовка щёлкает во включённое положение */
.tgl {
  position: relative;
  display: block;
  width: 1.62em;
  height: .9em;
  border-radius: 1em;
  background: var(--line-2);
  box-shadow: inset 0 .03em .08em rgb(0 0 0 / .22);
  isolation: isolate;
}

.tgl::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--s1, var(--accent)) 0 33.4%, var(--s2, var(--accent)) 0 66.7%, var(--s3, var(--accent)) 0);
  opacity: 0;
  animation: tgl-on .5s var(--ease) 1.05s forwards;
}

.tgl__knob {
  position: absolute;
  top: .07em;
  left: .07em;
  width: .76em;
  height: .76em;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff, #eef0f3);
  box-shadow: 0 .03em .1em rgb(0 0 0 / .28), 0 0 0 .005em rgb(0 0 0 / .06);
  animation: tgl-knob .65s var(--ease) .95s forwards;
}

@keyframes tgl-on { to { opacity: 1; } }
@keyframes tgl-knob { to { transform: translateX(.72em); } }

@media (prefers-reduced-motion: reduce) {
  .tgl::before { animation: none; opacity: 1; }
  .tgl__knob { animation: none; transform: translateX(.72em); }
}

/* ===== MGU Store: плашка «новое» в первом экране ведёт к разделу после цифр ===== */
.hero__eyebrow { flex-wrap: wrap; row-gap: 14px; }

.hero__news {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  margin-left: 10px;
  padding: 0 13px 0 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card-2);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  transition: border-color .3s, color .3s;
}

.hero__news b {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 7px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 500 11px/1 var(--mono);
}

.hero__news .i-arrow { width: 12px; height: 12px; color: var(--ink-3); transition: transform .4s var(--ease), color .3s; }
.hero__news:hover { border-color: var(--ink); color: var(--ink); }
.hero__news:hover .i-arrow { transform: translate(2px, -2px); color: var(--accent); }

.spotlight .section__head { gap: 18px; }
.spotlight__kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-3); }

/* серая сцена, экран iDrive поднимается из её нижнего края */
.spotlight__stage {
  margin: 0;
  overflow: hidden;
  padding: 56px 64px 0;
  border-radius: var(--r-xl);
  background: var(--card);
}

.spotlight__screen {
  position: relative;
  max-width: 1060px;
  margin: 0 auto;
  padding: 10px 10px 0;
  border-radius: 24px 24px 0 0;
  background: #0c0e12;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .07), 0 40px 80px -40px rgb(15 20 27 / .6), 0 18px 36px -18px rgb(15 20 27 / .35);
}

.spotlight__screen img { display: block; width: 100%; height: auto; border-radius: 14px 14px 0 0; }

/* блик на стекле */
.spotlight__screen::after {
  content: "";
  position: absolute;
  inset: 10px 10px 0;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(118deg, rgb(255 255 255 / .08), transparent 34%);
  pointer-events: none;
}

.spotlight__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 20px; }
.spotlight__chips { display: flex; flex-wrap: wrap; gap: 6px; }

.spotlight__chips li {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card-2);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.3;
}

.spotlight__note { margin-right: auto; color: var(--ink-3); font-size: 13px; line-height: 1.4; }
.spotlight__foot .btn { gap: 10px; }
.spotlight__credit { margin-top: 18px; color: var(--ink-4); text-align: center; }
.spotlight__credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; transition: color .3s; }
.spotlight__credit a:hover { color: var(--ink); }

/* телефон: экран обрезан до 4:3 слева и уходит за правый край сцены */
@media (max-width: 860px) {
  .hero__news { margin-left: 0; }
  .spotlight__stage { padding: 28px 0 0 22px; }
  .spotlight__screen { padding: 9px 0 0 9px; border-radius: 22px 0 0 0; }
  .spotlight__screen img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 0 50%; border-radius: 14px 0 0 0; }
  .spotlight__screen::after { inset: 9px 0 0 9px; border-radius: 14px 0 0 0; }
  .spotlight__foot { flex-direction: column; align-items: stretch; }
  .spotlight__foot .btn { justify-content: space-between; }
  .spotlight__credit { text-align: left; }
}

/* заголовок длиннее остальных: на узком телефоне чуть меньше, чтобы лёг в две строки */
@media (max-width: 420px) {
  .spotlight .section__title { font-size: clamp(1.75rem, 9.2vw, 2.4rem); }
}

/* ===== строка под заголовком ===== */
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  border-top: 1px solid var(--ink);
  padding-top: 28px;
}

.intro__lead { max-width: 600px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.45; color: var(--ink-2); }
.intro__actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 860px) {
  .intro { flex-direction: column; align-items: stretch; }
  .intro__actions .btn { flex: 1 1 220px; }
}

/* ===== цифры ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(48px, 6vw, 80px);
}

.stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-height: 150px;
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--card);
}

.stat__v { font-size: clamp(22px, 2.3vw, 32px); font-weight: 580; font-stretch: var(--wide); letter-spacing: -0.035em; line-height: 1.05; }
.stat__l { color: var(--ink-3); font-size: 14px; }

@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===== секции ===== */
.section { padding-top: clamp(96px, 12vw, 168px); }

.section__head {
  display: grid;
  justify-items: center;
  gap: 16px;
  margin-bottom: clamp(32px, 4vw, 56px);
  text-align: center;
}

.section__title { font-size: clamp(2.4rem, 5.6vw, 4.8rem); }
.section__lead { max-width: 580px; color: var(--ink-3); }

/* ===== услуги ===== */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 24px; }

.tab {
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}

.tab:hover { border-color: var(--line-2); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

@media (max-width: 760px) {
  .tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; }
}

.svc-groups { display: grid; gap: 40px; transition: opacity .25s var(--ease); }
.svc-groups.is-switching { opacity: 0; }
.svc-group[hidden] { display: none; }

.svc-group__title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 580;
  font-stretch: var(--wide);
  letter-spacing: -0.03em;
}

.svc-group__title .mono { color: var(--ink-4); font-size: 12px; font-weight: 400; letter-spacing: 0; }

/* список функций с галочками */
.svc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

@media (max-width: 900px) { .svc-list { grid-template-columns: 1fr; } }

.svc {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: var(--card);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .35s var(--ease), background-color .35s var(--ease), opacity 1s var(--ease), transform 1s var(--ease);
}

.svc:hover { border-color: var(--line-2); }
.svc:has(.svc__input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--card)); }

.svc__input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.svc__box {
  position: relative;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 8px;
  border: 1.5px solid var(--line-2);
  background: var(--card-2);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}

.svc__box::after {
  content: "";
  position: absolute;
  left: 7.5px;
  top: 3.5px;
  width: 5.5px;
  height: 11px;
  border: solid var(--accent-ink);
  border-width: 0 2.2px 2.2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .4s var(--ease);
}

.svc:active .svc__box { transform: scale(.9); }
.svc__input:checked + .svc__box { background: var(--accent); border-color: var(--accent); }
.svc__input:checked + .svc__box::after { transform: rotate(45deg) scale(1); }
.svc__input:focus-visible + .svc__box { outline: 2px solid var(--accent); outline-offset: 2px; }

.svc__main { display: grid; gap: 4px; min-width: 0; }
.svc__title { font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }

.svc__hot {
  margin-left: 8px;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font: 600 10px/1.4 var(--font);
  font-style: normal;
  letter-spacing: .06em;
  text-transform: uppercase;
  vertical-align: 2px;
}

.svc__desc { color: var(--ink-3); font-size: 14px; line-height: 1.45; }
.svc__meta { margin-top: 4px; color: var(--ink-4); font-size: 11.5px; line-height: 1.5; }
.svc__remote { white-space: nowrap; }

.svc__remote::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  vertical-align: 1px;
  background: var(--ok);
}

.svc__remote--flash::before { background: var(--warn); }
.svc__remote--no::before { background: var(--ink-4); }

.svc__price { font-size: 15px; font-weight: 600; white-space: nowrap; }

@media (max-width: 520px) {
  .svc { grid-template-columns: 24px minmax(0, 1fr); padding: 16px; }
  .svc__price { grid-column: 2; }
}

/* ===== как это работает ===== */
.how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }

.how__list { display: grid; align-content: center; }

.how__item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.how__item:last-child { border-bottom: 1px solid var(--line); }
.how__n { padding-top: 5px; color: var(--ink-4); }
.how__item h3 { margin-bottom: 4px; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.how__item p { color: var(--ink-3); font-size: 15px; }

.chat { display: grid; place-items: center; padding: clamp(18px, 3.5vw, 44px); overflow: hidden; }

.chat__phone {
  width: min(100%, 390px);
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--card-2);
  box-shadow: var(--shadow);
}

.chat__head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat__head span:last-child { display: grid; line-height: 1.2; }
.chat__head b { font-size: 15px; font-weight: 600; }
.chat__head small { color: var(--ink-4); font-size: 12px; }
.chat__ava .logo__mark { width: 36px; height: 36px; }

.chat__body { display: grid; gap: 8px; padding: 16px; }

.bubble {
  max-width: 86%;
  padding: 10px 12px 8px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.4;
}

.bubble time { display: block; margin-top: 2px; font: 10px/1.2 var(--mono); text-align: right; opacity: .6; }
.bubble--out { justify-self: end; border-bottom-right-radius: 6px; background: var(--accent); color: var(--accent-ink); }
.bubble--in { justify-self: start; border-bottom-left-radius: 6px; background: var(--card); }
.bubble--card { display: grid; gap: 4px; min-width: 76%; }
.bubble--card .mono { color: var(--accent); }
.bubble__row { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); font-size: 13px; }
.bubble__row--total { margin-top: 2px; padding-top: 6px; border-top: 1px dashed var(--line-2); color: var(--ink); font-weight: 600; }

.js .chat .bubble { opacity: 0; transform: translateY(12px) scale(.97); }
.js .chat.is-in .bubble { animation: bubble-in .7s var(--ease) forwards; animation-delay: calc(.35s + var(--i) * .55s); }

@keyframes bubble-in { to { opacity: 1; transform: none; } }

@media (max-width: 900px) { .how { grid-template-columns: 1fr; } }

/* ===== форматы ===== */
.formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

.fmt { display: flex; flex-direction: column; gap: 12px; min-height: 250px; padding: 26px; }
.fmt .mono { color: var(--ink-4); }
.fmt h3 { margin-top: auto; font-size: clamp(24px, 2.4vw, 32px); font-weight: 580; font-stretch: var(--wide); letter-spacing: -0.035em; }
.fmt p { color: var(--ink-3); font-size: 15px; }
.fmt .fmt__meta { color: var(--ink-2); }

.fmt--accent { background: var(--accent); color: var(--accent-ink); }
.fmt--accent .mono, .fmt--accent p, .fmt--accent .fmt__meta { color: color-mix(in srgb, var(--accent-ink) 80%, transparent); }

@media (max-width: 900px) { .formats { grid-template-columns: 1fr; } .fmt { min-height: 0; } }

/* ===== вопросы ===== */
.faq { max-width: 960px; margin-inline: auto; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }

.faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  list-style: none;
  cursor: pointer;
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 500;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__icon {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  transition: background-color .35s var(--ease), color .35s var(--ease);
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.7px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform .5s var(--ease);
}

.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--accent); color: var(--accent-ink); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq__item::details-content {
  height: 0;
  overflow: clip;
  transition: height .55s var(--ease), content-visibility .55s allow-discrete;
}

.faq__item[open]::details-content { height: auto; }
.faq__a { max-width: 760px; padding-bottom: 22px; color: var(--ink-3); }

/* ===== запись ===== */
.book { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 12px; align-items: start; }
.book__form { padding: clamp(18px, 3vw, 34px); scroll-margin-top: calc(var(--hdr-h) + 12px); }
.book__aside { position: sticky; top: calc(var(--hdr-h) + 12px); display: grid; gap: 12px; }

.tgcard { display: grid; gap: 10px; justify-items: start; padding: 26px; }
.tgcard__eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-3); }
.tgcard h3 { margin-top: 18px; font-size: 26px; font-weight: 580; font-stretch: var(--wide); letter-spacing: -0.035em; line-height: 1.05; }
.tgcard p { color: var(--ink-3); font-size: 15px; margin-bottom: 8px; }

.contacts { padding: 8px 26px; }
.contacts dl > div { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; }
.contacts dl > div:first-child { border-top: 0; }
.contacts dt { padding-top: 3px; color: var(--ink-4); }
.contacts a:hover { color: var(--accent); }

@media (max-width: 1040px) {
  .book { grid-template-columns: 1fr; }
  .book__aside { position: static; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) { .book__aside { grid-template-columns: 1fr; } }

/* ===== подвал ===== */
.ftr { display: grid; gap: 40px; padding-top: clamp(96px, 12vw, 168px); padding-bottom: 32px; }
.ftr__tag { max-width: 16ch; margin-top: 22px; font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
.ftr__row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 14px; }
.ftr__row .mono { padding-top: 2px; color: var(--ink-4); }
.ftr__row nav { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.ftr__row a { transition: color .25s; }
.ftr__row a:hover, .ftr__row a[aria-current] { color: var(--accent); }
.ftr__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: var(--ink-4); font-size: 13px; }
.ftr__bottom a:hover { color: var(--ink); }
.ftr__legal { margin-top: -24px; max-width: 80ch; color: var(--ink-4); font-size: 12px; line-height: 1.5; }

@media (max-width: 560px) { .ftr__row { grid-template-columns: 1fr; gap: 8px; } }

/* ===== кольца в заголовке VAG: прорисовываются чёрным в светлой теме и белым в тёмной ===== */
.hero__icon--rings { vertical-align: -.01em; margin: 0 .06em; }

.rings {
  --rings-ink: #0b0b0c;
  display: block;
  width: 2.05em;
  height: .74em;
  overflow: visible;
}

[data-theme="dark"] .rings { --rings-ink: #ffffff; }

.rings circle { fill: none; stroke-width: 9; }
.rings__base circle { stroke: var(--line); }

/* Штрих чуть длиннее окружности, а сдвиг выводит его за её пределы:
   до старта браузер не рисует даже обрезков на стыке */
.rings__ink circle {
  stroke: var(--rings-ink);
  stroke-dasharray: 101 200;
  stroke-dashoffset: 102;
  transform: rotate(-90deg);
  transform-box: fill-box;
  transform-origin: center;
  animation: ring-draw 1.5s var(--ease-io) forwards;
  animation-delay: calc(.8s + var(--i) * .2s);
}

@keyframes ring-draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .rings__ink circle { animation: none; stroke-dashoffset: 0; }
}

/* ===== удалённо ===== */
.remote { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 12px; align-items: start; }

@media (max-width: 1000px) { .remote { grid-template-columns: minmax(0, 1fr); } }

.remote__check { display: grid; gap: 16px; padding: clamp(20px, 2.4vw, 30px); }
.remote__check .btn { justify-self: start; }
.remote__eyebrow { color: var(--ink-4); font-size: 12px; }

.remote__lists { display: grid; gap: 12px; }
.remote__list { padding: 22px 24px; }

.remote__list h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.remote__dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.remote__list--flash .remote__dot { background: var(--warn); }
.remote__list--no .remote__dot { background: var(--ink-4); }

.remote__list ul { display: flex; flex-wrap: wrap; gap: 6px; }

.remote__list li {
  padding: 6px 10px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.3;
}

.remote__list li.remote__more { border-style: dashed; color: var(--ink-4); }
.fmt--accent a.fmt__meta { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ===== плашка «в заявке» ===== */
.cart {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 8px 0 10px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 16px 40px -12px rgb(0 0 0 / .4);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transform: translateX(-50%);
  transition: transform .7s var(--ease), opacity .5s var(--ease);
}

.cart[hidden] { display: flex !important; opacity: 0; pointer-events: none; transform: translate(-50%, 150%); }

.cart__n {
  min-width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
}

.cart__go {
  height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 11px;
  background: var(--accent);
  color: var(--accent-ink);
}

/* ===== всплывающая подсказка ===== */
.vehicle { --wz-surface: var(--card); --wz-line: var(--line); padding-block: 26px; border-block: 1px solid var(--line); margin-bottom: 12px; }
.vehicle__main { display: grid; grid-template-columns: 1fr 1.8fr .7fr; gap: 18px; align-items: end; }
.vehicle__details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-top: 18px; max-width: 780px; }
.vehicle .wz-field { margin: 0; }
.vehicle__status { color: var(--ink-3); font-size: 14px; line-height: 1.6; max-width: 85ch; margin-bottom: 26px; }
.svc__compat { display: block; font-size: 12px; line-height: 1.55; color: var(--ink-3); margin-top: 8px; }
.svc__compat:empty { display: none; }
.svc[data-compatibility="check"] .svc__compat { color: var(--ink-2); }
.svc[hidden], .svc-group[hidden] { display: none; }
.vehicle .wz-input:disabled { opacity: .6; cursor: not-allowed; }
.vehicle .wz-input::placeholder, .vehicle .wz-label i { color: var(--ink-3); }
.tabs .tab[hidden] { display: none; }
@media (max-width: 620px) {
  .vehicle__main { grid-template-columns: 1fr 1fr; gap: 16px; }
  .vehicle__main > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .vehicle__details { grid-template-columns: 1fr; gap: 16px; }
}

.toast {
  position: fixed;
  left: 50%;
  top: calc(var(--hdr-h) + 14px);
  z-index: 70;
  max-width: min(92vw, 460px);
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow);
  font-size: 14px;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -12px);
  transition: opacity .4s var(--ease), transform .5s var(--ease);
}

.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ===== служебные страницы ===== */
.doc { display: grid; gap: 18px; max-width: 820px; padding-block: 32px 96px; }
.doc .logo { margin-bottom: 48px; }
.doc h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 12px; }
.doc h2 { margin-top: 18px; font-size: 20px; font-weight: 600; }
.doc p { color: var(--ink-2); }
.doc__meta { color: var(--ink-4); }
.doc--center { min-height: 100svh; place-content: center; justify-items: start; }
