/* Hallmark · shape: stage and ledger, a phone on glass over a field of letters · genre: modern-minimal · theme: custom · job: try · idea: "the noise of letters goes quiet under glass, and through it the real cabinet" · vibe: "light, exact, glassy, Telegram native, sunrise accent"
 * paper: oklch(98.6% 0.004 250) · accent: oklch(78% 0.15 70) · display: Geologica · body: Golos Text · hero: head and actions left, the real cabinet in a phone standing on a frosted glass pane that blurs the letter field · nav: wordmark and one action · footer: one line, wordmark, two links, year · imagery: the product, real captures of the cabinet · signature: the letter field blurring under the glass pane behind the real cabinet
 * axes: light/grotesk-heavy/chromatic-amber · posture: light ground, ink buttons, accent only in the sun mark and the year plan · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S4 R4 V5 · weakest: P, a VPN page argues little; the argument is shown instead: the real cabinet, the real prices, what we store, said plainly */
/* Hallmark · waive 47c · the letter field under the hero glass is decoration with nothing under it · the owner asked for this matrix letter background by name, it spells Vostok and the glass blurs it */
/* Hallmark · dismissed 29 · the glass pane is the owner's request, frosting the Vostok letter field behind the phone, no colour bloom or halo */
/* Hallmark · answered F24 · the glass keeps a light edge and a soft lift, as frosted glass reads only with both on the letter field */
/* Hallmark · waive 47b · one phone frame in the hero, a real capture of the Vostok cabinet inside · the product lives on a phone in Telegram, the frame says where */
@import url("./fonts.css");
@import url("./tokens.css");
@import url("./base.css");

:root { --nav-h: 72px; --shot-w: 340px; }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); position: relative; z-index: var(--z-raised); }
.mark { display: inline-flex; align-items: center; gap: var(--space-sm); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); letter-spacing: -0.02em; }
.mark img { border-radius: 8px; }
.mark:focus-visible, .link:focus-visible, .foot a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; border-radius: 6px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 var(--space-lg); border-radius: var(--radius-pill); background: var(--color-ink); color: var(--color-on-ink); font-weight: 600; text-decoration: none; transition: transform var(--dur-micro) var(--ease-out), opacity var(--dur-micro) var(--ease-out); }
.btn:hover { opacity: 0.88; }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.btn-small { min-height: 44px; padding: 0 var(--space-md); font-size: var(--text-sm); }
.link { color: var(--color-ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--color-rule); text-underline-offset: 0.3em; transition: opacity var(--dur-micro) var(--ease-out); }
.link:hover { text-decoration-color: var(--color-ink); }
.link:active { opacity: 0.7; }

/* hero */
.hero { position: relative; min-height: calc(100svh - var(--nav-h)); max-height: 980px; display: grid; align-items: center; padding-block: var(--space-md); isolation: isolate; }
.glyphs { position: absolute; inset: calc(var(--nav-h) * -1) 0 0; z-index: -1; overflow: hidden; opacity: 0; transition: opacity var(--dur-long) var(--ease-out);
  --fade-y: linear-gradient(to bottom, transparent, black 18%, black 70%, transparent);
  --fade-x: linear-gradient(to right, rgb(0 0 0 / 0.08), rgb(0 0 0 / 0.08) 44%, black 64%);
  -webkit-mask-image: var(--fade-y), var(--fade-x); mask-image: var(--fade-y), var(--fade-x);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.glyphs canvas { width: 100%; height: 100%; }
.glyphs.on { opacity: 1; }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: center; }
.hero-copy { grid-column: 1 / span 6; display: grid; gap: var(--space-lg); }
.hero h1 { font-size: var(--text-display); font-weight: 700; line-height: 1.02; letter-spacing: var(--tracking-display); max-width: 12ch; }
.lede { font-size: var(--text-lead); color: var(--color-ink-2); max-width: 30ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg); margin-top: var(--space-xs); }
.hero-stage { grid-column: 8 / span 5; position: relative; display: grid; place-items: center; padding-block: var(--space-xl); }
.glass { position: absolute; inset: 0 -8%; border-radius: 44px; background: var(--color-glass); border: 1px solid var(--color-glass-edge); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 30px 80px -30px var(--color-shadow); }
.phone { position: relative; margin: 0; width: min(var(--shot-w), 100%, calc((100svh - var(--nav-h) - 130px) * 0.462)); min-width: 220px; }
.phone img { width: 100%; border-radius: 44px; border: 9px solid var(--color-bezel); box-shadow: 0 40px 70px -35px var(--color-shadow); }

/* key */
.key { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: center; margin-top: var(--section-gap-s); }
.shot { margin: 0; }
.shot img { border-radius: var(--radius-shot); border: 1px solid var(--color-rule); box-shadow: 0 30px 60px -40px var(--color-shadow); }
.shot-key { grid-column: 1 / span 5; max-width: 380px; justify-self: start; }
.key-copy { grid-column: 7 / span 6; display: grid; gap: var(--space-lg); }
h2 { font-size: var(--text-section); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; max-width: 16ch; }
.sub { font-size: var(--text-lead); color: var(--color-ink-2); max-width: 36ch; }
.flow { list-style: none; margin: var(--space-md) 0 0; padding: 0; display: grid; border-top: var(--rule-hair) solid var(--color-rule); counter-reset: step; }
.flow li { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: var(--space-md); padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); counter-increment: step; }
.flow li::before { content: counter(step); grid-row: span 2; font-family: var(--font-display); font-weight: 700; font-size: var(--text-2xl); line-height: 1; color: var(--color-ink); }
.flow b { font-size: var(--text-title); font-weight: 600; }
.flow span { color: var(--color-muted); }

/* twin */
.twin { margin-top: var(--section-gap); padding-block: var(--section-gap-s); background: var(--color-paper-2); }
.twin-inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: center; }
.twin h2 { grid-column: 1 / span 4; }
.twin-grid { grid-column: 6 / span 7; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-columns); }
.twin figcaption { margin-top: var(--space-md); color: var(--color-muted); font-size: var(--text-sm); text-align: center; }

/* price */
.price { margin-top: var(--section-gap); }
.plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr); gap: var(--gap-columns); margin-top: var(--space-2xl); }
.plan { display: grid; align-content: start; gap: var(--space-xs); padding: var(--space-xl) var(--space-lg); border-top: 2px solid var(--color-ink); }
.plan h3 { font-family: var(--font-body); font-size: var(--text-title); font-weight: 600; }
.sum { font-family: var(--font-display); font-weight: 700; font-size: var(--text-display-s); letter-spacing: -0.035em; line-height: 1; margin-top: var(--space-sm); }
.per, .dev { color: var(--color-muted); }
.plan-year { background: var(--color-paper-2); border-radius: 0 0 var(--radius-card) var(--radius-card); border-top-color: var(--color-accent); border-top-width: 4px; }
.price-note { margin-top: var(--space-xl); color: var(--color-ink-2); }

/* facts */
.facts { margin-top: var(--section-gap); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); }
.facts h2 { grid-column: 1 / span 5; }
.facts dl { grid-column: 6 / span 7; margin: 0; display: grid; }
.facts dl div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-lg); padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.facts dl div:first-child { border-top: var(--rule-hair) solid var(--color-rule); }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--color-ink-2); }

/* close */
.close { position: relative; margin-top: var(--section-gap-l); padding-block: var(--section-gap) var(--space-2xl); isolation: isolate; overflow: hidden; }
.glyphs-close { inset: 0; --fade-x: linear-gradient(to right, black, rgb(0 0 0 / 0.06) 30%, rgb(0 0 0 / 0.06) 70%, black); }
.close-inner { display: grid; justify-items: center; text-align: center; gap: var(--space-lg); }
.close-inner h2 { max-width: none; }
.close-inner .btn { margin-top: var(--space-sm); }

/* footer */
.foot { margin-top: var(--section-gap-s); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xl); padding-block: var(--space-xl) var(--space-2xl); border-top: var(--rule-hair) solid var(--color-rule); }
.foot .mark { font-size: var(--text-md); }
.foot nav { display: flex; gap: var(--space-lg); flex: 1; }
.foot nav a { color: var(--color-ink-2); text-decoration: none; white-space: nowrap; transition: opacity var(--dur-micro) var(--ease-out); }
.foot nav a:hover { color: var(--color-ink); text-decoration: underline; }
.foot nav a:active { opacity: 0.7; }
.copy { color: var(--color-muted); font-size: var(--text-sm); }

@media (max-width: 60rem) {
  .hero { min-height: auto; max-height: none; }
  .hero-copy, .hero-stage { grid-column: 1 / -1; }
  .hero-stage { margin-top: var(--space-xl); }
  .glyphs { --fade-x: linear-gradient(to bottom, rgb(0 0 0 / 0.07), rgb(0 0 0 / 0.07) 42%, black 56%); }
  .glyphs-close { --fade-x: linear-gradient(rgb(0 0 0 / 0.1), rgb(0 0 0 / 0.1)); }
  .hero-copy { position: relative; }
  .glass { inset: 0 4%; }
  .shot-key, .key-copy, .facts h2, .facts dl, .twin h2, .twin-grid { grid-column: 1 / -1; }
  .shot-key { max-width: 320px; justify-self: center; }
  .plans { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 40rem) {
  :root { --shot-w: 250px; }
  .twin-grid { grid-template-columns: minmax(0, 1fr); max-width: 320px; }
  .facts dl div { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .nav .btn-small { padding: 0 var(--space-sm); }
}
@media (prefers-reduced-motion: reduce) { .glyphs { transition: none; } .btn, .link, .foot nav a { transition: none; } }

/* ---------- палитра navy и коралл (05.12.2026): тёмный первый экран и финал, коралловые кнопки ---------- */
.nav { background: var(--color-navy); box-shadow: 0 0 0 100vmax var(--color-navy); clip-path: inset(0 -100vmax); color: var(--color-on-ink); }
.dark { background: var(--color-navy); color: var(--color-on-ink);
  --color-ink-2: rgb(249 249 249 / 0.74); --color-muted: rgb(249 249 249 / 0.6); --color-focus: var(--color-accent);
  --glyph: rgb(249 249 249 / 0.13); --glyph-word: var(--color-accent);
  --color-glass: rgb(255 255 255 / 0.06); --color-glass-edge: rgb(255 255 255 / 0.16); --color-shadow: rgb(0 0 0 / 0.45); }
.nav .btn, .dark .btn { background: var(--color-accent); color: var(--color-accent-ink); }
.nav .btn:focus-visible, .dark .btn:focus-visible { outline-color: var(--color-on-ink); }
.dark .link { color: var(--color-on-ink); text-decoration-color: rgb(249 249 249 / 0.35); }
.dark .link:hover { text-decoration-color: var(--color-on-ink); }
.hero.dark { padding-block: var(--space-md) var(--space-2xl); }
.close.dark { margin-top: var(--section-gap); padding-block: var(--section-gap) var(--section-gap-s); }
.foot { margin-top: 0; }
.plan-year { border-top-color: var(--color-accent); }
.flow li::before { color: var(--color-accent); }
.glyphs { --glyph: var(--color-glyph); --glyph-word: var(--color-ink-2); }
.dark .glyphs { --glyph: rgb(249 249 249 / 0.13); --glyph-word: var(--color-accent); }
