/* =========================================================
   SpecNivo — design tokens
   ========================================================= */
:root {
  /* surfaces */
  --bg: #0a0a0a;
  --bg-deep: #050505;
  --surface: #111111;
  --surface-2: #171717;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* text */
  --text: #f5f5f5;
  --text-2: #d4d4d4;
  --muted: #a3a3a3;

  /* brand */
  --accent: #f4f4f5;
  --accent-hi: #d4d4d8;
  --accent-2: #a1a1aa;
  --accent-soft: rgba(255, 255, 255, 0.07);
  --chrome: linear-gradient(180deg, #ffffff 0%, #dcdcdc 45%, #9c9c9c 100%);

  /* paper (document mock) */
  --paper: #f4f4f4;
  --ink: #1a1a1a;
  --ink-2: #4a4a4a;

  /* type */
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  /* layout */
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 160ms;
  --t: 280ms;
  --t-slow: 700ms;

  /* z-index scale */
  --z-nav: 100;
  --z-menu: 90;
  --z-skip: 1000;

  color-scheme: dark;
}

/* =========================================================
   Base
   ========================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: var(--z-skip);
  padding: 10px 16px;
  background: var(--text);
  color: var(--bg);
  border-radius: 999px;
  font-weight: 700;
  transform: translateY(-200%);
  /* hidden by more than position: on phones the area above the screen shows during the scroll bounce */
  opacity: 0;
  pointer-events: none;
  transition: transform var(--t) var(--ease-out), opacity var(--t) ease;
}
.skip-link:focus { transform: none; opacity: 1; pointer-events: auto; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

.muted { color: var(--muted); }
.hl { color: var(--accent-hi); font-weight: 700; }

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-hi);
}
/* the dot sits inline with the text, so on narrow screens it stays next to the first word */
.eyebrow .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  vertical-align: 0.12em;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  --h: 48px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--h);
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    background-color var(--t-fast) ease,
    border-color var(--t-fast) ease,
    color var(--t-fast) ease,
    transform var(--t-fast) var(--ease-out),
    box-shadow var(--t) ease;
}
.btn:active { transform: scale(0.97); }
.btn svg { transition: transform var(--t) var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }

.btn--sm { --h: 40px; padding: 0 16px; font-size: 0.88rem; }
.btn--block { width: 100%; }

.btn--light { background: #fff; color: #0a0a0a; }
.btn--light:hover { background: #e5e5e5; box-shadow: 0 8px 30px rgba(212, 212, 216, 0.25); }

.btn--ghost { background: var(--glass); border-color: var(--border); color: var(--text); }
.btn--ghost:hover { background: var(--glass-strong); border-color: var(--border-strong); }

.btn--accent { background: var(--accent); color: #0a0a0a; }
.btn--accent:hover { background: #e5e5e5; box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15); }

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  padding: 12px var(--gutter);
  transition: padding var(--t) var(--ease-out);
}
.nav__inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
  padding: 0 10px 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color var(--t) ease, border-color var(--t) ease, backdrop-filter var(--t) ease;
}
.nav.is-scrolled .nav__inner {
  background: rgba(10, 12, 17, 0.72);
  border-color: var(--border);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.nav__logo img {
  height: 24px;
  width: auto;
  filter: invert(1) brightness(1.08);
}

.nav__links {
  display: flex;
  gap: 4px;
  margin-inline: auto;
}
.nav__links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--t-fast) ease, background-color var(--t-fast) ease;
}
.nav__links a:hover { color: var(--text); background: var(--glass); }
.nav__links a[aria-current="true"] { color: var(--text); background: var(--glass-strong); }

.nav__actions { display: flex; gap: 8px; }

.nav__toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--glass);
  cursor: pointer;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t) var(--ease-out), top var(--t) var(--ease-out);
}
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1; /* below .nav__inner inside the nav's stacking context */
  padding: 96px var(--gutter) 32px;
  background: rgba(6, 7, 10, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  transition: opacity 220ms ease;
}
.mobile-menu.is-open { opacity: 1; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
/* links cascade in one by one (--i is set by main.js), fast */
.mobile-menu nav > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 260ms ease, transform 420ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 40ms + 40ms);
}
.mobile-menu.is-open nav > * { opacity: 1; transform: none; }
.mobile-menu:not(.is-open) nav > * { transition-delay: 0ms; transition-duration: 150ms; }
.mobile-menu a:not(.btn) {
  position: relative;
  padding: 14px 4px;
  font-size: 1.5rem;
  font-weight: 700;
}
/* the divider under each link draws from left to right right after the link arrives */
.mobile-menu a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--border-strong);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 500ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 40ms + 140ms);
}
.mobile-menu.is-open a:not(.btn)::after { transform: scaleX(1); }
.mobile-menu .btn { margin-top: 24px; }

/* =========================================================
   Hero
   ========================================================= */
.hero { padding: 12px; }

.hero__frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(980px, calc(100dvh - 24px));
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 124px var(--gutter) 0;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background:
    radial-gradient(70% 55% at 12% 0%, rgba(160, 175, 200, 0.16), transparent 60%),
    radial-gradient(60% 50% at 100% 10%, rgba(255, 255, 255, 0.08), transparent 60%),
    var(--bg-deep);
}

/* drifting white stars (drawn by main.js → "Stars") */
.stars {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  left: 50%;
  bottom: -18%;
  z-index: -1;
  width: min(900px, 120vw);
  aspect-ratio: 1.6;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(212, 212, 216, 0.22), transparent 70%),
    radial-gradient(40% 40% at 30% 60%, rgba(161, 161, 170, 0.14), transparent 70%),
    radial-gradient(35% 35% at 72% 55%, rgba(200, 200, 205, 0.12), transparent 70%);
  filter: blur(40px);
  animation: glow-drift 12s var(--ease-in-out) infinite alternate;
}
@keyframes glow-drift {
  from { transform: translateX(-52%) scale(1); }
  to   { transform: translateX(-48%) scale(1.08); }
}

.hero__content {
  max-width: 960px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.035em;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-wrap: balance;
  /* extend the gradient below the last line so descenders (д, у, р) aren't clipped; layout unchanged */
  padding-bottom: 0.3em;
  margin-bottom: -0.3em;
}

.hero__lead {
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.08rem);
}

.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

/* --- result composition (hero) ---
   Everything inside .result is sized in cqw (1% of its width),
   so the whole composition scales as one piece from phone to desktop. */
.result-stage {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: clamp(40px, 6vw, 60px);
  padding-bottom: clamp(48px, 7vw, 88px);
  perspective: 1400px;
}
.result {
  position: relative;
  width: min(470px, 100%);
  aspect-ratio: 470 / 780; /* card bottom ≈ 159cqw + the SN badge hanging ~7cqw below it */
  container-type: inline-size;
  /* magnetic pull (--dx/--dy) and tilt toward the cursor (--hx/--hy), both set by main.js */
  translate: var(--dx, 0px) var(--dy, 0px);
  transform:
    rotateX(calc(var(--hy, 0) * -5deg))
    rotateY(calc(var(--hx, 0) * 7deg));
  /* no will-change / preserve-3d here: they make Chrome cache the text as a low-res bitmap while tilting */
}

/* fan of real manual pages behind the card.
   All pages share one pivot far below them, so changing a page's slot
   swings it around that pivot like a hand of cards; main.js cycles the slots. */
.result__fan {
  position: absolute;
  inset: 0;
  --spread: 17deg;
  /* its own, stronger magnetic pull toward the cursor (--fx/--fy from main.js) */
  translate: var(--fx, 0px) var(--fy, 0px);
}
.result:hover .result__fan { --spread: 21deg; } /* the fan opens a little when the cursor is on it */
.result__page {
  position: absolute;
  left: 27.5cqw;
  top: 5cqw;
  width: 45cqw;
  margin: 0;
  transform-origin: 50% 150%;
  rotate: var(--angle, 0deg);
  transition:
    rotate 1100ms var(--ease-in-out),
    filter 1100ms ease;
  animation:
    page-in 1s var(--ease-out) backwards var(--delay, 0s),
    page-float 7s var(--ease-in-out) infinite alternate var(--float-delay, 0s);
}
.result__page:nth-child(1) { --delay: 0.25s; --float-delay: -2s; }
.result__page:nth-child(2) { --delay: 0.35s; --float-delay: -4.5s; }
.result__page:nth-child(3) { --delay: 0.15s; --float-delay: 0s; }
.result__page.is-left   { --angle: calc(var(--spread) * -1); z-index: 1; filter: grayscale(1) brightness(0.62); }
.result__page.is-right  { --angle: var(--spread);             z-index: 2; filter: grayscale(0.4) brightness(0.72); }
.result__page.is-center { --angle: 2deg;                      z-index: 3; filter: brightness(0.95); }
.result__page img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.6cqw;
  box-shadow: 0 3cqw 8cqw -2cqw rgba(0, 0, 0, 0.8);
}
/* model tag: only the page in the middle shows it */
.result__tag {
  position: absolute;
  z-index: 1;
  top: -3.2cqw;
  left: -2.4cqw;
  padding: 1.2cqw 2.6cqw;
  border-radius: 999px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-family: var(--mono);
  font-size: max(10px, 2.9cqw);
  line-height: 1.3;
  white-space: nowrap;
  rotate: -3deg;
  opacity: 0;
  scale: 0.8;
  transition: opacity 400ms ease, scale 400ms var(--ease-out);
}
.result__page.is-center .result__tag { opacity: 1; scale: 1; transition-delay: 700ms; }
@keyframes page-in {
  from { opacity: 0; rotate: 0deg; scale: 0.9; }
}
@keyframes page-float {
  to { transform: translateY(-1.6cqw); }
}

/* front card */
.result__card {
  position: absolute;
  left: 6cqw;
  top: 37cqw;
  width: 84cqw;
  padding: 6cqw 6cqw 3.5cqw;
  overflow: hidden;
  border-radius: 5cqw;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: linear-gradient(180deg, #f8f8f8 0%, #ebebeb 100%);
  color: #0a0a0a;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  box-shadow:
    0 6cqw 14cqw -4cqw rgba(0, 0, 0, 0.85),
    inset 0 1px 0 #fff;
  animation:
    card-in 1s var(--ease-out) backwards 0.05s,
    card-float 8s var(--ease-in-out) infinite alternate -1s;
}
@keyframes card-in { from { opacity: 0; translate: 0 6cqw; } }
@keyframes card-float { to { transform: translateY(-1.2cqw); } }
.result__glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60cqw circle at var(--gx, 30%) var(--gy, 0%), rgba(255, 255, 255, 0.9), transparent 60%);
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity 400ms ease;
}
.has-pointer .result__glare { opacity: 1; }

.result__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3cqw;
  padding-bottom: 4.4cqw;
  margin-bottom: 7cqw;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.result__label {
  font-family: var(--mono);
  font-size: max(10px, 3cqw);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1f1f1f;
}
.result__pill {
  flex-shrink: 0;
  padding: 1.4cqw 3cqw;
  border-radius: 999px;
  background: #0a0a0a;
  color: #fff;
  font-family: var(--mono);
  font-size: max(10px, 3cqw);
  font-weight: 500;
  line-height: 1.3;
}
.result__kicker {
  margin-bottom: 2.4cqw;
  font-size: max(12px, 3.6cqw);
  color: #555;
}
.result__title {
  margin-bottom: 4.6cqw;
  font-size: 12.6cqw;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: #0a0a0a;
  text-wrap: balance;
}
.result__text {
  max-width: 62cqw;
  margin-bottom: 6cqw;
  font-size: max(12px, 3.7cqw);
  line-height: 1.5;
  color: #555;
}
.result__list {
  list-style: none;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}
.result__list li {
  display: flex;
  align-items: center;
  gap: 3cqw;
  padding: 2.6cqw 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.16);
  font-size: max(12px, 3.7cqw);
  font-weight: 500;
  color: #1a1a1a;
}
.result__list li:last-child { border-bottom: 0; }
.result__list span {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 6cqw;
  height: 6cqw;
  min-width: 20px;
  min-height: 20px;
  border-radius: 1.3cqw;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: rgba(0, 0, 0, 0.03);
  font-family: var(--mono);
  font-size: max(9px, 2.7cqw);
  color: #444;
}

/* SN app badge */
.result__badge {
  position: absolute;
  right: 1cqw;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 22cqw;
  aspect-ratio: 1;
  border-radius: 5.4cqw;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(145deg, #222 0%, #050505 70%);
  box-shadow: 0 4cqw 10cqw -3cqw rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  translate: calc(var(--hx, 0) * 14px) calc(var(--hy, 0) * 10px);
  animation: card-in 1s var(--ease-out) backwards 0.5s, badge-float 6s var(--ease-in-out) infinite alternate -3s;
}
.result__badge img {
  width: 74%; /* sn-mark.png: white mark on transparent, 3× resolution */
  height: auto;
}
@keyframes badge-float { to { transform: translateY(-1.8cqw) rotate(-2deg); } }

/* touch screens: no cursor, so the composition follows the scroll instead.
   --sp (0 → 1) is set by main.js while the composition travels up through the screen:
   the fan opens, the card lifts and the whole piece tilts; a slow sway keeps it alive at rest. */
@media (hover: none), (pointer: coarse) {
  .result {
    transform:
      rotateX(calc((0.5 - var(--sp, 0.5)) * 14deg))
      rotateY(calc((var(--sp, 0.5) - 0.5) * -12deg));
    animation: result-sway 9s var(--ease-in-out) infinite alternate;
  }
  @keyframes result-sway {
    from { rotate: y -3deg; }
    to   { rotate: y 3deg; }
  }
  .result__fan { --spread: calc(9deg + var(--sp, 0.5) * 20deg); }
  .result__page { transition: rotate 450ms var(--ease-out), filter 1100ms ease; }
  .result__card { translate: 0 calc(3cqw - var(--sp, 0.5) * 7cqw); }
  .result__badge {
    translate: calc(3cqw - var(--sp, 0.5) * 6cqw) calc(5cqw - var(--sp, 0.5) * 11cqw);
    rotate: calc(6deg - var(--sp, 0.5) * 12deg);
  }
}

/* =========================================================
   Facts strip
   ========================================================= */
.facts { padding: 56px 0 24px; }
.facts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px;
  border-left: 1px solid var(--border);
}
.fact:first-child { border-left: 0; padding-left: 0; }
.fact__num {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.fact__label { font-size: 0.9rem; color: var(--muted); }

/* =========================================================
   Sections
   ========================================================= */
.section { position: relative; padding: clamp(72px, 10vw, 128px) 0; }
.section--alt {
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(255, 255, 255, 0.06), transparent 70%),
    var(--bg-deep);
  border-block: 1px solid var(--border);
}
.section__head {
  max-width: 680px;
  margin-bottom: clamp(36px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.section__title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.section__lead { color: var(--muted); font-size: 1.05rem; max-width: 60ch; }

/* --- bento cards --- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color var(--t) ease, transform var(--t) var(--ease-out);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.07), transparent 50%);
  opacity: 0;
  transition: opacity 500ms ease, background-color var(--t) ease;
  pointer-events: none;
}
.card:hover { border-color: var(--border-strong); }
.card:hover::before { opacity: 1; }
/* services: soft white light follows the cursor, even as it passes between cards */
.has-pointer .card::before { opacity: 1; }
.card:hover::before {
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.12), transparent 55%);
}
.card.glow::after {
  background: radial-gradient(320px circle at var(--mx, -999px) var(--my, -999px), rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.12) 40%, transparent 70%);
}
.card__icon { transition: background-color var(--t) ease, border-color var(--t) ease, box-shadow var(--t) ease; }
.card:hover .card__icon {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.12);
}
.card--wide { grid-column: span 2; }
.card h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 0.96rem; }

.card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(212, 212, 216,0.25);
  color: var(--accent-hi);
  margin-bottom: 4px;
}
.card__icon svg { width: 22px; height: 22px; }

.swap {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  font-family: var(--mono);
  font-size: 0.8rem;
}
.swap span { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border); }
.swap__en { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255,255,255,0.3); }
.swap__bg { color: var(--text); background: var(--accent-soft); border-color: rgba(212, 212, 216,0.3) !important; }
.swap svg { width: 16px; height: 16px; color: var(--accent-hi); }

.card--full { grid-column: 1 / -1; }
.card--brand {
  display: grid;
  grid-template-columns: auto minmax(0, 1.2fr) minmax(0, 1fr);
  column-gap: 20px;
  row-gap: 18px;
  align-items: center;
}
.card--brand .card__icon { margin: 0; align-self: start; }
.card--brand > div h3 { margin-bottom: 8px; }
.card--brand .chips { justify-content: flex-end; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text-2);
  background: var(--glass);
  border: 1px solid var(--border);
}

.note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px dashed var(--border-strong);
  color: var(--muted);
  font-size: 0.94rem;
}
.note svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent-hi); margin-top: 2px; }
.note strong { color: var(--text); }

/* --- process --- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--glass);
}
.step::before {
  content: "";
  position: absolute;
  top: 44px;
  right: -17px;
  width: 17px;
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}
.step:last-child::before { display: none; }
.step__num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--accent-hi);
  background: var(--accent-soft);
  margin-bottom: 18px;
}
.step__num { transition: background-color 400ms ease, color 400ms ease, box-shadow 400ms ease, border-color 400ms ease, scale 400ms var(--ease-out); }
.step.is-reached .step__num { background: #fff; color: #0a0a0a; box-shadow: 0 0 18px rgba(255, 255, 255, 0.4); }
.step h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.steps { position: relative; }
/* phones: a timeline runs down through the step numbers and draws as you scroll (--steps-p from main.js) */
@media (max-width: 720px) {
  .steps::before,
  .steps::after {
    content: "";
    position: absolute;
    left: 36px;
    top: 34px;
    bottom: var(--line-bottom, 40px);
    width: 2px;
    border-radius: 2px;
  }
  .steps::before { background: rgba(255, 255, 255, 0.08); }
  .steps::after {
    background: linear-gradient(#fff, rgba(255, 255, 255, 0.45));
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
    transform-origin: top;
    transform: scaleY(var(--steps-p, 0));
  }
  .step { z-index: 1; padding: 22px 20px 22px 70px; }
  .step__num { position: absolute; left: 18px; top: 22px; z-index: 2; margin: 0; background: #161616; border: 1px solid var(--border-strong); }
  .step.is-reached .step__num { scale: 1.08; border-color: #fff; background: #fff; }
}
.step p { color: var(--muted); font-size: 0.94rem; }

/* full-bleed video: no frame, edges fade into the page background */
.showcase {
  position: relative;
  width: 100vw;
  margin: clamp(40px, 6vw, 72px) 0 0 calc(50% - 50vw);
  overflow: hidden;
}
.showcase__media {
  display: block;
  width: min(1560px, 100%);
  height: auto;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: transparent;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 12%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 12%, #000 82%, transparent 100%);
  mask-composite: intersect;
}
.showcase figcaption {
  max-width: 640px;
  margin: -24px auto 0;
  padding: 0 var(--gutter);
  position: relative;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}
@media (max-width: 720px) {
  .showcase__media {
    width: 100%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 85%, transparent 100%);
  }
  .showcase figcaption { margin-top: 4px; }
}

/* --- pricing --- */
.tabs {
  position: relative;
  display: inline-flex;
  padding: 4px;
  margin-bottom: 28px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass);
}
.tabs__btn {
  position: relative;
  z-index: 1;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  background: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--t) ease;
}
.tabs__btn[aria-selected="true"] { color: #0a0a0a; }
.tabs__pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  border-radius: 999px;
  background: #fff;
  transition: transform var(--t) var(--ease-out), width var(--t) var(--ease-out);
}

.tab-panel { animation: fade-up var(--t) var(--ease-out); }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } }

.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.plans--3 { grid-template-columns: repeat(3, 1fr); }

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 24px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  transition: border-color var(--t) ease, transform var(--t) var(--ease-out);
}
.plan:hover { border-color: var(--border-strong); }
.plan--featured {
  border-color: rgba(212, 212, 216,0.5);
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(255, 255, 255,0.09), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: 0 30px 80px -40px rgba(255, 255, 255,0.12);
}
.plan__badge {
  position: absolute;
  top: -12px;
  left: 24px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  background: var(--accent);
  color: #0a0a0a;
}
.plan__name { font-size: 1rem; font-weight: 600; color: var(--text-2); }
.plan__price { color: var(--muted); font-size: 0.92rem; }
.plan__price span {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  margin-right: 4px;
}
.plan__specs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 0.94rem;
  color: var(--muted);
  flex: 1;
}
.plan__specs b { color: var(--text); font-weight: 600; }

.included {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.included > div {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--glass);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.included h3 { font-size: 1.02rem; font-weight: 700; }
.included .muted { font-size: 0.95rem; }

.checks { display: flex; flex-direction: column; gap: 10px; }
.checks li {
  position: relative;
  padding-left: 30px;
  font-size: 0.95rem;
  color: var(--text-2);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e4e4e7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.checks--plus li::before {
  background: rgba(255,255,255,0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4d4d4' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.rates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 40px;
  align-items: start;
}
.rate {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}
/* title on top, unit hint underneath, chevron on the right — no awkward wrapping on phones */
.rate summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 16px;
  row-gap: 2px;
  min-height: 64px;
  padding: 12px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.rate summary > span:first-child { grid-column: 1; grid-row: 1; }
.rate summary .rate__hint { grid-column: 1; grid-row: 2; }
.rate summary::after { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.rate summary::-webkit-details-marker { display: none; }
.rate summary::after,
.faq summary::after {
  content: "";
  width: 10px;
  height: 10px;
  margin-left: auto;
  flex-shrink: 0;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translateY(-3px);
  transition: transform var(--t) var(--ease-out);
}
.rate[open] summary::after,
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.rate__hint { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); font-weight: 400; }
.rate__table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.rate__table td { padding: 12px 20px; border-top: 1px solid var(--border); color: var(--text-2); }
.rate__table td:last-child {
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* --- calculator --- */
.calc {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 16px;
}
.calc__inputs,
.calc__result {
  padding: clamp(22px, 3vw, 36px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.calc__inputs {
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.calc__result {
  position: sticky;
  top: 100px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background:
    radial-gradient(100% 70% at 100% 0%, rgba(255, 255, 255,0.22), transparent 70%),
    var(--surface-2);
  border-color: rgba(212, 212, 216,0.35);
}
.calc__label { font-family: var(--mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.calc__plan { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; }
.calc__price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.calc__price span {
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.calc__price small { color: var(--muted); font-size: 0.9rem; }
.calc__breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0;
  border-block: 1px solid var(--border);
  font-size: 0.9rem;
}
.calc__breakdown li { display: flex; justify-content: space-between; gap: 12px; color: var(--text-2); }
.calc__breakdown li span:last-child { font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; white-space: nowrap; }
.calc__hint { font-size: 0.9rem; color: var(--accent-hi); min-height: 1.4em; }
.calc__fine { font-size: 0.8rem; color: var(--muted); }

.seg,
.checks-in { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg legend,
.checks-in legend,
.field label,
.field__row label { font-size: 0.92rem; font-weight: 600; color: var(--text-2); padding: 0; margin-bottom: 10px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg legend { grid-column: 1 / -1; }
.seg label { position: relative; cursor: pointer; }
.seg input,
.checks-in input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--glass);
  font-weight: 600;
  font-size: 0.92rem;
  text-align: center;
  transition: all var(--t-fast) ease;
}
.seg input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: #fff; }
.seg input:focus-visible + span,
.checks-in input:focus-visible + span { outline: 2px solid var(--accent-hi); outline-offset: 2px; }

.checks-in { display: flex; flex-direction: column; gap: 8px; }
.checks-in label { cursor: pointer; }
.checks-in span {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  min-height: 48px;
  padding: 10px 14px 10px 46px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--glass);
  font-size: 0.94rem;
  transition: border-color var(--t-fast) ease, background-color var(--t-fast) ease;
}
.checks-in span::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  border-radius: 6px;
  border: 1.5px solid var(--border-strong);
  transition: all var(--t-fast) ease;
}
.checks-in input:checked + span { border-color: rgba(212, 212, 216,0.5); background: var(--accent-soft); }
.checks-in input:checked + span::before {
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
  border-color: var(--accent);
}
.checks-in em { font-style: normal; font-size: 0.82rem; color: var(--muted); margin-left: auto; }

.field { display: flex; flex-direction: column; min-width: 0; }
.field__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field__row label { min-width: 0; } /* long labels wrap on very small phones instead of widening the calculator */
.field__row output {
  font-family: var(--mono);
  font-size: 0.92rem;
  color: var(--text);
  padding: 2px 10px;
  border-radius: 6px;
  background: var(--glass-strong);
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  background: transparent;
  cursor: pointer;
  --pct: 20%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--accent) 0 var(--pct), rgba(255,255,255,0.1) var(--pct) 100%);
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(255,255,255,0.1); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 0 0 4px rgba(255, 255, 255,0.35), 0 2px 8px rgba(0,0,0,0.4);
  transition: transform var(--t-fast) var(--ease-out);
}
input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 0 0 4px rgba(255, 255, 255,0.35);
}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--accent-hi); }

select,
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.03);
  font-size: 1rem;
  transition: border-color var(--t-fast) ease, background-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  background: rgba(255,255,255,0.03) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3a3a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat;
  cursor: pointer;
}
select option { background: #141414; color: var(--text); }
textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
input::placeholder,
textarea::placeholder { color: #737373; }
select:hover,
input:hover,
textarea:hover { border-color: rgba(255,255,255,0.26); }
select:focus,
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  background-color: rgba(255, 255, 255,0.06);
  box-shadow: 0 0 0 3px rgba(255, 255, 255,0.25);
}

/* --- quote form --- */
.quote {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.quote__intro { display: flex; flex-direction: column; gap: 18px; }
.quote__intro .checks { margin: 6px 0 10px; }

.mail-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  min-height: 44px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border-strong);
  transition: border-color var(--t-fast) ease, color var(--t-fast) ease;
  overflow-wrap: anywhere;
}
.mail-link:hover { color: var(--accent-hi); border-color: var(--accent-hi); }
.mail-link svg { width: 20px; height: 20px; color: var(--accent-hi); flex-shrink: 0; }

.form {
  padding: clamp(22px, 3.5vw, 40px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.field--full { grid-column: 1 / -1; }
.field label { margin-bottom: 8px; }
.req { color: var(--accent-hi); }
.field__help { margin-top: 6px; font-size: 0.84rem; color: var(--muted); }
.field__error { margin-top: 6px; font-size: 0.86rem; color: #f87171; min-height: 0; }
.field__error:empty { display: none; }
.field.has-error input { border-color: #f87171; box-shadow: 0 0 0 3px rgba(248,113,113,0.18); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form__foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 26px; }
.form__status { font-size: 0.94rem; }
.form__status.is-ok { color: #4ade80; }
.form__status.is-err { color: #f87171; }

.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.2);
  border-top-color: #0a0a0a;
  animation: spin 0.7s linear infinite;
}
.btn.is-loading .spinner { display: inline-block; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- FAQ --- */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color var(--t) ease;
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 14px 22px;
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details p { padding: 0 22px 22px; color: var(--muted); max-width: 68ch; }

/* --- CTA --- */
.cta { padding: 12px; }
.cta__frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: clamp(72px, 10vw, 120px) var(--gutter);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--bg-deep);
  text-align: center;
}
.cta__frame h2 {
  max-width: 760px;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-wrap: balance;
}
.cta__frame p { color: var(--muted); max-width: 520px; }
.cta__frame .btn { margin-top: 8px; }
.hero__glow--cta { bottom: -60%; opacity: 0.8; }

/* --- footer --- */
.footer { padding: 56px 0 32px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr auto;
  gap: 32px;
  align-items: start;
}
.footer__logo { height: 26px; width: auto; filter: invert(1) brightness(1.08); margin-bottom: 14px; }
.footer .muted { font-size: 0.9rem; max-width: 36ch; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 4px 20px; justify-content: center; }
.footer__nav a { min-height: 44px; display: inline-flex; align-items: center; color: var(--text-2); font-size: 0.92rem; }
.footer__nav a:hover { color: var(--text); }
.footer__bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.footer__bottom p { font-size: 0.84rem; color: var(--muted); }

/* =========================================================
   Cursor-driven interactions
   JS (main.js → "Pointer effects") sets the custom properties;
   everything is inert on touch devices and with reduced motion.
   ========================================================= */

.hero__glow { translate: calc(var(--hx, 0) * 60px) calc(var(--hy, 0) * 30px); }
.hero__frame .stars { translate: calc(var(--hx, 0) * -14px) calc(var(--hy, 0) * -10px); }
.hero__title,
.cta__frame h2,
.calc__price span {
  background-size: 200% 200%;
  background-position: calc(50% + var(--hx, 0) * 30%) calc(50% + var(--hy, 0) * 40%);
}

/* cards: border lights up where the cursor is near, and tilts slightly on hover */
.glow { position: relative; }
.glow::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(280px circle at var(--mx, -999px) var(--my, -999px), rgba(255, 255, 255, 0.45), rgba(212, 212, 216, 0.08) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 400ms ease;
}
.has-pointer .glow::after { opacity: 1; }

.bento, .plans, .steps, .calc, .included { perspective: 1200px; }
.tilt {
  rotate: calc(var(--ty, 0) * -1) var(--tx, 0) 0 var(--ta, 0deg);
  transition: rotate 500ms var(--ease-out), border-color var(--t) ease;
}
.tilt.is-tilting { transition: rotate 120ms linear, border-color var(--t) ease; }

/* magnetic buttons */
.magnetic { translate: var(--bx, 0) var(--by, 0); transition-property: background-color, border-color, color, transform, box-shadow, translate; }
.magnetic.is-pulling { transition-duration: var(--t-fast), var(--t-fast), var(--t-fast), var(--t-fast), var(--t), 80ms; }
.magnetic:not(.is-pulling) { transition-duration: var(--t-fast), var(--t-fast), var(--t-fast), var(--t-fast), var(--t), 450ms; }

/* showcase video drifts under the cursor */

.showcase__media {
  scale: 1.06;
  translate: calc(var(--sx, 0) * -2%) calc(var(--sy, 0) * -2%);
  transition: translate 600ms var(--ease-out);
}

@media (hover: none), (pointer: coarse) {
  .result__glare { display: none; }
  .glow::after { display: none; }
  .showcase__media { scale: 1; }
}

/* =========================================================
   Reveal on scroll
   ========================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  filter: blur(6px);
  transition:
    opacity 700ms var(--ease-out),
    transform 850ms var(--ease-out),
    filter 700ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; filter: none; }

/* hero text enters in sequence on page load */
.hero__content > * { animation: hero-in 900ms var(--ease-out) backwards; }
.hero__content > :nth-child(2) { animation-delay: 90ms; }
.hero__content > :nth-child(3) { animation-delay: 180ms; }
.hero__content > :nth-child(4) { animation-delay: 270ms; }
@keyframes hero-in { from { opacity: 0; transform: translateY(18px); filter: blur(8px); } }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::before { display: none; }
}

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .card--wide { grid-column: span 2; }
  .card--brand { grid-template-columns: auto 1fr; }
  .card--brand .chips { grid-column: 1 / -1; justify-content: flex-start; }
  .calc,
  .quote { grid-template-columns: minmax(0, 1fr); }
  .calc__result { position: static; }
  .included,
  .rates { grid-template-columns: 1fr; }
  .facts__grid { grid-template-columns: 1fr 1fr; gap: 24px 0; }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__nav { justify-content: flex-start; }
}

@media (max-width: 720px) {
  .nav__actions { display: none; }
  .nav__toggle { display: block; }
  .nav__inner { padding: 0 8px 0 18px; }

  .hero { padding: 8px; }
  .hero__frame { padding-top: 112px; border-radius: var(--radius-lg); min-height: auto; }
  .hero__cta { flex-direction: column; width: 100%; max-width: 360px; }
  .hero__cta .btn { width: 100%; }

  .bento,
  .plans,
  .plans--3,
  .steps { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; }
  .card--brand { grid-template-columns: 1fr; }
  .form__grid { grid-template-columns: 1fr; }
  .rate summary { padding: 12px 16px; }
  .rate__table td { padding: 11px 16px; font-size: 0.9rem; }
  .plan__badge { left: 20px; }
  .tabs { display: flex; }
  .tabs__btn { flex: 1; padding: 0 10px; }
  .cta { padding: 8px; }
  .cta__frame { border-radius: var(--radius-lg); }
}

@media (max-width: 400px) {
  .facts__grid { grid-template-columns: 1fr; }
  .fact { border-left: 0; padding-left: 0; }
  .seg { grid-template-columns: 1fr; }
  .checks-in em { margin-left: 0; width: 100%; }
}

/* landscape phones: don't force tall hero */
@media (max-height: 520px) and (orientation: landscape) {
  .hero__frame { min-height: auto; padding-top: 100px; }
  .mobile-menu { overflow-y: auto; padding-top: 80px; }
  .mobile-menu a:not(.btn) { padding: 8px 4px; font-size: 1.15rem; }
}

/* =========================================================
   Custom dropdowns (main.js → "Custom dropdowns")
   Dropdown panel on desktop; bottom sheet on phones.
   ========================================================= */
.cselect { position: relative; }
.cselect__native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  clip-path: inset(50%);
}
.cselect__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color var(--t-fast) ease, background-color var(--t-fast) ease, box-shadow var(--t-fast) ease, scale 120ms ease;
}
.cselect__btn:hover { border-color: rgba(255, 255, 255, 0.26); }
.cselect__btn:active { scale: 0.99; }
.cselect__btn:focus-visible,
.cselect.is-open .cselect__btn {
  outline: none;
  border-color: var(--accent);
  background-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}
.cselect__value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cselect__chev { width: 18px; height: 18px; flex-shrink: 0; color: var(--muted); transition: rotate 260ms var(--ease-out); }
.cselect.is-open .cselect__chev { rotate: 180deg; }

.cselect__list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  max-height: 300px;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: rgba(22, 22, 22, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.85);
  outline: none;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top center;
  transition: opacity 180ms ease, transform 240ms var(--ease-out);
}
.cselect__list.is-up { top: auto; bottom: calc(100% + 8px); transform-origin: bottom center; transform: translateY(6px) scale(0.98); }
.cselect__list.is-open { opacity: 1; transform: none; }
.cselect__list.is-closing { transition-duration: 140ms; }
.cselect__head { display: none; }

.cselect__opt {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-2);
  cursor: pointer;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 200ms ease, transform 280ms var(--ease-out), background-color 120ms ease, color 120ms ease;
  transition-delay: calc(var(--i, 0) * 28ms), calc(var(--i, 0) * 28ms), 0ms, 0ms;
}
.cselect__list.is-open .cselect__opt { opacity: 1; transform: none; }
.cselect__list.is-closing .cselect__opt { transition-delay: 0ms; }
.cselect__opt.is-active { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.cselect__opt[aria-selected="true"] { color: #fff; font-weight: 600; }
.cselect__text { flex: 1; }
.cselect__badge {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--muted);
}
.cselect__badge:empty { display: none; }
.cselect__check { width: 16px; height: 16px; flex-shrink: 0; opacity: 0; scale: 0.5; transition: opacity 200ms ease, scale 260ms var(--ease-out); }
.cselect__opt[aria-selected="true"] .cselect__check { opacity: 1; scale: 1; }

/* phones: bottom sheet */
.cselect-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0);
  transition: background-color 260ms ease;
}
.cselect-backdrop.is-open { background: rgba(0, 0, 0, 0.6); }
.cselect__list.is-sheet {
  position: fixed;
  left: 8px;
  right: 8px;
  top: auto;
  bottom: calc(8px + env(safe-area-inset-bottom));
  z-index: 1001;
  max-height: 72dvh;
  padding: 6px 8px 10px;
  border-radius: 24px;
  opacity: 1;
  transform: translateY(calc(100% + 24px));
  transition: transform 340ms var(--ease-out);
}
.cselect__list.is-sheet.is-open { transform: none; }
.cselect__list.is-sheet.is-closing { transition-duration: 200ms; }
.cselect__list.is-sheet .cselect__head {
  display: block;
  position: relative;
  padding: 18px 12px 12px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.cselect__list.is-sheet .cselect__head::before {
  /* grab handle */
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 38px;
  height: 4px;
  margin-left: -19px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
}
.cselect__list.is-sheet .cselect__opt {
  min-height: 56px;
  padding: 14px 16px;
  font-size: 1.05rem;
  transform: translateY(12px);
  transition-delay: calc(var(--i, 0) * 35ms + 90ms), calc(var(--i, 0) * 35ms + 90ms), 0ms, 0ms;
}
.cselect__list.is-sheet.is-open .cselect__opt { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* old section links from the previous site (#ceni, #kontakti, #za-nas) land on the matching section */
.anchor-alias { position: absolute; top: 0; left: 0; width: 1px; height: 1px; pointer-events: none; }

/* =========================================================
   Glassmorphism — all info boxes are frosted glass
   (very clear: ~2.5% white, light 1.5px blur so the page stars show through, light hairline border, top sheen)
   ========================================================= */
:root {
  --glass-fill: linear-gradient(155deg, rgba(255, 255, 255, 0.032) 0%, rgba(255, 255, 255, 0.01) 55%, rgba(255, 255, 255, 0.018) 100%);
  --glass-edge: rgba(255, 255, 255, 0.13);
  --glass-edge-hi: rgba(255, 255, 255, 0.24);
  --glass-blur: blur(1.5px) saturate(125%);
  --glass-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 20px 50px -24px rgba(0, 0, 0, 0.7);
}

/* soft light spots behind the sections, so there is something to see through the glass */
.section {
  background:
    radial-gradient(28% 22% at 10% 28%, rgba(255, 255, 255, 0.075), transparent 70%),
    radial-gradient(24% 20% at 92% 70%, rgba(214, 218, 228, 0.065), transparent 70%),
    radial-gradient(20% 16% at 55% 100%, rgba(255, 255, 255, 0.04), transparent 70%);
}
.section--alt {
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(255, 255, 255, 0.06), transparent 70%),
    radial-gradient(26% 22% at 88% 30%, rgba(255, 255, 255, 0.07), transparent 70%),
    radial-gradient(24% 20% at 8% 78%, rgba(214, 218, 228, 0.06), transparent 70%),
    rgba(0, 0, 0, 0.42); /* about --bg-deep over the page, but lets the page stars through */
}

.card,
.step,
.plan,
.included > div,
.rate,
.calc__inputs,
.form,
.faq details {
  background: var(--glass-fill);
  border-color: var(--glass-edge);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
.card:hover,
.plan:hover,
.faq details[open] { border-color: var(--glass-edge-hi); }

/* highlighted boxes keep their white glow, now on glass */
.plan--featured {
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(255, 255, 255, 0.11), transparent 70%),
    var(--glass-fill);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: var(--glass-shadow), 0 30px 80px -40px rgba(255, 255, 255, 0.14);
}
.calc__result {
  background:
    radial-gradient(100% 70% at 100% 0%, rgba(255, 255, 255, 0.20), transparent 70%),
    var(--glass-fill);
  border-color: rgba(255, 255, 255, 0.30);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

/* phones: a little less blur — same look, smoother scrolling */
@media (max-width: 720px) {
  :root { --glass-blur: blur(1px) saturate(120%); }
}
/* browsers without backdrop-filter: slightly denser fill so text stays readable */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --glass-fill: linear-gradient(180deg, rgba(30, 30, 30, 0.92), rgba(18, 18, 18, 0.92)); }
}
@media (prefers-reduced-transparency: reduce) {
  :root { --glass-fill: linear-gradient(180deg, var(--surface-2), var(--surface)); --glass-blur: none; }
}
/* phones: the process timeline runs behind the steps — no blur there, so the line stays sharp */
@media (max-width: 720px) {
  .step { -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* =========================================================
   Process timeline on tablet & desktop: steps alternate left/right
   (01, 03 left · 02, 04 right) along a centre line that fills as you scroll,
   like the phone timeline (--steps-p / --line-bottom from main.js)
   ========================================================= */
@media (min-width: 721px) {
  .steps {
    --rail: 88px;      /* width of the centre lane with the line and numbers */
    --overlap: 48px;   /* how far each step tucks up beside the previous one */
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .step { width: calc(50% - var(--rail) / 2); z-index: 1; }
  .step:nth-child(even) { align-self: flex-end; }
  .step + .step { margin-top: calc(var(--overlap) * -1); }

  /* the line: faint track + white fill that grows downward */
  .steps::before,
  .steps::after {
    content: "";
    position: absolute;
    left: calc(50% - 1px);
    top: 34px;
    bottom: var(--line-bottom, 40px);
    width: 2px;
    border-radius: 2px;
  }
  .steps::before { background: rgba(255, 255, 255, 0.08); }
  .steps::after {
    background: linear-gradient(#fff, rgba(255, 255, 255, 0.45));
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
    transform-origin: top;
    transform: scaleY(var(--steps-p, 0));
  }

  /* numbers sit on the line */
  .step__num {
    position: absolute;
    top: 19px;
    z-index: 2;
    margin: 0;
    background: #161616;
    border: 1px solid var(--border-strong);
  }
  .step:nth-child(odd) .step__num { right: calc(var(--rail) / -2); translate: 50% 0; }
  .step:nth-child(even) .step__num { left: calc(var(--rail) / -2); translate: -50% 0; }
  .step.is-reached .step__num { scale: 1.08; border-color: #fff; background: #fff; }

  /* short connector from each box to its number */
  .steps .step::before {
    display: block;
    top: 34px;
    width: calc(var(--rail) / 2);
    background: linear-gradient(90deg, var(--border-strong), transparent);
  }
  .steps .step:nth-child(odd)::before { left: auto; right: calc(var(--rail) / -2); }
  .steps .step:nth-child(even)::before { right: auto; left: calc(var(--rail) / -2); background: linear-gradient(270deg, var(--border-strong), transparent); }
}

/* page-wide stars: one fixed canvas behind everything, visible while scrolling (drawn by main.js: Stars) */
.stars--page {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  height: 100vh;
  height: 100lvh; /* large viewport: no re-layout when the phone address bar hides */
  z-index: -1;
}

/* language switch (BG / EN) in the top bar */
.nav__lang { min-width: 44px; padding: 0 12px; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.04em; }

/* =========================================================
   Examples: before / after slider (EN original vs BG version), drag or arrow keys
   ========================================================= */
.compare-wrap {
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.compare__switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 14px;
  border-radius: 999px;
  border: 1px solid var(--glass-edge);
  background: var(--glass-fill);
}
.compare__tab {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease;
}
.compare__tab:hover { color: var(--text); }
.compare__tab[aria-pressed="true"] { background: #fff; color: #0a0a0a; }
.compare__tab:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.compare__frame {
  position: relative;
  z-index: 1;
  aspect-ratio: 1000 / 1414;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.14);
  cursor: ew-resize;
  touch-action: pan-y; /* vertical swipes still scroll the page on phones */
  user-select: none;
  -webkit-user-select: none;
}
.compare__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.compare__img--bg { clip-path: inset(0 0 0 var(--pos)); }
.compare__label {
  position: absolute;
  top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(10, 10, 10, 0.8);
  pointer-events: none;
}
.compare__label--en { left: 12px; }
.compare__label--bg { right: 12px; }
.compare__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18), 0 0 18px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.compare__knob {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #0a0a0a;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.compare__knob svg { width: 20px; height: 20px; }
.compare__frame:has(.compare__range:focus-visible) .compare__knob { outline: 2px solid var(--accent-hi); outline-offset: 3px; }
/* the range input is the keyboard / screen-reader control; dragging is handled on the frame */
.compare__range {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.compare__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-edge);
  background: var(--glass-fill);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
.compare__info h3 { font-size: 1.12rem; font-weight: 700; }
.compare__info .btn { max-width: 100%; height: auto; min-height: var(--h); padding-block: 10px; white-space: normal; text-align: center; }
.compare__fine { font-size: 0.84rem; }
@media (max-width: 900px) {
  .compare-wrap { grid-template-columns: minmax(0, 1fr); }
  .compare { width: 100%; max-width: 460px; margin-inline: auto; }
  .compare__info { max-width: 460px; width: 100%; margin-inline: auto; }
}
@media (max-width: 720px) {
  .compare__info .btn { width: 100%; height: auto; min-height: var(--h); padding-block: 10px; white-space: normal; text-align: center; }
}
/* top bar: menu links never wrap; just above the 1080px breakpoint there is no room for the extra
   "Калкулатор" button next to the language switch (the same link is already in the menu) */
.nav__links a { white-space: nowrap; }
@media (min-width: 1081px) and (max-width: 1180px) {
  .nav__actions .btn--ghost:not(.nav__lang) { display: none; }
}

/* compare: glowing divider. On the white page the line gets a dark halo (white light would vanish
   on paper); above and below the page it continues as a white beam with light leaking out behind. */
.compare__stage { --pos: 50%; position: relative; isolation: isolate; }
.compare__beam {
  position: absolute;
  top: -26px;
  bottom: -26px;
  left: var(--pos);
  z-index: 0;
  width: 2px;
  margin-left: -1px;
  border-radius: 2px;
  background: linear-gradient(to bottom, transparent, #fff 26px, #fff calc(100% - 26px), transparent);
  box-shadow: 0 0 10px 1px rgba(255, 255, 255, 0.75), 0 0 30px 4px rgba(255, 255, 255, 0.3);
  pointer-events: none;
  transition: box-shadow 300ms ease;
}
/* light leaking out behind the page at the line; kept inside the slider width (no sideways overflow) */
.compare__stage::before {
  content: "";
  position: absolute;
  inset: -40px 0;
  z-index: 0;
  background: radial-gradient(130px 56% at var(--pos) 50%, rgba(255, 255, 255, 0.2), transparent 75%);
  opacity: 0.7;
  pointer-events: none;
  transition: opacity 300ms ease;
}
.compare__stage.is-active .compare__beam { box-shadow: 0 0 14px 2px rgba(255, 255, 255, 0.95), 0 0 44px 8px rgba(255, 255, 255, 0.4); }
.compare__stage.is-active::before { opacity: 1; }

.compare__handle {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.2),
    0 0 12px 2px rgba(0, 0, 0, 0.28),
    0 0 36px 10px rgba(0, 0, 0, 0.12);
  transition: width 200ms ease, margin 200ms ease;
}
.compare__stage.is-active .compare__handle { width: 3px; margin-left: -1.5px; }
.compare__knob {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9), 0 0 0 5px rgba(0, 0, 0, 0.18), 0 10px 26px rgba(0, 0, 0, 0.45);
  transition: scale 260ms var(--ease-out);
}
.compare__knob::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(10, 10, 10, 0.35);
  animation: knob-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes knob-pulse {
  0% { scale: 1; opacity: 0.9; }
  70%, 100% { scale: 1.55; opacity: 0; }
}
.compare__stage.is-active .compare__knob { scale: 1.08; }
.compare__stage.is-active .compare__knob::after { animation-play-state: paused; opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .compare__knob::after { animation: none; opacity: 0; }
}
/* phones: the BG / EN switch stays in the top bar, just left of the menu icon, same size and shape */
@media (max-width: 720px) {
  .nav__inner { gap: 8px; }
  .nav__actions { display: flex; margin-left: auto; }
  .nav__actions .btn:not(.nav__lang) { display: none; }
  .nav__actions .nav__lang { --h: 44px; width: 44px; min-width: 44px; padding: 0; border-radius: 50%; }
  .nav__toggle { margin-left: 0; }
}
