@import 'tailwindcss';

/* ============================================================
   TOKENS — ported from cs-standart.ru design system
   (docs/design/cs-standart-design-tokens.md)
   ============================================================ */
:root {
  /* surfaces */
  --bg: #f2f2f2;
  --surface: #ffffff;
  --surface-2: #e8e8e8;
  --surface-dark: #212121;
  --surface-sand: #e8e2d9;
  /* brand */
  --accent: #f5b874;
  --accent-hover: #d09c63;
  --accent-active: #c4935d;
  --accent-deep: #9c6430;
  --accent-tint: #fef4ea;
  --accent-border: #fadfc0;
  --on-accent: #212121;
  /* ink */
  --ink-token: #212121;
  --ink-on-dark: #f2f2f2;
  --border-token: #d7d7d7;
  --muted-token: rgba(33, 33, 33, .6);
  --muted-2: rgba(33, 33, 33, .55);
  --muted-3: rgba(33, 33, 33, .45);
  --rule: rgba(33, 33, 33, .12);
  --hairline: rgba(33, 33, 33, .06);
  --rule-dark: rgba(255, 255, 255, .12);
  --muted-dark: rgba(242, 242, 242, .68);
  /* radii */
  --r-xs: .12rem;
  --r-sm: .2rem;
  --r-md: .35rem;
  --r-lg: .5rem;
  --r-card: .75rem;
  --r-panel: 1rem;
  /* shadows */
  --sh-sm: 0 .75rem 1.75rem rgba(33, 33, 33, .08);
  --sh-md: 0 1rem 2.5rem rgba(33, 33, 33, .12);
  --sh-lg: 0 1.25rem 3.5rem rgba(33, 33, 33, .16);
  --sh-inset: inset 0 0 0 1px rgba(33, 33, 33, .06);
  /* type */
  --font-sans: 'Manrope Variable', Manrope, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Playfair Display Variable', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --track-title: -.045em;
  --track-body: -.02em;
  --track-micro: .055em;
  /* motion */
  --dur-ui: 180ms;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --dur-reveal: .85s;
  --dur-line: 1s;
  /* layout */
  --section-gap: clamp(4.5rem, 9vw, 9rem);
  --nav-h: 5.5rem;
}

/* ============================================================
   BASE
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  color: var(--ink-token);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: var(--track-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-weight: 600; }
em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.03em; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink-token); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.icon { flex-shrink: 0; }

.shell { width: min(1320px, 100% - 48px); margin-inline: auto; }

/* ============================================================
   EFFECTS — grain & pixel trail (ported from cs-standart)
   ============================================================ */
.grain {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url('../noise.avif');
  background-size: 125px; background-repeat: repeat; background-position: 50%;
  opacity: .35; filter: contrast(125%) brightness(70%);
  border-radius: inherit;
}
.grain-light { opacity: .3; }
.grain-dark { opacity: .35; }
section:has(> .grain), .trust-stage:has(> .grain), .marquee-band:has(> .grain) { position: relative; }
section:has(> .grain) > :not(.grain) { position: relative; z-index: 2; }
/* decorative layers inside sections stay out of flow — the rule above
   would otherwise make them relative and stretch the section (hero v1/v2 bug) */
section > .hero-grid, section > .hero-wash { position: absolute !important; z-index: 0 !important; }

.pixel-trail { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.pixel-trail canvas { display: block; width: 100%; height: 100%; pointer-events: none; }
@media (max-width: 991.98px), (pointer: coarse) { .pixel-trail { display: none; } }

/* ============================================================
   MOTION — reveals (IntersectionObserver in MotionProvider)
   ============================================================ */
.js-motion [data-anim="fade-up"],
.js-motion [data-anim="stage"] {
  opacity: 0; transform: translateY(22px);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
}
.js-motion [data-anim="fade-up"].is-revealed,
.js-motion [data-anim="stage"].is-revealed { opacity: 1; transform: none; }

.js-motion [data-anim="stagger"] [data-anim-item],
.js-motion [data-anim="stagger"] > *:not([data-anim-item]) {
  opacity: 0; transform: translateY(22px);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
}
.js-motion [data-anim="stagger"] .is-revealed { opacity: 1; transform: none; }

.js-motion [data-anim="rule"] { transform: scaleX(0); transform-origin: left center; transition: transform 1.1s var(--ease-out); }
.js-motion [data-anim="rule"].is-revealed { transform: scaleX(1); }

.line-mask { display: block; overflow: hidden; padding-bottom: .18em; margin-bottom: -.18em; }
.line-mask > span { display: block; }
.js-motion [data-anim="lines"] .line-mask > span { transform: translateY(108%); transition: transform var(--dur-line) var(--ease-out); }
.js-motion [data-anim="lines"].is-revealed .line-mask > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============================================================
   SCROLL PROGRESS — top hairline, accent fill
   ============================================================ */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 40; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; background: var(--accent); transform: scaleX(var(--scroll-progress, 0)); transform-origin: left; }

/* ============================================================
   NAV — floating pill (cs-standart .new-nav pattern)
   ============================================================ */
#nav-scroll-sentinel { position: absolute; top: 0; height: 1px; width: 1px; pointer-events: none; }
.site-nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 20; display: flex; justify-content: center; padding: 0 20px; pointer-events: none; }
.nav-shell {
  width: min(100%, 64rem); padding: 0 22px; border-radius: var(--r-card);
  background: rgba(255, 255, 255, .94); box-shadow: var(--sh-inset);
  pointer-events: auto; transition: box-shadow var(--dur-ui) var(--ease-out);
}
.site-nav.is-scrolled .nav-shell { box-shadow: var(--sh-inset), 0 0 2.5em rgba(0, 0, 0, .1); }
.nav-row { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink-token); text-decoration: none; font-size: 14px; font-weight: 600; transition: color var(--dur-ui) var(--ease-out); }
.nav-links a:hover { color: var(--accent-deep); }
.nav-links a.nav-quiet, .nav-mobile-inner a.nav-quiet { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--r-md); color: var(--on-accent); background: var(--accent); font-weight: 700; transition: transform var(--dur-ui) var(--ease-out), background var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out); }
.nav-links a.nav-quiet:hover { transform: translateY(-1px); color: var(--on-accent); background: var(--accent-hover); box-shadow: var(--sh-sm); }
.nav-mobile-inner a.nav-quiet { justify-content: center; min-height: 46px; margin-top: 6px; }
.nav-mobile-inner a.nav-quiet:hover { color: var(--on-accent); background: var(--accent-hover); }
.nav-burger { display: none; min-height: 44px; min-width: 44px; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: var(--r-md); color: var(--ink-token); background: transparent; cursor: pointer; }
.nav-mobile { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .34s var(--ease-out), visibility 0s linear .34s; }
.nav-mobile.is-open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .34s var(--ease-out), visibility 0s; }
.nav-mobile-inner { overflow: hidden; display: flex; flex-direction: column; gap: 2px; padding-bottom: 0; }
.nav-mobile.is-open .nav-mobile-inner { padding-bottom: 14px; }
.nav-mobile-inner a { display: flex; align-items: center; min-height: 46px; padding: 0 12px; border-radius: var(--r-md); color: var(--ink-token); text-decoration: none; font-size: 15px; font-weight: 600; }
.nav-mobile-inner a:hover { background: var(--accent-tint); }

/* ============================================================
   BRAND
   ============================================================ */
.brand { display: flex; align-items: center; gap: 18px; color: inherit; text-decoration: none; font-weight: 740; letter-spacing: -.02em; }
.brand-logo { width: 150px; height: auto; display: block; }
.product-name { display: flex; flex-direction: column; gap: 1px; padding-left: 18px; border-left: 1px solid var(--border-token); line-height: 1.1; }
.product-name b { font-size: 14px; }
.product-name small { color: var(--muted-token); font-size: 10px; font-weight: 600; letter-spacing: .02em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-card); color: white; background: var(--accent); font-size: 13px; letter-spacing: .08em; }

/* ============================================================
   TYPOGRAPHY PATTERNS — eyebrow / section heads
   ============================================================ */
.eyebrow, .hero-eyebrow {
  display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.5rem;
  color: var(--accent-deep); font-size: 12px; font-weight: 700;
  letter-spacing: var(--track-micro); text-transform: uppercase;
}
.eyebrow-mark { width: .55rem; height: .55rem; flex-shrink: 0; border-radius: var(--r-xs); background: var(--accent); }
.section-rule { height: 1px; background: var(--rule); margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); column-gap: clamp(2rem, 4vw, 4rem); align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { max-width: 640px; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.04; letter-spacing: var(--track-title); }
.section-head h2 em { color: var(--accent-deep); }
.section-lead { margin: 0 0 6px; color: var(--muted-token); font-size: clamp(15px, 1.2vw, 18px); font-weight: 600; line-height: 1.55; }

/* ============================================================
   HERO — grid canvas + wash + floating document fan
   ============================================================ */
.hero { position: relative; overflow: hidden; padding: calc(var(--nav-h) + 24px) 0 clamp(44px, 6vw, 76px); text-align: center; }
.hero-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(33, 33, 33, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(33, 33, 33, .07) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(115% 90% at 50% 8%, #000 28%, transparent 72%);
  -webkit-mask-image: radial-gradient(115% 90% at 50% 8%, #000 28%, transparent 72%);
}
.hero-wash {
  position: absolute; left: 50%; top: -30rem; z-index: 0; transform: translateX(-50%);
  width: 72rem; height: 40rem; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(245, 184, 116, .3), rgba(245, 184, 116, .1) 58%, rgba(245, 184, 116, 0) 88%);
  animation: wash-breathe 9s var(--ease-in-out) infinite;
}
@keyframes wash-breathe {
  0%, 100% { opacity: .85; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.07); }
}
.hero-inner { position: relative; z-index: 2; width: min(880px, 100% - 48px); margin-inline: auto; display: flex; flex-direction: column; align-items: center; }
.hero-eyebrow { padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .8); box-shadow: var(--sh-inset); }
.hero h1 { max-width: 860px; font-size: clamp(46px, 7vw, 92px); line-height: .96; letter-spacing: -.055em; font-weight: 600; text-wrap: balance; }
.hero h1 em { color: var(--accent-deep); }
.hero-lead { max-width: 620px; margin: 24px 0 0; color: var(--muted-token); font-size: clamp(15.5px, 1.4vw, 18.5px); font-weight: 500; line-height: 1.55; }
.hero-benefits { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 24px 0 0; padding: 0; }
.hero-benefits span { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 14px; border-radius: 999px; color: var(--ink-token); background: var(--surface); box-shadow: var(--sh-inset); font-size: 12.5px; font-weight: 700; transition: transform var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out); }
.hero-benefits span:hover { transform: translateY(-2px); box-shadow: var(--sh-inset), var(--sh-sm); }
.hero-benefits .icon { color: var(--accent-deep); }
.hero-form { width: 100%; max-width: 660px; margin-top: 34px; border-radius: var(--r-panel); background: var(--surface); box-shadow: var(--sh-lg), var(--sh-inset); overflow: hidden; }
.hero-form .intake-card { border-radius: 0; box-shadow: none; }
.hero-proof { max-width: none; display: flex; gap: 13px; align-items: flex-start; margin-top: 0; padding: 16px clamp(20px, 3vw, 30px); border-top: 1px solid var(--rule); border-radius: 0; background: transparent; box-shadow: none; text-align: left; }
.proof-icon { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: var(--r-md); color: var(--on-accent); background: var(--accent); }
.proof-copy strong { color: var(--ink-token); font-size: 13.5px; }
.proof-copy p { margin: 4px 0 0; color: var(--muted-token); font-size: 13px; line-height: 1.6; }

/* ============================================================
   MARQUEE — dark phrase band under hero
   ============================================================ */
.marquee-band { position: relative; overflow: hidden; padding: 18px 0; background: var(--surface-dark); color: var(--ink-on-dark); }
.marquee-band > .grain { border-radius: 0; }
.marquee-track { display: flex; width: max-content; animation: marquee-roll 36s linear infinite; }
.marquee-group { display: flex; align-items: center; gap: 0; flex-shrink: 0; }
.marquee-group span { display: inline-flex; align-items: center; gap: 2.5rem; padding: 0 1.25rem; font-family: var(--font-sans); font-style: normal; font-weight: 700; font-size: 19px; letter-spacing: -.02em; white-space: nowrap; opacity: .9; }
.mq-mark { width: .5rem; height: .5rem; border-radius: var(--r-xs); background: var(--accent); flex-shrink: 0; }
@keyframes marquee-roll { to { transform: translateX(-50%); } }

/* ============================================================
   INTAKE FORM (StartCaseForm) — 3-step stepper, shared with /case/new
   ============================================================ */
.intake-card { width: 100%; padding: clamp(20px, 3vw, 30px); border-radius: var(--r-panel); background: var(--surface); box-shadow: var(--sh-lg), var(--sh-inset); text-align: left; }

.intake-rail { display: flex; align-items: center; margin-bottom: 20px; padding: 14px 16px 12px; border-radius: var(--r-lg); background: var(--bg); box-shadow: var(--sh-inset); }
.rail-step { position: relative; flex: 1; display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--muted-3); font-size: 12px; font-weight: 750; cursor: default; }
.rail-step:last-child { flex: 0 0 auto; }
.rail-step:not(:disabled) { cursor: pointer; color: var(--accent-deep); }
.rail-step:not(:disabled):hover .rail-chip { background: var(--accent-border); }
.rail-chip { display: grid; place-items: center; width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; color: var(--muted-3); background: rgba(33, 33, 33, .07); font-size: 11px; font-weight: 800; transition: background var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out); }
.rail-step.is-current { color: var(--ink-token); }
.rail-step.is-current .rail-chip { color: var(--on-accent); background: var(--accent); box-shadow: 0 0 0 4px rgba(245, 184, 116, .28); }
.rail-step.is-done .rail-chip { color: var(--accent-deep); background: var(--accent-tint); box-shadow: var(--sh-inset); }
.rail-line { position: relative; flex: 1; min-width: 20px; height: 2px; margin: 0 10px; border-radius: 1px; background: rgba(33, 33, 33, .1); overflow: hidden; }
.rail-line::after { content: ''; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.rail-step.is-done .rail-line::after { transform: scaleX(1); }

.intake-step { animation: step-in .42s var(--ease-out); }
.intake-step[data-dir="-1"] { animation-name: step-back; }
@keyframes step-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes step-back { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }

.intake-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.intake-heading span { color: var(--accent-deep); font-size: 10.5px; font-weight: 800; letter-spacing: var(--track-micro); text-transform: uppercase; }
.intake-heading strong { font-size: 18px; letter-spacing: -.02em; }

.mode-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mode-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: row; align-items: center; gap: 12px;
  min-height: 0; padding: 14px 16px;
  border: 0; border-radius: var(--r-card); color: var(--ink-token);
  background: var(--bg); box-shadow: var(--sh-inset);
  font: inherit; text-align: left; cursor: pointer;
  transition: transform var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out), background var(--dur-ui) var(--ease-out);
}
.mode-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(245, 184, 116, .3), transparent 65%);
  transition: opacity var(--dur-ui) var(--ease-out);
}
.mode-card:hover { transform: translateY(-3px); box-shadow: var(--sh-inset), var(--sh-sm); }
.mode-card:hover::before { opacity: 1; }
.mode-card:active { transform: scale(.98); }
.mode-card.is-selected { background: var(--accent-tint); box-shadow: inset 0 0 0 1.5px var(--accent), var(--sh-sm); }
.mode-card.is-selected::before { opacity: .55; }
.mode-icon { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: var(--r-md); color: var(--on-accent); background: var(--accent); }
.mode-card.is-selected .mode-icon { background: var(--ink-token); color: var(--accent); }
.mode-title { font-size: 13.5px; font-weight: 750; letter-spacing: -.02em; line-height: 1.3; }
.mode-go { display: grid; place-items: center; width: 26px; height: 26px; flex-shrink: 0; margin-left: auto; border-radius: 50%; color: var(--accent-deep); background: transparent; box-shadow: var(--sh-inset); opacity: .55; transition: opacity var(--dur-ui) var(--ease-out), background var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out); }
.mode-card:hover .mode-go { opacity: 1; transform: translateX(2px); }
.mode-card.is-selected .mode-go { opacity: 1; color: var(--ink-on-dark); background: var(--ink-token); box-shadow: none; }

textarea { width: 100%; resize: vertical; min-height: 100px; padding: 14px 16px; border: 0; border-radius: var(--r-md); color: var(--ink-token); background: var(--bg); font: inherit; font-size: 14.5px; line-height: 1.45; outline: none; transition: box-shadow var(--dur-ui) var(--ease-out); }
input { width: 100%; min-height: 48px; padding: 0 16px; border: 0; border-radius: var(--r-md); color: var(--ink-token); background: var(--bg); font: inherit; font-size: 14.5px; outline: none; transition: box-shadow var(--dur-ui) var(--ease-out); }
textarea::placeholder, input::placeholder { color: rgba(33, 33, 33, .4); }
textarea:focus, input:focus { box-shadow: 0 0 0 3px rgba(245, 184, 116, .45); }

button, .file-button {
  min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  border: 0; border-radius: var(--r-md); padding: 0 24px;
  color: #fff; background: var(--ink-token);
  font: inherit; font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; cursor: pointer;
  transition: filter var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out), background var(--dur-ui) var(--ease-out), border-color var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  button:hover { filter: brightness(1.18); }
}
button:active { transform: scale(.97); }
button:disabled { cursor: not-allowed; opacity: .55; }
button.secondary { color: var(--ink-token); box-shadow: var(--sh-inset); background: var(--surface); }
button.secondary:hover { filter: none; background: var(--surface-2); }
.cta-icon { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: var(--r-sm); background: var(--accent); color: var(--on-accent); flex-shrink: 0; transition: transform var(--dur-ui) var(--ease-out); }
.primary-cta:hover .cta-icon, .step-next:hover .cta-icon { transform: translateX(3px); }

.start-field label { display: block; margin: 0 0 8px; font-size: 13.5px; font-weight: 750; }
.optional-label { margin-top: 16px !important; }
.optional-label span, .optional-materials summary span { margin-left: 5px; color: var(--muted-3); font-size: 10.5px; font-weight: 600; }
.field-help { margin: 8px 0 0; color: var(--muted-2); font-size: 11.5px; line-height: 1.5; }
.file-drop { min-height: 120px; display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 20px; border: 1px dashed var(--border-token); border-radius: var(--r-lg); background: var(--bg); cursor: pointer; text-align: center; transition: border-color var(--dur-ui) var(--ease-out), background var(--dur-ui) var(--ease-out); }
.file-drop:hover { border-color: var(--accent-hover); background: var(--accent-tint); }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-drop strong { font-size: 14px; }
.file-drop span { color: var(--muted-2); font-size: 11.5px; font-weight: 500; }

.step-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.step-back { min-height: 44px; padding: 0 16px; color: var(--muted-token); background: transparent; box-shadow: var(--sh-inset); font-size: 13px; }
.step-back:hover { filter: none; color: var(--ink-token); background: var(--bg); }
.step-back .icon { transition: transform var(--dur-ui) var(--ease-out); }
.step-back:hover .icon { transform: translateX(-3px); }
.step-next { min-height: 48px; padding: 0 14px 0 22px; justify-content: space-between; gap: 1.4rem; font-size: 14.5px; }

.purpose-choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 4px; padding: 0; border: 0; }
.purpose-choice legend { width: 100%; margin-bottom: 12px; padding: 0; font-size: 13.5px; font-weight: 750; }
.purpose-choice label { position: relative; display: flex; align-items: center; justify-content: center; min-height: 96px; padding: 14px; border-radius: var(--r-card); color: rgba(33, 33, 33, .72); background: var(--bg); box-shadow: var(--sh-inset); font-size: 13.5px; font-weight: 700; text-align: center; cursor: pointer; transition: background var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out); }
.purpose-choice label:hover { transform: translateY(-2px); color: var(--ink-token); box-shadow: var(--sh-inset), var(--sh-sm); }
.purpose-choice label:has(input:checked) { color: var(--on-accent); background: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent-hover); }
.purpose-choice label:has(input:focus-visible) { outline: 2px solid var(--ink-token); outline-offset: 2px; }
.purpose-choice input { position: absolute; width: 1px; min-height: 1px; opacity: 0; }

.primary-cta { flex: 1; min-height: 52px; justify-content: space-between; padding: 0 14px 0 24px; font-size: 15px; }
.form-note { margin: 16px 0 0; color: var(--muted-2); font-size: 12.5px; line-height: 1.55; }
.form-note b { color: var(--ink-token); }
.form-error { margin: 12px 0 0; color: #b42318; font-size: 13px; font-weight: 600; }
.inline-link, .debug-link { display: inline-block; margin-top: 10px; color: var(--accent-deep); font-weight: 700; text-underline-offset: 4px; }
.file-button { padding: 0 16px; color: var(--ink-token); box-shadow: var(--sh-inset); background: var(--surface); }
.file-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }

/* ============================================================
   OUTCOME STRIP — «Первый результат»
   ============================================================ */
.outcome-section { padding: clamp(40px, 6vw, 72px) 0; }
.outcome-strip { display: grid; grid-template-columns: 1.15fr repeat(3, 1fr); gap: 10px; }
.outcome-strip > div { position: relative; overflow: hidden; min-height: 158px; padding: 24px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--sh-inset); transition: transform var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out); }
.outcome-strip > div:hover { transform: translateY(-3px); box-shadow: var(--sh-inset), var(--sh-sm); }
.outcome-strip > div:first-child { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.outcome-strip > div:first-child:hover { box-shadow: var(--sh-sm); }
.outcome-strip small, .outcome-strip span { display: block; margin-bottom: 22px; color: var(--accent-deep); font-size: 10.5px; font-weight: 800; letter-spacing: var(--track-micro); text-transform: uppercase; }
.outcome-strip > div:first-child span { color: rgba(33, 33, 33, .55); }
.outcome-strip strong { display: block; font-size: 16px; line-height: 1.3; letter-spacing: -.02em; }
.outcome-intro { display: flex; flex-direction: column; justify-content: space-between; }
.outcome-intro strong { max-width: 240px; font-size: 24px; letter-spacing: -.03em; }
.outcome-strip p { margin: 9px 0 0; color: var(--muted-2); font-size: 12.5px; line-height: 1.5; }
.outcome-strip > div:first-child p { color: rgba(33, 33, 33, .62); }

/* ============================================================
   WHY — sticky intro + editorial hover rows
   ============================================================ */
.sales-section { padding: var(--section-gap) 0 0; }
.why-split { display: grid; grid-template-columns: minmax(16rem, .9fr) minmax(22rem, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.why-intro { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.why-intro h2 { max-width: 560px; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.04; letter-spacing: var(--track-title); }
.why-intro h2 em { color: var(--accent-deep); }
.why-intro .section-lead { margin-top: 20px; max-width: 440px; }
.why-rows { display: flex; flex-direction: column; }
.why-row {
  position: relative; display: flex; gap: 22px; align-items: flex-start;
  padding: clamp(24px, 3vw, 36px) 8px;
  border-top: 1px solid var(--rule);
  transition: padding-inline var(--dur-ui) var(--ease-out), background .4s var(--ease-out);
}
.why-row:last-child { border-bottom: 1px solid var(--rule); }
.why-row::before {
  content: ''; position: absolute; left: 0; top: -1px; height: 1px; width: 100%;
  background: var(--accent-deep); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.why-row:hover { padding-inline: 24px 8px; background: linear-gradient(to right, rgba(245, 184, 116, .1), transparent 65%); }
.why-row:hover::before { transform: scaleX(1); }
.row-num {
  font-family: var(--font-serif); font-style: italic; font-size: clamp(40px, 4vw, 56px);
  line-height: .9; color: rgba(33, 33, 33, .22); flex-shrink: 0; width: 1.4em;
  transition: color .4s var(--ease-out), transform .4s var(--ease-out);
}
.why-row:hover .row-num { color: var(--accent-deep); transform: translateY(-2px); }
.row-body h3 { font-size: clamp(19px, 1.8vw, 24px); line-height: 1.18; letter-spacing: -.03em; }
.row-body p { margin: 10px 0 0; max-width: 520px; color: var(--muted-2); font-size: 14.5px; line-height: 1.6; }

/* ============================================================
   JOURNEY — dark scene, sticky card stack (cs-standart process-v2)
   ============================================================ */
.how-section { position: relative; margin-top: var(--section-gap); padding: clamp(56px, 7vw, 96px) 0 clamp(72px, 9vw, 120px); color: var(--ink-on-dark); background: var(--surface-dark); }
.how-section .eyebrow { color: var(--accent); }
.how-section h2 { max-width: 560px; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.04; letter-spacing: var(--track-title); }
.how-section h2 em { color: var(--accent); }
.stack-split { display: grid; grid-template-columns: minmax(16rem, .9fr) minmax(22rem, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.stack-intro { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.stack-deck { min-width: 0; margin: 0; padding: 0; list-style: none; }
.stack-card {
  --stack-offset: 0rem;
  position: sticky; top: calc(var(--nav-h) + 1.25rem + var(--stack-offset));
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
  min-height: 220px; padding: 28px 30px;
  border-radius: var(--r-card); box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .35);
  color: var(--ink-token); background: var(--surface);
}
.stack-card:not(:last-child) { margin-bottom: 1rem; }
.stack-card:nth-child(1) { z-index: 1; background: var(--accent); }
.stack-card:nth-child(1) .num-cube { background: var(--ink-token); color: var(--accent); }
.stack-card:nth-child(1) .stack-body { border-top-color: rgba(33, 33, 33, .2); }
.stack-card:nth-child(1) p { color: rgba(33, 33, 33, .68); }
.stack-card:nth-child(2) { --stack-offset: 1rem; z-index: 2; }
.stack-card:nth-child(3) { --stack-offset: 2rem; z-index: 3; background: #2e2e2e; color: var(--ink-on-dark); }
.stack-card:nth-child(3) .num-cube { background: var(--accent); color: var(--on-accent); }
.stack-card:nth-child(3) .stack-body { border-top-color: rgba(255, 255, 255, .16); }
.stack-card:nth-child(3) p { color: var(--muted-dark); }
.stack-card:nth-child(4) { --stack-offset: 3rem; z-index: 4; background: var(--surface-sand); box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .35), var(--sh-inset); }
.stack-body { max-width: 34rem; padding-top: 18px; border-top: 1px solid var(--rule); }
.stack-body strong { font-size: clamp(20px, 2vw, 25px); letter-spacing: -.03em; line-height: 1.15; }
.stack-body p { margin: 10px 0 0; color: var(--muted-2); font-size: 15px; line-height: 1.5; }
@media (prefers-reduced-motion: reduce) {
  .stack-card { position: relative; top: auto; }
  .why-intro, .stack-intro { position: static; }
}

/* ============================================================
   DELIVERABLES — horizontal snap deck with drag + progress
   ============================================================ */
.deliverables-section { padding: var(--section-gap) 0 0; }
.deck-wrap { margin-top: 8px; }
.deck {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px max(24px, calc((100vw - 1320px) / 2 + 24px)) 26px;
  scrollbar-width: none; cursor: grab;
}
.deck::-webkit-scrollbar { display: none; }
.deck.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.deck.is-dragging .deck-card { pointer-events: none; }
.deck-card {
  position: relative; overflow: hidden; flex: 0 0 clamp(280px, 30vw, 400px);
  display: flex; flex-direction: column; min-height: 420px; padding: 30px;
  border-radius: var(--r-card); background: var(--surface); box-shadow: var(--sh-inset);
  scroll-snap-align: center;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.deck-card:hover { transform: translateY(-5px); box-shadow: var(--sh-inset), var(--sh-md); }
.deck-card[data-num]::after {
  content: attr(data-num); position: absolute; right: -.14em; bottom: -.3em; z-index: 0;
  font-family: var(--font-serif); font-style: italic; font-size: 9rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(33, 33, 33, .09);
  opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
  pointer-events: none;
}
.deck-card[data-num]:hover::after { opacity: 1; transform: none; }
.deck-card > * { position: relative; z-index: 1; }
.num-cube { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: var(--r-sm); font-size: 11.5px; font-weight: 800; line-height: 1; background: var(--accent); color: var(--on-accent); }
.deck-card h3 { margin: auto 0 12px; padding-top: 48px; font-size: 22px; line-height: 1.2; letter-spacing: -.03em; }
.deck-card p { margin: 0; color: var(--muted-2); font-size: 14px; line-height: 1.6; }
.deck-featured { flex-basis: clamp(300px, 34vw, 460px); background: var(--accent); color: var(--on-accent); box-shadow: none; }
.deck-featured:hover { box-shadow: var(--sh-md); }
.deck-featured .num-cube { background: rgba(33, 33, 33, .14); }
.deck-featured p { color: rgba(33, 33, 33, .62); }
.deck-featured h3 { font-size: 28px; line-height: 1.12; }
.deck-ui { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 4px; }
.deck-hint { display: inline-flex; align-items: center; gap: 8px; color: var(--muted-3); font-size: 11.5px; font-weight: 750; letter-spacing: var(--track-micro); text-transform: uppercase; }
.deck-hint .icon { animation: hint-nudge 1.8s var(--ease-in-out) infinite; }
@keyframes hint-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
.deck-progress { flex: 1; max-width: 320px; height: 2px; border-radius: 1px; background: rgba(33, 33, 33, .1); overflow: hidden; }
.deck-progress i { display: block; height: 100%; width: 28%; border-radius: 1px; background: var(--accent-deep); transform: translateX(var(--deck-x, 0%)); transition: transform .15s linear; }

/* featured: fanned passport sheets (nod to cs-standart's document fan) */
.passport-mock { position: relative; height: 168px; margin-top: 22px; flex-shrink: 0; }
.mock-sheet { position: absolute; left: 50%; bottom: 0; width: min(240px, 74%); height: 150px; border-radius: var(--r-md); background: #fffaf3; box-shadow: 0 .5rem 1.4rem rgba(33, 33, 33, .18); transform-origin: bottom center; transition: transform .45s var(--ease-out); }
.mock-back { transform: translateX(-50%) rotate(-7deg) translateY(6px); background: #f6ead9; }
.mock-mid { transform: translateX(-50%) rotate(5deg) translateY(3px); background: #fff6ea; }
.mock-front { transform: translateX(-50%) rotate(-1deg); display: flex; flex-direction: column; gap: 9px; padding: 16px; }
.deck-featured:hover .mock-back { transform: translateX(-50%) rotate(-11deg) translateY(8px); }
.deck-featured:hover .mock-mid { transform: translateX(-50%) rotate(9deg) translateY(4px); }
.deck-featured:hover .mock-front { transform: translateX(-50%) rotate(0deg) translateY(-4px); }
.mock-stamp { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 2px solid rgba(245, 184, 116, .9); border-radius: 50%; background: radial-gradient(circle, rgba(245, 184, 116, .25) 0 38%, transparent 40%); }
.mock-stamp::after { content: ''; position: absolute; inset: 6px; border: 1.5px dashed rgba(156, 100, 48, .55); border-radius: 50%; }
.fan-card .mock-stamp { position: static; align-self: flex-end; margin-bottom: 6px; }
.mock-line { display: block; height: 7px; border-radius: 3px; background: rgba(33, 33, 33, .1); }
.mock-line.w-60 { width: 55%; margin-top: 10px; background: rgba(33, 33, 33, .18); }
.mock-line.w-90 { width: 88%; }
.mock-line.w-75 { width: 70%; }
.mock-chips { display: flex; gap: 6px; margin-top: auto; }
.mock-chips span { height: 18px; border-radius: 9px; background: rgba(245, 184, 116, .5); }
.mock-chips span:nth-child(1) { width: 56px; }
.mock-chips span:nth-child(2) { width: 38px; background: rgba(33, 33, 33, .1); }
.mock-chips span:nth-child(3) { width: 46px; background: rgba(33, 33, 33, .07); }

/* ============================================================
   TRUST — dark statement stage
   ============================================================ */
.trust-section { padding: clamp(24px, 4vw, 48px) 0; }
.trust-stage { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: end; padding: clamp(36px, 5vw, 64px); border-radius: var(--r-panel); color: var(--ink-on-dark); background: var(--surface-dark); }
.trust-stage::before {
  content: ''; position: absolute; right: -14rem; top: -16rem; width: 38rem; height: 38rem; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(245, 184, 116, .16), rgba(245, 184, 116, 0) 75%);
}
.trust-stage > :not(.grain) { position: relative; z-index: 2; }
.trust-stage .eyebrow { color: var(--accent); margin-bottom: 1.25rem; }
.trust-stage h2 { margin: 0; max-width: 780px; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.1; letter-spacing: -.04em; }
.trust-stage h2 em { color: var(--accent); }
.stage-cta { display: inline-flex; align-items: center; gap: .6rem; padding: .75rem .85rem .75rem 1.25rem; border-radius: var(--r-lg); color: var(--ink-token); background: #fff; text-decoration: none; font-size: 14.5px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; transition: transform var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out); }
.stage-cta:hover { transform: translateY(-2px); box-shadow: 0 .75rem 1.75rem rgba(0, 0, 0, .3); }
.stage-cta .cta-icon { transition: transform var(--dur-ui) var(--ease-out); }
.stage-cta:hover .cta-icon { transform: translate(2px, -2px); }

/* ============================================================
   RECOVERY
   ============================================================ */
.recovery-section { padding: clamp(16px, 2vw, 28px) 0 clamp(48px, 6vw, 80px); }
.recovery-card { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(32px, 4.5vw, 56px); border-radius: var(--r-panel); background: var(--surface); box-shadow: var(--sh-sm), var(--sh-inset); }
.recovery-card .eyebrow { color: var(--accent-deep); }
.recovery-copy h2 { margin: 0 0 16px; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.05; letter-spacing: -.045em; }
.recovery-copy h2 em { color: var(--accent-deep); }
.recovery-copy > p { max-width: 460px; margin: 0; color: var(--muted-token); font-size: 15px; line-height: 1.6; }
.recovery-form label { display: block; margin-bottom: 8px; font-size: 13.5px; font-weight: 750; }
.recovery-form > div { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.recovery-form > div button { padding: 0 14px 0 22px; }
.recovery-form p { margin: 12px 0 0; color: var(--accent-deep); font-size: 13.5px; font-weight: 700; }

/* ============================================================
   FOOTER — dark ledger
   ============================================================ */
.site-foot { position: relative; padding: clamp(40px, 5vw, 64px) 0; color: var(--ink-on-dark); background: var(--surface-dark); }
.foot-top { position: relative; z-index: 2; display: grid; grid-template-columns: auto 1fr auto; gap: 48px; align-items: center; }
.site-foot .brand-logo { width: 138px; filter: brightness(0) invert(1); }
.site-foot .product-name { border-left-color: rgba(255, 255, 255, .25); }
.site-foot .product-name small { color: var(--muted-dark); }
.foot-top p { max-width: 620px; margin: 0; color: var(--muted-dark); font-size: 12px; line-height: 1.55; }
.foot-top > a { color: var(--ink-on-dark); font-size: 13px; font-weight: 700; text-decoration: none; text-underline-offset: 5px; white-space: nowrap; transition: color var(--dur-ui) var(--ease-out); }
.foot-top > a:hover { color: var(--accent); }



@media (max-width: 1024px) {
  .outcome-strip { grid-template-columns: 1fr 1fr; }
  .why-split, .stack-split { grid-template-columns: 1fr; gap: 2.5rem; }
  .why-intro, .stack-intro { position: static; }
  .trust-stage { grid-template-columns: 1fr; align-items: start; }
  .foot-top { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .section-head { grid-template-columns: 1fr; align-items: start; row-gap: 20px; }
  .section-lead { margin: 0; }
  .recovery-card { grid-template-columns: 1fr; }
  .stack-card { position: relative; top: auto; min-height: auto; }
  .marquee-group span { font-size: 17px; gap: 1.6rem; }
}

@media (max-width: 860px) {
  /* cabinet */
  .workspace-grid, .passport-columns, .link-fallback { grid-template-columns: 1fr; }
  .panel.span-2, .skeleton-panel.span-2 { grid-column: span 1; }
  .passport-meta { grid-template-columns: 1fr 1fr; }
  .admin-metrics { grid-template-columns: 1fr; }
  .workspace-title { flex-direction: column; align-items: flex-start; gap: 18px; padding: 26px 0 24px; }
  .status-badge { max-width: 100%; }
  .passport-columns { margin-top: 0; }
  .passport-columns .passport-section { margin-top: 16px; }
  .passport-columns .passport-section:first-child { margin-top: 0; }
}

@media (max-width: 640px) {
  .shell { width: calc(100% - 32px); }
  .hero { padding-top: calc(var(--nav-h) + 12px); }
  .hero-grid { background-size: 48px 48px; }
  .hero-wash { top: -20rem; width: 40rem; height: 28rem; }
  .hero-benefits span { font-size: 11.5px; }
  .outcome-strip { grid-template-columns: 1fr; }
  .outcome-strip > div { min-height: auto; }
  .why-row { gap: 14px; padding: 22px 4px; }
  .why-row:hover { padding-inline: 8px 4px; }
  .row-num { width: 1.2em; }
  .stack-card { padding: 22px; }
  .deck-card { flex-basis: 82vw; min-height: 380px; }
  .deck-featured { flex-basis: 86vw; }
  .deck { padding-inline: 24px; }
  .mode-cards { grid-template-columns: 1fr; }
  .mode-card { padding: 12px 14px; }
  .purpose-choice { grid-template-columns: 1fr; }
  .purpose-choice label { min-height: 52px; justify-content: flex-start; text-align: left; }
  .step-nav { flex-direction: column-reverse; gap: 10px; }
  .step-nav > button { width: 100%; }
  .step-next { justify-content: space-between; }
  .intake-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .rail-label { display: none; }
  .rail-step { flex: 0 0 auto; }
  .rail-line { flex: 0 0 clamp(28px, 10vw, 56px); margin: 0 10px; }
  .intake-rail { justify-content: space-between; }
  .recovery-form > div { grid-template-columns: 1fr; }
  .trust-stage { padding: 28px 22px; }
  .stage-cta { width: 100%; justify-content: space-between; }
  .brand-logo { width: 124px; }
  .product-name { display: none; }
  .site-nav { top: 10px; padding: 0 12px; }
  .nav-shell { padding: 0 14px; }
  .nav-row { min-height: 64px; }
}

@media (max-width: 560px) {
}

/* ============================================================
   PASSPORT-SITE ADDITIONS (consent, price, foot-legal, legal pages)
   ============================================================ */

/* Consent checkbox */
.consent-check {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 16px; padding: 12px 16px;
  border-radius: var(--r-md); background: var(--bg);
  box-shadow: var(--sh-inset);
  cursor: pointer; font-size: 13px; line-height: 1.5; color: var(--muted-token);
}
.consent-check input[type="checkbox"] {
  width: 18px; height: 18px; min-height: 18px; margin-top: 2px; flex-shrink: 0;
  accent-color: var(--accent); cursor: pointer;
}
.consent-check a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; }
.consent-check a:hover { color: var(--ink-token); }

/* Price section */
.price-section { padding: var(--section-gap) 0 0; }
.price-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 5vw, 64px); align-items: center;
  padding: clamp(32px, 4.5vw, 56px); border-radius: var(--r-panel);
  background: var(--surface); box-shadow: var(--sh-lg), var(--sh-inset);
}
.price-card h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.05; letter-spacing: -.045em; }
.price-card h2 em { color: var(--accent-deep); }
.price-card .section-lead { margin-top: 16px; }
.price-includes { margin: 20px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.price-includes li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; color: var(--muted-token); }
.price-includes li::before { content: ''; width: .55rem; height: .55rem; flex-shrink: 0; border-radius: var(--r-xs); background: var(--accent); }
.price-cta { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.payment-status { text-align: center; }
.payment-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px;
  background: var(--accent-tint); box-shadow: var(--sh-inset);
  color: var(--accent-deep); font-size: 13px; font-weight: 700;
}
.payment-status p { margin: 12px 0 0; max-width: 320px; color: var(--muted-token); font-size: 13px; line-height: 1.6; }

/* Footer legal block */
.foot-legal {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  margin-top: 40px; padding-top: 32px;
  border-top: 1px solid var(--rule-dark);
}
.foot-label { display: block; margin-bottom: 12px; color: var(--muted-dark); font-size: 10.5px; font-weight: 800; letter-spacing: var(--track-micro); text-transform: uppercase; }
.foot-requisites p { margin: 0 0 4px; color: var(--muted-dark); font-size: 13px; }
.foot-requisites a { color: var(--ink-on-dark); font-size: 13px; text-decoration: none; }
.foot-requisites a:hover { color: var(--accent); }
.foot-policies { display: flex; flex-direction: column; gap: 8px; }
.foot-policies a { color: var(--muted-dark); font-size: 13px; text-decoration: none; transition: color var(--dur-ui) var(--ease-out); }
.foot-policies a:hover { color: var(--accent); }
.foot-bottom { position: relative; z-index: 2; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--rule-dark); }
.foot-bottom p { margin: 0; color: var(--muted-dark); font-size: 12px; }

/* Legal pages */
.legal-nav { position: relative; z-index: 20; padding: 14px 0; background: var(--surface); border-bottom: 1px solid var(--rule); }
.legal-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.legal-nav-back { color: var(--muted-token); font-size: 13px; font-weight: 600; text-decoration: none; transition: color var(--dur-ui) var(--ease-out); }
.legal-nav-back:hover { color: var(--accent-deep); }
.legal-main { padding: clamp(48px, 6vw, 80px) 0 clamp(64px, 8vw, 96px); }
.legal-container { width: min(100%, 48rem); margin: 0 auto; padding-inline: 1rem; }
.legal-breadcrumbs { display: flex; flex-wrap: wrap; gap: 0.35rem 0.55rem; margin-bottom: 2rem; font-size: 0.72rem; font-weight: 600; color: rgba(33,33,33,.55); }
.legal-breadcrumbs a { color: inherit; text-decoration: none; }
.legal-breadcrumbs a:hover { color: var(--accent-deep); }
.legal-content h1 { margin: 0 0 1rem; font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.05; letter-spacing: -.03em; }
.legal-content h2 { margin: 2rem 0 0.85rem; font-size: 1.05rem; font-weight: 700; line-height: 1.35; }
.legal-content p { margin: 0 0 0.85rem; font-size: 0.95rem; line-height: 1.55; color: rgba(33,33,33,.78); }
.legal-content .legal-meta { margin-bottom: 1.5rem; font-size: 0.88rem; font-weight: 600; color: rgba(33,33,33,.55); }
.legal-list { margin: 0 0 1rem; padding-left: 1.2rem; }
.legal-list li { margin-bottom: 0.55rem; font-size: 0.95rem; line-height: 1.5; color: rgba(33,33,33,.78); }
.legal-list--dash { list-style: disc; }
.legal-foot { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.legal-foot p { margin: 0 0 4px; font-size: 0.88rem; color: rgba(33,33,33,.6); }
.legal-foot a { color: var(--accent-deep); text-decoration: none; font-size: 0.88rem; }
.legal-foot a:hover { text-decoration: underline; }

/* Legal responsive */
@media (max-width: 1024px) {
  .price-card { grid-template-columns: 1fr; }
  .foot-legal { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .price-card { padding: 28px 22px; }
  .legal-nav-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ============================================================
   LEGAL PAGES — shared layout for oferta/oplata/policy/soglasie/cookies
   ============================================================ */
.page-legal { min-height: 100vh; display: flex; flex-direction: column; }
.legal-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--rule); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.legal-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.legal-back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; transition: color var(--dur-ui) var(--ease-out); }
.legal-back:hover { color: var(--ink); }
.legal-body { flex: 1; padding: clamp(48px, 6vw, 80px) 0; }
.legal-footer { border-top: 1px solid var(--rule); padding: 32px 0; margin-top: auto; }
.legal-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.legal-footer-copy { color: var(--muted-3); font-size: 12px; }
.legal-footer-nav { display: flex; flex-wrap: wrap; gap: 16px; }
.legal-footer-nav a { color: var(--muted); font-size: 12px; text-decoration: none; transition: color var(--dur-ui) var(--ease-out); }
.legal-footer-nav a:hover { color: var(--accent-deep); }
.legal-footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.legal-footer-links a { color: var(--muted); font-size: 12px; text-decoration: none; transition: color var(--dur-ui) var(--ease-out); }
.legal-footer-links a:hover { color: var(--accent-deep); }

/* price-copy (index) */
.price-copy { flex: 1; }

/* section-head-text */
.section-head-text { min-width: 0; }

/* trust-copy */
.trust-copy { min-width: 0; }

/* brand-compact */
.brand-compact .product-name { display: none; }

/* bg-light (body class) */
.bg-light { background: var(--bg); }

/* Playfair Display Variable — italic (for <em> accents) */
@font-face { font-family: 'Playfair Display Variable'; font-style: italic; font-display: swap; font-weight: 400 900; src: url('../fonts/playfair-display-cyrillic-wght-italic.woff2') format('woff2-variations'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Playfair Display Variable'; font-style: italic; font-display: swap; font-weight: 400 900; src: url('../fonts/playfair-display-latin-ext-wght-italic.woff2') format('woff2-variations'); 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: 'Playfair Display Variable'; font-style: italic; font-display: swap; font-weight: 400 900; src: url('../fonts/playfair-display-latin-wght-italic.woff2') format('woff2-variations'); 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; }
