/* ==========================================================================
   Спроси карты — sprosikarty.ru
   Direction: One motif (лабиринт Ариадны и красная нить)
   ========================================================================== */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/cormorant.woff") format("woff");
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/onest-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/onest-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2116, U+2122;
}

/* --- Tokens: Dark theme (primary) --- */
:root {
  --bg: #0E282C;
  --surface: #112E33;
  --surface-2: #0F3B3F;
  --surface-deep: #091E21;
  --ink: #F3E6C4;
  --muted: #B5C4C0;
  --accent: #C9A24B;
  --accent-hover: #E4BD5C;
  --on-accent: #17120D;
  --disc: #C9A24B;
  --disc-ring: #0E282C;
  --btn-bg: #C9A24B;
  --btn-hover: #E4BD5C;
  --btn-ink: #17120D;
  --on-disc-ink: #17120D;
  --on-disc-btn: #0E282C;
  --on-disc-btn-hover: #15393E;
  --on-disc-btn-ink: #F3E6C4;
  --thread: #B63B38;

  /* Plan step colors (dark) */
  --plan-1: #112E33;
  --plan-1-foot: #0B2024;
  --plan-2: #0F3B3F;
  --plan-2-foot: #0A292C;
  --plan-3: #C9A24B;
  --plan-3-ink: #17120D;
  --plan-3-foot: #0E282C;
  --plan-3-foot-ink: #F3E6C4;

  /* FAQ card tones (dark) */
  --faq-a: #0E282C;
  --faq-b: #0F3B3F;
  --faq-c: #154348;

  /* Typography */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Onest", system-ui, -apple-system, sans-serif;

  /* Strict 5-step type scale */
  --t-display: clamp(42px, 5.5vw, 80px);
  --t-head: clamp(32px, 3.7vw, 54px);
  --t-sub: clamp(22px, 2.05vw, 30px);
  --t-body: 18px;
  --t-small: 15px;

  /* Geometry */
  --margin: clamp(20px, 5vw, 72px);
  --max-w: 1320px;
  --radius: 8px;
  --sec-gap: clamp(88px, 10vw, 144px);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 260ms;
  --t-reveal: 760ms;

  color-scheme: dark light;
}

/* --- Tokens: Light theme --- */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #F4EBD4;
    --surface: #FBF6EC;
    --surface-2: #E8DCB9;
    --surface-deep: #DDD0A8;
    --ink: #241810;
    --muted: #655240;
    --accent: #0F3B3F;
    --accent-hover: #164D52;
    --on-accent: #F3E6C4;
    --disc: #B58638;
    --disc-ring: #F4EBD4;
    --btn-bg: #0F3B3F;
    --btn-hover: #164D52;
    --btn-ink: #F3E6C4;
    --on-disc-ink: #17120D;
    --on-disc-btn: #0F3B3F;
    --on-disc-btn-hover: #164D52;
    --on-disc-btn-ink: #F3E6C4;
    --thread: #9B2D20;

    --plan-1: #FBF6EC;
    --plan-1-foot: #EAE0C7;
    --plan-2: #E8DCB9;
    --plan-2-foot: #D7C699;
    --plan-3: #0F3B3F;
    --plan-3-ink: #F3E6C4;
    --plan-3-foot: #092629;
    --plan-3-foot-ink: #F3E6C4;

    --faq-a: #F4EBD4;
    --faq-b: #E8DCB9;
    --faq-c: #DFD0A4;
  }
}

/* --- Reset & base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: var(--bg);
}

body {
  margin: 0;
  position: relative;
  overflow-x: clip;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

::selection {
  background-color: var(--btn-bg);
  color: var(--btn-ink);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  position: relative;
  z-index: 2;
  width: min(100%, calc(var(--max-w) + 2 * var(--margin)));
  margin-inline: auto;
  padding-inline: var(--margin);
}

.num {
  font-variant-numeric: lining-nums tabular-nums;
}

/* Inline currency glyphs (SVG moon and star) */
.ic-moon,
.ic-star {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  vertical-align: -0.1em;
  margin-left: 0.16em;
  flex-shrink: 0;
}

/* --- Buttons (one shape everywhere: card corner radius 8px, flat fill) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--t-small);
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background-color: var(--btn-bg);
  color: var(--btn-ink);
}

.btn-on-disc {
  background-color: var(--on-disc-btn);
  color: var(--on-disc-btn-ink);
}

.btn-subtle {
  background-color: var(--surface-2);
  color: var(--ink);
  min-height: 46px;
  padding: 0 20px;
}

.btn-small {
  min-height: 44px;
  padding: 0 20px;
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background-color: var(--btn-hover);
  }
  .btn-on-disc:hover {
    background-color: var(--on-disc-btn-hover);
  }
  .btn-subtle:hover {
    background-color: var(--btn-bg);
    color: var(--btn-ink);
  }
}

/* --- Header --- */
.site-header {
  position: relative;
  z-index: 20;
  padding-block: 20px;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: var(--t-sub);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}

.wordmark-mark {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-size: var(--t-small);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.25em;
  text-decoration-thickness: 0.08em;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease;
}

@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover {
    text-decoration-color: currentColor;
  }
}

.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background-color: var(--surface);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}

.theme-toggle:active {
  transform: scale(0.95);
}

@media (hover: hover) and (pointer: fine) {
  .theme-toggle:hover {
    background-color: var(--surface-2);
  }
}

.theme-toggle .icon-sun {
  display: none;
}

html[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

html[data-theme="light"] .theme-toggle .icon-sun {
  display: block;
}

/* --- Section 1: Hero — Giant cropped shape --- */
.hero {
  position: relative;
  overflow: clip;
  padding-top: clamp(20px, 3.5vw, 48px);
  padding-bottom: clamp(52px, 6.5vw, 88px);
  min-height: min(84svh, 800px);
  display: flex;
  align-items: center;
}

.hero-disc {
  position: absolute;
  top: 50%;
  left: 76%;
  width: min(110svh, 960px);
  height: min(110svh, 960px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.hero-disc svg {
  width: 100%;
  height: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(260px, 0.68fr);
  align-items: center;
  gap: clamp(28px, 4.5vw, 64px);
  width: 100%;
}

.hero-copy {
  max-width: 720px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--t-display);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}

.hero-title .line {
  display: block;
  overflow: clip;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.hero-title [data-line] {
  display: block;
}

.hero-lead {
  margin-top: clamp(22px, 2.8vw, 34px);
  font-size: var(--t-body);
  line-height: 1.55;
  max-width: 44ch;
  color: var(--ink);
  text-wrap: pretty;
}

.hero-cta-row {
  margin-top: clamp(24px, 3vw, 36px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.hero-fine {
  font-size: var(--t-small);
  color: var(--muted);
}

/* Hero live card stage (sitting over the giant golden labyrinth disc) */
.hero-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.live-card-shell {
  width: min(264px, 70vw);
  aspect-ratio: 420 / 735;
  border-radius: var(--radius);
  overflow: clip;
}

.live-card-btn {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  perspective: 1100px;
  border-radius: var(--radius);
  text-align: left;
}

.live-card-inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 600ms var(--ease-in-out);
}

.live-card-btn.is-flipped .live-card-inner {
  transform: rotateY(180deg);
}

.live-card-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--radius);
  overflow: clip;
  background-color: var(--surface-deep);
}

.live-card-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-card-front {
  transform: rotateY(180deg);
}

.live-card-meta {
  width: min(320px, 100%);
  padding: 16px 18px;
  border-radius: var(--radius);
  background-color: var(--bg);
  color: var(--ink);
  text-align: left;
}

.live-card-prompt {
  font-size: var(--t-small);
  color: var(--muted);
}

.live-card-result {
  display: none;
  margin-top: 8px;
}

.live-card-result.is-shown {
  display: block;
}

.live-card-name {
  font-family: var(--font-display);
  font-size: var(--t-sub);
  font-weight: 600;
  line-height: 1.08;
  color: var(--ink);
}

.live-card-meaning {
  margin-top: 6px;
  font-size: var(--t-small);
  line-height: 1.45;
  color: var(--ink);
}

.live-card-ask {
  margin-top: 12px;
  width: 100%;
}

/* --- Common section heading --- */
.section-head {
  font-family: var(--font-display);
  font-size: var(--t-head);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

/* --- Section 2: How it works — Many into one --- */
.how-section {
  background-color: var(--surface);
  padding-block: var(--sec-gap);
}

.how-top {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: end;
  gap: 24px 48px;
}

.how-lead {
  font-size: var(--t-body);
  max-width: 52ch;
  color: var(--ink);
  text-wrap: pretty;
}

.how-visual {
  margin-top: clamp(32px, 4vw, 52px);
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 28px;
}

.how-diagram {
  width: 100%;
  height: auto;
}

.how-spread-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.how-card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 420 / 735;
  border-radius: var(--radius);
  background-color: var(--surface-2);
}

.how-steps {
  margin-top: clamp(32px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 36px;
}

.how-step h3 {
  font-family: var(--font-display);
  font-size: var(--t-sub);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
}

.how-step p {
  margin-top: 10px;
  font-size: var(--t-body);
  color: var(--ink);
  max-width: 38ch;
  text-wrap: pretty;
}

/* --- Section 3: Showcase — Object on a disc --- */
.features-section {
  background-color: var(--bg);
  padding-block: var(--sec-gap);
  overflow: clip;
}

.features-layout {
  display: grid;
  grid-template-columns: minmax(230px, 3.6fr) minmax(0, 5fr) minmax(240px, 3.4fr);
  align-items: center;
  gap: 32px clamp(24px, 3vw, 44px);
}

.features-nav-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-self: end;
}

.features-heading {
  font-family: var(--font-display);
  font-size: var(--t-head);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feature-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 6px 0;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: var(--t-sub);
  font-weight: 600;
  line-height: 1.12;
  color: var(--muted);
  transition: color var(--t-hover) ease, transform var(--t-hover) var(--ease-out);
}

.feature-tab .tab-dot {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--muted);
  transition: color var(--t-hover) ease, transform var(--t-ui) var(--ease-out);
}

.feature-tab.is-active {
  color: var(--ink);
}

.feature-tab.is-active .tab-dot {
  color: var(--thread);
  transform: scale(1.2);
}

@media (hover: hover) and (pointer: fine) {
  .feature-tab:hover {
    color: var(--ink);
  }
}

.showcase-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}

.showcase-disc {
  position: absolute;
  width: min(470px, 90%);
  aspect-ratio: 1;
  pointer-events: none;
  z-index: 0;
}

.showcase-disc-svg {
  width: 100%;
  height: 100%;
  transition: transform 700ms var(--ease-expo);
}

.showcase-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.showcase-panel[hidden] {
  display: none;
}

.showcase-cards {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  width: 100%;
  max-width: 390px;
}

.showcase-img-main {
  width: 54%;
  height: auto;
  aspect-ratio: 420 / 735;
  border-radius: var(--radius);
  background-color: var(--surface-deep);
}

.showcase-img-side {
  width: 41%;
  height: auto;
  aspect-ratio: 420 / 735;
  border-radius: var(--radius);
  background-color: var(--surface-deep);
}

.showcase-img-photo {
  width: min(300px, 84%);
  height: auto;
  aspect-ratio: 5 / 6;
  border-radius: var(--radius);
  background-color: var(--surface-deep);
}

/* Right fact column */
.showcase-fact-col {
  align-self: center;
}

.showcase-fact-panel[hidden] {
  display: none;
}

.showcase-fact-title {
  font-family: var(--font-display);
  font-size: var(--t-sub);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
}

.showcase-fact-text {
  margin-top: 12px;
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--ink);
  max-width: 36ch;
  text-wrap: pretty;
}

.showcase-fact-cta {
  margin-top: 20px;
}

/* Telegram UI fragment inside Showcase & Final CTA (scoped under [data-ui]) */
[data-ui].tg-chip {
  width: min(360px, 100%);
  padding: 14px 16px;
  border-radius: 12px;
  background-color: #16232B;
  color: #F3EFE6;
  border: 1px solid rgba(243, 230, 196, 0.14);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.42;
}

[data-ui] .tg-sender {
  font-weight: 600;
  color: #E4BD5C;
  font-size: 14px;
  margin-bottom: 4px;
}

[data-ui] .tg-voice-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background-color: #0E181E;
}

[data-ui] .tg-play {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #C9A24B;
  color: #17120D;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-ui] .tg-waves {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 1;
  height: 22px;
}

[data-ui] .tg-waves span {
  display: block;
  width: 3px;
  border-radius: 2px;
  background-color: #C9A24B;
}

[data-ui] .tg-time {
  font-size: 13px;
  color: #B5C4C0;
  font-variant-numeric: tabular-nums;
}

/* --- Section 4: Spreads — One item per poster line --- */
.spreads-section {
  background-color: var(--surface-2);
  padding-block: var(--sec-gap);
}

.spreads-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px 32px;
  margin-bottom: clamp(28px, 3.8vw, 48px);
}

.spreads-sub {
  font-size: var(--t-body);
  color: var(--ink);
  max-width: 44ch;
}

.poster-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.poster-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px 28px;
  padding-block: 10px;
  text-decoration: none;
  color: var(--ink);
  transition: color var(--t-hover) ease, transform var(--t-hover) var(--ease-out);
}

.poster-title {
  font-family: var(--font-display);
  font-size: var(--t-display);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.poster-price {
  font-family: var(--font-body);
  font-size: var(--t-body);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--ink);
  font-variant-numeric: lining-nums tabular-nums;
}

@media (hover: hover) and (pointer: fine) {
  .poster-link:hover {
    color: var(--accent);
    transform: translateX(8px);
  }
  .poster-link:hover .poster-price {
    color: var(--accent);
  }
}

.spreads-note {
  margin-top: clamp(24px, 3vw, 40px);
  font-size: var(--t-small);
  color: var(--muted);
}

/* --- Section 5: Pricing — Plans that step up --- */
.pricing-section {
  background-color: var(--bg);
  padding-block: var(--sec-gap);
}

.pricing-top {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  gap: 20px 40px;
  margin-bottom: clamp(32px, 4vw, 52px);
}

.pricing-note {
  font-size: var(--t-body);
  color: var(--ink);
  max-width: 46ch;
}

.plans-grid {
  display: grid;
  grid-template-columns: 0.88fr 1fr 1.14fr;
  gap: 12px;
  align-items: end;
}

.plan-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius);
  overflow: clip;
  background-color: var(--plan-1);
  color: var(--ink);
}

.plan-tile--1 {
  background-color: var(--plan-1);
  min-height: 410px;
}

.plan-tile--2 {
  background-color: var(--plan-2);
  min-height: 510px;
}

.plan-tile--3 {
  background-color: var(--plan-3);
  color: var(--plan-3-ink);
  min-height: 620px;
}

.plan-body {
  padding: 28px 26px 24px;
}

.plan-name {
  font-family: var(--font-display);
  font-size: var(--t-sub);
  font-weight: 600;
  line-height: 1.08;
}

.plan-price {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: var(--t-head);
  font-weight: 600;
  line-height: 1.02;
  font-variant-numeric: lining-nums tabular-nums;
}

.plan-list {
  list-style: none;
  padding: 0;
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: var(--t-small);
  line-height: 1.48;
}

.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.plan-bullet {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  flex-shrink: 0;
}

.plan-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 26px;
  font-size: var(--t-small);
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  transition: background-color var(--t-hover) ease;
}

.plan-tile--1 .plan-cta {
  background-color: var(--plan-1-foot);
}

.plan-tile--2 .plan-cta {
  background-color: var(--plan-2-foot);
}

.plan-tile--3 .plan-cta {
  background-color: var(--plan-3-foot);
  color: var(--plan-3-foot-ink);
}

@media (hover: hover) and (pointer: fine) {
  .plan-tile--1 .plan-cta:hover,
  .plan-tile--2 .plan-cta:hover {
    background-color: var(--btn-bg);
    color: var(--btn-ink);
  }
  .plan-tile--3 .plan-cta:hover {
    background-color: var(--on-disc-btn-hover);
  }
}

/* --- Section 6: FAQ — Tabbed index cards --- */
.faq-section {
  background-color: var(--surface);
  padding-block: var(--sec-gap);
}

.faq-inner {
  max-width: 960px;
  margin-inline: auto;
}

.faq-stack {
  margin-top: clamp(32px, 4vw, 48px);
  display: flex;
  flex-direction: column;
}

.faq-card {
  position: relative;
  color: var(--ink);
  margin-top: -16px;
  --tab-x: 0%;
  --tab-w: 168px;
  clip-path: polygon(
    var(--tab-x) 0,
    calc(var(--tab-x) + var(--tab-w)) 0,
    calc(var(--tab-x) + var(--tab-w) + 14px) 38px,
    100% 38px,
    100% 100%,
    0 100%,
    0 38px,
    max(0px, calc(var(--tab-x) - 10px)) 38px
  );
  transition: transform var(--t-ui) var(--ease-out);
}

.faq-card:first-child {
  margin-top: 0;
}

.faq-card--a {
  background-color: var(--faq-a);
}

.faq-card--b {
  background-color: var(--faq-b);
}

.faq-card--c {
  background-color: var(--faq-c);
}

.faq-card:nth-child(1) { --tab-x: 0%; z-index: 1; }
.faq-card:nth-child(2) { --tab-x: 14%; z-index: 2; }
.faq-card:nth-child(3) { --tab-x: 28%; z-index: 3; }
.faq-card:nth-child(4) { --tab-x: 42%; z-index: 4; }
.faq-card:nth-child(5) { --tab-x: 56%; z-index: 5; }
.faq-card:nth-child(6) { --tab-x: 70%; z-index: 6; }

.faq-trigger {
  width: 100%;
  text-align: left;
  display: block;
  padding: 0 0 24px;
}

.faq-tab-label {
  position: relative;
  left: var(--tab-x);
  width: var(--tab-w);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding-inline: 12px;
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.faq-question {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-inline: 28px;
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: var(--t-body);
  font-weight: 600;
  line-height: 1.32;
  color: var(--ink);
}

.faq-plus {
  font-size: var(--t-sub);
  line-height: 1;
  color: var(--accent);
  transition: transform var(--t-ui) var(--ease-out);
  flex-shrink: 0;
}

.faq-card.is-open .faq-plus {
  transform: rotate(45deg);
}

.faq-body {
  padding: 0 28px 34px;
  max-width: 58ch;
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--ink);
}

.faq-body[hidden] {
  display: none;
}

/* --- Section 7: Final CTA — First step, already open --- */
.cta-section {
  background-color: var(--disc);
  color: var(--on-disc-ink);
  padding-block: clamp(72px, 9vw, 128px);
}

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 460px);
  align-items: center;
  gap: 40px clamp(32px, 5vw, 72px);
}

.cta-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 22px;
}

.cta-heading {
  font-family: var(--font-display);
  font-size: var(--t-display);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.025em;
  color: var(--on-disc-ink);
  text-wrap: balance;
}

.cta-lead {
  font-size: var(--t-body);
  line-height: 1.52;
  max-width: 40ch;
  color: var(--on-disc-ink);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

.cta-handle-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 12px 0 18px;
  border-radius: var(--radius);
  background-color: rgba(23, 18, 13, 0.12);
  color: var(--on-disc-ink);
  font-size: var(--t-small);
  font-weight: 600;
}

.copy-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 6px;
  background-color: var(--on-disc-btn);
  color: var(--on-disc-btn-ink);
  font-size: var(--t-small);
  font-weight: 600;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}

.copy-btn:active {
  transform: scale(0.96);
}

.cta-qr-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 6px;
}

.cta-qr-img {
  width: 112px;
  height: 112px;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.cta-qr-note {
  font-size: var(--t-small);
  line-height: 1.45;
  max-width: 24ch;
  color: var(--on-disc-ink);
}

/* Telegram first-screen preview (root has data-ui) */
[data-ui].tg-preview {
  width: 100%;
  border-radius: 14px;
  background-color: #132229;
  color: #F3EFE6;
  border: 1px solid rgba(243, 230, 196, 0.16);
  box-shadow: 0 24px 56px -24px rgba(14, 24, 28, 0.55);
  overflow: hidden;
  font-family: var(--font-body);
}

[data-ui] .tg-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background-color: #0D191F;
  border-bottom: 1px solid rgba(243, 230, 196, 0.1);
}

[data-ui] .tg-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #0E282C;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-ui] .tg-bot-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  color: #F3E6C4;
}

[data-ui] .tg-bot-sub {
  font-size: 13px;
  color: #B5C4C0;
}

[data-ui] .tg-chat-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

[data-ui] .tg-bubble {
  padding: 14px 16px;
  border-radius: 12px;
  background-color: #192E36;
  font-size: 15px;
  line-height: 1.48;
  color: #F3EFE6;
}

[data-ui] .tg-bubble p + p {
  margin-top: 8px;
}

[data-ui] .tg-bubble ul {
  padding-left: 18px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

[data-ui] .tg-inline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

[data-ui] .tg-inline-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 8px;
  background-color: #1F3943;
  color: #F3E6C4;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  transition: background-color var(--t-hover) ease;
}

@media (hover: hover) and (pointer: fine) {
  [data-ui] .tg-inline-btn:hover {
    background-color: #C9A24B;
    color: #17120D;
  }
}

/* --- Section 8: Footer — The mark, built large --- */
.site-footer {
  background-color: var(--bg);
  color: var(--ink);
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

.footer-mark {
  width: 100%;
  height: auto;
}

.footer-grid {
  margin-top: clamp(40px, 5vw, 60px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.5fr);
  gap: 28px 36px;
}

.footer-col-title {
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: var(--t-small);
}

.footer-links a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.22em;
  transition: color var(--t-hover) ease, text-decoration-color var(--t-hover) ease;
}

@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover {
    color: var(--ink);
    text-decoration-color: currentColor;
  }
}

.footer-disclaimer {
  font-size: var(--t-small);
  line-height: 1.5;
  color: var(--muted);
  max-width: 42ch;
}

.footer-bottom {
  margin-top: clamp(36px, 4.5vw, 52px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: var(--t-small);
  color: var(--muted);
}

/* --- Cookie consent bar (fixed overlay, hidden when METRIKA_ID is empty) --- */
.cookie-bar {
  position: fixed;
  left: var(--margin);
  right: var(--margin);
  bottom: 20px;
  z-index: 50;
  max-width: 780px;
  margin-inline: auto;
  padding: 18px 22px;
  border-radius: var(--radius);
  background-color: var(--surface-2);
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
}

.cookie-bar[hidden] {
  display: none;
}

.cookie-text {
  font-size: var(--t-small);
  line-height: 1.45;
  max-width: 50ch;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --- Secondary pages (privacy, terms, 404) --- */
.legal-page {
  padding-top: clamp(32px, 5vw, 64px);
  padding-bottom: clamp(72px, 9vw, 120px);
}

.legal-head {
  max-width: 780px;
}

.legal-title {
  font-family: var(--font-display);
  font-size: var(--t-display);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.legal-meta {
  margin-top: 14px;
  font-size: var(--t-small);
  color: var(--muted);
}

.legal-toc {
  margin-top: 32px;
  max-width: 760px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background-color: var(--surface);
}

.legal-toc summary {
  font-family: var(--font-display);
  font-size: var(--t-sub);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.legal-toc ol {
  margin-top: 14px;
  padding-left: 22px;
  display: grid;
  gap: 6px;
  font-size: var(--t-small);
}

.legal-toc a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.legal-body {
  margin-top: 40px;
  max-width: 68ch;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.legal-body h2 {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: var(--t-sub);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
}

.legal-body ul {
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-body a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* 404 layout */
.notfound-wrap {
  min-height: calc(100svh - 140px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  align-items: center;
  gap: 40px 64px;
  padding-block: 48px;
}

.notfound-card {
  width: min(260px, 70vw);
  height: auto;
  aspect-ratio: 420 / 735;
  border-radius: var(--radius);
  transform: rotate(180deg);
  justify-self: center;
}

.notfound-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* --- Motion layer (gated behind html.js and prefers-reduced-motion: no-preference) --- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-title [data-line] {
    transform: translateY(105%);
    animation: hero-line-up 780ms var(--ease-expo) forwards;
    animation-delay: calc(80ms + var(--i) * 90ms);
  }

  .js .hero [data-load] {
    opacity: 0;
    transform: translateY(14px);
    animation: hero-fade-up 520ms var(--ease-out) forwards;
    animation-delay: var(--d, 360ms);
  }

  .js .shutter {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 1100ms var(--ease-in-out);
  }

  .js .shutter img {
    transform: scale(1.12);
    transition: transform 1450ms var(--ease-soft);
  }

  .js .shutter.is-in {
    clip-path: inset(0);
  }

  .js .shutter.is-in img {
    transform: none;
  }

  .js .hero-disc svg {
    animation: disc-drift 75s linear infinite;
  }

  .js .rv {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity var(--t-reveal) var(--ease-expo), transform var(--t-reveal) var(--ease-expo);
    transition-delay: var(--rv-d, 0ms);
  }

  .js .rv.rv-in {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-line-up {
  to {
    transform: none;
  }
}

@keyframes hero-fade-up {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes disc-drift {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* --- Responsive: Tablet (<= 1040px) --- */
@media (max-width: 1040px) {
  .hero-disc {
    left: 88%;
    width: min(88svh, 700px);
    height: min(88svh, 700px);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(230px, 290px);
  }

  .how-top,
  .pricing-top,
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .how-visual {
    grid-template-columns: 1fr;
  }

  .features-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .features-nav-col {
    grid-column: 1 / -1;
    align-self: start;
  }

  .feature-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 16px;
  }

  .plans-grid {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .plan-tile--1,
  .plan-tile--2,
  .plan-tile--3 {
    min-height: 0;
  }

  .faq-card {
    --tab-w: 136px;
  }

  .faq-card:nth-child(1) { --tab-x: 0%; }
  .faq-card:nth-child(2) { --tab-x: 13%; }
  .faq-card:nth-child(3) { --tab-x: 26%; }
  .faq-card:nth-child(4) { --tab-x: 39%; }
  .faq-card:nth-child(5) { --tab-x: 52%; }
  .faq-card:nth-child(6) { --tab-x: 66%; }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --- Responsive: Phone (<= 700px) --- */
@media (max-width: 700px) {
  :root {
    --t-display: clamp(38px, 10.5vw, 48px);
    --t-head: clamp(30px, 8.2vw, 38px);
    --t-sub: 22px;
    --t-body: 16px;
    --t-small: 15px;
    --margin: 18px;
    --sec-gap: 72px;
  }

  .site-header {
    padding-block: 14px;
  }

  .header-right {
    gap: 12px;
  }

  .site-nav {
    gap: 14px;
  }

  .site-nav a.nav-hide-sm {
    display: none;
  }

  .hero {
    min-height: 0;
    padding-top: 16px;
    padding-bottom: 52px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-disc {
    top: auto;
    bottom: -36vw;
    left: 50%;
    width: 126vw;
    height: 126vw;
    transform: translateX(-50%);
  }

  .live-card-shell {
    width: min(216px, 58vw);
  }

  .how-steps {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .how-spread-trio {
    gap: 8px;
  }

  .features-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 12px;
  }

  .showcase-stage {
    min-height: 360px;
  }

  .showcase-img-photo {
    width: 240px;
  }

  .poster-link {
    flex-direction: column;
    gap: 4px;
    padding-block: 10px;
  }

  .faq-card {
    --tab-w: 112px;
    margin-top: -12px;
  }

  .faq-card:nth-child(1) { --tab-x: 0%; }
  .faq-card:nth-child(2) { --tab-x: 10%; }
  .faq-card:nth-child(3) { --tab-x: 20%; }
  .faq-card:nth-child(4) { --tab-x: 30%; }
  .faq-card:nth-child(5) { --tab-x: 40%; }
  .faq-card:nth-child(6) { --tab-x: 52%; }

  .faq-trigger {
    padding: 0 0 20px;
  }

  .faq-question {
    padding-inline: 18px;
  }

  .faq-body {
    padding: 0 18px 26px;
  }

  .cta-qr-row {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .notfound-wrap {
    grid-template-columns: 1fr;
  }
}

@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;
  }
}
