/* self-hosted google fonts: latin+latin-ext+cyrillic+cyrillic-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/Fraunces-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/Fraunces-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/Fraunces-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/Fraunces-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/Fraunces-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/Fraunces-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/IBMPlexSans-400-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/IBMPlexSans-400-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/IBMPlexSans-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/IBMPlexSans-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/IBMPlexSans-500-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/IBMPlexSans-500-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/IBMPlexSans-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/IBMPlexSans-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/IBMPlexSans-600-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/IBMPlexSans-600-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/IBMPlexSans-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/IBMPlexSans-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/JetBrainsMono-400-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/JetBrainsMono-400-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/JetBrainsMono-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/JetBrainsMono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/JetBrainsMono-500-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/JetBrainsMono-500-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/JetBrainsMono-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/JetBrainsMono-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* ============================================================
   unlist landing — washi style.
   Three-layer tokens (primitives → semantic → utilities),
   light + dark paired, extracted from prod webapp tokens.css.
   ============================================================ */

/* ── 1. PRIMITIVES ───────────────────────────────────────── */
:root {
  --c-paper-25:  #FBF8F1;
  --c-paper-50:  #F4EFE6;
  --c-paper-100: #ECE5D6;
  --c-paper-200: #DCD3BE;
  --c-paper-300: #BAB1A0;
  --c-paper-400: #8C8579;
  --c-paper-500: #5C5650;
  --c-paper-600: #3F3A36;
  --c-paper-700: #2A2722;
  --c-paper-800: #1C1B22;
  --c-paper-900: #14131A;

  --c-sumi-50:   #FAF8F5;
  --c-sumi-100:  #ECE9DD;
  --c-sumi-700:  #4A4540;
  --c-sumi-900:  #1A1A1F;

  --c-vermillion-300: #ECA39A;
  --c-vermillion-400: #E07A6E;
  --c-vermillion-500: #C9594D;
  --c-vermillion-600: #B14438;

  --c-sage-300: #ABBFA9;
  --c-sage-400: #8FA08D;
  --c-sage-500: #6F8F66;
  --c-sage-600: #4F6F44;

  --c-slate-400: #8B96A3;
  --c-slate-500: #6C7E8B;
  --c-slate-700: #3F4A55;

  --font-display: 'Fraunces', 'Geist', system-ui, ui-serif, serif;
  --font-ui:      'IBM Plex Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-pill: 999px;

  --safe-top:    env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ── 2. SEMANTIC — light ─────────────────────────────────── */
:root,
html {
  --bg-canvas:    var(--c-paper-50);
  --bg-surface:   #FFFFFF;
  --bg-surface-2: var(--c-paper-25);
  --bg-sunken:    var(--c-paper-100);
  --bg-inverse:   var(--c-paper-900);

  --ink-primary:   var(--c-sumi-900);
  --ink-secondary: var(--c-sumi-700);
  --ink-muted:     #6E665C;
  --ink-on-accent: #FFFFFF;

  --border-subtle: rgba(26, 26, 31, 0.08);
  --border:        rgba(26, 26, 31, 0.14);
  --border-strong: rgba(26, 26, 31, 0.22);

  --accent:        var(--c-vermillion-500);
  --accent-strong: var(--c-vermillion-600);
  --accent-soft:   rgba(201, 89, 77, 0.10);
  --accent-ring:   rgba(201, 89, 77, 0.45);

  --success:      var(--c-sage-500);
  --success-soft: rgba(111, 143, 102, 0.12);
  --info:         var(--c-slate-500);
  --info-soft:    rgba(108, 126, 139, 0.12);

  --washi-grain:  rgba(26, 26, 31, 0.04);

  --shadow-card: 0 1px 0 rgba(26, 26, 31, 0.04), 0 8px 24px -12px rgba(26, 26, 31, 0.10);
  --shadow-lift: 0 2px 4px rgba(26, 26, 31, 0.06), 0 18px 36px -10px rgba(26, 26, 31, 0.14);
  --shadow-pop:  0 2px 4px rgba(26, 26, 31, 0.08), 0 22px 48px -12px rgba(26, 26, 31, 0.18);

  color-scheme: light;
}

/* ── 3. SEMANTIC — dark ──────────────────────────────────── */
html.dark {
  --bg-canvas:    var(--c-paper-900);
  --bg-surface:   var(--c-paper-800);
  --bg-surface-2: #232228;
  --bg-sunken:    #0E0E13;

  --ink-primary:   var(--c-sumi-100);
  --ink-secondary: var(--c-paper-300);
  --ink-muted:     #A39A8C;

  --border-subtle: rgba(236, 233, 221, 0.06);
  --border:        rgba(236, 233, 221, 0.12);
  --border-strong: rgba(236, 233, 221, 0.20);

  --accent:        var(--c-vermillion-400);
  --accent-strong: var(--c-vermillion-500);
  --accent-soft:   rgba(224, 122, 110, 0.16);
  --accent-ring:   rgba(224, 122, 110, 0.50);

  --success:      var(--c-sage-400);
  --success-soft: rgba(143, 160, 141, 0.14);
  --info:         var(--c-slate-400);
  --info-soft:    rgba(139, 150, 163, 0.14);

  --washi-grain:  rgba(236, 233, 221, 0.04);

  --shadow-card: 0 1px 0 rgba(0, 0, 0, 0.35), 0 8px 24px -12px rgba(0, 0, 0, 0.55);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.45), 0 18px 36px -10px rgba(0, 0, 0, 0.65);
  --shadow-pop:  0 2px 4px rgba(0, 0, 0, 0.55), 0 22px 48px -12px rgba(0, 0, 0, 0.75);

  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  html:not(.theme-forced) { color-scheme: dark; }
  html:not(.theme-forced):not(.dark):not(.light) {
    /* delegate to .dark via JS — fallback below for no-JS */
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── 4. Base reset ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body { min-height: 100%; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-primary);
  background: var(--bg-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  /* washi paper grain — very subtle noise via SVG filter */
  background-image:
    radial-gradient(1200px 600px at 80% -10%, var(--accent-soft), transparent 60%),
    radial-gradient(900px 500px at -10% 100%, var(--info-soft), transparent 55%);
  background-attachment: fixed;
}
/* washi paper grain — real feTurbulence noise, fixed & non-interactive */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='wg'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23wg)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.035;
  mix-blend-mode: multiply;
}
html.dark body::before { mix-blend-mode: screen; opacity: 0.05; }

img, svg, video { display: block; max-width: 100%; height: auto; }
button { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font: inherit; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink-primary); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--ink-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

::selection { background: var(--accent-soft); color: var(--ink-primary); }

/* ── 5. Layout primitives ────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 760px; }

.section {
  padding: clamp(72px, 9vw, 120px) 0;
}
.section-sunken { background: color-mix(in oklab, var(--bg-canvas) 70%, var(--bg-sunken) 30%); }

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}
.section-head .eyebrow { margin-bottom: 16px; }

.section-lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-secondary);
  margin: 12px 0 0;
}

.title-display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.1;
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.serif-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}
.text-accent { color: var(--accent); }

.font-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
[data-tnum] { font-variant-numeric: tabular-nums; }

/* ── 6. Surface utility ──────────────────────────────────── */
.surface-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* ── 7. Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-weight: 500;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, opacity .15s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }

.btn-sm { min-height: 38px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.btn-lg { min-height: 52px; padding: 0 22px; font-size: 15px; border-radius: 14px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--accent);
  color: var(--ink-on-accent);
  box-shadow: 0 1px 0 var(--accent-ring) inset, 0 8px 22px -10px var(--accent);
}
.btn-primary:hover { background: var(--accent-strong); color: var(--ink-on-accent); }

.btn-secondary {
  background: var(--bg-surface);
  color: var(--ink-primary);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--bg-surface-2); color: var(--ink-primary); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  color: var(--ink-secondary);
  transition: background-color .15s ease, color .15s ease;
}
.icon-btn:hover { background: var(--bg-surface-2); color: var(--ink-primary); }

/* ── 8. Header ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  background: color-mix(in oklab, var(--bg-canvas) 70%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header[data-shrink="true"] {
  padding: 10px 0;
  border-bottom-color: var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 19px;
  color: var(--ink-primary);
}
.brand-seal {
  display: inline-flex;
  color: var(--accent);
}
.brand-dim { color: var(--ink-muted); font-weight: 400; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 32px;
  flex: 1;
}
.site-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink-secondary);
  transition: background-color .15s ease, color .15s ease;
}
.site-nav a:hover { color: var(--ink-primary); background: var(--bg-surface-2); }

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

#theme-toggle .icon-moon { display: none; }
html.dark #theme-toggle .icon-sun { display: none; }
html.dark #theme-toggle .icon-moon { display: block; }

.nav-toggle { display: none; }
.site-nav .nav-login { display: none; }

@media (max-width: 880px) {
  .site-nav {
    position: fixed;
    inset: 64px 16px auto 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    box-shadow: var(--shadow-lift);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
    margin-left: 0;
    flex: none;
  }
  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav a { padding: 12px 14px; font-size: 15px; }
  .nav-toggle { display: inline-flex; }
  .header-inner { gap: 12px; }
  .header-actions { margin-left: auto; gap: 6px; }
  .site-nav .nav-login { display: block; border-top: 1px solid var(--border-subtle); margin-top: 6px; padding-top: 14px; }
}

@media (max-width: 700px) {
  .header-login { display: none; }
}

@media (max-width: 359px) {
  /* очень узкие экраны (320px): прячем тему чтобы хедер не уезжал */
  #theme-toggle { display: none; }
}

@media (max-width: 560px) {
  .header-actions .btn-primary span,
  .header-actions .btn-primary { font-size: 0; min-width: 38px; padding: 0 10px; }
  .header-actions .btn-primary svg { display: none; }
  .header-actions .btn-primary::before {
    content: "TG";
    font-size: 13px;
    letter-spacing: 0.05em;
    font-family: var(--font-mono);
    font-weight: 600;
  }
}

/* ── 9. Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 96px) 0 0;
  overflow: hidden;
}
.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
}

.hero-text .eyebrow { margin-bottom: 20px; }

.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  margin: 0 0 20px;
}

.hero-lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-secondary);
  margin: 0 auto 28px;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13.5px;
  color: var(--ink-muted);
}
.hero-meta .sep {
  width: 3px; height: 3px;
  border-radius: 999px;
  background: var(--ink-muted);
  opacity: 0.45;
}
.hero-meta strong { color: var(--ink-secondary); font-weight: 600; }

/* Hero — Idea A: centered editorial, inked accent + sumi atmosphere */
.hero-meta { justify-content: center; }
.hero .display .text-accent { position: relative; }
.hero .display .text-accent::after {
  content: "";
  position: absolute;
  left: -1%;
  right: -1%;
  bottom: -0.12em;
  height: 0.16em;
  background: currentColor;
  opacity: 0.85;
  pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9 C 45 4 150 5 197 8' fill='none' stroke='black' stroke-width='3.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9 C 45 4 150 5 197 8' fill='none' stroke='black' stroke-width='3.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.hero::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -56px;
  width: 360px;
  height: 360px;
  background: var(--accent);
  opacity: 0.05;
  pointer-events: none;
  transform: rotate(8deg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M12 70 C 30 40, 60 30, 88 22 M20 84 C 44 60, 70 50, 92 46' fill='none' stroke='black' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M12 70 C 30 40, 60 30, 88 22 M20 84 C 44 60, 70 50, 92 46' fill='none' stroke='black' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
@media (max-width: 560px) { .hero::before { display: none; } }

/* Hero preview card */
.hero-card {
  position: relative;
  padding: 24px 22px 20px;
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.card-corner-accent {
  position: absolute;
  top: 0; right: 0;
  width: 130px; height: 30px;
  color: var(--accent);
  opacity: 0.55;
  pointer-events: none;
}
html.dark .card-corner-accent { opacity: 0.42; }

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.card-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}
.card-title {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--success);
}
.card-title::before {
  content: "●";
  margin-right: 6px;
  color: var(--success);
}

.card-days {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 16px 0 8px;
}
.days-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}
.days-label {
  font-size: 13px;
  line-height: 1.25;
  color: var(--ink-muted);
}

.card-meter { margin-top: 14px; }
.meter-bar {
  height: 4px;
  background: var(--bg-sunken);
  border-radius: 999px;
  overflow: hidden;
}
.meter-fill {
  height: 100%;
  width: var(--w, 50%);
  background: var(--accent);
  border-radius: 999px;
}
.meter-cap {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}

.card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--border-subtle);
  font-size: 13.5px;
}
.card-row:first-of-type { margin-top: 16px; }
.row-label { color: var(--ink-muted); }
.row-val { color: var(--ink-primary); font-weight: 500; }
.row-dim { color: var(--ink-muted); font-weight: 400; }

.sub-actions {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.sub-actions .btn { flex: 0 0 auto; align-self: flex-start; }

.region-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0 10px;
}
.region-options .btn { width: 100%; }
@media (max-width: 420px) { .region-options { grid-template-columns: 1fr; } }
.sub-actions-hint {
  margin: 0;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.55;
  max-width: 52ch;
}

/* Hero strip — numbers row */
.hero-strip {
  margin-top: clamp(48px, 6vw, 80px);
  padding: 28px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 720px) { .strip-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; } }

.strip-item { display: flex; align-items: center; gap: 14px; }
.strip-num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(26px, 3.6vw, 34px);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-primary);
  white-space: nowrap;
}
.strip-cap {
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--ink-muted);
}

/* ── 11. Locations grid ──────────────────────────────────── */
.locations-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 880px) { .locations-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .locations-grid { grid-template-columns: 1fr; } }

.loc-card {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.loc-flag {
  font-size: 32px;
  line-height: 1;
  width: 44px;
}
.loc-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
}
.loc-meta {
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.4;
  margin-top: 2px;
}

/* ── 12. Steps ───────────────────────────────────────────── */
.steps {
  list-style: none;
  margin: 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}
.steps .step.surface-card {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }

.step {
  padding: 8px 22px 8px 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step-num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  opacity: 0.9;
  margin-bottom: 8px;
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
  margin: 0;
}
.step p {
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.55;
  margin: 0;
}

/* ── 13. Pricing ─────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
@media (max-width: 880px) { .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

.plan {
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.plan-featured {
  border-color: var(--accent-soft);
  box-shadow: 0 1px 0 var(--accent-soft), 0 18px 36px -16px rgba(201, 89, 77, 0.25);
  position: relative;
}
.plan-featured::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid var(--accent);
  pointer-events: none;
  opacity: 0.4;
}

.plan-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.plan-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.plan-meta {
  font-size: 12.5px;
  color: var(--ink-muted);
}
.plan-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink-on-accent);
  font-weight: 600;
}
.plan-badge-muted {
  background: var(--bg-sunken);
  color: var(--ink-secondary);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 4px;
}
.price-num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-primary);
}
.price-cur {
  font-size: 22px;
  color: var(--ink-muted);
}
.plan-alt {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-top: -4px;
}

.plan .btn { margin-top: auto; }

.pricing-note {
  margin: 32px auto 0;
  max-width: 620px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-muted);
}

/* ── 14. FAQ ─────────────────────────────────────────────── */
.faq {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.faq-item[open] {
  box-shadow: var(--shadow-card);
  border-color: var(--border);
}
.faq-item summary {
  padding: 18px 22px;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.005em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--ink-primary);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  width: 12px; height: 12px;
  border-right: 1.6px solid var(--ink-muted);
  border-bottom: 1.6px solid var(--ink-muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(-135deg) translateY(0); }
.faq-body {
  padding: 0 22px 20px;
  color: var(--ink-secondary);
  font-size: 14.5px;
  line-height: 1.6;
}
.faq-body p { margin: 0; }
.faq-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.faq-body a:hover { color: var(--accent-strong); }

/* ── Reviews ─────────────────────────────────────────────── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}
@media (max-width: 720px) { .reviews-grid { grid-template-columns: 1fr; } }

.reviews-loading,
.reviews-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-muted);
  font-size: 14px;
  padding: 28px 0;
}

.review-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.review-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.review-author {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}
.review-stars {
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--accent);
  line-height: 1;
}
.review-stars .star-off { color: var(--border-strong); }
.review-text {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-primary);
  margin: 0;
  word-break: break-word;
}
.review-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
}

.review-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-surface);
  border: 1px dashed var(--border);
  border-radius: 14px;
  font-size: 14px;
  color: var(--ink-secondary);
}
.review-action-msg strong { color: var(--ink-primary); }
.review-action.is-success {
  border-style: solid;
  border-color: var(--success);
  background: var(--success-soft);
  color: var(--ink-primary);
}

.review-form-card {
  padding: 22px 20px 20px;
  margin-top: 4px;
}
.review-form-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.review-form { display: flex; flex-direction: column; gap: 12px; }

.review-name-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.review-field-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}
.review-form input[type="text"] {
  font: inherit;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--ink-primary);
  transition: border-color .15s ease, background-color .15s ease;
}
.review-form input[type="text"]::placeholder { color: var(--ink-muted); }
.review-form input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-surface);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.rating-input {
  display: inline-flex;
  gap: 4px;
}
.star-btn {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  color: var(--border-strong);
  background: none;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: color .12s ease, transform .12s ease;
}
.star-btn:hover { color: var(--accent); transform: translateY(-1px); }
.star-btn[data-active="true"] { color: var(--accent); }

.review-form textarea {
  font: inherit;
  width: 100%;
  resize: vertical;
  min-height: 96px;
  padding: 12px 14px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--ink-primary);
  transition: border-color .15s ease, background-color .15s ease;
}
.review-form textarea::placeholder { color: var(--ink-muted); }
.review-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-surface);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.review-form-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.review-counter {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-muted);
}
.review-counter[data-state="ok"] { color: var(--success); }

.review-form-status {
  min-height: 18px;
  font-size: 13px;
  color: var(--ink-muted);
}
.review-form-status[data-state="success"] { color: var(--success); }
.review-form-status[data-state="error"]   { color: var(--accent-strong); }

/* ── 15. CTA band ────────────────────────────────────────── */
.cta-band {
  padding: clamp(72px, 9vw, 120px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-inner { position: relative; }
.cta-sumi {
  position: absolute;
  left: -4%;
  right: -4%;
  top: clamp(8px, 2vw, 28px);
  height: clamp(60px, 9vw, 90px);
  color: var(--accent);
  opacity: 0.45;
  pointer-events: none;
  mix-blend-mode: multiply;
  z-index: 1;
}
html.dark .cta-sumi {
  opacity: 0.55;
  mix-blend-mode: screen;
}
.cta-sumi svg { width: 100%; height: 100%; }
.cta-title { position: relative; z-index: 2; }

.cta-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 16px;
}
.cta-lede {
  color: var(--ink-secondary);
  font-size: 17px;
  margin: 0 0 28px;
}
.cta-buttons {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Sheet (signup modal) ────────────────────────────────── */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet[hidden] { display: none; }
.sheet-scrim {
  position: absolute;
  inset: 0;
  background: var(--scrim, rgba(20, 19, 26, 0.45));
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: scrim-in .2s ease-out both;
}
html.dark .sheet-scrim { background: rgba(0, 0, 0, 0.55); }
@keyframes scrim-in { from { opacity: 0; } to { opacity: 1; } }

.sheet-panel {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 24px;
  padding: 28px 26px 26px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  box-shadow: var(--shadow-pop);
  animation: sheet-in .25s cubic-bezier(0.20, 0.80, 0.20, 1) both;
}
@keyframes sheet-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (min-width: 720px) {
  .sheet { align-items: center; }
}

.sheet-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.sheet-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  margin-bottom: 14px;
}
.sheet-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.sheet-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--ink-primary);
}
.sheet-lede {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-secondary);
  margin: 0 0 18px;
}
.sheet-lede strong { color: var(--ink-primary); font-weight: 600; }

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}
.field input {
  height: 48px;
  padding: 0 14px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  color: var(--ink-primary);
  transition: border-color .15s ease, background-color .15s ease;
}
.field input::placeholder { color: var(--ink-muted); }
.field input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-surface);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.signup-status {
  min-height: 18px;
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 4px;
}
.signup-status[data-state="success"] { color: var(--success); }
.signup-status[data-state="error"]   { color: var(--danger);  }

.sheet-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}
.sheet-sep::before,
.sheet-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

body.is-locked { overflow: hidden; }

/* ── Auth / Dashboard ────────────────────────────────────── */
.auth-section { padding-top: clamp(48px, 7vw, 96px); padding-bottom: 64px; }

.auth-card {
  position: relative;
  padding: 32px 28px 28px;
  overflow: hidden;
}
.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  margin-bottom: 14px;
}
.auth-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.auth-title {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  font-size: clamp(32px, 4.5vw, 44px);
  line-height: 1.1;
  margin: 0 0 14px;
}
.auth-lede {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-secondary);
  margin: 0 0 22px;
}
.auth-lede strong { color: var(--ink-primary); font-weight: 600; }

.auth-toggle {
  text-align: center;
  margin: 4px 0;
}
.link-btn {
  background: none;
  border: 0;
  padding: 4px 6px;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink-secondary);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color .15s ease, text-decoration-color .15s ease;
}
.link-btn:hover { color: var(--accent); text-decoration-color: var(--accent); }

.auth-error {
  background: var(--danger-soft);
  border: 1px solid color-mix(in oklab, var(--danger) 30%, transparent);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--ink-primary);
  margin-bottom: 16px;
}

.auth-fineprint {
  font-size: 12px;
  color: var(--ink-muted);
  text-align: center;
  margin: 22px 0 0;
}
.auth-fineprint a { color: var(--ink-secondary); text-decoration: underline; text-underline-offset: 2px; }
.auth-fineprint a:hover { color: var(--accent); }

/* Dashboard */
.dash-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 80px 0;
  color: var(--ink-muted);
  font-size: 14px;
}
.spinner {
  width: 28px; height: 28px;
  border: 2.5px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: spin 0.85s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.dash-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  margin-bottom: 14px;
}
.dash-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 4px var(--success-soft);
}
.dash-title {
  margin: 0 0 32px;
  font-size: clamp(36px, 5vw, 56px);
}
.dash-card {
  padding: 24px 22px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.dash-h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.dash-p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-secondary);
  margin: 0 0 14px;
}
.dash-p strong { color: var(--ink-primary); font-weight: 600; }
.dash-hint {
  font-size: 13px;
  color: var(--ink-muted);
  margin: 12px 0 0;
}
.dash-hint code {
  background: var(--bg-sunken);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 12.5px;
}

.link-code-box {
  background: var(--bg-sunken);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.link-code-label {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}
.link-code {
  font-size: 32px;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--ink-primary);
  line-height: 1;
  padding: 6px 0;
}
.link-code-ttl {
  font-size: 11.5px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}

/* Inline sub-link / copy rows */
.sub-link-row .row-val,
.sub-link-val,
.copy-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
  justify-content: flex-end;
}
.sub-link-text,
.copy-text {
  font-size: 12.5px;
  color: var(--ink-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  max-width: 100%;
  direction: rtl;     /* keep the right (random) part visible if truncated */
  text-align: left;
  unicode-bidi: plaintext;
}
.copy-row {
  background: var(--bg-sunken);
  border-radius: 12px;
  padding: 8px 10px 8px 14px;
  margin-top: 6px;
  justify-content: space-between;
}
.copy-row .copy-text {
  flex: 1;
  font-size: 13px;
}

.copy-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex-shrink: 0;
}
.copy-btn.copied {
  color: var(--success);
  background: var(--success-soft);
}

/* Referral stats line */
.ref-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 4px 0 14px;
  font-size: 13px;
  color: var(--ink-secondary);
}
.ref-stats .sep {
  width: 3px; height: 3px; border-radius: 999px;
  background: var(--ink-muted); opacity: 0.5;
}
.ref-stats strong, .ref-stats .font-mono { color: var(--ink-primary); font-weight: 600; }

/* Referral recent invites */
.ref-recent { margin-top: 14px; }
.ref-recent-h {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.ref-recent-list { list-style: none; margin: 0; padding: 0; }
.ref-recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--border-subtle);
  font-size: 14px;
}
.ref-recent-item:first-child { border-top: 0; }
.ref-recent-name {
  min-width: 0;
  color: var(--ink-primary);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ref-recent-status {
  flex: none;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.ref-recent-status.is-paid { color: var(--success); }
.ref-recent-status.is-pending { color: var(--ink-muted); }

/* Install wizard */
.os-switch {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}
.os-switch .btn {
  min-height: 32px;
  height: 32px;
  padding: 0 12px;
  font-size: 12.5px;
}
.os-switch .btn[aria-current="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.install-steps {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.install-step {
  display: flex;
  gap: 14px;
  padding: 14px 14px 12px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
}
.install-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.install-step-body { flex: 1; min-width: 0; }
.install-step-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.005em;
  margin: 0 0 4px;
}
.install-step-body p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-secondary);
  margin: 0 0 10px;
}
.install-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.install-actions .btn {
  height: 34px;
  min-height: 34px;
  font-size: 12.5px;
  padding: 0 12px;
}

/* Dashboard plans */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}
@media (max-width: 560px) { .plans-grid { grid-template-columns: 1fr; } }

.plans-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-muted);
  font-size: 13px;
  padding: 12px 0;
}

.plan-mini {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 14px 12px;
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
  position: relative;
}
.plan-mini:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 18px -8px rgba(201, 89, 77, 0.20);
}
.plan-mini[data-popular="true"] {
  border-color: var(--accent-soft);
  box-shadow: 0 1px 0 var(--accent-soft);
}
.plan-mini-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.plan-mini-price {
  display: flex;
  align-items: baseline;
  gap: 3px;
}
.plan-mini-price-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
  line-height: 1;
}
.plan-mini-price-cur {
  font-size: 16px;
  color: var(--ink-muted);
}
.plan-mini-meta {
  font-size: 11.5px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}
.plan-mini-pay {
  margin-top: 6px;
  width: 100%;
  min-height: 38px;
  height: 38px;
  font-size: 13px;
  padding: 0 12px;
  border-radius: 10px;
}

.pay-method-row {
  display: flex;
  gap: 8px;
  margin: 12px 0 16px;
  flex-wrap: wrap;
}
.pay-method {
  flex: 1 1 0;
  min-width: 140px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-surface);
  font-size: 13px;
  color: var(--ink-primary);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.pay-method input[type="radio"] {
  accent-color: var(--accent);
  margin: 0;
}
.pay-method:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* Toast */
.toast {
  position: fixed;
  bottom: calc(20px + var(--safe-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-sumi-900);
  color: var(--c-sumi-100);
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 13.5px;
  box-shadow: var(--shadow-pop);
  z-index: 200;
  max-width: min(92vw, 360px);
  text-align: center;
  animation: toast-in .25s cubic-bezier(0.20, 0.80, 0.20, 1);
}
.toast[data-kind="error"] { background: var(--danger); color: white; }
@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Legal pages (offer / privacy / recurring) ───────────── */
.legal-page main { padding-top: 32px; }

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-secondary);
  margin-bottom: 24px;
  padding: 6px 10px 6px 6px;
  border-radius: 999px;
  transition: background-color .15s ease, color .15s ease;
}
.legal-back:hover { background: var(--bg-surface-2); color: var(--ink-primary); }

.legal-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.legal-h1 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  margin: 0 0 14px;
}

.legal-meta {
  font-size: 13px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-tldr {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 18px 20px 18px 22px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-secondary);
  margin: 0 0 36px;
}
.legal-tldr strong { color: var(--ink-primary); }

.legal article {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-primary);
}
.legal article h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  font-size: 24px;
  line-height: 1.2;
  margin: 40px 0 14px;
  scroll-margin-top: 80px;
}
.legal article h2 .num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-right: 10px;
  vertical-align: 0.15em;
}
.legal article h3 {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 17px;
  margin: 24px 0 8px;
}
.legal article p {
  margin: 0 0 14px;
  color: var(--ink-secondary);
}
.legal article p strong { color: var(--ink-primary); font-weight: 600; }
.legal article ul, .legal article ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--ink-secondary);
}
.legal article li { margin-bottom: 6px; padding-left: 4px; }
.legal article ul li::marker { color: var(--accent); }
.legal article ol li::marker { color: var(--ink-muted); font-family: var(--font-mono); font-size: 0.9em; }

.legal article a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.legal article a:hover { color: var(--accent); }

.legal-requisites {
  margin-top: 40px;
  padding: 22px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-secondary);
}
.legal-requisites .req-cap {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.legal-requisites code {
  font-family: inherit;
  color: var(--ink-primary);
}
.legal-requisites .req-todo {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-strong);
  padding: 0 6px;
  border-radius: 4px;
  font-size: 12px;
}

/* ── 16. Footer ──────────────────────────────────────────── */
.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--border-subtle);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-bottom: 32px;
}
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
}
.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.foot-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 720px) {
  .foot-cols, .foot-cols-4 { grid-template-columns: 1fr 1fr; }
}

.foot-col { display: flex; flex-direction: column; gap: 8px; }
.foot-cap {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  margin-bottom: 4px;
}
.foot-col a {
  color: var(--ink-secondary);
  font-size: 14px;
}
.foot-col a:hover { color: var(--ink-primary); }

.foot-fine {
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--ink-muted);
}
.foot-dim { opacity: 0.7; }

/* ============================================================
   REDESIGN 2026-06 — conversion + motion layer.
   Только аддитивные правила: токены и базовые компоненты не трогаем.
   ============================================================ */

/* Глобальная страховка от горизонтального скролла декора */
html { overflow-x: clip; }

/* ── Scroll reveal (только transform/opacity, гейт на html.js) ── */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity .65s cubic-bezier(0.16, 1, 0.3, 1),
    transform .65s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--reveal-i, 0) * 70ms);
  will-change: opacity, transform;
}
html.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  will-change: auto;
}
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ── Hero entrance (одноразовый каскад при загрузке) ── */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
html.js .hero-text > * {
  animation: hero-rise .7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
html.js .hero-text > :nth-child(1) { animation-delay: .05s; }
html.js .hero-text > :nth-child(2) { animation-delay: .12s; }
html.js .hero-text > :nth-child(3) { animation-delay: .22s; }
html.js .hero-text > :nth-child(4) { animation-delay: .32s; }
html.js .hero-text > :nth-child(5) { animation-delay: .42s; }
html.js .hero-card {
  animation: hero-rise .8s cubic-bezier(0.16, 1, 0.3, 1) .25s both;
}
@media (prefers-reduced-motion: reduce) {
  html.js .hero-text > *, html.js .hero-card { animation: none; }
}

/* Hero: новый h1 длиннее, держим размер под колонку */
.hero .display { font-size: clamp(38px, 5.4vw, 62px); }

/* Стрелка в кнопках: микросдвиг на hover */
.btn svg { transition: transform .2s cubic-bezier(0.16, 1, 0.3, 1); }
.btn:hover svg { transform: translateX(3px); }

/* Бейдж «лучший оффер» в hero-meta */
.hero-meta .meta-strong { color: var(--ink-primary); font-weight: 600; }

/* ── Pricing: якорь и доверие ── */
.pricing-anchor {
  margin: -28px 0 36px;
  font-size: 14px;
  color: var(--ink-secondary);
  max-width: 720px;
}
.pricing-anchor strong { color: var(--ink-primary); }

.pricing-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: center;
  margin: 18px auto 0;
  font-size: 12.5px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}
.pricing-trust span { display: inline-flex; align-items: center; gap: 7px; }
.pricing-trust svg { color: var(--success); flex-shrink: 0; }

/* Featured-план приподнят на десктопе */
@media (min-width: 881px) {
  .plan-featured { transform: translateY(-6px); }
}
.plan { transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .25s ease; }
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
@media (min-width: 881px) {
  .plan-featured:hover { transform: translateY(-9px); }
}

/* ── Reviews: скелетон вместо текстовой заглушки ── */
.review-skel {
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 120px;
}
.review-skel i {
  display: block;
  height: 12px;
  border-radius: 6px;
  background: var(--bg-sunken);
  animation: skel-pulse 1.2s ease-in-out infinite alternate;
}
.review-skel i:nth-child(1) { width: 40%; }
.review-skel i:nth-child(2) { width: 92%; animation-delay: .15s; }
.review-skel i:nth-child(3) { width: 70%; animation-delay: .3s; }
@keyframes skel-pulse {
  from { opacity: 0.55; }
  to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .review-skel i { animation: none; }
}

/* ── FAQ: плавный hover ── */
.faq-item summary { transition: color .15s ease; }
.faq-item:hover summary { color: var(--accent-strong); }
html.dark .faq-item:hover summary { color: var(--accent); }

/* ── Sticky mobile CTA bar ── */
.mobile-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + var(--safe-bottom));
  z-index: 60;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-pop);
  transform: translateY(calc(100% + 24px));
  transition: transform .35s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-cta.is-shown { transform: none; }
.mobile-cta .btn { flex: 1; white-space: nowrap; }
.mobile-cta-close {
  width: 34px; height: 34px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--ink-muted);
}
.mobile-cta-close:hover { background: var(--bg-surface-2); color: var(--ink-primary); }
@media (max-width: 880px) {
  .mobile-cta { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-cta { transition: none; }
}

/* ── Header: версия CTA с ценностью ── */
@media (max-width: 374px) {
  .header-inner { padding: 0 16px; }
  .brand-text { font-size: 17px; }
}

/* ── Доп. глубина для sunken-секций ── */
.section-sunken {
  box-shadow:
    inset 0 1px 0 var(--border-subtle),
    inset 0 -1px 0 var(--border-subtle);
}

/* ── CTA: подчёркивание «реши сам» (как в OG), draw-in анимация ── */
.cta-accent { position: relative; display: inline-block; }
.cta-underline {
  position: absolute;
  left: -3%;
  bottom: -0.16em;
  width: 106%;
  height: 0.38em;
  overflow: visible;
  color: var(--accent);
  pointer-events: none;
}
.cta-underline path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
}
html.js .cta-underline path { stroke-dasharray: 1; stroke-dashoffset: 1; }
html.js .cta-title.is-revealed .cta-underline path {
  animation: cta-underline-draw .75s cubic-bezier(0.16, 1, 0.3, 1) .2s forwards;
}
@keyframes cta-underline-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  html.js .cta-underline path { stroke-dashoffset: 0; animation: none; }
}

/* ============================================================
   LOCATIONS — Bento (statement + accent tiles + country grid)
   ============================================================ */
.locations-bento { position: relative; overflow: hidden; }
.locations-bento .container { position: relative; z-index: 1; }
.loc-bento-head { max-width: 720px; margin-bottom: clamp(36px, 4vw, 60px); }
.loc-bento-head .eyebrow { margin-bottom: 16px; }
.loc-bento-title { font-size: clamp(32px, 4vw, 56px); line-height: 1.02; margin-bottom: 14px; }
.loc-bento-head .section-lede { margin: 0; }

.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(132px, auto); gap: 16px; }

.tile {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.tile.country { justify-content: space-between; grid-column: span 3; transition: transform .4s cubic-bezier(0.16,1,0.3,1), box-shadow .4s ease, border-color .4s ease; }
.tile.country:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: var(--border); }
.tile.country:hover .tile-iso { color: var(--accent); border-color: var(--accent); }
.tile.country:hover .tile-live { transform: scale(1.25); }

/* statement tile */
.tile.statement {
  grid-column: span 7; grid-row: span 2;
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-surface-2) 100%);
  justify-content: space-between;
  padding: clamp(26px, 1.2rem + 1.4vw, 40px);
}
.stmt-top { display: flex; align-items: center; gap: 8px; color: var(--ink-muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.stmt-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(111,143,102,0.18); }
.stmt-big { font-family: var(--font-display); font-weight: 500; font-size: clamp(34px, 1.2rem + 3.2vw, 54px); line-height: 1.0; letter-spacing: -0.02em; margin: 22px 0 14px; }
.stmt-big .num { color: var(--accent); }
.stmt-note { display: flex; align-items: flex-start; gap: 11px; font-size: 15.5px; line-height: 1.5; color: var(--ink-secondary); max-width: 30rem; margin: 0; }
.stmt-note .ic { flex: none; margin-top: 2px; width: 22px; height: 22px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.stmt-note .ic svg { width: 13px; height: 13px; }
.stmt-rings { position: absolute; right: -90px; top: 50%; transform: translateY(-50%); width: 280px; height: 280px; pointer-events: none; opacity: 0.5; }
html.dark .stmt-rings { opacity: 0.35; }
.stmt-rings circle, .stmt-rings ellipse { fill: none; stroke: var(--border); stroke-width: 1; }

/* accent tile */
.tile.accent {
  grid-column: span 5; grid-row: span 2;
  background: var(--accent); border-color: transparent; color: #FFF6F2;
  justify-content: space-between;
}
html.dark .tile.accent { color: #14131A; }
.tile.accent::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,0.10); }
html.dark .tile.accent::after { background: rgba(20,19,26,0.10); }
.acc-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.82; position: relative; }
.acc-head { font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 1rem + 1.4vw, 30px); line-height: 1.08; margin: 13px 0 0; letter-spacing: -0.01em; position: relative; }
.acc-body { font-size: 15px; line-height: 1.55; opacity: 0.92; max-width: 22rem; position: relative; margin: 0; }
.acc-bar { display: flex; align-items: center; gap: 8px; margin-top: 18px; position: relative; flex-wrap: wrap; }
.acc-bar .pill { font-size: 11.5px; letter-spacing: 0.04em; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,0.16); color: inherit; }
html.dark .tile.accent .pill { background: rgba(20,19,26,0.14); }

/* country tiles */
.tile.country.wide { grid-column: span 6; }
.tile-iso {
  align-self: flex-start;
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.08em; color: var(--ink-muted);
  border: 1px solid var(--border-subtle); border-radius: 6px; padding: 3px 8px; background: var(--bg-surface-2);
  transition: color .3s ease, border-color .3s ease;
}
.tile-body { margin-top: auto; padding-top: 22px; }
.tile-city { font-family: var(--font-display); font-weight: 500; font-size: 23px; line-height: 1.05; letter-spacing: -0.01em; color: var(--ink-primary); }
.tile.country.wide .tile-city { font-size: clamp(28px, 1.4rem + 1.4vw, 38px); }
.tile-country { font-size: 13.5px; color: var(--ink-muted); margin-top: 4px; }
.tile-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 9px; }
.tile-en { font-size: 11px; color: var(--ink-muted); opacity: 0.75; letter-spacing: 0.02em; }
.tile-ping { font-size: 11.5px; color: var(--ink-secondary); letter-spacing: 0.02em; white-space: nowrap; }
.tile-ping span { color: var(--accent); font-weight: 500; }
.tile.country.wide .tile-foot { display: block; margin-top: 7px; }
.tile.country.wide .tile-ping { display: block; margin-top: 4px; }

/* green live dot — top-right corner */
.tile-live { position: absolute; top: 22px; right: 22px; width: 9px; height: 9px; border-radius: 50%; background: var(--success); transition: transform .3s cubic-bezier(0.16,1,0.3,1); }
.tile-live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--success); opacity: 0.5; transform-origin: center; animation: tile-pulse 2.4s ease-out infinite; }
.tile.country:nth-of-type(2) .tile-live::after { animation-delay: .4s; }
.tile.country:nth-of-type(3) .tile-live::after { animation-delay: .8s; }
.tile.country:nth-of-type(4) .tile-live::after { animation-delay: 1.2s; }
.tile.country:nth-of-type(5) .tile-live::after { animation-delay: .6s; }
.tile.country:nth-of-type(6) .tile-live::after { animation-delay: 1.0s; }
.tile.country:nth-of-type(7) .tile-live::after { animation-delay: 1.5s; }
@keyframes tile-pulse { 0% { transform: scale(1); opacity: 0.5; } 70% { transform: scale(3); opacity: 0; } 100% { transform: scale(3); opacity: 0; } }

/* NYC radar art */
.wide-art { position: absolute; right: 28px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.wide-art svg { width: 96px; height: 96px; display: block; }
.wide-art circle, .wide-art line { stroke: var(--border); stroke-width: 1; fill: none; }
.wide-art .dot { fill: var(--accent); stroke: none; }

/* responsive */
@media (max-width: 900px) {
  .tile.statement { grid-column: span 12; grid-row: span 1; }
  .tile.accent { grid-column: span 12; grid-row: span 1; }
  .tile.country { grid-column: span 6; }
  .tile.country.wide { grid-column: span 12; }
}
@media (max-width: 560px) {
  .bento { gap: 12px; }
  .tile { padding: 20px; }
  .tile.country { grid-column: span 12; }
  .tile.country.wide { flex-direction: column; align-items: flex-start; }
  .tile.country.wide .wide-art { display: none; }
  .tile.country.wide .tile-iso { position: static; margin-bottom: 0; }
  .stmt-rings { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .tile.country, .tile.country:hover { transition: box-shadow .2s ease, border-color .2s ease; transform: none !important; }
  .tile-live, .tile.country:hover .tile-live { transform: none !important; }
  .tile-live::after { animation: none; }
}

/* ── Hero card: live "Активна" status dot with fading pulse ── */
.card-title-live { display: inline-flex; align-items: center; gap: 7px; }
.card-title-live::before { content: none; }
/* status colour drives both text and dot (currentColor); default = active/green */
.card-title-live { color: var(--success); }
.card-title-live[data-status="paused"] { color: var(--info); }
.card-title-live[data-status="expired"] { color: var(--ink-muted); }
.card-live {
  position: relative;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.card-live::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
  transform-origin: center;
  animation: card-live-pulse 2.2s ease-out infinite;
}
/* pulse only when active (default has no data-status = active) */
.card-title-live[data-status="paused"] .card-live::after,
.card-title-live[data-status="expired"] .card-live::after { display: none; }
@keyframes card-live-pulse {
  0% { transform: scale(1); opacity: 0.5; }
  70% { transform: scale(3.4); opacity: 0; }
  100% { transform: scale(3.4); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .card-live::after { animation: none; } }
