/* ==========================================================
   RIVO / AUTO CARE — демонстрационная концепция Zenith Studio
   Единая визуальная система для трёх страниц
   ========================================================== */

:root {
  --ink: #111417;        /* Deep Ink — основной фон */
  --carbon: #23292D;     /* Carbon — второй тёмный фон */
  --mist: #F1F3F2;       /* Mist White — светлая поверхность */
  --near: #1B2023;       /* Near Black — текст на светлом */
  --copper: #C58D69;     /* Copper Signal — акцент */
  --copper-hi: #D9A483;
  --steel: #9AA3A7;      /* Steel Grey — вторичный текст */
  --line: #42494D;       /* Slate Line — разделители */
  --line-light: #D3D8D6;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 76px;
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--mist);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.05; letter-spacing: -0.025em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--copper); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--copper); color: var(--ink); padding: 10px 16px;
  font-weight: 700; border-radius: var(--radius);
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Типографические помощники ---------- */
.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--copper);
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: currentColor;
}
.h-display { font-size: clamp(44px, 8.2vw, 124px); font-weight: 800; letter-spacing: -0.045em; line-height: .95; }
.h-1 { font-size: clamp(40px, 6.4vw, 92px); font-weight: 800; letter-spacing: -0.04em; line-height: .98; }
.h-2 { font-size: clamp(32px, 4.6vw, 64px); font-weight: 800; letter-spacing: -0.035em; }
.h-3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.lead { font-size: clamp(17px, 1.45vw, 20px); color: var(--steel); max-width: 56ch; line-height: 1.6; }
.accent { color: var(--copper); }

/* Построчное появление заголовков */
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line > span { display: block; transform: translateY(105%); transition: transform 1s var(--ease); }
.is-in .line > span, .line.is-in > span { transform: none; }
.line:nth-child(2) > span { transition-delay: .09s; }
.line:nth-child(3) > span { transition-delay: .18s; }
.line:nth-child(4) > span { transition-delay: .27s; }

/* ---------- Кнопки ---------- */
.btn {
  --bg: var(--copper); --fg: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 26px;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--bg); border-radius: var(--radius);
  font-weight: 700; font-size: 15px; letter-spacing: .01em;
  overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--mist); transform: translateY(101%);
  transition: transform .45s var(--ease);
}
.btn:hover::after { transform: none; }
.btn:hover { border-color: var(--mist); color: var(--ink); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--ghost { --bg: transparent; --fg: var(--mist); border-color: rgba(241,243,242,.32); }
.btn--ghost:hover { color: var(--ink); }
.btn--dark { --bg: var(--near); --fg: var(--mist); }
.btn--dark::after { background: var(--copper); }
.btn--dark:hover { border-color: var(--copper); color: var(--ink); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }

.arrow { width: 16px; height: 16px; flex: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15px;
  border-bottom: 1px solid currentColor; padding-bottom: 4px;
  transition: color .3s, gap .3s var(--ease);
}
.link-arrow:hover { color: var(--copper); gap: 14px; }

/* ---------- Шапка ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  transition: background .4s var(--ease), border-color .4s, transform .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(17, 20, 23, .86);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: rgba(66, 73, 77, .6);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: baseline; gap: 12px; }
.logo__word { font-size: 26px; font-weight: 800; letter-spacing: .18em; line-height: 1; }
.logo__word i { font-style: normal; color: var(--copper); }
.logo__sub { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--steel); text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 40px; }
.nav__list { display: flex; gap: 34px; }
.nav__link {
  position: relative; font-size: 15px; font-weight: 600; color: var(--steel);
  padding: 6px 0; transition: color .3s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--copper); transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--mist); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__num { font-family: var(--mono); font-size: 10px; color: var(--copper); margin-right: 6px; vertical-align: 2px; }

.burger {
  display: none; width: 48px; height: 48px; margin-right: -10px;
  background: none; border: 0; position: relative;
}
.burger span {
  position: absolute; left: 12px; right: 12px; height: 2px; background: var(--mist);
  transition: transform .4s var(--ease), opacity .3s;
}
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 28px; right: 20px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); right: 12px; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--ink);
  padding: calc(var(--header-h) + 32px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__list li { border-bottom: 1px solid var(--line); }
.mobile-menu__list a {
  display: flex; align-items: baseline; gap: 16px; padding: 18px 0;
  font-size: clamp(34px, 10vw, 52px); font-weight: 800; letter-spacing: -0.03em;
  transform: translateY(16px); opacity: 0;
  transition: transform .6s var(--ease), opacity .6s var(--ease), color .3s;
}
.mobile-menu__list a span { font-family: var(--mono); font-size: 12px; color: var(--copper); font-weight: 400; letter-spacing: .1em; }
.mobile-menu__list a[aria-current="page"] { color: var(--copper); }
.mobile-menu.is-open .mobile-menu__list a { transform: none; opacity: 1; }
.mobile-menu.is-open li:nth-child(2) a { transition-delay: .05s; }
.mobile-menu.is-open li:nth-child(3) a { transition-delay: .1s; }
.mobile-menu__foot { display: grid; gap: 18px; }
.mobile-menu__foot .btn { width: 100%; }
.mobile-menu__note { color: var(--steel); font-size: 13px; }

/* ---------- Секции ---------- */
.section { padding: clamp(80px, 11vw, 160px) 0; position: relative; }
.section--light { background: var(--mist); color: var(--near); }
.section--light .lead { color: #4B5458; }
.section--carbon { background: var(--carbon); }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(44px, 6vw, 80px); }
.section-head--split {
  grid-template-columns: 1fr auto; align-items: end; gap: 32px;
}

/* ---------- HERO (главная) ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; background: #050607;
}
.hero__media { position: absolute; inset: -6% 0 0; will-change: transform; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 62%;
  transform: scale(1.08); opacity: 0;
  transition: transform 2.4s var(--ease), opacity 1.6s var(--ease);
}
.is-loaded .hero__media img { transform: scale(1); opacity: 1; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5,6,7,.75) 0%, rgba(5,6,7,0) 34%),
    linear-gradient(0deg, rgba(17,20,23,1) 0%, rgba(17,20,23,0) 32%);
}
.hero__inner { position: relative; z-index: 2; padding-top: calc(var(--header-h) + 40px); padding-bottom: 40px; }
.hero__top { position: absolute; top: calc(var(--header-h) + 48px); left: 0; right: 0; z-index: 2; }
.hero__title { max-width: 11ch; }
.hero__bottom {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px;
  margin-top: clamp(28px, 4vw, 44px);
}
.hero__lead { color: #C3CACC; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(66,73,77,.8);
}
.hero__meta a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 18px 0; color: var(--steel);
  border-right: 1px solid rgba(66,73,77,.8); padding-right: 24px; margin-right: 24px;
  transition: color .3s;
}
.hero__meta a:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero__meta a:hover { color: var(--mist); }
.hero__meta b { color: var(--copper); font-weight: 400; margin-right: 10px; }

.fade-up { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.is-loaded .fade-up, .fade-up.is-in { opacity: 1; transform: none; }
.d1 { transition-delay: .25s; } .d2 { transition-delay: .4s; } .d3 { transition-delay: .55s; }

/* ---------- Карточки направлений ---------- */
.directions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); }
.direction {
  position: relative; display: flex; flex-direction: column;
  background: var(--ink); min-height: 540px; overflow: hidden;
}
.direction__media { position: absolute; inset: 0; }
.direction__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.55) brightness(.62) contrast(1.05);
  transform: scale(1.04);
  transition: transform 1.2s var(--ease), filter .8s var(--ease);
}
.direction::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(17,20,23,.96) 8%, rgba(17,20,23,.2) 62%, rgba(17,20,23,.55) 100%);
}
.direction:hover .direction__media img, .direction:focus-visible .direction__media img {
  transform: scale(1.1); filter: grayscale(0) brightness(.8) contrast(1.05);
}
.direction__body { position: relative; z-index: 1; margin-top: auto; padding: 32px; display: grid; gap: 14px; }
.direction__num { position: relative; z-index: 1; padding: 28px 32px 0; color: var(--copper); }
.direction__title { font-size: clamp(34px, 3.4vw, 48px); font-weight: 800; letter-spacing: -0.035em; }
.direction__text { color: #BAC2C5; max-width: 34ch; }
.direction__go {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 8px;
  font-weight: 700; font-size: 14px; color: var(--mist);
}
.direction__go .arrow { transition: transform .35s var(--ease); }
.direction:hover .direction__go { color: var(--copper); }
.direction:hover .direction__go .arrow { transform: translateX(5px); }
.direction__bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--copper); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); z-index: 2; }
.direction:hover .direction__bar { transform: scaleX(1); }

/* ---------- Манифест / шаги ---------- */
.statement { font-size: clamp(36px, 6vw, 88px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; max-width: 14ch; }
.statement em { font-style: normal; color: var(--copper); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line-light); }
.step { padding: 32px 32px 0 0; display: grid; gap: 14px; align-content: start; }
.step + .step { padding-left: 32px; border-left: 1px solid var(--line-light); }
.step__num { font-family: var(--mono); font-size: 13px; color: #8A6248; letter-spacing: .1em; }
.step__title { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.step__text { color: #4B5458; max-width: 32ch; }
.section:not(.section--light) .steps { border-top-color: var(--line); }
.section:not(.section--light) .step + .step { border-left-color: var(--line); }
.section:not(.section--light) .step__num { color: var(--copper); }
.section:not(.section--light) .step__text { color: var(--steel); }

.statement-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.statement-figure { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); }
.statement-figure img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }

/* ---------- Превью работ ---------- */
.previews { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; align-items: end; }
.preview { display: grid; gap: 18px; }
.preview__media { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 11; background: var(--carbon); }
.preview:nth-child(2) .preview__media { aspect-ratio: 4 / 4.2; }
.preview__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.preview:hover .preview__media img { transform: scale(1.05); }
.preview__tag {
  position: absolute; left: 16px; top: 16px;
  background: rgba(17,20,23,.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--mist); padding: 8px 12px; border-radius: 2px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
}
.preview__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.preview__cap h3 { font-size: 22px; letter-spacing: -0.02em; }
.preview__cap span { color: var(--steel); }
.preview:hover .preview__cap h3 { color: var(--copper); }
.preview__cap h3 { transition: color .3s; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; text-align: left;
  padding: clamp(96px, 13vw, 190px) 0;
  background: var(--carbon);
}
.cta__media { position: absolute; inset: 0; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.38) grayscale(.4); }
.cta .wrap { position: relative; display: grid; gap: 32px; justify-items: start; }
.cta__title { max-width: 16ch; }
.cta__ring {
  position: absolute; right: var(--gutter); top: 50%; translate: 0 -50%;
  width: clamp(160px, 22vw, 300px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(197,141,105,.5);
  display: grid; place-items: center;
}
.cta__ring::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 1px dashed rgba(241,243,242,.18); animation: spin 40s linear infinite; }
.cta__ring span { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--copper); text-transform: uppercase; text-align: center; line-height: 1.8; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Заголовки внутренних страниц ---------- */
.page-hero {
  position: relative; min-height: min(86svh, 820px);
  display: flex; align-items: flex-end; overflow: hidden;
  padding: calc(var(--header-h) + 60px) 0 clamp(48px, 6vw, 80px);
}
.page-hero__media { position: absolute; inset: -6% 0 0; will-change: transform; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.5) grayscale(.35); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, var(--ink) 0%, rgba(17,20,23,.2) 55%, rgba(17,20,23,.6) 100%);
}
.page-hero .wrap { position: relative; z-index: 2; display: grid; gap: 28px; }
.page-hero__row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.crumbs { display: flex; gap: 10px; color: var(--steel); }
.crumbs a:hover { color: var(--mist); }
.crumbs span[aria-current] { color: var(--copper); }

/* ---------- Каталог услуг (вкладки) ---------- */
.tabs__list {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius);
  position: sticky; top: calc(var(--header-h) + 8px); z-index: 20;
  background: rgba(17,20,23,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.tab {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 22px 28px; background: none; border: 0; text-align: left;
  color: var(--steel); font-size: clamp(18px, 1.8vw, 24px); font-weight: 700; letter-spacing: -0.02em;
  transition: color .3s, background .3s;
}
.tab + .tab { border-left: 1px solid var(--line); }
.tab .mono { color: var(--steel); transition: color .3s; }
.tab::after {
  content: ""; position: absolute; left: -1px; right: -1px; bottom: -1px; height: 3px;
  background: var(--copper); transform: scaleX(0); transition: transform .5s var(--ease);
}
.tab:hover { color: var(--mist); }
.tab[aria-selected="true"] { color: var(--mist); background: var(--carbon); }
.tab[aria-selected="true"] .mono { color: var(--copper); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tab__dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--steel); flex: none; transition: background .3s, border-color .3s; }
.tab[aria-selected="true"] .tab__dot { background: var(--copper); border-color: var(--copper); }

.panel { margin-top: 40px; }
.panel[hidden] { display: none; }
.panel__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: stretch; }
.panel__media { position: relative; overflow: hidden; border-radius: var(--radius); min-height: 520px; background: var(--carbon); }
.panel__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel__media figcaption {
  position: absolute; left: 16px; bottom: 16px; padding: 8px 12px; border-radius: 2px;
  background: rgba(17,20,23,.8); color: var(--steel);
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
}
.panel__body { display: flex; flex-direction: column; gap: 28px; padding: 12px 0; }
.panel__body .h-2 { font-size: clamp(36px, 4vw, 60px); }
.panel__desc { color: #C3CACC; font-size: 18px; max-width: 46ch; }
.panel__block { border-top: 1px solid var(--line); padding-top: 22px; display: grid; gap: 14px; }
.panel__label { color: var(--copper); }
.qlist { display: grid; gap: 10px; }
.qlist li { position: relative; padding-left: 26px; color: var(--mist); }
.qlist li::before { content: ""; position: absolute; left: 0; top: .78em; width: 14px; height: 1px; background: var(--copper); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 14px; border: 1px solid var(--line); border-radius: 100px;
  font-size: 14px; color: #C3CACC;
}
.panel__actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.panel__note { color: var(--steel); font-size: 13px; max-width: 30ch; }

.panel.is-anim .panel__media img { animation: imgIn 1s var(--ease) both; }
.panel.is-anim .panel__body > * { animation: rise .8s var(--ease) both; }
.panel.is-anim .panel__body > *:nth-child(2) { animation-delay: .06s; }
.panel.is-anim .panel__body > *:nth-child(3) { animation-delay: .12s; }
.panel.is-anim .panel__body > *:nth-child(4) { animation-delay: .18s; }
.panel.is-anim .panel__body > *:nth-child(5) { animation-delay: .24s; }
@keyframes imgIn { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq { border-top: 1px solid var(--line-light); }
.faq__item { border-bottom: 1px solid var(--line-light); }
.faq__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; background: none; border: 0; text-align: left;
  font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; letter-spacing: -0.015em; color: var(--near);
}
.faq__q:hover { color: #8A6248; }
.faq__icon { position: relative; width: 32px; height: 32px; flex: none; border: 1px solid var(--line-light); border-radius: 50%; transition: background .3s, border-color .3s; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; translate: -50% -50%; transition: transform .4s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__icon { background: var(--near); border-color: var(--near); color: var(--mist); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: rotate(0); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 56px 28px 0; color: #4B5458; max-width: 60ch; }
.faq__q[aria-expanded="true"] + .faq__a { grid-template-rows: 1fr; }

/* ---------- Галерея ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  min-height: 44px; padding: 0 18px; border-radius: 100px;
  background: none; border: 1px solid var(--line); color: var(--steel);
  font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px;
  transition: color .3s, border-color .3s, background .3s;
}
.filter sup { font-family: var(--mono); font-size: 10px; color: var(--copper); }
.filter:hover { color: var(--mist); border-color: var(--steel); }
.filter[aria-pressed="true"] { background: var(--mist); color: var(--ink); border-color: var(--mist); }
.filter[aria-pressed="true"] sup { color: #8A6248; }

.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.g-item { grid-column: span 4; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.g-item.is-wide { grid-column: span 8; }
.g-item.is-hiding { opacity: 0; transform: scale(.97); }
.g-item[hidden] { display: none; }
.g-btn { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.g-media { display: block; position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 5; background: var(--carbon); }
.g-item.is-wide .g-media { aspect-ratio: auto; flex: 1; min-height: 280px; }
.g-item.is-wide .g-btn { height: 100%; display: flex; flex-direction: column; }
.g-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) contrast(1.04); transition: transform 1.1s var(--ease), filter .6s; }
.g-btn:hover .g-media img, .g-btn:focus-visible .g-media img { transform: scale(1.05); filter: saturate(1) contrast(1.04); }
.g-zoom {
  position: absolute; right: 14px; top: 14px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(17,20,23,.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: grid; place-items: center; opacity: 0; transform: scale(.85);
  transition: opacity .35s, transform .35s var(--ease);
}
.g-zoom svg { width: 18px; height: 18px; }
.g-btn:hover .g-zoom, .g-btn:focus-visible .g-zoom { opacity: 1; transform: none; }
.g-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 2px 0; }
.g-cap strong { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.g-cap span { color: var(--steel); white-space: nowrap; }
.gallery-note { margin-top: 32px; color: var(--steel); font-size: 14px; display: flex; gap: 12px; align-items: flex-start; }
.gallery-note::before { content: "i"; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--mono); font-size: 11px; color: var(--copper); margin-top: 1px; }

/* ---------- Просмотр фото (lightbox) ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(10, 12, 14, .96); color: var(--mist);
}
.lightbox::backdrop { background: rgba(10,12,14,.7); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: lbIn .4s var(--ease); }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox__top, .lightbox__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px var(--gutter); }
.lightbox__count { color: var(--steel); }
.lightbox__stage { position: relative; display: grid; place-items: center; padding: 0 var(--gutter); min-height: 0; }
.lightbox__stage { overflow: hidden; }
.lightbox__stage img { max-width: 100%; max-height: calc(100vh - 190px); max-height: calc(100dvh - 190px); width: auto; height: auto; object-fit: contain; border-radius: var(--radius); animation: imgIn .6s var(--ease); }
.lightbox__cap strong { display: block; font-size: 18px; }
.lightbox__cap span { color: var(--steel); font-size: 14px; }
.icon-btn {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  background: transparent; border: 1px solid var(--line); display: grid; place-items: center;
  transition: background .3s, border-color .3s, color .3s;
}
.icon-btn:hover { background: var(--mist); color: var(--ink); border-color: var(--mist); }
.icon-btn svg { width: 18px; height: 18px; }
.lightbox__nav { display: flex; gap: 10px; }

/* ---------- Контакты ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__aside { display: grid; gap: 28px; position: sticky; top: calc(var(--header-h) + 32px); }
.contact__list { display: grid; gap: 0; border-top: 1px solid var(--line-light); }
.contact__list li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line-light); color: #4B5458; }
.contact__list b { font-family: var(--mono); font-weight: 400; color: #8A6248; font-size: 13px; padding-top: 2px; }

.form-card {
  background: #fff; border: 1px solid var(--line-light); border-radius: 6px;
  padding: clamp(24px, 3.5vw, 44px); display: grid; gap: 22px;
  box-shadow: 0 30px 80px -40px rgba(17,20,23,.35);
}
.demo-flag {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: 4px;
  background: #FBF4EF; border: 1px dashed #D9B49A; color: #6B4A35; font-size: 14px; line-height: 1.5;
}
.demo-flag svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-size: 14px; font-weight: 700; color: var(--near); padding: 0; }
.field label small { font-weight: 500; color: #7A8387; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 52px; padding: 14px 16px;
  font: inherit; font-size: 16px; color: var(--near);
  background: var(--mist); border: 1px solid transparent; border-radius: 4px;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--line-light); }
.field input:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--near); box-shadow: 0 0 0 3px rgba(197,141,105,.25); }
.field.is-invalid input { border-color: #B4452F; background: #FDF3F1; }
.field__err { color: #B4452F; font-size: 13px; min-height: 0; }
.field__err:empty { display: none; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topic { position: relative; }
.topic input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; min-height: 0; padding: 0; opacity: 0; pointer-events: none; }
.topic span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 100px;
  border: 1px solid var(--line-light); font-size: 15px; font-weight: 600; color: #4B5458; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.topic span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1px solid currentColor; margin-right: 10px; transition: background .25s; }
.topic input:checked + span { background: var(--near); color: var(--mist); border-color: var(--near); }
.topic input:checked + span::before { background: var(--copper); border-color: var(--copper); }
.topic input:focus-visible + span { outline: 2px solid var(--copper); outline-offset: 2px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-foot p { font-size: 13px; color: #7A8387; max-width: 36ch; }
.form-status { display: none; padding: 16px 18px; border-radius: 4px; background: var(--near); color: var(--mist); font-size: 15px; gap: 12px; }
.form-status.is-shown { display: flex; animation: rise .5s var(--ease); }
.form-status b { color: var(--copper); }

/* ---------- Футер ---------- */
.site-footer { background: #0B0D0F; padding: clamp(64px, 8vw, 110px) 0 32px; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: clamp(48px, 6vw, 80px); }
.footer-brand { display: grid; gap: 18px; align-content: start; }
.footer-brand .logo__word { font-size: clamp(56px, 8vw, 112px); letter-spacing: .08em; }
.footer-brand p { color: var(--steel); max-width: 36ch; }
.footer-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); font-weight: 400; margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-weight: 600; transition: color .3s; }
.footer-col a:hover { color: var(--copper); }
.footer-col .btn { margin-top: 6px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  padding-top: 24px; border-top: 1px solid var(--line); color: var(--steel); font-size: 13px;
}
.footer-bottom a { border-bottom: 1px solid var(--line); transition: color .3s, border-color .3s; }
.footer-bottom a:hover { color: var(--mist); border-color: var(--copper); }
.demo-badge { display: inline-flex; align-items: center; gap: 8px; }
.demo-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--copper); box-shadow: 0 0 0 4px rgba(197,141,105,.18); }

/* ---------- Появление при прокрутке ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .directions { grid-template-columns: 1fr; }
  .direction { min-height: 420px; }
  .panel__grid { grid-template-columns: 1fr; }
  .panel__media { min-height: 0; aspect-ratio: 16 / 10; }
  .faq-grid, .contact, .statement-grid { grid-template-columns: 1fr; }
  .contact__aside { position: static; }
  .statement-figure { aspect-ratio: 16 / 10; }
  .cta__ring { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .nav { display: none; }
  .burger { display: block; }
  .hero__bottom { grid-template-columns: 1fr; gap: 28px; }
  .hero__meta { grid-template-columns: 1fr; }
  .hero__meta a { border-right: 0; margin-right: 0; padding-right: 0; border-bottom: 1px solid rgba(66,73,77,.8); }
  .hero__meta a:last-child { border-bottom: 0; }
  .page-hero__row { grid-template-columns: 1fr; gap: 20px; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 28px 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line-light); }
  .section:not(.section--light) .step + .step { border-top-color: var(--line); }
  .previews { grid-template-columns: 1fr; }
  .preview:nth-child(2) .preview__media { aspect-ratio: 16 / 11; }
  .section-head--split { grid-template-columns: 1fr; align-items: start; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 14px; }
  .g-item, .g-item.is-wide { grid-column: span 1; }
  .g-item.is-wide .g-media { aspect-ratio: 4 / 5; flex: none; min-height: 0; }
  .tab { padding: 16px; justify-content: center; }
  .tab .mono, .tab__dot { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero__title { max-width: none; }
  .hero__media img { object-position: 72% 60%; }
  .hero__actions .btn { flex: 1 1 100%; }
  .gallery { grid-template-columns: 1fr; }
  .g-cap span { white-space: normal; text-align: right; }
  .footer-top { grid-template-columns: 1fr; }
  .faq__a p { padding-right: 0; }
  .lightbox__bottom { flex-wrap: wrap; }
  .logo__sub { display: none; }
  .tab { font-size: 16px; padding: 14px 8px; }
  .panel__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal, .fade-up, .line > span { opacity: 1 !important; transform: none !important; }
  .hero__media img { opacity: 1; transform: none; }
}

/* Заголовок hero раскрывается по строкам после загрузки */
.is-loaded .hero__title .line > span { transform: none; }
.cta__media { inset: -12% 0; }
/* На широких экранах автомобиль уходит вправо, заголовок — на тёмное поле */
@media (min-width: 861px) {
  .hero__media { inset: -2% 0 8% 20%; }
  .hero__media img {
    object-position: 50% 58%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 26%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 26%);
  }
}
/* Телефон: текст первого экрана поверх более тёмной области снимка */
@media (max-width: 860px) {
  .hero::before {
    background:
      linear-gradient(180deg, rgba(5,6,7,.82) 0%, rgba(5,6,7,.35) 40%, rgba(17,20,23,.78) 62%, rgba(17,20,23,1) 100%);
  }
  .hero__media { inset: 0 -30% 18% -10%; }
  .hero__lead { color: #D6DBDD; text-shadow: 0 1px 12px rgba(0,0,0,.6); }
}

/* ==========================================================
   v5 · Широкая сетка и читаемый первый экран
   ========================================================== */
:root { --wrap: 100%; --gutter: clamp(16px, 4.6vw, 104px); }

.hero__kicker {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  margin-bottom: clamp(20px, 2.4vw, 32px);
  font-size: clamp(15px, 1.1vw, 18px); font-weight: 600; color: var(--mist);
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 100px;
  background: var(--copper); color: var(--ink);
  font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase;
}
.hero__title { font-size: clamp(46px, 6.1vw, 124px); text-shadow: 0 2px 30px rgba(0,0,0,.45); }
.hero__lead { color: #D3D9DB; }

@media (min-width: 861px) {
  /* Автомобиль — в правой части, текст — на тёмном поле слева */
  .hero__media { inset: 0 0 10% 34%; }
  .hero__media img {
    object-position: 60% 60%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
  }
  .hero::before {
    background:
      linear-gradient(90deg, rgba(5,6,7,.96) 0%, rgba(5,6,7,.82) 34%, rgba(5,6,7,.25) 58%, rgba(5,6,7,0) 72%),
      linear-gradient(180deg, rgba(5,6,7,.7) 0%, rgba(5,6,7,0) 30%),
      linear-gradient(0deg, rgba(17,20,23,1) 0%, rgba(17,20,23,0) 30%);
  }
  .hero__title, .hero__kicker { max-width: 52%; }
  .hero__bottom { grid-template-columns: minmax(0, 46%) auto; justify-content: space-between; }
}

/* ==========================================================
   v6 · FAQ и логотип по центру шапки
   ========================================================== */
/* Кнопка вопроса лежит внутри h3, поэтому состояние вешается на весь пункт */
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }

.site-header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; }
.site-header .logo { grid-column: 2; grid-row: 1; justify-self: center; }
.nav { display: contents; }
.nav__list { grid-column: 1; grid-row: 1; justify-self: start; }
.nav > .btn { grid-column: 3; grid-row: 1; justify-self: end; }
.burger { grid-column: 3; grid-row: 1; justify-self: end; }

.site-header .logo {
  position: relative; flex-direction: column; align-items: center; gap: 6px;
}
.site-header .logo__word {
  position: relative;
  font-size: 32px; font-weight: 800; letter-spacing: .34em; margin-right: -.34em;
  background: linear-gradient(110deg, var(--mist) 0%, var(--mist) 38%, #fff 47%, var(--copper-hi) 50%, #fff 53%, var(--mist) 62%, var(--mist) 100%);
  background-size: 300% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: logoShine 3.2s var(--ease) .6s 1 both;
}
.site-header .logo__word i {
  -webkit-text-fill-color: var(--copper);
  text-shadow: 0 0 22px rgba(197,141,105,.55);
}
.site-header .logo:hover .logo__word { animation: logoShine 1.4s var(--ease) 1 both; }
.site-header .logo__sub {
  display: flex; align-items: center; gap: 10px;
  font-size: 9px; letter-spacing: .42em; margin-right: -.42em; color: var(--steel);
}
.site-header .logo__sub::before, .site-header .logo__sub::after {
  content: ""; width: 22px; height: 1px; background: var(--copper); opacity: .7;
  transition: width .5s var(--ease);
}
.site-header .logo:hover .logo__sub::before, .site-header .logo:hover .logo__sub::after { width: 34px; }
@keyframes logoShine { from { background-position: 100% 0; } to { background-position: 0 0; } }

@media (max-width: 860px) {
  .nav__list, .nav > .btn { display: none; }
  .site-header .logo__word { font-size: 26px; }
}
@media (max-width: 560px) {
  .site-header .logo__sub { display: flex; font-size: 8px; }
  .site-header .logo__sub::before, .site-header .logo__sub::after { width: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header .logo__word { animation: none; background-position: 0 0; }
}

/* ==========================================================
   v8 · Навигация без номеров + анимации уровня PREMIUM
   ========================================================== */

/* ---------- Навигация: «плавающая» подложка под пунктом ---------- */
.nav__list { position: relative; gap: 4px; align-items: center; }
.nav__link { display: block; padding: 9px 18px; border-radius: 100px; z-index: 1; }
.nav__link::after { display: none; }
.nav__pill {
  position: absolute; top: 0; left: 0; height: 100%; width: 0;
  border-radius: 100px; background: rgba(241,243,242,.08);
  border: 1px solid rgba(241,243,242,.1);
  opacity: 0; pointer-events: none;
  transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s;
}
.nav__pill.is-on { opacity: 1; }
.nav__link[aria-current="page"] { color: var(--mist); }
.nav__link[aria-current="page"]::before {
  content: ""; position: absolute; left: 50%; bottom: -2px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--copper);
}

/* ---------- Мобильное меню: название + короткое пояснение ---------- */
.mobile-menu__list a {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto;
  column-gap: 16px; row-gap: 2px; align-items: center; padding: 20px 0;
}
.mobile-menu__list .mm__t { line-height: 1.05; font-family: var(--font); font-size: clamp(32px, 9vw, 48px); color: inherit; letter-spacing: -0.03em; font-weight: 800; }
.mobile-menu__list small { grid-column: 1; font-size: 14px; font-weight: 500; color: var(--steel); letter-spacing: 0; }
.mobile-menu__list .arrow { grid-column: 2; grid-row: 1 / 3; width: 22px; height: 22px; color: var(--copper); }

/* ---------- Полоса прогресса прокрутки ---------- */
.scroll-progress {
  position: fixed; left: 0; top: 0; z-index: 150; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--copper), var(--copper-hi));
  transform-origin: 0 50%; transform: scaleX(0); pointer-events: none;
}

/* ---------- «Сгон воды»: кадр открывается медной линией ---------- */
.wipe { clip-path: inset(0 100% 0 0); transition: clip-path 1.25s cubic-bezier(.7,0,.15,1); }
.wipe.is-in { clip-path: inset(0 0 0 0); }
.wipe::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; z-index: 3; width: 3px;
  background: linear-gradient(180deg, transparent, var(--copper-hi) 20%, #fff 50%, var(--copper-hi) 80%, transparent);
  box-shadow: 0 0 24px 4px rgba(217,164,131,.55);
  opacity: 0; pointer-events: none;
}
.wipe.is-in::before { animation: squeegee 1.25s cubic-bezier(.7,0,.15,1) both; }
@keyframes squeegee {
  0% { left: 0; opacity: 1; }
  85% { opacity: 1; }
  100% { left: calc(100% - 3px); opacity: 0; }
}
.wipe img { transform: scale(1.12); transition: transform 1.8s var(--ease); }
.wipe.is-in img { transform: scale(1); }
.preview:hover .preview__media.is-in img { transform: scale(1.05); }
.g-btn:hover .g-media.is-in img, .g-btn:focus-visible .g-media.is-in img { transform: scale(1.05); }

/* ---------- «Инспекционный фонарь»: свет за курсором на фото ---------- */
.direction__media::after, .g-media::after, .preview__media::after, .panel__media::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(255,240,226,.42), rgba(255,240,226,.08) 40%, transparent 65%);
  mix-blend-mode: overlay; opacity: 0; transition: opacity .45s var(--ease);
}
.direction:hover .direction__media::after,
.g-btn:hover .g-media::after,
.preview:hover .preview__media::after,
.panel__media:hover::after { opacity: 1; }

/* ---------- Капля: волна от точки нажатия на кнопке ---------- */
.btn .ripple {
  position: absolute; z-index: 0; border-radius: 50%; pointer-events: none;
  width: 12px; height: 12px; margin: -6px 0 0 -6px;
  background: rgba(255,255,255,.55);
  animation: ripple .75s var(--ease) forwards;
}
.btn > :not(.ripple) { position: relative; z-index: 1; }
@keyframes ripple { to { transform: scale(36); opacity: 0; } }

/* Магнитные кнопки: смещение задаёт JS через переменные */
.btn.is-magnetic { transform: translate3d(var(--tx, 0), var(--ty, 0), 0); transition: transform .5s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }

/* ---------- Вкладки услуг: подложка переезжает между вкладками ---------- */
.tabs__list { position: sticky; }
.tab::after { display: none; }
.tab[aria-selected="true"] { background: transparent; }
.tabs__ink {
  position: absolute; top: 0; bottom: 0; left: 0; z-index: -1;
  background: var(--carbon); border-bottom: 3px solid var(--copper);
  transition: transform .55s var(--ease), width .55s var(--ease);
}
.tabs__list { isolation: isolate; }

/* ---------- Движение чувствительно к настройкам ---------- */
@media (hover: none) {
  .btn.is-magnetic { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wipe { clip-path: none !important; }
  .wipe::before { display: none; }
  .wipe img { transform: none !important; }
}
