/* ==========================================================================
   Gonki Sochi — design system (site.css), derived from the Sirius Autodrom redesign
   Shared file: page builders never edit this. Use the components documented
   in src/COMPONENTS.md; page-scoped overrides go to src/pages/<slug>.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* brand */
  --c-white: #ffffff;
  /* Gonki Sochi has no blue: the secondary brand colour is graphite (#222427). The token
     names stay for compatibility with the shared component library. */
  --c-blue: #222427;
  --c-blue-600: #0f1012;
  --c-blue-100: #eceef1;
  --c-red: #e61830;          /* Gonki Sochi brand red (logo, marks, stripes) */
  --c-red-fill: #e61830;     /* white labels on it: 4.6:1 */
  --c-red-text: #d0142b;     /* red text on white: 5.3:1 */
  --c-red-600: #c3122a;
  --c-red-100: #fde9ea;
  --c-red-50: #fdeeef;
  --c-ink: #1b1c1f;
  --c-night: #111214;
  --c-night-2: #1a1b1e;
  --c-night-3: #222427;
  --c-grey-50: #fafafa;
  --c-grey-100: #f2f2f2;
  --c-grey-200: #e6e6e6;
  --c-grey-400: #a4a8ad;
  --c-grey-600: #54585d;

  /* semantic — light context (default). Dark sections override these. */
  --bg: var(--c-white);
  --surface: var(--c-white);
  --surface-2: var(--c-grey-50);
  --surface-3: var(--c-grey-100);
  --text: var(--c-ink);
  --muted: var(--c-grey-600);
  --line: var(--c-grey-200);
  --line-strong: #d0d0d0;
  --accent: var(--c-red);
  --accent-hover: var(--c-red-600);
  --accent-soft: var(--c-red-100);
  --accent-2: var(--c-blue);
  --accent-2-hover: var(--c-blue-600);
  --accent-2-soft: var(--c-blue-100);
  --on-accent: #ffffff;
  --link: var(--c-blue);
  --card-bg: var(--c-white);
  --card-shadow: var(--sh-md);        /* one shadow scale for cards, offers, modals */
  --card-shadow-hover: var(--sh-lg);
  --glass: rgba(255, 255, 255, .86);
  --focus: 0 0 0 3px rgba(230, 24, 48, .32);

  /* type */
  --font-display: 'Jost', 'Futura PT', Futura, 'Century Gothic', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --fs-base: 17px;
  --lh-base: 1.55;
  --fs-xs: .8125rem;   /* 13-14px */
  --fs-sm: .9rem;      /* 15-16px */
  --fs-lg: 1.15rem;
  --fs-h4: 1.0625rem;
  --fs-h3: clamp(1.1rem, .95rem + .7vw, 1.5rem);
  --fs-h2: clamp(1.55rem, 1.1rem + 2vw, 2.6rem);
  --fs-h1: clamp(2rem, 1.3rem + 3.2vw, 3.6rem);
  --fs-hero: clamp(2.3rem, 1.4rem + 4.6vw, 5.2rem);
  --track-display: .01em;
  --track-caps: .06em;

  /* layout */
  --container: 1280px;
  --container-wide: 1440px;
  --container-narrow: 820px;
  --gutter: 24px;
  --gap: 24px;
  --section-y: clamp(64px, 5rem + 2vw, 120px);
  --section-y-sm: clamp(40px, 3rem + 1vw, 72px);

  /* radii / shadows */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;
  --sh-sm: 0 1px 2px rgba(23, 23, 23, .06), 0 4px 12px -4px rgba(23, 23, 23, .12);
  --sh-md: 0 2px 6px rgba(23, 23, 23, .06), 0 16px 40px -16px rgba(23, 23, 23, .24);
  --sh-lg: 0 4px 12px rgba(11, 13, 18, .10), 0 40px 80px -32px rgba(11, 13, 18, .45);

  /* header */
  --header-top: 40px;
  --header-bar: 80px;
  --header-bar-small: 64px;
  --header-h: calc(var(--header-top) + var(--header-bar));

  /* motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .45s;
  --dur-fast: .2s;

  /* z */
  --z-header: 900;
  --z-menu: 950;
  --z-modal: 1000;
  --z-lightbox: 1100;
  --z-progress: 1200;
}

@media (min-width: 1200px) {
  :root { --fs-base: 18px; --gutter: 32px; --gap: 28px; }
}
@media (max-width: 980px) {
  :root { --header-top: 0px; --header-bar: 64px; --header-bar-small: 60px; --gutter: 20px; --gap: 20px; }
}
@media (max-width: 560px) {
  :root { --fs-base: 16px; --fs-sm: .9375rem; --fs-xs: .85rem; --gutter: 18px; --gap: 16px; --r-lg: 20px; --r-xl: 24px; }
}
@media (max-width: 420px) {
  :root { --fs-hero: clamp(2rem, 1rem + 5vw, 2.6rem); }
}

/* dark context: every component reads the semantic tokens, so switching a section
   to dark is a matter of one class */
.section--dark, .is-dark, .theme-dark {
  --bg: var(--c-night);
  --surface: var(--c-night-2);
  --surface-2: var(--c-night-3);
  --surface-3: #232833;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, .68);
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .22);
  --link: #ff8a95;
  --c-red-text: #ff5157;   /* red text on night backgrounds: 6:1 */
  --accent-soft: rgba(230, 24, 48, .18);
  --accent-2-soft: rgba(34, 36, 39, .2);
  --card-bg: var(--c-night-2);
  --card-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -16px rgba(0, 0, 0, .7);
  --card-shadow-hover: 0 2px 4px rgba(0, 0, 0, .5), 0 32px 56px -20px rgba(0, 0, 0, .8);
  --glass: rgba(11, 13, 18, .72);
  color: var(--text);
  background: var(--bg);
}
.section--ink { --bg: var(--c-ink); }
.section--ink, .section--ink.section--dark { background: var(--c-ink); }

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-bar-small) + 16px);
  background: var(--c-ink); /* canvas below the footer stripe / overscroll is ink, the page itself paints --bg */
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  padding-top: var(--header-h);
  overflow-x: hidden; /* Safari < 16 */
  overflow-x: clip;
}
body.menu-open, body.modal-open { overflow: hidden; }
main { display: block; }
img, svg, video, picture { display: block; max-width: 100%; }
img { height: auto; }
video { object-fit: cover; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: var(--track-display); text-wrap: balance; }
/* display type guard: one long Cyrillic word ("РАДИОУПРАВЛЯЕМЫЕ") must never be clipped on narrow screens.
   Desktop: no automatic hyphenation (balanced headings would hyphenate for fun); phones: hyphenate only long words. */
h1, h2, h3, .title, .hero__title, .card__name, .offer__label, .step__title, .cta-band__title, .modal__title, .subscribe__title, .accordion__trigger { overflow-wrap: anywhere; hyphens: manual; }
@media (max-width: 640px) {
  h1, h2, .title, .hero__title, .cta-band__title, .subscribe__title { hyphens: auto; -webkit-hyphenate-limit-before: 5; -webkit-hyphenate-limit-after: 5; hyphenate-limit-chars: 12 5 5; }
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
p { margin: 0; }
a { color: inherit; text-decoration: none; transition: color var(--dur-fast) ease, opacity var(--dur-fast) ease; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; margin: 0; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
table { border-collapse: collapse; border-spacing: 0; width: 100%; }
figure { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
strong, b { font-weight: 700; }
small { font-size: var(--fs-sm); }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--focus); }
/* the ring follows the element's own radius; only plain text links get a small one */
a:not([class]):focus-visible, .prose a:focus-visible, .footer__links a:focus-visible, .nav__link:focus-visible, .breadcrumbs a:focus-visible, .subscribe__note a:focus-visible, .checkbox__text a:focus-visible { border-radius: 6px; }
.section--dark :focus-visible, .footer :focus-visible, .nav.is-open :focus-visible, .hero :focus-visible, .cta-band :focus-visible, .lightbox :focus-visible, .modal--dark :focus-visible { box-shadow: 0 0 0 3px rgba(255, 138, 149, .7); }
::selection { background: var(--c-red); color: #fff; }

.visually-hidden, .sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 2000; padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--c-ink); color: #fff; font-weight: 700; transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* page load */
@media (prefers-reduced-motion: no-preference) {
  body { animation: pageIn .35s var(--ease) both; }
}
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: calc(var(--container-wide) + var(--gutter) * 2); }
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }
.container--flush { padding-inline: 0; }

.section { position: relative; padding-block: var(--section-y); background: var(--bg); color: var(--text); }
.section--sm { padding-block: var(--section-y-sm); }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }
.section--tight { padding-block: clamp(24px, 3vw, 40px); }
.section--grey { --bg: var(--c-grey-50); --surface: var(--c-white); --surface-2: var(--c-white); --card-bg: var(--c-white); background: var(--c-grey-50); }
.section--light { --bg: var(--c-white); background: var(--c-white); }
.section--overflow { overflow: hidden; }
.section + .section--grey, .section--grey + .section--grey { border-top: 1px solid var(--line); }
.section--dark + .section--dark { border-top: 1px solid var(--line); }

.stack > * + * { margin-top: var(--stack, 1.25rem); }
.stack--lg { --stack: 2.5rem; }
.stack--sm { --stack: .75rem; }
.cluster { display: flex; flex-wrap: wrap; gap: var(--cluster, 12px); align-items: center; }
.center { text-align: center; }
.center .cluster { justify-content: center; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; } .mt-5 { margin-top: 3rem; } .mt-6 { margin-top: 4rem; }
.mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; } .mb-5 { margin-bottom: 3rem; }
.text-muted { color: var(--muted); }
.text-red { color: var(--c-red-text); }
.text-blue { color: var(--c-blue); }
.text-sm { font-size: var(--fs-sm); }
.text-lg { font-size: var(--fs-lg); }
.caps { text-transform: uppercase; letter-spacing: var(--track-caps); }
.display { font-family: var(--font-display); text-transform: uppercase; }
.nowrap { white-space: nowrap; }
.aspect-16-9 { aspect-ratio: 16 / 9; }
.aspect-4-3 { aspect-ratio: 4 / 3; }
.aspect-1-1 { aspect-ratio: 1 / 1; }
.rounded { border-radius: var(--r-lg); overflow: hidden; }
.img-cover { width: 100%; height: 100%; object-fit: cover; }
.img-contain { width: 100%; height: 100%; object-fit: contain; }

/* --------------------------------------------------------------------------
   4. Typography: section-head, prose
   -------------------------------------------------------------------------- */
.uptitle {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-red-text);
}
.uptitle::before { content: ""; flex: none; width: 22px; height: 3px; background: var(--c-red); border-radius: 2px; }
.uptitle--blue { color: var(--accent-2); }
.uptitle--blue::before { background: var(--accent-2); }
.uptitle--plain::before { display: none; }
.hero .uptitle, .cta-band .uptitle { color: rgba(255, 255, 255, .92); }
.hero .uptitle::before { background: var(--c-red); }
.cta-band .uptitle::before { background: currentColor; }
.hero__uptitle .uptitle { white-space: normal; text-align: left; line-height: 1.35; }

.section-head { max-width: 900px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head > * + * { margin-top: 16px; }
.section-head .uptitle + .title { margin-top: 14px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .uptitle { justify-content: center; }
.section-head--wide { max-width: none; }
.section-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head--row > * { margin-top: 0; }
.title { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 700; text-transform: uppercase; line-height: 1.08; letter-spacing: var(--track-display); }
.title--sm { font-size: var(--fs-h3); }
.title--lg { font-size: var(--fs-h1); }
.title--normal { text-transform: none; }
.title--grad {
  background: linear-gradient(95deg, var(--c-red) 0%, var(--c-blue) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.title mark { background: none; color: var(--accent); }
.lead { font-size: var(--fs-lg); line-height: 1.5; color: var(--muted); max-width: 70ch; }
.lead--strong { color: var(--text); font-weight: 500; }
.section-head--center .lead { margin-inline: auto; }

.prose { max-width: 72ch; }
.prose--wide { max-width: none; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.8em; text-transform: uppercase; }
.prose h2 { font-size: var(--fs-h3); }
.prose h3 { font-size: var(--fs-h4); }
.prose h4 { font-family: var(--font-body); font-weight: 800; font-size: var(--fs-base); letter-spacing: .02em; }
.prose > :is(h2, h3, h4):first-child { margin-top: 0; }
.prose p, .prose li { line-height: var(--lh-base); }
.prose a { color: var(--link); font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--link) 40%, transparent); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul > li { position: relative; padding-left: 1.5em; }
.prose ul > li + li, .prose ol > li + li { margin-top: .45em; }
.prose ul > li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 9px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.prose ol { list-style: none; counter-reset: li; padding-left: 0; }
.prose ol > li { position: relative; padding-left: 2.2em; counter-increment: li; }
.prose ol > li::before { content: counter(li); position: absolute; left: 0; top: .1em; font-family: var(--font-display); font-weight: 700; font-size: .85em; color: var(--accent-2); }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--muted); font-size: var(--fs-lg); }
.prose img, .prose video { border-radius: var(--r-md); }
.prose figure figcaption { margin-top: 8px; font-size: var(--fs-sm); color: var(--muted); }
.prose hr { margin: 2em 0; }
.prose table { font-size: var(--fs-sm); }
.prose .table-wrap { margin-top: 1.5em; }
.prose--lg { font-size: var(--fs-lg); }
.prose--sm { font-size: var(--fs-sm); }
.prose--muted { color: var(--muted); }
.prose .note { font-size: var(--fs-sm); color: var(--muted); }

/* --------------------------------------------------------------------------
   5. Buttons, badges, icons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--c-ink); --btn-fg: #fff; --btn-bd: transparent; --btn-bg-h: #000;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 28px; border-radius: var(--r-pill);
  font-family: var(--font-body); font-size: .875rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; line-height: 1.1;
  color: var(--btn-fg); background: var(--btn-bg); border: 1.5px solid var(--btn-bd);
  text-align: center; white-space: nowrap; cursor: pointer; user-select: none;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease;
  -webkit-tap-highlight-color: transparent;
}
.btn::after { /* sheen */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn:hover { background: var(--btn-bg-h); transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(23, 23, 23, .45); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn .icon { width: 18px; height: 18px; flex: none; }
.btn--primary { --btn-bg: var(--c-red-fill); --btn-bg-h: var(--c-red-600); --btn-fg: #fff; }
.btn--primary:hover { box-shadow: 0 14px 28px -10px rgba(230, 24, 48, .55); }
.btn--secondary { --btn-bg: var(--c-blue); --btn-bg-h: var(--c-blue-600); --btn-fg: #fff; }
.btn--secondary:hover { box-shadow: 0 14px 28px -10px rgba(34, 36, 39, .55); }
.btn--dark { --btn-bg: var(--c-ink); --btn-bg-h: #000; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--text); --btn-bd: var(--line-strong); --btn-bg-h: var(--surface-2); }
.btn--ghost:hover { border-color: var(--text); box-shadow: none; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--c-ink); --btn-bg-h: #fff; }
.btn--light:hover { box-shadow: 0 14px 28px -12px rgba(255, 255, 255, .5); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .5); --btn-bg-h: rgba(255, 255, 255, .1); }
.btn--outline-light:hover { border-color: #fff; box-shadow: none; }
.btn--glass { --btn-bg: rgba(255, 255, 255, .14); --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .25); --btn-bg-h: rgba(255, 255, 255, .22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--soft { --btn-bg: var(--accent-2-soft); --btn-fg: var(--c-blue); --btn-bg-h: var(--c-blue); }
.btn--soft:hover { color: #fff; box-shadow: none; }
.btn--soft-red { --btn-bg: var(--c-red-50); --btn-fg: var(--c-red-600); --btn-bg-h: var(--c-red-fill); }
.btn--soft-red:hover { color: #fff; }
.btn--xs { min-height: 36px; padding: 7px 14px; font-size: .72rem; letter-spacing: .06em; }
.btn--sm { min-height: 44px; padding: 10px 20px; font-size: .8rem; }
.btn--lg { min-height: 60px; padding: 18px 36px; font-size: .95rem; }
.btn--block { display: flex; width: 100%; }
.btn--wide { min-width: 240px; }
.btn--icon { padding: 0; width: 52px; }
.btn--icon.btn--sm { width: 42px; }
.btn--link {
  --btn-bg: transparent; --btn-bg-h: transparent; --btn-fg: var(--link); min-height: 44px; padding: 0; border: 0; border-radius: 6px; overflow: visible;
  letter-spacing: .04em; gap: 8px; /* 44px tap target, visually text-only */
}
.btn--link::after { display: none; }
.btn--link:hover { transform: none; box-shadow: none; }
.btn--link .icon { transition: transform var(--dur-fast) var(--ease); }
.btn--link:hover .icon { transform: translateX(4px); }
.btn.is-loading { pointer-events: none; opacity: .7; }
.btn.is-loading::before { content: ""; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-group--center { justify-content: center; }
.btn-group--stack-mobile { }

.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill);
  font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1;
  background: var(--surface-3); color: var(--text); white-space: nowrap; max-width: 100%;
}
/* long badge text (an original sentence used as an uptitle) wraps instead of clipping */
.hero__uptitle .badge, .badge--wrap { white-space: normal; text-align: center; line-height: 1.3; padding-block: 7px; }
.badge--red { background: var(--c-red-fill); color: #fff; }
.badge--blue { background: var(--c-blue); color: #fff; }
.badge--dark { background: var(--c-ink); color: #fff; }
.badge--light { background: #fff; color: var(--c-ink); }
.badge--glass { background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .22); }
.badge--outline { background: transparent; border: 1.5px solid currentColor; }
.badge--soft-red { background: var(--c-red-50); color: var(--c-red-600); }
.badge--soft-blue { background: var(--accent-2-soft); color: var(--c-blue-600); }
.badge--lg { padding: 9px 16px; font-size: .84rem; }
@media (max-width: 640px) { .badge { white-space: normal; } }
.badge--dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.7); } }

.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }
.icon--sm { width: 18px; height: 18px; }
.icon--lg { width: 32px; height: 32px; }
.icon-circle {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 56px; height: 56px; border-radius: 50%; background: var(--accent-2-soft); color: var(--c-blue);
}
.icon-circle--red { background: var(--accent-soft); color: var(--c-red); }
.icon-circle--dark { background: var(--c-ink); color: #fff; }
.icon-circle--light { background: rgba(255, 255, 255, .12); color: #fff; }
.icon-circle .icon { width: 26px; height: 26px; }

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: var(--z-progress); pointer-events: none; }
.progress__bar { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--c-red), var(--c-blue)); }

.header { position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-header); color: var(--c-ink); }
.header__top {
  height: var(--header-top); overflow: hidden; background: var(--c-ink); color: #fff;
  transition: height var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.header__top-inner { height: var(--header-top); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header__phone { display: inline-flex; align-items: center; gap: 8px; padding-block: 8px; font-family: var(--font-display); font-weight: 500; font-size: .8rem; letter-spacing: .04em; white-space: nowrap; }
.header__phone .icon { width: 16px; height: 16px; color: var(--c-red); }
.header__phone:hover { color: #fff; opacity: .8; }
.header__right { display: flex; align-items: center; gap: 14px; flex: none; }
.header__right .socials { --social-size: 28px; }
.header__right .btn--xs { min-height: 28px; padding: 5px 12px; }
.header__right .btn--xs:hover { transform: none; }
/* permanent CTA in the main bar (survives the top-bar collapse on scroll) */
.header__cta { display: flex; align-items: center; gap: 18px; flex: none; margin-left: auto; }
.header__cta .header__phone { color: var(--c-ink); font-weight: 600; }
.header__cta .header__phone:hover { color: var(--c-red); opacity: 1; }
.header__cta .btn--sm { min-height: 42px; padding-inline: 18px; }

.header__bar {
  position: relative;
  border-bottom: 1px solid rgba(23, 23, 23, .06);
  transition: box-shadow var(--dur) var(--ease);
}
/* the glass lives on a pseudo-element: a backdrop-filter on the bar itself would become the
   containing block of the fixed mobile menu panel inside it */
.header__bar::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--glass); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
}
.header__inner { position: relative; }
.header__inner { height: var(--header-bar); display: flex; align-items: center; gap: 24px; transition: height var(--dur) var(--ease); }
.header__logo { flex: none; display: block; }
.header__logo img { height: 52px; width: auto; transition: height var(--dur) var(--ease); }
.header.is-scrolled .header__top { height: 0; opacity: 0; }
.header.is-scrolled .header__inner { height: var(--header-bar-small); }
.header.is-scrolled .header__logo img { height: 42px; }
.header.is-scrolled .header__bar { box-shadow: 0 10px 30px -18px rgba(11, 13, 18, .35); }
.header.is-hidden { }

.socials { display: flex; align-items: center; gap: 8px; --social-size: 36px; }
.socials a {
  display: inline-flex; align-items: center; justify-content: center; width: var(--social-size); height: var(--social-size); border-radius: 50%;
  background: rgba(255, 255, 255, .08); color: inherit; transition: background var(--dur-fast) ease, transform var(--dur-fast) var(--ease), color var(--dur-fast) ease;
}
.socials a:hover { background: var(--c-blue); color: #fff; transform: translateY(-2px); }
.socials .icon { width: 55%; height: 55%; fill: currentColor; stroke: none; }
.socials--dark a { background: var(--c-grey-100); color: var(--c-ink); }
.socials--dark a:hover { background: var(--c-blue); color: #fff; }
.socials--lg { --social-size: 44px; }

/* nav (desktop) */
.nav { flex: 0 1 auto; min-width: 0; display: flex; align-items: center; justify-content: flex-start; padding-left: clamp(12px, 2vw, 40px); }
.nav__list { display: flex; align-items: center; gap: clamp(8px, 1.2vw, 20px); }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 4px;
  font-size: .8rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; color: var(--c-ink);
  transition: color var(--dur-fast) ease;
}
.nav__link .icon { width: 12px; height: 12px; stroke-width: 2.4; transition: transform var(--dur-fast) var(--ease); opacity: .6; }
.nav__item:hover > .nav__link, .nav__item.is-open > .nav__link, .nav__item:focus-within > .nav__link, .nav__link.is-current { color: var(--c-red); }
.nav__item:hover > .nav__link .icon, .nav__item.is-open > .nav__link .icon { transform: rotate(180deg); }
.nav__link::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 2px; height: 2px; background: var(--c-red); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-fast) var(--ease); border-radius: 2px; }
.nav__item:hover > .nav__link::after, .nav__link.is-current::after { transform: scaleX(1); }
.nav__sub {
  position: absolute; top: calc(100% + 8px); left: 50%; min-width: 300px; padding: 10px; z-index: 5;
  background: var(--c-white); color: var(--c-ink); border-radius: var(--r-md); box-shadow: var(--sh-lg); border: 1px solid rgba(23, 23, 23, .06);
  transform: translate(-50%, 8px); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--dur-fast) ease, transform var(--dur-fast) var(--ease), visibility 0s linear var(--dur-fast);
}
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav__item:hover > .nav__sub, .nav__item.is-open > .nav__sub, .nav__item:focus-within > .nav__sub {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); transition-delay: 0s;
}
.nav__sublist li a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border-radius: var(--r-sm);
  font-family: var(--font-display); font-weight: 500; font-size: .74rem; letter-spacing: .01em; text-transform: uppercase; white-space: nowrap;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease, padding-left var(--dur-fast) var(--ease);
}
.nav__sublist li a::after { content: "→"; opacity: 0; transform: translateX(-6px); transition: opacity var(--dur-fast) ease, transform var(--dur-fast) var(--ease); color: var(--c-red); }
.nav__sublist li a:hover, .nav__sublist li a.is-current { background: var(--c-grey-50); color: var(--c-red); padding-left: 18px; }
.nav__sublist li a:hover::after { opacity: 1; transform: none; }
.nav__extra { display: none; }
.nav-backdrop { position: fixed; inset: 0; z-index: calc(var(--z-header) - 1); background: rgba(11, 13, 18, .55); opacity: 0; visibility: hidden; transition: opacity var(--dur) ease, visibility 0s linear var(--dur); }
.nav-backdrop.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }

.burger {
  display: none; position: relative; z-index: calc(var(--z-menu) + 1); width: 44px; height: 44px; margin-left: auto; border-radius: 50%; flex: none;
  color: var(--c-ink); background: var(--c-grey-100); transition: background var(--dur-fast) ease;
}
.burger span, .burger span::before, .burger span::after {
  content: ""; position: absolute; left: 50%; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transform: translateX(-50%);
  transition: transform var(--dur) var(--ease), top var(--dur) var(--ease), opacity var(--dur-fast) ease;
}
.burger span { top: 50%; margin-top: -1px; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] { background: #fff; color: var(--c-ink); }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: translateX(-50%) rotate(-45deg); }

/* the bar holds logo + 5 nav groups + phone + CTA: three tiers keep it on one line down to 981px */
@media (max-width: 1599px) {
  .nav__link { font-size: .76rem; letter-spacing: .04em; }
  .nav__list { gap: 12px; }
  .nav { padding-left: 16px; }
  .header__cta { gap: 12px; }
  /* phone becomes icon-only (the number stays in the tel: link and aria-label) */
  .header__cta .header__phone { width: 42px; height: 42px; justify-content: center; padding: 0; border-radius: 50%; background: var(--c-grey-100); gap: 0; font-size: 0; }
  .header__cta .header__phone .icon { width: 18px; height: 18px; }
  .header__cta .header__phone:hover { background: var(--c-blue); color: #fff; }
  .header__cta .header__phone:hover .icon { color: #fff; }
}
@media (max-width: 1299px) {
  .nav__link { font-size: .7rem; letter-spacing: .03em; padding-inline: 2px; }
  .nav__list { gap: 8px; }
  .nav { padding-left: 8px; }
  .header__inner { gap: 14px; }
  .header__logo img { height: 40px; }
  .header.is-scrolled .header__logo img { height: 36px; }
  .header__cta { gap: 8px; }
  .header__cta .btn--sm { padding-inline: 14px; font-size: .72rem; min-height: 40px; }
}
.header__top .header__phone { display: none; }
@media (max-width: 1100px) {
  /* 981-1100px: the phone moves back to the top bar, the bar keeps logo + nav + АВТОФЕСТИВАЛЬ */
  .nav__link { font-size: .68rem; letter-spacing: .02em; }
  .nav__list { gap: 6px; }
  .header__inner { gap: 10px; }
  .header__logo img, .header.is-scrolled .header__logo img { height: 34px; }
  .header__cta .header__phone { display: none; }
  .header__top .header__phone { display: inline-flex; }
}
@media (max-width: 980px) {
  .header__top { display: none; }
  .header__cta { display: none; }
  .header__logo img { height: 40px; }
  .header.is-scrolled .header__logo img { height: 36px; }
  .burger { display: inline-flex; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); z-index: var(--z-menu);
    display: block; padding: calc(var(--header-bar) + 12px) 24px 40px; overflow-y: auto; overscroll-behavior: contain;
    background: var(--c-night); color: #fff; transform: translateX(104%); visibility: hidden;
    transition: transform .55s var(--ease-out), visibility 0s linear .55s;
    box-shadow: -20px 0 60px rgba(0, 0, 0, .4);
  }
  .nav.is-open { transform: none; visibility: visible; transition-delay: 0s; }
  .nav__list { display: block; }
  .nav__item { border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .nav__item > .nav__link {
    width: 100%; justify-content: space-between; padding: 16px 0; color: #fff;
    font-family: var(--font-display); font-weight: 600; font-size: .92rem; letter-spacing: .01em;
  }
  .nav__item > .nav__link::after { display: none; }
  .nav__link .icon { width: 16px; height: 16px; opacity: .7; }
  .nav__item:hover > .nav__link { color: #fff; }
  .nav__item.is-open > .nav__link { color: var(--c-red); }
  .nav__sub {
    position: static; transform: none; min-width: 0; padding: 0; background: none; box-shadow: none; border: 0; color: #fff;
    opacity: 1; visibility: visible; pointer-events: auto;
    display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur) var(--ease);
  }
  .nav__sub::before { display: none; }
  /* the desktop open-state rule (0,3,0) sits outside any media query: neutralise its translate here */
  .nav__item:hover > .nav__sub, .nav__item.is-open > .nav__sub, .nav__item:focus-within > .nav__sub { transform: none; }
  .nav__sub > * { overflow: hidden; min-height: 0; }
  .nav__item.is-open > .nav__sub { grid-template-rows: 1fr; }
  .nav__sublist { padding: 0; }
  .nav__sublist::after { content: ""; display: block; height: 12px; }
  .nav__sublist li a { padding: 10px 0 10px 16px; font-weight: 400; font-size: .78rem; color: rgba(255, 255, 255, .78); border-left: 2px solid rgba(255, 255, 255, .12); border-radius: 0; white-space: normal; line-height: 1.3; }
  .nav__sublist li a:hover, .nav__sublist li a.is-current { background: none; color: #fff; padding-left: 20px; border-color: var(--c-red); }
  .nav__extra { display: flex; flex-direction: column; gap: 20px; padding-top: 28px; }
  .nav__extra .btn-group .btn { flex: 1 1 auto; }
  .nav__extra .header__phone { font-size: 1rem; color: #fff; }
  .nav__extra .socials { --social-size: 42px; }
  /* staggered link entrance */
  .nav__item, .nav__extra > * { opacity: 0; transform: translateX(24px); transition: opacity .5s ease, transform .6s var(--ease-out); }
  .nav.is-open .nav__item, .nav.is-open .nav__extra > * { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 60ms + 120ms); }
}

/* --------------------------------------------------------------------------
   7. Heroes
   -------------------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; background: var(--c-night);
  --hero-h: min(100svh, 900px);
  min-height: var(--hero-h);
  margin-top: calc(var(--header-h) * -1); padding-top: var(--header-h);
}
.hero__media { position: absolute; inset: -6% 0; z-index: -2; will-change: transform; }
.hero__media > img, .hero__media > video, .hero__media > picture > img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11, 13, 18, .35) 0%, rgba(11, 13, 18, .1) 35%, rgba(11, 13, 18, .55) 70%, rgba(11, 13, 18, .92) 100%);
}
.hero__overlay--strong { background: linear-gradient(180deg, rgba(11, 13, 18, .5) 0%, rgba(11, 13, 18, .35) 40%, rgba(11, 13, 18, .95) 100%); }
.hero__overlay--left { background: linear-gradient(90deg, rgba(11, 13, 18, .85) 0%, rgba(11, 13, 18, .35) 55%, rgba(11, 13, 18, .1) 100%), linear-gradient(0deg, rgba(11, 13, 18, .8), transparent 45%); }
.hero__content { position: relative; padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 110px); max-width: 100%; }
.hero__content > * + * { margin-top: 20px; }
.hero__uptitle { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero__title {
  font-size: var(--fs-hero); font-weight: 800; text-transform: uppercase; line-height: .98; letter-spacing: -.005em; max-width: min(14ch, 100%);
  text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}
.hero__title--sm { font-size: var(--fs-h1); }
.hero__lead { font-size: clamp(1.05rem, .95rem + .6vw, 1.45rem); font-weight: 500; line-height: 1.45; max-width: 44ch; color: rgba(255, 255, 255, .9); text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 16px 32px; margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: var(--fs-sm); color: rgba(255, 255, 255, .8); }
.hero__meta b { display: block; font-family: var(--font-display); font-size: 1.3rem; color: #fff; font-weight: 600; }
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 32px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .3); color: #fff; backdrop-filter: blur(6px);
}
.hero__scroll .icon { width: 18px; height: 18px; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(3px); } }
.hero--center { justify-content: center; text-align: center; }
.hero--center .hero__content { padding-block: clamp(64px, 10vw, 140px); }
.hero--center .hero__title, .hero--center .hero__lead { margin-inline: auto; }
.hero--center .hero__actions, .hero--center .hero__uptitle { justify-content: center; }
.hero--center .hero__title { max-width: min(22ch, 100%); }
.hero--center .hero__uptitle .uptitle { text-align: center; }
.hero--short { --hero-h: min(72svh, 680px); }
.hero--short .hero__title { font-size: clamp(2rem, 1.2rem + 3.4vw, 4rem); }
.hero--tall { --hero-h: min(100svh, 1000px); }
.hero--image .hero__media { inset: -4% 0; }

/* inner (small) hero for legal / faq / contacts */
.hero--inner { --hero-h: 0px; min-height: 0; justify-content: center; background: var(--c-ink); }
.hero--inner .hero__content { padding-block: clamp(40px, 5vw, 72px) clamp(40px, 5vw, 64px); }
.hero--inner .hero__title { font-size: var(--fs-h1); font-weight: 700; max-width: 20ch; text-shadow: none; }
.hero--inner .hero__lead { font-size: var(--fs-lg); color: rgba(255, 255, 255, .8); }
.hero--inner .hero__overlay { background: linear-gradient(90deg, rgba(11, 13, 18, .92) 0%, rgba(11, 13, 18, .6) 100%); }
.hero--inner::after { /* brand stripe, framed by 2px of the dark hero below so the white segment reads on the white page */
  content: ""; position: absolute; left: 0; bottom: 2px; height: 4px; width: 100%; z-index: 1;
  background: linear-gradient(90deg, var(--c-red) 0 33%, #fff 33% 66%, var(--c-blue) 66%);
}
.hero--inner.hero--plain { background: var(--c-white); color: var(--c-ink); }
.hero--inner.hero--plain .hero__lead { color: var(--muted); }
.hero--inner.hero--plain::after { bottom: 0; background: linear-gradient(90deg, var(--c-red) 0 50%, var(--c-blue) 50%); }
@media (max-width: 640px) { .hero__scroll { display: none; } }

/* headline reveal */
@media (prefers-reduced-motion: no-preference) {
  .hero__uptitle, .hero__title, .hero__lead, .hero__actions, .hero__meta, .hero__scroll { animation: riseIn 1s var(--ease-out) both; }
  .hero__title { animation-delay: .15s; }
  .hero__lead { animation-delay: .3s; }
  .hero__actions { animation-delay: .45s; }
  .hero__meta { animation-delay: .55s; }
  .hero__scroll { animation-delay: .9s; }
  .hero__media > img, .hero__media > video, .hero__media > picture { animation: kenburns 22s ease-in-out infinite alternate; transform-origin: 50% 60%; }
  .hero--inner .hero__media > img { animation-duration: 40s; }
}
@keyframes riseIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }

/* --------------------------------------------------------------------------
   8. Cards & grids
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.grid--2 { --cols: 2; }
.grid--3 { --cols: 3; }
.grid--4 { --cols: 4; }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
@media (max-width: 1200px) { .grid--4 { --cols: 3; } }
@media (max-width: 980px) { .grid--4, .grid--3 { --cols: 2; } }
@media (max-width: 560px) { .grid--4, .grid--3, .grid--2 { --cols: 1; } .grid--2-mobile { --cols: 2; } }

.card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--card-bg); color: var(--text); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--card-shadow); border: 1px solid var(--line);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--card-shadow-hover); }
.card__media { position: relative; display: block; aspect-ratio: var(--card-ratio, 4 / 3); overflow: hidden; background: var(--surface-3); }
.card__media img, .card__media video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__media--contain { background: var(--c-grey-50); padding: 8%; }
.card__media--contain img { object-fit: contain; }
.card__media--square { --card-ratio: 1 / 1; }
.card__media--wide { --card-ratio: 16 / 10; }
.card__badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 1; }
.card__body { display: flex; flex-direction: column; flex: 1 1 auto; gap: 10px; padding: 22px 24px 26px; }
.card__name { font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; line-height: 1.25; text-transform: uppercase; letter-spacing: 0; }
.card__name a { transition: color var(--dur-fast) ease; }
.card__name a:hover { color: var(--accent); }
.card__name a::after { content: ""; position: absolute; inset: 0; }
.card__descr { color: var(--muted); font-size: var(--fs-sm); line-height: 1.5; }
.card__price { margin-top: auto; padding-top: 8px; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--c-ink); line-height: 1.1; }
.card__price small { display: block; margin-top: 4px; font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.card__price--red { color: var(--c-red-text); }
.card__price--blue { color: var(--c-blue); }
.card__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; margin-top: auto; }
.card__actions .btn { flex: 1 1 auto; }
.card__price + .card__actions { margin-top: 0; }
.card--flat { box-shadow: none; }
.card--flat:hover { box-shadow: var(--card-shadow); }
.card--static:hover { transform: none; }
.card--dark { --card-bg: var(--c-night-2); --text: #fff; --muted: rgba(255, 255, 255, .68); --line: rgba(255, 255, 255, .1); }
.card--dark .card__price { color: #fff; }
.card--accent { --card-bg: var(--c-red-fill); --text: #fff; --muted: rgba(255, 255, 255, .92); --line: transparent; }
.card--accent .card__price { color: #fff; }
.card--blue { --card-bg: var(--c-blue); --text: #fff; --muted: rgba(255, 255, 255, .92); --line: transparent; }
.card--blue .card__price { color: #fff; }
.card--horizontal { flex-direction: row; }
.card--horizontal .card__media { flex: 0 0 42%; aspect-ratio: auto; min-height: 240px; }
@media (max-width: 768px) { .card--horizontal { flex-direction: column; } .card--horizontal .card__media { flex: none; aspect-ratio: 16 / 10; min-height: 0; } }

/* overlay card: text sits on the image (home-page program tiles) */
.card--overlay { --card-ratio: 3 / 4; color: #fff; border: 0; background: var(--c-night); }
.card--overlay .card__media { aspect-ratio: var(--card-ratio); }
.card--overlay .card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 13, 18, 0) 22%, rgba(11, 13, 18, .5) 52%, rgba(11, 13, 18, .96) 100%); }
.card--overlay .card__name, .card--overlay .card__descr { text-shadow: 0 1px 12px rgba(0, 0, 0, .45); }
.card--overlay .card__body { position: absolute; inset: auto 0 0; padding: 24px; color: #fff; gap: 6px; }
.card--overlay .card__name { font-size: 1.05rem; }
.card--overlay .card__descr { color: rgba(255, 255, 255, .88); }
.card--overlay .card__price { color: #fff; font-size: 1.2rem; }
.card--overlay .card__price small { color: rgba(255, 255, 255, .7); }
.card--overlay .card__body .btn { align-self: flex-start; margin-top: 8px; }
.card--overlay.card--wide { --card-ratio: 16 / 10; }

/* offer / price cards */
.offer {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 32px 30px; min-width: 0;
  border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) ease;
}
.offer:hover { transform: translateY(-6px); box-shadow: var(--card-shadow-hover); border-color: transparent; }
.offer__label { font-family: var(--font-display); font-weight: 600; font-size: .95rem; text-transform: uppercase; line-height: 1.25; }
.offer__sub { font-size: var(--fs-sm); color: var(--muted); }
.offer__price { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.8rem); line-height: 1; letter-spacing: -.01em; color: var(--c-ink); }
.offer__price small { font-size: .5em; font-weight: 600; color: var(--muted); }
.offer__descr { color: var(--muted); font-size: var(--fs-sm); line-height: 1.5; }
.offer__list { display: grid; gap: 8px; font-size: var(--fs-sm); }
.offer__list li { position: relative; padding-left: 26px; }
.offer__list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--accent-2); border-bottom: 2.5px solid var(--accent-2); transform: rotate(-45deg); }
.offer__actions { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.offer__actions .btn { flex: 1 1 auto; }
.offer--accent { background: var(--c-red-fill); color: #fff; border-color: transparent; --muted: rgba(255, 255, 255, .92); }
.offer--accent .offer__price, .offer--accent .offer__price small { color: #fff; }
.offer--accent .offer__list li::before { border-color: #fff; }
.offer--blue { background: var(--c-blue); color: #fff; border-color: transparent; --muted: rgba(255, 255, 255, .92); }
.offer--blue .offer__price, .offer--blue .offer__price small { color: #fff; }
.offer--blue .offer__list li::before { border-color: #fff; }
.offer--dark { background: var(--c-night-2); color: #fff; border-color: rgba(255, 255, 255, .1); --muted: rgba(255, 255, 255, .7); }
.offer--dark .offer__price { color: #fff; }
.offer--featured { border-color: transparent; box-shadow: 0 0 0 2px var(--c-red) inset, var(--card-shadow); }
.offer--featured:hover { box-shadow: 0 0 0 2px var(--c-red) inset, var(--card-shadow-hover); }
.offer__badge { align-self: flex-start; margin: 4px 0 2px; max-width: 100%; white-space: normal; text-align: left; line-height: 1.25; }
.offer--image { padding: 0; }
.offer--image .offer__media { aspect-ratio: 16 / 10; overflow: hidden; }
.offer--image .offer__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.offer--image:hover .offer__media img { transform: scale(1.06); }
.offer--image .offer__body { display: flex; flex-direction: column; gap: 12px; padding: 24px 26px 28px; flex: 1 1 auto; }

/* --------------------------------------------------------------------------
   9. Spec list, stats, steps
   -------------------------------------------------------------------------- */
.spec-list { display: grid; gap: var(--gap); grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
.spec-list--2 { --cols: 2; }
.spec-list--3 { --cols: 3; }
.spec-list--4 { --cols: 4; }
.spec { display: flex; gap: 16px; align-items: flex-start; padding: 22px 22px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.spec__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: var(--r-md); background: var(--accent-2-soft); color: var(--c-blue); }
.spec__icon .icon { width: 26px; height: 26px; }
.spec__text { font-size: var(--fs-sm); line-height: 1.45; }
.spec__label { display: block; color: var(--muted); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 4px; }
.spec__value { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.spec--plain { padding: 0; background: none; border: 0; }
.spec--center { flex-direction: column; align-items: center; text-align: center; }
.spec--red .spec__icon { background: var(--accent-soft); color: var(--c-red-text); }
.spec--inline { display: inline-flex; padding: 10px 16px 10px 10px; border-radius: var(--r-pill); }
.spec--inline .spec__icon { width: 36px; height: 36px; border-radius: 50%; }
.spec--inline .spec__icon .icon { width: 20px; height: 20px; }
.spec-list--inline { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 1200px) { .spec-list--4 { --cols: 2; } }
@media (max-width: 768px) { .spec-list--3 { --cols: 1; } .spec-list--4 { --cols: 1; } }
@media (max-width: 560px) { .spec-list--2 { --cols: 1; } }

.stats { display: grid; gap: var(--gap); grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); align-items: stretch; }
.stats--3 { --cols: 3; }
.stats--2 { --cols: 2; }
.stat { display: flex; flex-direction: column; padding: 24px 0 24px 24px; border-left: 2px solid var(--accent); min-width: 0; }
.stat__value { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 1.3rem + 2vw, 3.2rem); line-height: 1; letter-spacing: -.01em; }
/* unit word under the number: <b class="stat__value">707 <small>метров</small></b> — keeps every value one line tall */
.stat__value small { display: inline; font-family: var(--font-body); font-size: .38em; font-weight: 700; letter-spacing: .01em; color: var(--muted); margin-left: -.05em; white-space: nowrap; }
.stat__unit { display: block; font-family: var(--font-body); font-size: .42em; font-weight: 700; letter-spacing: .02em; color: var(--muted); margin-top: 2px; }
.stat__label { padding-top: 12px; color: var(--muted); font-size: var(--fs-sm); line-height: 1.45; }
.stat--label-top .stat__label { order: -1; margin: 0 0 10px; padding-top: 0; }   /* for original strings ending in a colon ("Длина трассы:") */
.stat--blue { border-color: var(--accent-2); }
.stat--card { padding: 28px; border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: var(--r-md); background: var(--surface-2); }
@media (max-width: 980px) { .stats { --cols: 2; } }
@media (max-width: 480px) { .stats--2, .stats { --cols: 1; } .stats--2-mobile { --cols: 2; } }

.steps { counter-reset: step; display: grid; gap: 0; }
.step { position: relative; counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding-bottom: 32px; }
.step::before {
  content: counter(step, decimal-leading-zero); grid-row: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--c-ink); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: .95rem; z-index: 1;
}
.step::after { content: ""; position: absolute; left: 27px; top: 56px; bottom: 0; border-left: 2px dashed var(--line-strong); }
.step:last-child { padding-bottom: 0; }
.step:last-child::after { display: none; }
.step__body { padding-top: 12px; }
.step__title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; text-transform: uppercase; }
.step__text { margin-top: 8px; color: var(--muted); }
.steps--accent .step::before { background: var(--c-red-fill); }
.steps--blue .step::before { background: var(--c-blue); }
.steps--row { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: var(--gap); }
.steps--row .step { grid-template-columns: 1fr; padding-bottom: 0; }
.steps--row .step::after { left: 56px; top: 27px; right: calc(var(--gap) * -1); bottom: auto; border-left: 0; border-top: 2px dashed var(--line-strong); }
.steps--row .step:last-child::after { display: none; }
.steps--row .step__body { padding-top: 0; }
.section--dark .step::before { background: #fff; color: var(--c-ink); }
.section--dark .steps--accent .step::before { background: var(--c-red-fill); color: #fff; }
@media (max-width: 980px) { .steps--row { grid-template-columns: 1fr; } .steps--row .step { grid-template-columns: 56px 1fr; padding-bottom: 32px; } .steps--row .step::after { left: 27px; top: 56px; right: auto; bottom: 0; border-top: 0; border-left: 2px dashed var(--line-strong); } .steps--row .step:last-child { padding-bottom: 0; } .steps--row .step__body { padding-top: 12px; } }

/* --------------------------------------------------------------------------
   10. Slider, gallery, carousel, lightbox
   -------------------------------------------------------------------------- */
.slider { position: relative; --slider-gap: var(--gap); --slide-w: 100%; }
.slider__track {
  display: flex; gap: var(--slider-gap); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch;
  /* room for card shadows incl. the hover lift: a clipped shadow reads as a flat grey box */
  padding: 14px 14px 48px; margin: -14px -14px -48px;
  cursor: grab;
}
.slider__track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.slider__track::-webkit-scrollbar { display: none; }
.slider__slide { flex: 0 0 var(--slide-w); min-width: 0; scroll-snap-align: start; scroll-snap-stop: normal; display: flex; flex-direction: column; }
.slider__slide > .card, .slider__slide > .offer, .slider__slide > .news-card { height: 100%; flex: 1 1 auto; } /* equal card heights across a row */
.slider__nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; }
.slider__arrow {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; flex: none;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: var(--sh-sm);
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease, transform var(--dur-fast) var(--ease), opacity var(--dur-fast) ease;
}
.slider__arrow .icon { width: 20px; height: 20px; stroke-width: 2.2; }
.slider__arrow:hover { background: var(--c-ink); color: #fff; border-color: transparent; transform: translateY(-2px); }
.slider__arrow:disabled { opacity: .3; transform: none; }
.slider__arrow--prev .icon { transform: rotate(180deg); }
.slider__dots { display: flex; align-items: center; justify-content: center; gap: 0; }
/* 8px dot drawn by a pseudo-element inside a 20x28px (40px when active) tap area */
.slider__dot { position: relative; width: 20px; height: 28px; transition: width var(--dur-fast) var(--ease); }
.slider__dot::before { content: ""; position: absolute; left: 6px; right: 6px; top: 10px; height: 8px; border-radius: 4px; background: var(--line-strong); transition: background var(--dur-fast) ease; }
.slider__dot.is-active { width: 40px; }
.slider__dot.is-active::before { background: var(--accent); }
.slider__counter { font-family: var(--font-display); font-size: .85rem; font-weight: 500; min-width: 4.5em; text-align: center; color: var(--muted); }
.slider__counter b { color: var(--text); }
.slider--overlay .slider__nav { margin: 0; }
.slider--overlay .slider__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: rgba(255, 255, 255, .92); }
.slider--overlay .slider__arrow:hover { transform: translateY(-50%); }
.slider--overlay .slider__arrow--prev { left: 12px; }
.slider--overlay .slider__arrow--next { right: 12px; }
.slider--overlay .slider__dots { margin-top: 20px; }
.slider--overlay .slider__counter { position: absolute; left: 16px; right: auto; top: 16px; z-index: 2; padding: 6px 12px; border-radius: var(--r-pill); background: rgba(11, 13, 18, .55); color: #fff; backdrop-filter: blur(6px); } /* left edge = always on the active slide, also with slider--peek */
.slider--overlay .slider__counter b { color: #fff; }
.section--dark .slider__arrow { background: rgba(255, 255, 255, .08); color: #fff; }
.section--dark .slider__arrow:hover { background: #fff; color: var(--c-ink); }

/* modifiers */
.slider--cards { --slide-w: calc((100% - var(--slider-gap) * 2) / 3); }
.slider--cards-4 { --slide-w: calc((100% - var(--slider-gap) * 3) / 4); }
.slider--cards-2 { --slide-w: calc((100% - var(--slider-gap)) / 2); }
.slider--gallery { --slider-gap: 16px; --slide-w: min(100%, 960px); }
.slider--gallery .slider__slide { aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-3); }
.slider--gallery .slider__slide img { width: 100%; height: 100%; object-fit: cover; }
.slider--gallery .slider__slide a { display: block; width: 100%; height: 100%; position: relative; }
.slider--gallery .slider__slide a::after {
  content: ""; position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; background: rgba(11, 13, 18, .5) center / 18px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E");
  opacity: 0; transition: opacity var(--dur-fast) ease;
}
.slider--gallery .slider__slide a:hover::after { opacity: 1; }
.slider--gallery.slider--peek { --slide-w: min(78%, 960px); }
.slider--full { --slide-w: 100%; }
.slider--edge { margin-inline: calc(var(--gutter) * -1); padding-inline: 0; }
.slider--edge .slider__track { padding-inline: var(--gutter); margin-inline: 0; scroll-padding-inline: var(--gutter); }
.slider__nav { position: relative; z-index: 1; }
@media (max-width: 1200px) { .slider--cards-4 { --slide-w: calc((100% - var(--slider-gap) * 2) / 3); } }
@media (max-width: 980px) { .slider--cards, .slider--cards-4 { --slide-w: calc((100% - var(--slider-gap)) / 2); } }
@media (max-width: 640px) { .slider--cards, .slider--cards-4, .slider--cards-2 { --slide-w: 84%; } .slider--gallery.slider--peek { --slide-w: 92%; } .slider__arrow { width: 44px; height: 44px; } }

/* gallery grid (masonry-ish) + lightbox thumbs */
.gallery-grid { display: grid; gap: 12px; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
.gallery-grid--3 { --cols: 3; }
.gallery-grid a { position: relative; display: block; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: var(--surface-3); }
.gallery-grid a img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery-grid a:hover img { transform: scale(1.06); }
.gallery-grid a.is-wide { grid-column: span 2; aspect-ratio: 2 / 1; }
.gallery-grid a.is-tall { grid-row: span 2; aspect-ratio: 1 / 2; }
@media (max-width: 980px) { .gallery-grid { --cols: 3; } }
@media (max-width: 560px) { .gallery-grid { --cols: 2; } .gallery-grid a.is-wide { grid-column: span 2; } }

/* lightbox (created by site.js) */
.lightbox { position: fixed; inset: 0; z-index: var(--z-lightbox); display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity var(--dur) ease, visibility 0s linear var(--dur); }
.lightbox.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(5, 6, 9, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lightbox__stage { position: relative; max-width: min(1400px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; transform: scale(.96); transition: transform var(--dur) var(--ease); }
.lightbox.is-open .lightbox__stage { transform: none; }
.lightbox__stage img { max-width: 100%; max-height: calc(100vh - 120px); width: auto; height: auto; object-fit: contain; border-radius: var(--r-md); box-shadow: var(--sh-lg); }
.lightbox__stage video { width: min(1100px, 100%); max-height: calc(100vh - 120px); aspect-ratio: 16 / 9; border-radius: var(--r-md); background: #000; object-fit: contain; }
.lightbox__caption { margin-top: 14px; color: rgba(255, 255, 255, .8); font-size: var(--fs-sm); text-align: center; }
.lightbox__btn { position: absolute; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(8px); transition: background var(--dur-fast) ease; }
.lightbox__btn:hover { background: rgba(255, 255, 255, .25); }
.lightbox__btn .icon { width: 22px; height: 22px; stroke-width: 2; }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__prev .icon { transform: rotate(180deg); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; left: 24px; top: 30px; z-index: 2; color: rgba(255, 255, 255, .7); font-family: var(--font-display); font-size: .85rem; }
.lightbox.is-single .lightbox__prev, .lightbox.is-single .lightbox__next, .lightbox.is-single .lightbox__count { display: none; }
@media (max-width: 640px) { .lightbox { padding: 12px; } .lightbox__btn { width: 44px; height: 44px; } .lightbox__prev { left: 8px; top: auto; bottom: 16px; transform: none; } .lightbox__next { right: 8px; top: auto; bottom: 16px; transform: none; } .lightbox__close { top: 12px; right: 12px; } }

/* video trigger (poster + play button) */
.video-trigger { position: relative; display: block; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 16 / 9; background: var(--c-night); color: #fff; cursor: pointer; isolation: isolate; }
.video-trigger img, .video-trigger video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.video-trigger:hover img, .video-trigger:hover video { transform: scale(1.04); }
.video-trigger::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(11, 13, 18, .7)); z-index: 1; }
.video-trigger__play {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); color: var(--c-red); box-shadow: 0 0 0 0 rgba(255, 255, 255, .5); transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) ease;
}
.video-trigger__play .icon { width: 30px; height: 30px; margin-left: 4px; fill: currentColor; stroke: none; }
.video-trigger:hover .video-trigger__play { transform: scale(1.08); background: #fff; }
@media (prefers-reduced-motion: no-preference) { .video-trigger__play { animation: ring 2.4s ease-out infinite; } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); } 100% { box-shadow: 0 0 0 28px rgba(255, 255, 255, 0); } }
.video-trigger__caption { position: absolute; left: 24px; right: 24px; bottom: 20px; z-index: 2; font-family: var(--font-display); font-weight: 600; font-size: .95rem; text-transform: uppercase; }
.video-trigger--sm { aspect-ratio: 4 / 3; border-radius: var(--r-md); }
.video-trigger--sm .video-trigger__play { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
.video-trigger--sm .video-trigger__play .icon { width: 22px; height: 22px; }
.video-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--link); cursor: pointer; }
.video-link .icon-circle { width: 40px; height: 40px; }
.video-link .icon-circle .icon { width: 16px; height: 16px; margin-left: 2px; fill: currentColor; stroke: none; }
.video-link:hover .icon-circle { background: var(--c-blue); color: #fff; }

/* --------------------------------------------------------------------------
   11. Accordion, notice, tabs, table
   -------------------------------------------------------------------------- */
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; padding: 22px 0; text-align: left;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.3; color: var(--text); transition: color var(--dur-fast) ease;
}
.accordion__trigger:hover { color: var(--accent); }
.accordion__icon { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text); transition: transform var(--dur) var(--ease), background var(--dur-fast) ease, color var(--dur-fast) ease; }
.accordion__icon .icon { width: 16px; height: 16px; stroke-width: 2.4; }
.accordion__item.is-open .accordion__icon { transform: rotate(45deg); background: var(--c-red); color: #fff; }
.accordion__item.is-open .accordion__trigger { color: var(--text); }
.accordion__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur) var(--ease); }
.accordion__panel > * { overflow: hidden; min-height: 0; }
.accordion__item.is-open > .accordion__panel { grid-template-rows: 1fr; }
.accordion__body { padding: 0 60px 0 0; color: var(--muted); }
.accordion__body::after { content: ""; display: block; height: 26px; } /* bottom spacing as in-flow content, so a 0fr row really collapses */
.accordion__body > * + * { margin-top: .9em; }
.accordion__body a { color: var(--link); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
html:not(.js) .accordion__panel { grid-template-rows: 1fr; }
.accordion--cards { border: 0; display: grid; gap: 12px; }
.accordion--cards .accordion__item { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); padding: 0 24px; transition: box-shadow var(--dur) var(--ease); }
.accordion--cards .accordion__item.is-open { box-shadow: var(--card-shadow); }
.accordion--cards .accordion__trigger { padding: 20px 0; }
.accordion--cards .accordion__body { padding-right: 40px; }
.accordion--notice .accordion__trigger { font-size: var(--fs-h3); text-transform: uppercase; }
.accordion--notice .accordion__trigger::before { content: "!"; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--c-red-fill); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; margin-right: 4px; }
.accordion--notice .accordion__trigger .accordion__icon { margin-left: auto; }
.accordion--notice .accordion__trigger span:not(.accordion__icon) { flex: 1 1 auto; }
@media (max-width: 640px) { .accordion__body { padding-right: 0; } .accordion__trigger { font-size: .9rem; padding: 18px 0; } }

.notice { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 18px 20px; padding: 28px 30px; border-radius: var(--r-lg); background: var(--accent-soft); color: var(--text); border: 1px solid color-mix(in srgb, var(--c-red) 18%, transparent); }
.notice__icon { grid-row: span 2; flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--c-red-fill); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
.notice__title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; align-self: center; }
.notice__body { grid-column: 2; color: var(--text); }
.notice__body > * + * { margin-top: .8em; }
.notice__body a { color: var(--link); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.notice__body a:hover { color: var(--c-red-text); }
.notice--blue { background: var(--accent-2-soft); border-color: color-mix(in srgb, var(--c-blue) 22%, transparent); }
.notice--blue .notice__icon { background: var(--c-blue); }
.notice--neutral { background: var(--surface-2); border-color: var(--line); }
.notice--neutral .notice__icon { background: var(--c-ink); }
.notice--dark { background: var(--c-night-2); color: #fff; border-color: rgba(255, 255, 255, .1); --link: #ff8a95; }
.notice--compact { padding: 18px 20px; gap: 12px 16px; }
.notice--compact .notice__icon { width: 32px; height: 32px; font-size: 1rem; }
.notice--compact .notice__title { font-size: .95rem; }
.section--dark .notice { background: var(--accent-soft); border-color: rgba(230, 24, 48, .35); }
@media (max-width: 560px) { .notice { padding: 22px 20px; } .notice__body { grid-column: 1 / -1; } .notice__icon { grid-row: auto; } }

.tabs__nav { display: flex; gap: 6px; padding: 6px; border-radius: var(--r-pill); background: var(--surface-3); overflow-x: auto; scrollbar-width: none; width: max-content; max-width: 100%; margin-bottom: 32px; scroll-snap-type: x proximity; }
.tabs__nav::-webkit-scrollbar { display: none; }
.tabs__nav.is-overflowing { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); } /* site.js adds the class while scrollWidth > clientWidth */
.tabs__nav.is-overflowing.is-at-end { -webkit-mask-image: none; mask-image: none; }
.tabs__tab { scroll-snap-align: start; }
.tabs__tab { flex: none; padding: 12px 22px; border-radius: var(--r-pill); font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; transition: background var(--dur-fast) ease, color var(--dur-fast) ease, box-shadow var(--dur-fast) ease; }
.tabs__tab:hover { color: var(--text); }
.tabs__tab.is-active, .tabs__tab[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--sh-sm); }
.tabs__panel { display: none; }
.tabs__panel.is-active { display: block; animation: fadeUp .5s var(--ease) both; }
html:not(.js) .tabs__panel { display: block; }
.tabs--center .tabs__nav { margin-inline: auto; }
.tabs--line .tabs__nav { background: none; border-radius: 0; padding: 0; border-bottom: 1px solid var(--line); gap: 28px; width: 100%; }
.tabs--line .tabs__tab { padding: 14px 0; border-radius: 0; position: relative; }
.tabs--line .tabs__tab.is-active { background: none; box-shadow: none; }
.tabs--line .tabs__tab.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--c-red); border-radius: 2px; }
.tabs--line .tabs__nav.is-overflowing { -webkit-mask-image: none; mask-image: none; }
.section--dark .tabs__tab.is-active { background: #fff; color: var(--c-ink); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.table-wrap {
  width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-md);
  /* scroll shadows: edge fades that appear only where there is more table to scroll to */
  background:
    linear-gradient(90deg, var(--surface) 30%, transparent) left / 40px 100% no-repeat local,
    linear-gradient(270deg, var(--surface) 30%, transparent) right / 40px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, .18), transparent) left / 14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, .18), transparent) right / 14px 100% no-repeat scroll,
    var(--surface);
}
.table thead tr, .table tbody tr { background: transparent; }
.table { min-width: 560px; font-size: var(--fs-sm); }
.table th, .table td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table th { font-family: var(--font-body); font-weight: 800; font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background var(--dur-fast) ease; }
.table tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.table td.is-price, .table th.is-price { text-align: right; font-family: var(--font-display); font-weight: 600; white-space: nowrap; }
.table td.is-price { color: var(--c-ink); }
.table td b { font-weight: 700; }
.table--compact th, .table--compact td { padding: 10px 14px; }
.table--striped tbody tr:nth-child(even) { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.table--dark { --surface: var(--c-night-2); --surface-2: var(--c-night-3); color: #fff; }
.section--dark .table td.is-price { color: #fff; }
.table--fit { min-width: 0; }

/* --------------------------------------------------------------------------
   12. Split, marquee, CTA band, contacts, breadcrumbs
   -------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split__media { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: var(--split-ratio, 4 / 3); background: var(--surface-3); }
.split__media img, .split__media video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.split__media:hover img { transform: scale(1.04); }
.split__media--contain { background: var(--c-grey-50); }
.split__media--contain img { object-fit: contain; padding: 6%; }
.split__media--contain:hover img { transform: scale(1.02); }
.split__media--square { --split-ratio: 1; }
.split__media--tall { --split-ratio: 3 / 4; }
.split__media--auto { aspect-ratio: auto; }
.split__media--auto img { height: auto; }
.split__media--auto:hover img { transform: none; }
.split__body > * + * { margin-top: 18px; }
.split__body .title { font-size: var(--fs-h2); }
.split__body .btn-group { margin-top: 28px; }
.split--reverse .split__media { order: 2; }
.split--top { align-items: start; }
.split--wide-media { grid-template-columns: 1.25fr 1fr; }
.split--wide-media.split--reverse { grid-template-columns: 1fr 1.25fr; }
.split__price { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); color: var(--c-red); line-height: 1; }
.split__price small { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 600; color: var(--muted); display: block; margin-top: 6px; }
.splits > .split + .split { margin-top: clamp(48px, 6vw, 96px); }
.splits--alt > .split:nth-child(even) .split__media { order: 2; }
@media (max-width: 980px) {
  .split, .split--wide-media, .split--wide-media.split--reverse { grid-template-columns: 1fr; }
  .split--reverse .split__media, .splits--alt > .split:nth-child(even) .split__media { order: 0; }
}

.marquee { overflow: hidden; padding-block: 16px; background: var(--c-ink); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: clamp(.9rem, .8rem + .6vw, 1.25rem); text-transform: uppercase; letter-spacing: .02em; user-select: none; white-space: nowrap; }
.marquee__track { display: flex; width: max-content; gap: 0; will-change: transform; }
.marquee__item { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; }
.marquee__item::after { content: ""; width: 12px; height: 12px; background: var(--c-red); transform: skewX(-20deg); flex: none; }
.marquee--red { background: var(--c-red); }
.marquee--red .marquee__item::after { background: #fff; }
.marquee--blue { background: var(--c-blue); }
.marquee--blue .marquee__item::after { background: #fff; }
.marquee--light { background: var(--c-grey-50); color: var(--c-ink); }
.marquee--outline { background: transparent; color: transparent; -webkit-text-stroke: 1px var(--c-ink); }
.marquee--outline .marquee__item::after { background: var(--c-red); }
.section--dark .marquee--outline { -webkit-text-stroke-color: rgba(255, 255, 255, .6); }
.marquee--lg { font-size: clamp(1.4rem, 1rem + 2vw, 2.6rem); padding-block: 22px; }
.marquee--tilt { transform: rotate(-2deg) scale(1.03); margin-block: 12px; }
.marquee--tilt-r { transform: rotate(1.5deg) scale(1.03); margin-block: 12px; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
@media (prefers-reduced-motion: no-preference) {
  html.js .marquee__track { animation: marquee var(--marquee-dur, 40s) linear infinite; }
  .marquee:hover .marquee__track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-stack { position: relative; overflow: hidden; padding-block: 24px; }

.cta-band { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(56px, 7vw, 100px); background: var(--c-ink); color: #fff; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band__text { max-width: 720px; }
.cta-band__text > * + * { margin-top: 14px; }
.cta-band__title { font-size: var(--fs-h2); text-transform: uppercase; }
.cta-band__lead { color: rgba(255, 255, 255, .8); font-size: var(--fs-lg); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band__bg { position: absolute; inset: 0; z-index: -2; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 13, 18, .92), rgba(11, 13, 18, .55)); }
.cta-band--red { background: linear-gradient(110deg, var(--c-red) 0%, #a90f22 100%); }
.cta-band--blue { background: linear-gradient(110deg, var(--c-blue) 0%, #0f1012 100%); }
.cta-band--grad { background: linear-gradient(105deg, var(--c-red) 0%, var(--c-red) 40%, var(--c-blue) 100%); }
.cta-band--center { text-align: center; }
.cta-band--center .cta-band__inner { flex-direction: column; justify-content: center; }
.cta-band--center .cta-band__actions { justify-content: center; }
.cta-band::before { /* subtle speed stripes */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .08;
  background: repeating-linear-gradient(115deg, transparent 0 140px, #fff 140px 148px);
}
.cta-band--rounded { border-radius: var(--r-xl); }

.contacts { display: grid; gap: 20px; }
.contacts--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contacts__item { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.contacts__item .icon-circle { width: 48px; height: 48px; }
.contacts__item .icon-circle .icon { width: 22px; height: 22px; }
.contacts__label { display: block; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.contacts__value { font-size: var(--fs-base); line-height: 1.45; }
.contacts__value a { color: var(--link); font-weight: 700; }
.contacts__value a:hover { color: var(--c-red); }
.contacts__value--lg { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.contacts__map { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-3); }
.contacts__map img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.contacts__map:hover img { transform: scale(1.04); }
.contacts__map .btn { position: absolute; left: 20px; bottom: 20px; z-index: 1; }
.contacts__row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 980px) { .contacts__row { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .contacts--grid { grid-template-columns: 1fr; } }

.breadcrumbs { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 4px; }
.breadcrumbs li + li::before { content: ""; width: 5px; height: 5px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); margin: 0 6px; opacity: .6; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--c-red); }
.breadcrumbs [aria-current] { color: var(--text); }
.hero .breadcrumbs, .hero .breadcrumbs a { color: rgba(255, 255, 255, .7); }
.hero .breadcrumbs [aria-current] { color: #fff; }
.hero .breadcrumbs a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   13. Forms, modals
   -------------------------------------------------------------------------- */
.form { --field-bg: var(--surface); --field-bd: var(--line-strong); }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.form__grid--1 { grid-template-columns: 1fr; }
.form__row { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; }
.form__row .field { flex: 1 1 240px; }
.form__footer { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.form__note { font-size: var(--fs-xs); color: var(--muted); line-height: 1.45; }
.form__note a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field__label { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.field__label b, .field__label .req { color: var(--c-red); }
.field__input {
  width: 100%; min-width: 0; min-height: 54px; padding: 14px 18px; border-radius: var(--r-md); border: 1.5px solid var(--field-bd); background: var(--field-bg); color: var(--text);
  font-size: 1rem; transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease, background var(--dur-fast) ease; appearance: none;
}
.field__input::placeholder { color: #767676; }
.field__input:hover { border-color: var(--text); }
.field__input:focus { border-color: var(--c-blue); box-shadow: var(--focus); }
.field--pill .field__input:focus-visible { border-radius: var(--r-pill); }
.field__input:invalid:not(:placeholder-shown) { border-color: var(--c-red); }
.field__input.is-invalid { border-color: var(--c-red); }
textarea.field__input { min-height: 130px; resize: vertical; }
select.field__input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23525252' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; padding-right: 44px; }
.field__hint { font-size: var(--fs-xs); color: var(--muted); }
.field__error { font-size: var(--fs-xs); color: var(--c-red); font-weight: 600; display: none; }
.field.is-invalid .field__error { display: block; }
.field--pill .field__input { border-radius: var(--r-pill); padding-inline: 24px; }
.section--dark .form, .form--dark { --field-bg: rgba(255, 255, 255, .06); --field-bd: rgba(255, 255, 255, .22); }
.section--dark .field__input::placeholder { color: rgba(255, 255, 255, .45); }

.checkbox { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: var(--fs-xs); line-height: 1.45; color: var(--muted); }
.checkbox input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.checkbox__box { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; border: 1.5px solid var(--line-strong); background: var(--field-bg, var(--surface)); display: grid; place-items: center; transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease; }
.checkbox__box::after { content: ""; width: 11px; height: 6px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform var(--dur-fast) var(--ease); }
.checkbox input:checked + .checkbox__box { background: var(--c-blue); border-color: var(--c-blue); }
.checkbox input:checked + .checkbox__box::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.checkbox input:focus-visible + .checkbox__box { box-shadow: var(--focus); }
.checkbox__text a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.checkbox.is-invalid .checkbox__box { border-color: var(--c-red); }

.form__status { display: none; margin-top: 16px; padding: 14px 18px; border-radius: var(--r-sm); font-weight: 600; font-size: var(--fs-sm); }
.form__status.is-success { display: block; background: #e7f8ec; color: #147a3a; }
.form__status.is-error { display: block; background: var(--accent-soft); color: var(--c-red-text); }
.form.is-sent .form__body { display: none; }
.form.is-sent .form__status.is-success { display: flex; align-items: center; gap: 12px; padding: 24px; font-family: var(--font-display); font-size: 1rem; font-weight: 600; margin-top: 0; }
.form.is-sent .form__status.is-success::before { content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; background: #147a3a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 16px no-repeat; }
.form--inline .form__body { display: flex; gap: 10px; flex-wrap: wrap; min-width: 0; }
.form--inline .field { flex: 1 1 200px; min-width: 0; }
.form--inline .btn { flex: 0 0 auto; min-height: 54px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-card { padding: clamp(24px, 3vw, 40px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--card-shadow); }
.form-card__title { font-size: var(--fs-h3); text-transform: uppercase; margin-bottom: 8px; }
.form-card__lead { color: var(--muted); margin-bottom: 24px; }
@media (max-width: 640px) { .form__grid { grid-template-columns: 1fr; } }

.modal { position: fixed; inset: 0; z-index: var(--z-modal); display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.is-open, .modal:target { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(5, 6, 9, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeIn var(--dur) ease both; }
.modal__dialog {
  position: relative; width: 100%; max-width: 620px; max-height: calc(100vh - 48px); overflow: auto; overscroll-behavior: contain;
  background: var(--surface); color: var(--text); border-radius: var(--r-lg); box-shadow: var(--sh-lg); padding: clamp(28px, 4vw, 44px);
  animation: modalIn .5s var(--ease-out) both;
}
.modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text); z-index: 1; transition: background var(--dur-fast) ease, transform var(--dur-fast) var(--ease); }
.modal__close:hover { background: var(--c-red); color: #fff; transform: rotate(90deg); }
.modal__close .icon { width: 18px; height: 18px; stroke-width: 2.2; }
.modal__title { font-size: var(--fs-h3); text-transform: uppercase; padding-right: 40px; }
.modal__lead { margin-top: 10px; color: var(--muted); }
.modal__body { margin-top: 22px; }
.modal__price { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; margin-top: 12px; color: var(--c-red-text); }
.modal__price small { font-size: .55em; font-weight: 600; color: var(--muted); }
.modal--wide .modal__dialog { max-width: 960px; }
.modal--narrow .modal__dialog { max-width: 480px; }
.modal--dark .modal__dialog { --surface: var(--c-night-2); --surface-3: var(--c-night-3); --text: #fff; --muted: rgba(255, 255, 255, .7); --line: rgba(255, 255, 255, .12); --line-strong: rgba(255, 255, 255, .25); --link: #ff8a95; }
.modal--media .modal__dialog { padding: 0; overflow: hidden; }
.modal--media .modal__media { aspect-ratio: 16 / 9; background: var(--c-night); }
.modal--media .modal__media img, .modal--media .modal__media video { width: 100%; height: 100%; object-fit: cover; }
.modal--media .modal__content { padding: clamp(24px, 3vw, 36px); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .modal { padding: 0; align-items: flex-end; } .modal__dialog { max-height: 92vh; border-radius: var(--r-lg) var(--r-lg) 0 0; } }

/* --------------------------------------------------------------------------
   14. News, legal / TOC
   -------------------------------------------------------------------------- */
.news-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }
.news-card { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.news-card__media { display: block; aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-3); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card__body > * + * { margin-top: 6px; }
.news-card__date { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.news-card__title { font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.3; text-transform: none; }
.news-card__title a::after { content: ""; position: absolute; inset: 0; }
.news-card__title a:hover { color: var(--c-red-text); }
.news-card__text { font-size: var(--fs-sm); color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card--row { flex-direction: row; align-items: center; gap: 24px; padding: 16px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.news-card--row .news-card__media { flex: 0 0 200px; aspect-ratio: 4 / 3; border-radius: var(--r-md); }
.news-card--row .news-card__title { font-size: 1.1rem; }
@media (max-width: 560px) { .news-card--row { flex-direction: column; align-items: stretch; } .news-card--row .news-card__media { flex: none; aspect-ratio: 16 / 10; } }
[data-more] > .is-more-hidden { display: none !important; }
.more-wrap { display: flex; justify-content: center; margin-top: clamp(28px, 4vw, 48px); }

.article { max-width: var(--container-narrow); margin-inline: auto; }
.article__head { margin-bottom: clamp(24px, 3vw, 40px); }
.article__head > * + * { margin-top: 16px; }
.article__date { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--c-red-text); }
.article__title { font-size: var(--fs-h1); text-transform: none; line-height: 1.1; }
.article__cover { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface-3); margin-bottom: clamp(24px, 3vw, 40px); }
.article__cover img { width: 100%; height: 100%; object-fit: cover; }
.article__body { font-size: var(--fs-lg); }
.article__gallery { margin-top: clamp(28px, 4vw, 48px); }
.article__footer { margin-top: clamp(32px, 5vw, 56px); padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.article__share { display: flex; gap: 8px; align-items: center; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.legal { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.legal__aside { position: sticky; top: calc(var(--header-bar-small) + 24px); }
.legal__body { max-width: 78ch; }
/* legal headings are sentences, not labels: no caps wall; the short numbered ones may opt in with .caps */
.legal__body h2 { scroll-margin-top: calc(var(--header-bar-small) + 24px); text-transform: none; letter-spacing: 0; font-size: var(--fs-h3); line-height: 1.25; text-wrap: pretty; }
.legal__body > h2:first-child { font-size: clamp(1.2rem, 1rem + 1vw, 1.75rem); line-height: 1.3; }
.legal__body h2.caps { text-transform: uppercase; letter-spacing: var(--track-display); }
.toc { padding: 22px 24px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.toc__title { font-family: var(--font-display); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 14px; }
.toc__list { display: grid; gap: 2px; counter-reset: toc; max-height: calc(100vh - var(--header-bar-small) - 140px); overflow: auto; }
.toc__list li { counter-increment: toc; }
.toc__list a { display: flex; gap: 10px; padding: 8px 10px; border-radius: var(--r-xs); font-size: var(--fs-xs); font-weight: 600; line-height: 1.35; color: var(--muted); transition: background var(--dur-fast) ease, color var(--dur-fast) ease; }
.toc__list a::before { content: counter(toc); flex: none; font-family: var(--font-display); font-size: .7rem; color: var(--c-blue); min-width: 1.4em; }
.toc__list a span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } /* site.js wraps the text; long headings are clamped to 2 lines */
.toc__list a:hover, .toc__list a.is-active { background: var(--surface); color: var(--text); box-shadow: var(--sh-sm); }
.toc__list a.is-active::before { color: var(--c-red-text); }
.legal__meta { font-size: var(--fs-sm); color: var(--muted); }
@media (max-width: 980px) {
  .legal { grid-template-columns: 1fr; }
  .legal__aside { position: static; }
  .toc__list { max-height: none; }
}

/* --------------------------------------------------------------------------
   15. Shared partials: programs carousel, subscribe, footer, to-top
   -------------------------------------------------------------------------- */
.programs { padding-block: clamp(16px, 2vw, 32px) var(--section-y); }
.programs .card__media { --card-ratio: 1 / 1; }
.programs .card__name { font-size: .95rem; }
.programs .card__actions .btn { flex: 0 0 auto; }
.programs .card__body { padding-bottom: 24px; }

.subscribe { padding-block: 0 var(--section-y); }
.subscribe__card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border-radius: var(--r-xl); overflow: hidden; background: var(--c-ink); color: #fff; box-shadow: var(--sh-lg); }
.subscribe__media { position: relative; min-height: 320px; }
.subscribe__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.subscribe__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, var(--c-ink)); }
.subscribe__body { padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 22px; min-width: 0; }
.subscribe__title { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.35rem); line-height: 1.08; text-transform: uppercase; max-width: 24ch; }
.subscribe .form { --field-bg: rgba(255, 255, 255, .08); --field-bd: rgba(255, 255, 255, .25); }
.subscribe .field__input { color: #fff; }
.subscribe .field__input::placeholder { color: rgba(255, 255, 255, .5); }
.subscribe__note { font-size: var(--fs-xs); color: rgba(255, 255, 255, .6); line-height: 1.5; max-width: 60ch; }
.subscribe__note a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.subscribe .form__status.is-success { background: rgba(255, 255, 255, .1); color: #fff; }
/* mobile: the single track must be minmax(0, 1fr) — with plain 1fr the input's intrinsic width (or an aspect-ratio box with a
   min-height) pushes the track wider than the card and the form is clipped on every phone */
@media (max-width: 900px) {
  .subscribe__card { grid-template-columns: minmax(0, 1fr); }
  .subscribe__media { min-height: 0; height: auto; aspect-ratio: 16 / 9; }
  .subscribe__media::after { background: linear-gradient(180deg, transparent 50%, var(--c-ink)); }
}

.footer { background: var(--c-white); color: var(--c-ink); }
.footer__main { background: var(--c-ink); color: #fff; padding-block: clamp(48px, 6vw, 80px) 0; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.footer__brand > * + * { margin-top: 18px; }
.footer__logo img { width: 240px; height: auto; }
.footer__addr { color: rgba(255, 255, 255, .7); font-size: var(--fs-sm); max-width: 28ch; }
.footer__phone { display: inline-flex; align-items: center; gap: 10px; padding-block: 8px; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.footer__phone .icon { width: 18px; height: 18px; color: var(--c-red); }
.footer__phone:hover { color: rgba(255, 255, 255, .8); }
.footer__col-title { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .55); margin-bottom: 16px; }
.footer__links { display: grid; gap: 12px; }
.footer__links a { display: inline-block; font-size: var(--fs-sm); color: rgba(255, 255, 255, .82); line-height: 1.4; transition: color var(--dur-fast) ease, transform var(--dur-fast) var(--ease); }
.footer__links a:hover { color: #fff; transform: translateX(4px); }
.footer__bottom { margin-top: clamp(36px, 5vw, 56px); padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; font-size: var(--fs-xs); color: rgba(255, 255, 255, .5); }
.footer__bottom a:hover { color: #fff; }
.footer__bottom { color: rgba(255, 255, 255, .6); }
.footer__stripe { height: 5px; background: linear-gradient(90deg, var(--c-red) 0 34%, #fff 34% 67%, var(--c-blue) 67%); border-bottom: 2px solid var(--c-ink); } /* html canvas below is ink, so the white segment reads */
@media (max-width: 1100px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; gap: 32px; } }

.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: calc(var(--z-header) - 1); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c-ink); color: #fff; box-shadow: var(--sh-md); opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity var(--dur) ease, transform var(--dur) var(--ease), visibility 0s linear var(--dur), background var(--dur-fast) ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { background: var(--c-red-fill); }
.to-top .icon { width: 20px; height: 20px; transform: rotate(-90deg); stroke-width: 2.2; }

/* --------------------------------------------------------------------------
   16. Festival theme
   -------------------------------------------------------------------------- */
.theme-fest {
  --accent: #ff2a31; --accent-hover: #e0141b; --accent-soft: #fff0f0; --accent-2: #2a66ff; --accent-2-soft: #eaf0ff;
  --fest-grad: linear-gradient(100deg, #ff2a31 0%, #ec1d23 35%, #222427 100%);
  --fest-grad-btn: linear-gradient(100deg, #e0151b 0%, #d9161c 35%, #222427 100%); /* darker start: white labels stay ≥ 4.5:1 */
}
.theme-fest .uptitle { color: var(--c-blue-600); }
.theme-fest .uptitle::before { background: var(--accent-2); }
.theme-fest .title--grad, .theme-fest .hero__title--grad { background: var(--fest-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.theme-fest .btn--primary { background: var(--fest-grad-btn); --btn-bg-h: transparent; }
.theme-fest .btn--primary:hover { filter: brightness(1.08); }
/* gradient top bar drawn as a pseudo-element: border-image would switch off the card's border-radius */
.theme-fest .card::before, .theme-fest .offer::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--fest-grad); z-index: 2; pointer-events: none; }
.theme-fest .marquee { background: var(--fest-grad); color: #fff; }
.theme-fest .marquee__item::after { background: #fff; }
.theme-fest .badge--fest { background: var(--fest-grad); color: #fff; }
.theme-fest .section-head .title mark { color: var(--accent-2); }
.theme-fest .slider__dot.is-active::before { background: var(--accent-2); }
.theme-fest .stat { border-left: 3px solid var(--accent-2); border-image: none; }
.fest-stripes { position: relative; height: 18px; overflow: hidden; }
.fest-stripes::before, .fest-stripes::after { content: ""; position: absolute; inset: 0; }
.fest-stripes::before { background: repeating-linear-gradient(115deg, var(--c-red) 0 48px, #fff 48px 64px, var(--c-blue) 64px 112px, #fff 112px 128px); }
.fest-stripes--thin { height: 8px; }
.fest-ribbon { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.fest-ribbon::before { content: ""; position: absolute; left: -10%; right: -10%; top: 12%; height: 22%; background: linear-gradient(100deg, var(--c-red) 0 45%, transparent 45%), linear-gradient(100deg, transparent 0 55%, var(--c-blue) 55%); transform: skewY(-7deg); opacity: .9; }
.fest-ribbon::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: 10%; height: 10px; background: #fff; transform: skewY(-7deg); opacity: .4; }
.theme-fest .section--dark { --accent-soft: rgba(255, 42, 49, .18); }
.theme-fest .hero__overlay { background: linear-gradient(180deg, rgba(11, 13, 18, .2) 0%, rgba(11, 13, 18, .25) 40%, rgba(34, 36, 39, .35) 80%, rgba(11, 13, 18, .95) 100%); }
.fest-date { display: inline-flex; align-items: baseline; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 1.2rem + 2vw, 3rem); line-height: 1; }
.fest-date small { font-size: .45em; font-weight: 600; color: var(--muted); }

/* --------------------------------------------------------------------------
   17. Scroll reveal & motion gates
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); will-change: opacity, transform; }
  html.js [data-reveal="fade"] { transform: none; }
  html.js [data-reveal="left"] { transform: translateX(-36px); }
  html.js [data-reveal="right"] { transform: translateX(36px); }
  html.js [data-reveal="zoom"] { transform: scale(.94); }
  html.js [data-reveal="up-lg"] { transform: translateY(64px); }
  html.js [data-reveal].is-visible { opacity: 1; transform: none; }
  html.js [data-reveal="stagger"] { opacity: 1; transform: none; transition: none; }
  html.js [data-reveal="stagger"] > * { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
  html.js [data-reveal="stagger"].is-visible > * { opacity: 1; transform: none; }
  html.js .slider__track[data-reveal-track] .slider__slide { opacity: 0; transform: translateX(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  html.js .slider__track[data-reveal-track].is-visible .slider__slide { opacity: 1; transform: none; }
  .hover-zoom { overflow: hidden; }
  .hover-zoom img { transition: transform 1.1s var(--ease); }
  .hover-zoom:hover img { transform: scale(1.06); }
  .float { animation: float 6s ease-in-out infinite; }
  @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  .hero__media { transform: none !important; }
  .marquee__track { animation: none !important; }
  [data-reveal], [data-reveal] > * { opacity: 1 !important; transform: none !important; }
}
/* ?motion=0 in the URL (site.js adds html.no-motion): deterministic screenshots / QA */
html.no-motion { scroll-behavior: auto !important; }
html.no-motion *, html.no-motion *::before, html.no-motion *::after { animation: none !important; transition: none !important; }
html.no-motion [data-reveal], html.no-motion [data-reveal] > *, html.no-motion .slider__slide { opacity: 1 !important; transform: none !important; }
html.no-motion .hero__media { transform: none !important; }

/* decorative helpers */
.stripe { height: 4px; width: 100%; background: linear-gradient(90deg, var(--c-red) 0 34%, #fff 34% 67%, var(--c-blue) 67%); }
.stripe--short { width: 96px; border-radius: 2px; }
.skew-tag { display: inline-block; padding: 6px 14px; background: var(--c-red-fill); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .8rem; text-transform: uppercase; transform: skewX(-12deg); }
.skew-tag > span { display: inline-block; transform: skewX(12deg); }
.skew-tag--blue { background: var(--c-blue); }
.skew-tag--white { background: #fff; color: var(--c-ink); }
.glow { position: absolute; pointer-events: none; z-index: 0; border-radius: 50%; filter: blur(80px); opacity: .5; will-change: transform; transform: translateZ(0); }
.glow--red { background: var(--c-red); }
.glow--blue { background: #7a1020; }
@media (max-width: 640px) { .glow { filter: blur(48px); opacity: .4; } }
.section > .container { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   18. Print
   -------------------------------------------------------------------------- */
@media print {
  :root { --header-h: 0px; }
  body { padding-top: 0; background: #fff; color: #000; font-size: 11pt; }
  .header, .progress, .to-top, .nav-backdrop, .hero__scroll, .hero__media, .hero__overlay, .subscribe, .programs, .marquee, .slider__nav, .slider__arrow, .slider__dots, .modal, .lightbox, .btn, video, .video-trigger__play, .cta-band::before, .footer__stripe { display: none !important; }
  .hero { min-height: 0; margin-top: 0; padding-top: 0; color: #000; background: none; }
  .hero__title { text-shadow: none; }
  .section, .section--dark, .footer__main { background: none !important; color: #000 !important; padding-block: 16pt; }
  .section--dark { --text: #000; --muted: #333; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; color: #555; }
  .card, .offer, .spec, .notice { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .accordion__panel { grid-template-rows: 1fr !important; }
  .tabs__panel { display: block !important; }
  .slider__track { overflow: visible; flex-wrap: wrap; }
  [data-reveal], [data-reveal] > * { opacity: 1 !important; transform: none !important; }
  .legal { grid-template-columns: 1fr; }
  .legal__aside { display: none; }
}

/* --------------------------------------------------------------------------
   Home page: the programs grid above already lists all 10 programs, so the
   shared footer carousel would repeat it right below; give the subscribe card
   its own breathing room instead.
   -------------------------------------------------------------------------- */
.page-index .programs { display: none; }
.page-index .subscribe { padding-top: var(--section-y); }

/* --------------------------------------------------------------------------
   Main conversion CTA: «ВЫБРАТЬ АВТО» / «ВЫБРАТЬ СПОРТКАР».
   The single most important action on the car pages, so it is bigger than
   any other button, carries a car icon and an arrow, and breathes with a
   soft red ring. .btn--car-light is the white version for red CTA bands.
   -------------------------------------------------------------------------- */
.btn--car {
  --btn-bg: var(--c-red-fill); --btn-bg-h: var(--c-red-600); --btn-fg: #fff; --btn-bd: transparent;
  --car-glow: 224, 21, 27;
  min-height: 64px; padding: 10px 28px 10px 10px; gap: 14px;
  font-size: 1rem; letter-spacing: .08em;
  box-shadow: 0 18px 36px -14px rgba(var(--car-glow), .8), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn--car .btn__icon {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
}
.btn--car .btn__icon .icon { width: 22px; height: 22px; stroke-width: 2; }
.btn--car .btn__arrow { width: 20px; height: 20px; transition: transform var(--dur-fast) var(--ease); }
.btn--car:hover { box-shadow: 0 22px 44px -12px rgba(var(--car-glow), .9), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn--car:hover .btn__arrow { transform: translateX(5px); }
.btn--car-light { --btn-bg: #fff; --btn-bg-h: #fff; --btn-fg: var(--c-red-600); --car-glow: 255, 255, 255; box-shadow: 0 18px 36px -16px rgba(11, 13, 18, .55); }
.btn--car-light .btn__icon { background: var(--c-red-fill); color: #fff; box-shadow: none; }
.btn--car-light:hover { box-shadow: 0 22px 44px -14px rgba(11, 13, 18, .6); }
@media (prefers-reduced-motion: no-preference) {
  html:not(.no-motion) .btn--car { animation: car-cta-pulse 2.8s cubic-bezier(.4, 0, .2, 1) infinite; }
  html:not(.no-motion) .btn--car:hover, html:not(.no-motion) .btn--car:focus-visible { animation: none; }
}
@keyframes car-cta-pulse {
  0%   { box-shadow: 0 18px 36px -14px rgba(var(--car-glow), .8), 0 0 0 0 rgba(var(--car-glow), .5); }
  70%  { box-shadow: 0 18px 36px -14px rgba(var(--car-glow), .8), 0 0 0 18px rgba(var(--car-glow), 0); }
  100% { box-shadow: 0 18px 36px -14px rgba(var(--car-glow), .8), 0 0 0 0 rgba(var(--car-glow), 0); }
}
.services__head .btn--car { align-self: flex-start; }
@media (max-width: 640px) {
  .btn--car { width: 100%; min-height: 60px; padding-right: 22px; font-size: .92rem; }
  .btn--car span:not(.btn__icon) { flex: 1 1 auto; text-align: center; }
}

/* floating copy of the CTA on the car pages (race taxi, master class, VIP) */
.sticky-cta {
  position: fixed; left: 50%; bottom: 22px; z-index: calc(var(--z-header) - 2);
  transform: translate(-50%, 160%); opacity: 0; visibility: hidden;
  transition: transform .5s var(--ease), opacity .3s ease, visibility 0s linear .5s;
}
.sticky-cta.is-visible { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition-delay: 0s; }
/* white rim keeps the floating button readable when it passes over red sections */
.sticky-cta { outline: 3px solid rgba(255, 255, 255, .92); outline-offset: 0; }
.sticky-cta.is-visible:hover { transform: translate(-50%, -2px); }
@media (max-width: 640px) {
  .sticky-cta { left: 16px; right: 16px; width: auto; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); transform: translateY(160%); }
  .sticky-cta.is-visible, .sticky-cta.is-visible:hover { transform: none; }
  body:has(.sticky-cta.is-visible) .to-top { bottom: 90px; }
}
@media print { .sticky-cta { display: none !important; } }

/* --------------------------------------------------------------------------
   Car showroom XL (race taxi, master class): the cars are the product, so
   they get two per row, a studio stage, the price on the photo, key specs
   first and full-size purchase buttons. Scoped to .showroom--xl so it wins
   over the older page-level car-card rules.
   -------------------------------------------------------------------------- */
.showroom--xl .cars-xl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px); margin-top: 8px; }
.showroom--xl .car-card {
  border-radius: 28px; background: linear-gradient(180deg, #161a22 0%, #0f1218 100%);
  border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) ease;
}
.showroom--xl .car-card:hover { transform: translateY(-6px); border-color: rgba(230, 24, 48, .45); box-shadow: 0 40px 80px -32px rgba(230, 24, 48, .45); }

/* studio stage */
.showroom--xl .car-card .card__media--contain {
  /* a fixed band on top is reserved for the price tag, the car area below it is 16:9:
     every car (aspect 1.67–2.2) is width-limited there, so all cars get the same width,
     stand on the same floor and none of them reaches the price tag */
  --tag-zone: 76px;
  aspect-ratio: auto; height: 0; padding: 0 0 calc(56.25% + var(--tag-zone)); display: block; overflow: hidden;
  background:
    radial-gradient(60% 55% at 50% 38%, rgba(255, 255, 255, .13), transparent 70%),
    radial-gradient(45% 18% at 50% 88%, rgba(230, 24, 48, .22), transparent 75%),
    linear-gradient(180deg, #1c212b 0%, #12151c 72%, #0d1016 100%);
}
.showroom--xl .car-card .card__media--contain::after {
  content: ""; position: absolute; left: 14%; right: 14%; bottom: 2%; height: 10%; top: auto; inset-inline: 14%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, .75), transparent 72%); z-index: 0; filter: blur(4px);
}
.showroom--xl .car-card .card__media--contain::before { /* track floor line */
  content: ""; position: absolute; left: 0; right: 0; bottom: 6.5%; height: 1px; z-index: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12) 20%, rgba(255, 255, 255, .12) 80%, transparent);
}
.showroom--xl .car-card .card__media img {
  /* photos are pre-trimmed to the car (media/cars/, promo badges kept), so every car is drawn at the
     same width and all wheels stand on the same floor line */
  position: absolute; z-index: 1; left: 10%; top: var(--tag-zone); width: 80%; height: calc(94% - var(--tag-zone)); object-fit: contain; object-position: 50% 100%;
  filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .55));
  transition: transform .7s var(--ease-out);
}
.showroom--xl .car-card:hover .card__media img { transform: scale(1.06) translateX(2%); }

/* price tag on the photo */
.showroom--xl .car-card__price {
  /* top-right: the top-left corner of some photos holds the original «АКЦИЯ −10%» badge */
  position: absolute; top: 18px; right: 18px; z-index: 3; margin: 0; padding: 10px 18px 9px;
  border-radius: var(--r-pill); background: var(--c-red-fill); color: #fff;
  font-size: clamp(1.1rem, .9rem + .6vw, 1.45rem); line-height: 1; box-shadow: 0 12px 26px -10px rgba(230, 24, 48, .8);
}
.showroom--xl .car-card .card__body { gap: 14px; padding: clamp(20px, 2vw, 30px); padding-top: 18px; }
.showroom--xl .car-card .card__name { font-size: clamp(1.25rem, 1rem + .9vw, 1.75rem); line-height: 1.12; letter-spacing: -.005em; }
.showroom--xl .car-card__programs { margin: -4px 0 0; font-size: var(--fs-sm); }

/* spec tiles: 3 key specs first (one row), the rest two per row */
.showroom--xl .car-specs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 4px 0 0; font-size: var(--fs-sm); }
.showroom--xl .car-specs li {
  grid-column: span 3; display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 0; border-radius: 12px;
  background: rgba(255, 255, 255, .045); min-width: 0;
}
.showroom--xl .car-specs li.is-key { grid-column: span 2; order: -1; background: rgba(230, 24, 48, .12); box-shadow: inset 0 0 0 1px rgba(230, 24, 48, .28); }
.showroom--xl .car-specs__k { color: rgba(255, 255, 255, .62); font-size: .78rem; line-height: 1.3; flex: none; }
.showroom--xl .car-specs__d { display: none; }
.showroom--xl .car-specs__v { margin: 0; text-align: left; font-weight: 700; color: #fff; font-size: .98rem; line-height: 1.25; }
.showroom--xl .car-specs__v::before { content: none; }
.showroom--xl .car-specs li.is-key .car-specs__v { font-family: var(--font-display); font-weight: 800; font-size: clamp(1rem, .85rem + .45vw, 1.3rem); color: #fff; min-width: 0; white-space: nowrap; }
.showroom--xl .car-specs__note { white-space: normal; display: block; margin-top: 3px; font-family: var(--font-body); font-size: .74rem; font-weight: 600; line-height: 1.3; letter-spacing: 0; color: rgba(255, 255, 255, .7); }

/* purchase buttons */
.showroom--xl .car-card .card__actions { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 10px; }
.showroom--xl .car-card .card__actions .btn { flex: 1 1 200px; min-height: 54px; padding-inline: 16px; letter-spacing: .045em; white-space: normal; text-wrap: balance; }
.showroom--xl .car-card .card__actions .btn--primary { flex-grow: 1.3; box-shadow: 0 14px 28px -12px rgba(230, 24, 48, .75); }

@media (max-width: 760px) {
  .showroom--xl .cars-xl { grid-template-columns: minmax(0, 1fr); }
  .showroom--xl .car-card .card__media--contain { --tag-zone: 66px; }
}
@media (max-width: 420px) {
  .showroom--xl .car-specs li { padding: 9px 10px; }
  .showroom--xl .car-specs li.is-key { padding: 9px 8px; }
  .showroom--xl .car-specs li.is-key .car-specs__v { font-size: .86rem; letter-spacing: -.015em; }
  .showroom--xl .car-specs__note { font-size: .68rem; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
  .showroom--xl .car-specs__k { font-size: .72rem; }
}

/* --------------------------------------------------------------------------
   Additional services (race taxi, master class): everything visible at once,
   readable body text, big prices — this is where add-ons are sold.
   -------------------------------------------------------------------------- */
.svc { display: grid; gap: clamp(28px, 3vw, 44px); }
.svc__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.svc__head .section-head { margin: 0; max-width: 760px; }
.svc__head .title { font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); }
.svc__head .lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); color: var(--text); opacity: .82; }
.svc__group { display: grid; gap: 18px; }
.svc__group-title {
  display: flex; align-items: center; gap: 14px; margin: 0;
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem);
}
.svc__group-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--c-red-fill); color: #fff; flex: none; }
.svc__group-icon .icon { width: 24px; height: 24px; }
.svc__grid { display: grid; gap: clamp(14px, 1.6vw, 22px); grid-template-columns: repeat(var(--svc-cols, 3), minmax(0, 1fr)); align-items: stretch; }
.svc__grid--4 { --svc-cols: 4; }
.svc__grid--3 { --svc-cols: 3; }
.svc__grid--2 { --svc-cols: 2; }
.svc-card {
  position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0;
  padding: clamp(22px, 2vw, 30px); border-radius: 22px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 2px 6px rgba(23, 23, 23, .05), 0 18px 40px -22px rgba(23, 23, 23, .28);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) ease;
}
.svc-card::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 4px; border-radius: 0 4px 4px 0; background: var(--c-red-fill); }
.svc-card:hover { transform: translateY(-4px); border-color: rgba(230, 24, 48, .35); box-shadow: 0 4px 10px rgba(23, 23, 23, .06), 0 28px 56px -24px rgba(230, 24, 48, .35); }
.svc-card__price {
  margin: 0; font-family: var(--font-display); font-weight: 800; line-height: 1; letter-spacing: -.01em; white-space: nowrap;
  font-size: clamp(1.7rem, 1.3rem + 1.1vw, 2.35rem); color: var(--c-red-text, #d9161c);
}
.svc-card__name { margin: 0; font-family: var(--font-body); font-weight: 800; font-size: clamp(1.06rem, 1rem + .25vw, 1.2rem); line-height: 1.3; color: var(--text); text-transform: none; letter-spacing: 0; }
.svc-card__descr { margin: 0; font-size: 1rem; line-height: 1.58; color: #3b3f46; }
.svc-card__descr + .svc-card__descr { margin-top: -2px; }
.svc-card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--c-red-50, #fdeeef); color: var(--c-red-fill); }
.svc-card__icon .icon { width: 26px; height: 26px; }
@media (max-width: 1200px) { .svc__grid--4 { --svc-cols: 2; } }
@media (max-width: 900px) { .svc__grid--3 { --svc-cols: 1; } }
@media (max-width: 640px) {
  .svc__grid--4, .svc__grid--2 { --svc-cols: 1; }
  .svc__head .btn--car { width: 100%; }
}

/* --------------------------------------------------------------------------
   Car showroom, light theme (all widths): white cards on a light grey section,
   light studio stage under the car, dark text. On phones the cards lose their
   frame and the photo runs edge to edge so the cars are as large as possible.
   -------------------------------------------------------------------------- */
.showroom--xl.section--dark {
  --bg: #f3f4f6; --surface: #ffffff; --surface-2: #f3f4f6; --surface-3: #eceef1;
  --text: var(--c-ink); --muted: #5f6570; --line: rgba(23, 23, 23, .1); --line-strong: rgba(23, 23, 23, .22);
  --link: var(--c-blue); --c-red-text: #d9161c; --accent-2-soft: rgba(34, 36, 39, .1); --card-bg: #ffffff;
}
.showroom--xl .glow { display: none; }
.showroom--xl .car-card {
  background: #fff; border: 1px solid rgba(23, 23, 23, .06);
  box-shadow: 0 2px 6px rgba(23, 23, 23, .05), 0 26px 54px -30px rgba(23, 23, 23, .32);
}
.showroom--xl .car-card:hover { border-color: rgba(230, 24, 48, .35); box-shadow: 0 4px 10px rgba(23, 23, 23, .06), 0 34px 64px -30px rgba(230, 24, 48, .35); }
.showroom--xl .car-card .card__media--contain {
  background:
    radial-gradient(70% 60% at 50% 45%, #ffffff, transparent 75%),
    linear-gradient(180deg, #eef0f3 0%, #f6f7f9 68%, #e6e8ec 100%);
}
.showroom--xl .car-card .card__media--contain::after { background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, .32), transparent 72%); }
.showroom--xl .car-card .card__media--contain::before { background: linear-gradient(90deg, transparent, rgba(23, 23, 23, .1) 20%, rgba(23, 23, 23, .1) 80%, transparent); }
.showroom--xl .car-card .card__media img { filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .22)); }
.showroom--xl .car-card__programs { color: var(--c-blue); }
.showroom--xl .car-specs li { background: #f3f4f6; }
.showroom--xl .car-specs li.is-key { background: rgba(230, 24, 48, .07); box-shadow: inset 0 0 0 1px rgba(230, 24, 48, .28); }
.showroom--xl .car-specs__k, .showroom--xl .car-specs__note { color: #5f6570; }
.showroom--xl .car-specs__v, .showroom--xl .car-specs li.is-key .car-specs__v { color: var(--c-ink); }
.showroom--xl .car-card .card__actions .btn--outline-light { --btn-fg: var(--c-ink); --btn-bd: rgba(23, 23, 23, .25); --btn-bg-h: #f3f4f6; }
.showroom--xl .car-card .card__actions .btn--outline-light:hover { border-color: var(--c-ink); }

@media (max-width: 760px) {
  .showroom--xl.section--dark { --bg: #ffffff; --card-bg: transparent; }
  .showroom--xl .cars-xl { margin-inline: calc(var(--gutter) * -1); gap: 0; }
  .showroom--xl .car-card, .showroom--xl .car-card:hover {
    border: 0; border-radius: 0; background: transparent; box-shadow: none; transform: none;
  }
  .showroom--xl .car-card + .car-card { border-top: 1px solid var(--line); }
  .showroom--xl .car-card .card__media--contain {
    /* taller car area on phones: with the photo 92 % wide every car (aspect >= 1.67) is still width-limited */
    padding: 0 0 calc(62% + var(--tag-zone));
    background:
      radial-gradient(70% 60% at 50% 45%, #ffffff, transparent 75%),
      linear-gradient(180deg, #f1f2f5 0%, #f7f8fa 68%, #e8eaee 100%);
  }
  .showroom--xl .car-card .card__media img { left: 4%; width: 92%; }
  .showroom--xl .car-card .card__body { padding: 18px var(--gutter) 30px; }
}
/* long spec words («роботизированная») on the narrowest phones: hyphenate inside the tile */
.showroom--xl .car-specs li:not(.is-key) .car-specs__v { overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 360px) {
  .showroom--xl .car-specs li.is-key { padding-inline: 7px; }
  .showroom--xl .car-specs li.is-key .car-specs__v { font-size: .8rem; }
}


/* ==========================================================================
   Gonki Sochi brand layer: Futura-like heavy italic headlines in mixed case
   (as on the original site), graphite as the second brand colour.
   ========================================================================== */
.title, .hero__title, .cta-band__title, .subscribe__title, .svc__head .title,
.showroom--xl .car-card .card__name, .svc__group-title, .modal__title, .form-card__title {
  font-family: var(--font-display); font-style: italic; font-weight: 800; text-transform: none; letter-spacing: -.012em;
}
.hero__title { font-weight: 900; line-height: .96; letter-spacing: -.02em; max-width: min(18ch, 100%); }
.title { line-height: 1.02; }
.card__name, .offer__label, .step__title, .notice__title, .toc__title { font-style: italic; font-weight: 700; letter-spacing: 0; }
.prose h2, .prose h3, .prose h4 { font-family: var(--font-display); font-style: italic; font-weight: 800; text-transform: none; letter-spacing: -.005em; }
.btn, .badge, .uptitle, .nav__link, .tabs__tab { font-family: var(--font-body); }
.marquee { font-style: italic; }

/* --------------------------------------------------------------------------
   Gonki Sochi header: programme links in the dark top bar, «Быстрый заказ»
   next to the logo, apps (results table, my video) on the right.
   -------------------------------------------------------------------------- */
.topnav { display: flex; align-items: center; gap: 4px 16px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.topnav::-webkit-scrollbar { display: none; }
.topnav a, .topnav__app {
  flex: none; color: rgba(255, 255, 255, .78); font-size: .76rem; font-weight: 700; letter-spacing: .01em; white-space: nowrap;
  transition: color var(--dur-fast) ease;
}
.topnav a:hover, .topnav a[aria-current="page"], .topnav__app:hover { color: #fff; }
.topnav__app { display: inline-flex; align-items: center; gap: 7px; }
.topnav__app .icon { width: 16px; height: 16px; color: var(--c-red); }
.topnav__app--results { color: #fff; }
.header__phone--top { color: #fff; font-weight: 800; font-size: .82rem; }
.header__top .header__phone.header__phone--top { display: inline-flex; }
.header__quick { flex: none; margin-left: 4px; }
.header__logo img { height: 46px; }
.header.is-scrolled .header__logo img { height: 40px; }
.nav__extra-links { display: none; }
@media (max-width: 1440px) { .topnav { gap: 4px 13px; } .topnav a, .topnav__app { font-size: .72rem; } .header__right { gap: 12px; } }
@media (max-width: 1280px) { .header__right .header__phone--top { display: none; } .topnav { gap: 4px 10px; } .topnav__app .icon { display: none; } }
@media (max-width: 1100px) { .header__right .topnav__app { display: none; } }
@media (max-width: 980px) {
  .header__quick { display: none; }
  .nav__extra-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 4px 0 20px; padding: 16px 0 0; border-top: 1px solid var(--line); list-style: none; }
  .nav__extra-links a { font-size: .95rem; font-weight: 600; color: var(--text); }
  .header__logo img, .header.is-scrolled .header__logo img { height: 36px; }
}

/* contact popup */
.contact-modal .modal__dialog { max-width: 520px; }
.contact-modal__badge { display: inline-block; margin: 0 0 12px; padding: 5px 12px; border-radius: var(--r-pill); background: var(--c-red-fill); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.contact-form { display: grid; gap: 14px; margin-top: 18px; }
.contact-form .field { display: grid; gap: 6px; }
.contact-form textarea.field__input { min-height: 110px; resize: vertical; }
.contact-form__hint { margin: 0; font-size: var(--fs-xs); color: var(--muted); text-align: center; }
.contact-form__status { margin: 0; padding: 10px 14px; border-radius: var(--r-sm); background: var(--c-red-50); color: var(--c-red-600); font-size: var(--fs-sm); font-weight: 600; }
.contact-form__success { display: grid; justify-items: center; gap: 8px; padding: 26px 0 6px; text-align: center; }
.contact-form__success[hidden] { display: none; }
.contact-form__success-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--c-red-fill); color: #fff; }
.contact-form__success-icon .icon { width: 30px; height: 30px; stroke-width: 2.4; }
.contact-form__success-title { margin: 6px 0 0; font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.5rem; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* floating contact button (bottom right); back-to-top sits above it */
.contact-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: calc(var(--z-header) - 1); width: 60px; height: 60px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: var(--c-red-fill); color: #fff; cursor: pointer;
  box-shadow: 0 14px 30px -10px rgba(230, 24, 48, .65); transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) ease;
}
.contact-fab:hover { transform: translateY(-3px) scale(1.04); background: var(--c-red-600); }
.contact-fab .icon { width: 28px; height: 28px; stroke-width: 1.8; }
.to-top { bottom: 94px; }
@media (max-width: 640px) { .contact-fab { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; } .to-top { bottom: 84px; right: 20px; } }
body:has(.sticky-cta.is-visible) .contact-fab { opacity: 0; pointer-events: none; }

/* footer */
.footer__grid--gs { grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(0, 1fr)); }
.footer__contact { margin-top: 18px; }
.footer__legal { display: inline-flex; flex-wrap: wrap; gap: 6px 10px; }
.footer__legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .35); }
.footer__stripe { background: linear-gradient(90deg, var(--c-red) 0 34%, #fff 34% 67%, var(--c-blue) 67%); }
@media (max-width: 980px) { .footer__grid--gs { grid-template-columns: 1fr 1fr; } .footer__grid--gs .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__grid--gs { grid-template-columns: 1fr; } }
@media (max-width: 1200px) {
  .topnav { gap: 4px 9px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); padding-right: 24px; }
  .topnav a { font-size: .7rem; }
}

/* ==========================================================================
   Gonki Sochi shared blocks (partials testimonials / ask / gift-*):
   reviews, «Узнать подробности», messenger buttons, gift certificates,
   related pages, YouTube in the lightbox.
   ========================================================================== */
.lightbox__stage .lightbox__frame {
  display: block; width: min(1100px, calc(100vw - 48px)); height: auto; aspect-ratio: 16 / 9; max-height: calc(100vh - 120px);
  border: 0; border-radius: var(--r-md); background: #000; box-shadow: var(--sh-lg);
}

/* messenger buttons (brand greens/blues darkened to keep white labels ≥ 4.5:1) */
.btn--whatsapp { --btn-bg: #15834a; --btn-bg-h: #11703f; --btn-fg: #fff; --btn-bd: transparent; }
.btn--whatsapp:hover { box-shadow: 0 14px 28px -10px rgba(21, 131, 74, .55); }
.btn--telegram { --btn-bg: #1b76b0; --btn-bg-h: #155f8e; --btn-fg: #fff; --btn-bd: transparent; }
.btn--telegram:hover { box-shadow: 0 14px 28px -10px rgba(27, 118, 176, .55); }

/* reviews: slider cards on programme pages, grid on /testimonials/ */
.review {
  position: relative; display: flex; flex-direction: column; gap: 18px; height: 100%; margin: 0;
  padding: clamp(24px, 2.4vw, 34px); border-radius: var(--r-lg); background: #fff; color: var(--c-ink);
  border: 1px solid rgba(23, 23, 23, .06); box-shadow: 0 2px 6px rgba(23, 23, 23, .05), 0 22px 48px -28px rgba(23, 23, 23, .3);
}
.review__mark { width: 40px; height: 30px; flex: none; color: var(--c-red-fill); }
.review__text { margin: 0; flex: 1 1 auto; font-size: 1rem; line-height: 1.64; color: #2b2e33; }
.review__text p { margin: 0; }
.review__author { display: flex; align-items: center; gap: 14px; margin: 0; padding-top: 18px; border-top: 1px solid rgba(23, 23, 23, .1); }
.review__photo { width: 56px; height: 56px; flex: none; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(230, 24, 48, .45); }
.review__name { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.2rem; line-height: 1.2; }
.reviews .slider__slide { display: flex; }
.reviews-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: stretch; }
@media (max-width: 760px) { .reviews-grid { grid-template-columns: minmax(0, 1fr); } }

/* «Узнать подробности» band */
.cta-band--ask { background: #141518; }
.cta-band--ask .cta-band__bg img { opacity: .9; }
.cta-band--ask .cta-band__bg::after { background: linear-gradient(90deg, rgba(20, 21, 24, .96) 0%, rgba(20, 21, 24, .82) 55%, rgba(20, 21, 24, .5) 100%); }
.cta-band--ask .cta-band__text { max-width: 640px; }
.cta-band__actions--stack { flex-direction: column; align-items: stretch; min-width: min(100%, 340px); }
.cta-band__icons { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.cta-band__phone { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.15rem; }
.cta-band__phone .icon { color: var(--c-red); }
.icon-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; flex: none;
  background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .2);
  transition: background var(--dur-fast) ease, transform var(--dur-fast) var(--ease), border-color var(--dur-fast) ease;
}
.icon-btn:hover { background: var(--c-red-fill); border-color: transparent; transform: translateY(-2px); }
.icon-btn .icon { width: 22px; height: 22px; }
@media (max-width: 640px) { .cta-band__actions--stack { min-width: 0; width: 100%; } .cta-band__actions--stack .btn { width: 100%; } }

/* gift certificates: tiles «на сумму» / «на машину» */
.gift-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.gift-tiles--single { grid-template-columns: minmax(0, 1fr); }
.gift-tile {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  min-height: clamp(260px, 26vw, 360px); padding: clamp(24px, 2.6vw, 38px); border-radius: 26px; color: #fff; text-align: left;
  border: 0; font: inherit; cursor: pointer; text-decoration: none;
  box-shadow: 0 30px 60px -34px rgba(23, 23, 23, .6); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.gift-tile:hover { transform: translateY(-5px); box-shadow: 0 40px 70px -34px rgba(230, 24, 48, .55); }
.gift-tile--money { background: radial-gradient(90% 120% at 100% 0%, #ff3b52 0%, transparent 55%), linear-gradient(135deg, #e61830 0%, #b8102a 100%); }
.gift-tile--car { background: radial-gradient(90% 120% at 100% 0%, #3a3d42 0%, transparent 60%), linear-gradient(135deg, #2a2c30 0%, #121315 100%); }
.gift-tile__mark { position: absolute; top: clamp(22px, 2.4vw, 34px); left: clamp(24px, 2.6vw, 38px); width: 80px; height: auto; }
.gift-tile__euro { position: absolute; z-index: -1; right: -4%; top: -8%; width: 58%; max-width: 340px; height: auto; opacity: .16; transform: rotate(-8deg); transition: transform .8s var(--ease-out); }
.gift-tile:hover .gift-tile__euro { transform: rotate(-3deg) scale(1.04); }
.gift-tile__cars { position: absolute; z-index: -1; right: 3%; top: 8%; width: 60%; height: 46%; }
.gift-tile__cars img { position: absolute; width: 58%; height: auto; filter: drop-shadow(0 16px 16px rgba(0, 0, 0, .45)); transition: transform .8s var(--ease-out); }
.gift-tile__cars img:nth-child(1) { right: 40%; top: 0; }
.gift-tile__cars img:nth-child(2) { right: 0; top: 10%; }
.gift-tile__cars img:nth-child(3) { right: 20%; top: 32%; z-index: 1; }
.gift-tile--car { padding-top: clamp(150px, 16vw, 210px); }
.gift-tile:hover .gift-tile__cars img { transform: translateX(-4%); }
.gift-tile__title { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.2rem); line-height: 1.05; }
.gift-tile__text { margin: 0; max-width: 42ch; font-size: 1rem; line-height: 1.5; color: rgba(255, 255, 255, .88); }
.gift-tile__go { position: absolute; right: clamp(20px, 2.4vw, 32px); bottom: clamp(20px, 2.4vw, 32px); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--c-red-fill); transition: transform var(--dur-fast) var(--ease); }
.gift-tile--car .gift-tile__go { background: var(--c-red-fill); color: #fff; }
.gift-tile:hover .gift-tile__go { transform: translateX(4px); }
.gift-tile__go .icon { width: 22px; height: 22px; }
.gift-tile .gift-tile__text { padding-right: 64px; }
@media (max-width: 760px) {
  .gift-tiles { grid-template-columns: minmax(0, 1fr); } .gift-tile { min-height: 280px; }
  .gift-tile--car { padding-top: 58vw; }
  .gift-tile__cars { top: 42px; right: 4%; width: 92%; height: 50vw; }
}

/* gift certificate for a car (car pages, /certificates/car/) */
.gcert-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
@media (max-width: 900px) { .gcert-grid { grid-template-columns: minmax(0, 1fr); } }
.gcert {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 10px; min-height: 100%;
  padding: clamp(22px, 2.4vw, 32px) clamp(22px, 2.4vw, 32px) clamp(22px, 2.4vw, 30px) clamp(30px, 2.8vw, 40px);
  border-radius: 22px; color: var(--c-ink); text-decoration: none;
  background: radial-gradient(80% 90% at 100% 100%, rgba(230, 24, 48, .1), transparent 60%), linear-gradient(135deg, #ffffff 0%, #f5f6f8 62%, #eceef1 100%);
  border: 1px solid rgba(23, 23, 23, .08); box-shadow: 0 2px 6px rgba(23, 23, 23, .05), 0 26px 54px -30px rgba(23, 23, 23, .35);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) ease;
}
.gcert::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: repeating-linear-gradient(180deg, var(--c-red-fill) 0 16px, transparent 16px 24px); }
.gcert:hover { transform: translateY(-4px); border-color: rgba(230, 24, 48, .35); box-shadow: 0 4px 10px rgba(23, 23, 23, .06), 0 34px 64px -30px rgba(230, 24, 48, .4); }
.gcert__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.gcert__name { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: clamp(1.25rem, 1.05rem + .7vw, 1.65rem); line-height: 1.1; letter-spacing: -.01em; }
.gcert__logo { flex: none; width: 72px; height: auto; margin-top: 6px; }
.gcert__desc { margin: 0; max-width: 36ch; font-size: .94rem; line-height: 1.5; color: #3b3f46; }
.gcert__desc p { margin: 0; }
.gcert__price { margin: 4px 0 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); line-height: 1; letter-spacing: -.01em; color: var(--c-red-text); white-space: nowrap; }
.gcert__fields { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 8px 0 0; }
.gcert__fields div { min-width: 110px; }
.gcert__fields dt { font-size: .74rem; font-weight: 600; color: #5f6570; }
.gcert__fields dd { margin: 6px 0 0; min-height: 16px; border-bottom: 1px dashed rgba(23, 23, 23, .3); font-weight: 700; }
.gcert__sign { position: relative; display: flex; align-items: flex-end; gap: 10px; margin-top: auto; padding-top: 16px; min-height: 56px; }
.gcert__sign span { font-size: .78rem; font-weight: 700; color: #3b3f46; }
.gcert__sign img { width: 92px; height: auto; mix-blend-mode: multiply; }
.gcert__car {
  position: absolute; z-index: -1; right: -8%; bottom: 14%; width: 56%; max-width: 360px; height: auto; pointer-events: none;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .25)); transition: transform .7s var(--ease-out);
}
.gcert:hover .gcert__car { transform: translateX(-4%); }
.gcert__go { position: absolute; right: clamp(18px, 2vw, 26px); bottom: clamp(18px, 2vw, 24px); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--c-red-fill); color: #fff; box-shadow: 0 12px 24px -10px rgba(230, 24, 48, .7); transition: transform var(--dur-fast) var(--ease); }
.gcert:hover .gcert__go { transform: translateX(4px); }
.gcert__go .icon { width: 20px; height: 20px; }
@media (max-width: 520px) {
  .gcert { padding-bottom: 150px; }
  .gcert__car { width: 78%; right: -10%; bottom: 58px; }
  .gcert__desc { max-width: none; }
}

/* related pages (bottom of content pages): two photo links */
.related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.related-card {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  min-height: clamp(150px, 16vw, 230px); padding: clamp(18px, 2vw, 28px); border-radius: 22px; color: #fff; text-decoration: none;
}
.related-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.related-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(17, 18, 20, .05) 20%, rgba(17, 18, 20, .82) 100%); }
.related-card:hover img { transform: scale(1.06); }
.related-card__name { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: clamp(1.25rem, 1rem + 1vw, 1.9rem); line-height: 1.05; }
.related-card .icon { flex: none; width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--c-red-fill); color: #fff; transition: transform var(--dur-fast) var(--ease); }
.related-card:hover .icon { transform: translateX(4px); }
@media (max-width: 560px) { .related { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------------------
   Car pages, showroom extras, price matrix, «Видео вашего заезда»
   -------------------------------------------------------------------------- */
.car-hero .hero__title { max-width: 16ch; }
.car-hero__specs { gap: 14px 40px; }
.car-hero__specs > div { display: flex; flex-direction: column-reverse; gap: 4px; min-width: 120px; color: rgba(255, 255, 255, .75); font-size: .8rem; line-height: 1.3; }
.car-hero__specs b { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.3rem); line-height: 1; letter-spacing: -.01em; color: #fff; white-space: nowrap; }
.car-about__stage {
  aspect-ratio: 16 / 10; border-radius: 28px;
  background: radial-gradient(70% 60% at 50% 45%, #ffffff, transparent 75%), linear-gradient(180deg, #eef0f3 0%, #f6f7f9 68%, #e6e8ec 100%);
}
.car-about__stage img { padding: 7% 5% 9%; object-position: 50% 80%; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .2)); }
.car-video { margin: clamp(32px, 4vw, 56px) 0 0; border-radius: var(--r-xl); overflow: hidden; background: #000; box-shadow: 0 40px 80px -40px rgba(23, 23, 23, .6); }
.car-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.car-photo { margin: 0; border-radius: var(--r-xl); overflow: hidden; }
.car-photo img { width: 100%; height: auto; }
.car-yt { aspect-ratio: auto; border-radius: var(--r-xl); }
.car-yt img { width: 100%; height: auto; display: block; }

/* price cards on car pages */
.price-card { gap: 14px; }
.price-card .svc-card__name a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size var(--dur) var(--ease); }
.price-card .svc-card__name a:hover { background-size: 100% 2px; }
.price-card__facts { display: grid; gap: 8px; margin: 0 0 6px; padding: 0; list-style: none; color: #3b3f46; font-size: .95rem; line-height: 1.45; }
.price-card__facts li { position: relative; padding-left: 22px; }
.price-card__facts li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 6px; border-left: 2px solid var(--c-red-fill); border-bottom: 2px solid var(--c-red-fill); transform: rotate(-45deg); }
.price-card .btn { margin-top: auto; }

/* personal offer */
.deal {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px 26px;
  padding: clamp(22px, 2.6vw, 34px); border-radius: 24px; color: #fff;
  background: radial-gradient(70% 140% at 0% 0%, rgba(230, 24, 48, .45), transparent 60%), linear-gradient(120deg, #25272b 0%, #111214 100%);
  box-shadow: 0 30px 60px -36px rgba(23, 23, 23, .7);
}
.deal__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--c-red-fill); color: #fff; }
.deal__icon .icon { width: 28px; height: 28px; }
.deal__title { margin: 0 0 6px; font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: clamp(1.3rem, 1.05rem + .8vw, 1.8rem); line-height: 1.1; }
.deal__text p { margin: 0; color: rgba(255, 255, 255, .82); }
@media (max-width: 760px) { .deal { grid-template-columns: auto minmax(0, 1fr); } .deal .btn { grid-column: 1 / -1; width: 100%; } }

/* compact car cards («Также доступны») */
.mini-cars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.mini-car {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; gap: 0 12px;
  padding: 0 clamp(16px, 1.6vw, 22px) clamp(16px, 1.6vw, 22px); border-radius: 22px; background: #fff; color: var(--c-ink); text-decoration: none;
  border: 1px solid rgba(23, 23, 23, .06); box-shadow: 0 2px 6px rgba(23, 23, 23, .05), 0 20px 44px -28px rgba(23, 23, 23, .3);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) ease;
}
.mini-car:hover { transform: translateY(-4px); border-color: rgba(230, 24, 48, .35); box-shadow: 0 4px 10px rgba(23, 23, 23, .06), 0 28px 56px -28px rgba(230, 24, 48, .35); }
.mini-car__stage { grid-column: 1 / -1; display: block; aspect-ratio: 16 / 8; margin: 0 calc(clamp(16px, 1.6vw, 22px) * -1) 12px; padding: 6% 8% 2%; border-radius: 22px 22px 0 0; background: linear-gradient(180deg, #eef0f3 0%, #f7f8fa 100%); overflow: hidden; }
.mini-car__stage img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 12px 12px rgba(0, 0, 0, .18)); transition: transform .7s var(--ease-out); }
.mini-car:hover .mini-car__stage img { transform: scale(1.05) translateX(2%); }
.mini-car__body { display: grid; gap: 2px; min-width: 0; }
.mini-car__name { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.2rem; line-height: 1.15; }
.mini-car__price { color: var(--c-red-text); font-weight: 700; font-size: .95rem; }
.mini-car__go { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c-red-fill); color: #fff; transition: transform var(--dur-fast) var(--ease); }
.mini-car:hover .mini-car__go { transform: translateX(4px); }
.mini-car__go .icon { width: 20px; height: 20px; }
@media (max-width: 1000px) { .mini-cars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .mini-cars { grid-template-columns: minmax(0, 1fr); } }

/* showroom extras: programme prices on the card, VIP tag, wide card for the 7th offer */
.showroom--xl .car-card .card__name a { color: inherit; text-decoration: none; }
.showroom--xl .car-card .card__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.showroom--xl .car-card .card__actions { position: relative; z-index: 2; }
.car-card__progs { display: grid; gap: 0; margin: 2px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.car-card__progs li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.car-card__progs span { color: var(--muted); }
.car-card__progs b { font-family: var(--font-display); font-weight: 800; font-size: 1.12rem; white-space: nowrap; color: var(--text); }
.car-card__tag { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: -2px 0 0; font-weight: 700; color: var(--muted); font-size: .92rem; }
.showroom--xl .car-card--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.showroom--xl .car-card--wide .card__media--contain { padding-bottom: 0; height: auto; min-height: 340px; }
.showroom--xl .car-card--wide .card__body { justify-content: center; }
.showroom--xl .car-card--wide .car-card__price { right: auto; left: 18px; }
.car-card__text { margin: 0; color: var(--muted); line-height: 1.55; }
@media (max-width: 900px) { .showroom--xl .car-card--wide { grid-template-columns: minmax(0, 1fr); } .showroom--xl .car-card--wide .card__media--contain { min-height: 0; padding-bottom: calc(56.25% + var(--tag-zone)); height: 0; } }

/* price matrix */
.price-matrix .table th[scope="row"] a { color: inherit; font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.08rem; text-decoration: none; }
.price-matrix .table th[scope="row"] a:hover { color: var(--c-red-text); }
.price-matrix .table td.is-price a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 118px; min-height: 44px; padding: 6px 14px; border-radius: var(--r-pill);
  background: var(--c-red-50, #fdeeef); color: var(--c-red-600); font-weight: 800; white-space: nowrap; text-decoration: none;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease, transform var(--dur-fast) var(--ease);
}
.price-matrix .table td.is-price a:hover { background: var(--c-red-fill); color: #fff; transform: translateY(-1px); }
.price-matrix .table td, .price-matrix .table th { vertical-align: middle; }

/* «Видео вашего заезда» */
.video-offer__split { align-items: center; }
.video-offer .lead { color: rgba(255, 255, 255, .82); }
.video-offer__steps { display: grid; gap: 14px; margin: 26px 0 30px; padding: 0; list-style: none; counter-reset: vo; }
.video-offer__steps li { position: relative; display: grid; gap: 2px; padding: 4px 0 4px 58px; counter-increment: vo; }
.video-offer__steps li::before {
  content: counter(vo, decimal-leading-zero); position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: rgba(230, 24, 48, .16); box-shadow: inset 0 0 0 1px rgba(230, 24, 48, .5); color: #fff; font-family: var(--font-display); font-weight: 800; font-style: italic;
}
.video-offer__steps b { color: #fff; font-size: 1.05rem; }
.video-offer__steps span { color: rgba(255, 255, 255, .7); }
.video-offer__shot { position: relative; display: block; overflow: hidden; border-radius: var(--r-xl); aspect-ratio: 16 / 10; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); }
.video-offer__shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.video-offer__shot:hover img { transform: scale(1.05); }
.video-offer__shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .65)); }
.video-offer__badge { position: absolute; z-index: 1; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: var(--r-pill); background: var(--c-red-fill); color: #fff; font-weight: 800; font-size: .95rem; }
.video-offer__badge .icon { width: 18px; height: 18px; }
.gcert__car--full { right: -2%; bottom: 16%; width: 50%; }
@media (max-width: 980px) { .video-offer__split { grid-template-columns: minmax(0, 1fr); } }

/* programme cards (home, programme pages cross-sell) */
.prog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.prog-card {
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 26px; background: #fff; color: var(--c-ink);
  border: 1px solid rgba(23, 23, 23, .06); box-shadow: 0 2px 6px rgba(23, 23, 23, .05), 0 26px 54px -30px rgba(23, 23, 23, .35);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) ease;
}
.prog-card:hover { transform: translateY(-6px); border-color: rgba(230, 24, 48, .3); box-shadow: 0 4px 10px rgba(23, 23, 23, .06), 0 36px 70px -32px rgba(230, 24, 48, .4); }
.prog-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.prog-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.prog-card:hover .prog-card__media img { transform: scale(1.06); }
.prog-card__body { display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; padding: clamp(20px, 2vw, 28px); }
.prog-card__who { margin: 0; align-self: flex-start; padding: 5px 12px; border-radius: var(--r-pill); background: var(--c-blue); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.prog-card__name { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.05; }
.prog-card__name a { color: inherit; text-decoration: none; }
.prog-card__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.prog-card__price { margin: -2px 0 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 1.15rem + .8vw, 1.9rem); line-height: 1; color: var(--c-red-text); white-space: nowrap; }
.prog-card__text { margin: 0; color: #3b3f46; line-height: 1.55; }
.prog-card .price-card__facts { margin-top: 2px; }
.prog-card__actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }
.prog-card__actions .btn { flex: 1 1 auto; }
@media (max-width: 1080px) { .prog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .prog-grid { grid-template-columns: minmax(0, 1fr); } }
.car-card__perks { display: flex; flex-wrap: wrap; gap: 8px; margin: -2px 0 0; padding: 0; list-style: none; }
.car-card__perks li { padding: 5px 12px; border-radius: var(--r-pill); background: #f3f4f6; color: var(--c-ink); font-size: .8rem; font-weight: 700; }
/* price matrix → one card per car on phones */
@media (max-width: 640px) {
  .price-matrix { overflow: visible; box-shadow: none; }
  .price-matrix::before, .price-matrix::after { display: none; }
  .price-matrix .table, .price-matrix .table tbody, .price-matrix .table tr, .price-matrix .table th, .price-matrix .table td { display: block; width: 100%; min-width: 0; box-sizing: border-box; }
  .price-matrix { border: 0; background: transparent; border-radius: 0; }
  .price-matrix .table thead { display: none; }
  .price-matrix .table tr { margin: 0 0 12px; padding: 14px 16px 8px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 16px 34px -26px rgba(23, 23, 23, .35); }
  .price-matrix .table tbody tr:nth-child(odd), .price-matrix .table tbody tr:nth-child(even) { background: #fff; }
  .price-matrix .table th[scope="row"] { padding: 0 0 8px; border: 0; }
  .price-matrix .table td { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border: 0; border-top: 1px solid var(--line); text-align: left; }
  .price-matrix .table td::before { content: attr(data-label); color: var(--muted); font-weight: 600; }
  .price-matrix .table td.is-price a { min-width: 0; min-height: 40px; }
}

/* --------------------------------------------------------------------------
   Programme pages (training / proservices / ringtaxi)
   -------------------------------------------------------------------------- */
.prog-hero .hero__title { max-width: 14ch; }
.prog-hero__slogan { font-weight: 800; letter-spacing: .02em; }
.prog-intro { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.prog-intro__media { margin: 0; border-radius: var(--r-xl); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(23, 23, 23, .55); }
.prog-intro__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.lap-steps { display: grid; gap: 14px; margin: 22px 0; padding: 0; list-style: none; }
.lap-steps__item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; padding: 20px 22px; border-radius: 20px; background: #f3f4f6; }
.lap-steps__laps { display: grid; place-items: center; min-width: 76px; height: 56px; padding: 0 12px; border-radius: 16px; background: var(--c-red-fill); color: #fff; font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 1.35rem; white-space: nowrap; }
.lap-steps__item:nth-child(2) .lap-steps__laps { background: var(--c-blue); }
.lap-steps__title { margin: 0 0 6px; font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.25rem; }
.lap-steps__item p { margin: 0; color: #3b3f46; line-height: 1.55; }
.prog-more { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; margin-top: clamp(28px, 4vw, 52px); }
@media (max-width: 900px) { .prog-intro, .prog-more { grid-template-columns: minmax(0, 1fr); } }

.fit-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); margin: 0; padding: 0; list-style: none; }
.fit-list li { display: grid; gap: 14px; align-content: start; padding: 24px; border-radius: 22px; background: #f3f4f6; }
.fit-list__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--c-red-fill); color: #fff; }
.fit-list__icon .icon { width: 26px; height: 26px; }
.fit-list p { margin: 0; font-size: 1.08rem; line-height: 1.5; font-weight: 600; color: var(--c-ink); }
@media (max-width: 860px) { .fit-list { grid-template-columns: minmax(0, 1fr); } }

.bonus-note { margin: 20px 0 0; color: rgba(255, 255, 255, .85); font-size: 1.05rem; line-height: 1.6; }
.score { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 24px; padding: 24px; border-radius: 24px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.score__ring {
  display: grid; place-items: center; align-content: center; width: 150px; height: 150px; border-radius: 50%; color: #fff; text-align: center;
  background: radial-gradient(closest-side, #1a1b1e 78%, transparent 80% 100%), conic-gradient(var(--c-red-fill) 0 87%, rgba(255, 255, 255, .12) 87% 100%);
}
.score__ring b { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 2.6rem; line-height: 1; }
.score__ring span { font-size: .8rem; color: rgba(255, 255, 255, .7); }
.score__cats { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.score__cats li { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; }
.score__cats li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c-red-fill); box-shadow: 0 0 0 4px rgba(230, 24, 48, .25); }
@media (max-width: 480px) { .score { grid-template-columns: minmax(0, 1fr); justify-items: center; } .score__ring { width: 130px; height: 130px; } }

.video-caption { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 800; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; }
.video-caption .icon { color: var(--c-red-fill); }
.related--single { grid-template-columns: minmax(0, 1fr); }
.related--single .related-card { min-height: clamp(150px, 14vw, 200px); }

/* the six cars with the price of one programme */
.pcar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.pcar {
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 24px; background: #fff; color: var(--c-ink);
  border: 1px solid rgba(23, 23, 23, .06); box-shadow: 0 2px 6px rgba(23, 23, 23, .05), 0 22px 48px -30px rgba(23, 23, 23, .32);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) ease;
}
.pcar:hover { transform: translateY(-5px); border-color: rgba(230, 24, 48, .3); box-shadow: 0 4px 10px rgba(23, 23, 23, .06), 0 32px 64px -30px rgba(230, 24, 48, .38); }
.pcar__stage { display: block; aspect-ratio: 16 / 9; padding: 6% 7% 3%; background: radial-gradient(70% 60% at 50% 45%, #fff, transparent 75%), linear-gradient(180deg, #eef0f3 0%, #f6f7f9 68%, #e6e8ec 100%); }
.pcar__stage img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .2)); transition: transform .7s var(--ease-out); }
.pcar:hover .pcar__stage img { transform: scale(1.05) translateX(2%); }
.pcar__body { display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; padding: 18px 20px 20px; }
.pcar__name { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.35rem; line-height: 1.1; }
.pcar__name a { color: inherit; text-decoration: none; }
.pcar__specs { margin: 0; color: var(--muted); font-size: .88rem; font-weight: 600; }
.pcar__price { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 2px 0 4px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pcar__price span { color: var(--muted); font-weight: 600; }
.pcar__price b { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--c-red-text); white-space: nowrap; }
.pcar__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.pcar__actions .btn { flex: 1 1 auto; }
@media (max-width: 1080px) { .pcar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pcar-grid { grid-template-columns: minmax(0, 1fr); } }
.price-matrix .table th[scope="row"] { text-transform: none; letter-spacing: 0; color: var(--c-ink); font-size: 1rem; }

/* certificates pages */
.cert-note { display: flex; align-items: flex-start; gap: 10px; margin: 22px 0 0; color: var(--muted); font-size: .95rem; }
.cert-note .icon { flex: none; color: var(--c-red-fill); }
.money-cert { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.money-cert__card {
  position: relative; isolation: isolate; overflow: hidden; display: grid; align-content: space-between; aspect-ratio: 16 / 10; padding: clamp(22px, 3vw, 36px);
  border-radius: 28px; color: #fff; transform: rotate(-3deg);
  background: radial-gradient(90% 120% at 100% 0%, #ff3b52 0%, transparent 55%), linear-gradient(135deg, #e61830 0%, #b8102a 100%);
  box-shadow: 0 50px 90px -40px rgba(230, 24, 48, .7);
}
.money-cert__logo { width: 96px; height: auto; }
.money-cert__euro { position: absolute; z-index: -1; right: -2%; top: -10%; width: 52%; height: auto; opacity: .16; }
.money-cert__label { font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.money-cert__sum { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: clamp(3rem, 2rem + 4vw, 5.5rem); line-height: 1; }
.money-cert__sign img { width: 120px; height: auto; filter: invert(1) brightness(2); opacity: .85; }
.money-cert__facts { margin: 18px 0 24px; font-size: 1.02rem; }
@media (max-width: 900px) { .money-cert { grid-template-columns: minmax(0, 1fr); } .money-cert__card { max-width: 480px; transform: rotate(-2deg); } }
.car-photo { max-width: 980px; margin-inline: auto; }
.gcert-grid > .gcert:only-child { grid-column: 1 / -1; }
.gcert-grid > .gcert:only-child .gcert__car { width: 42%; max-width: 460px; }
/* white inner hero: dark breadcrumbs */
.hero--plain .breadcrumbs, .hero--plain .breadcrumbs a { color: var(--muted); }
.hero--plain .breadcrumbs [aria-current] { color: var(--c-ink); }
.hero--plain .breadcrumbs a:hover { color: var(--c-red-text); }

/* guests' photos with the fleet (photos of the Sirius Autodrom site, served from /sirius/media/) */
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 15vw, 240px); grid-auto-flow: dense; gap: clamp(8px, 1vw, 14px); }
.mosaic__item { position: relative; display: block; overflow: hidden; border-radius: 18px; background: #1a1b1e; isolation: isolate; }
.mosaic__item.is-wide { grid-column: span 2; }
.mosaic__item.is-tall { grid-row: span 2; }
.mosaic__item.is-big { grid-column: span 2; grid-row: span 2; }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transition: transform 1.2s var(--ease-out), filter .6s ease; }
.mosaic__item::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .55)); opacity: .8; transition: opacity .4s ease; pointer-events: none; }
.mosaic__item:hover img { transform: scale(1.07); }
.mosaic__item:hover::after { opacity: 1; }
.mosaic__tag {
  position: absolute; left: 12px; bottom: 12px; z-index: 1; padding: 6px 12px; border-radius: var(--r-pill);
  background: rgba(17, 18, 20, .66); color: #fff; font-size: .76rem; font-weight: 800; letter-spacing: .02em;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transform: translateY(4px); opacity: .92; transition: transform .4s var(--ease), background .3s ease;
}
.mosaic__item:hover .mosaic__tag { transform: none; background: var(--c-red-fill); }
.mosaic--single { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
.mosaic--single .mosaic__item { aspect-ratio: 16 / 8; }
.mosaic--single .mosaic__item.is-big { grid-column: auto; grid-row: auto; }
.guests .lead { color: rgba(255, 255, 255, .8); max-width: 62ch; }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 44vw; }
  .mosaic--single { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .mosaic--single .mosaic__item { aspect-ratio: 4 / 3; }
  .mosaic__tag { left: 8px; bottom: 8px; font-size: .68rem; padding: 5px 9px; }
}
.mosaic--narrow { max-width: 760px; }

.footer__partner { margin: 14px 0 4px; max-width: 34ch; color: rgba(255, 255, 255, .72); font-size: .86rem; line-height: 1.5; }
