/* Boykov Academy: stub page "Скоро открытие". Standalone: no external requests, tokens copied from src/styles/tokens.css (design v2). */
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 200 900; font-display: swap; src: url(/fonts/unbounded-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 200 900; font-display: swap; src: url(/fonts/unbounded-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/fonts/golos-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/fonts/golos-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --font-display: 'Unbounded', 'Arial Black', Arial, sans-serif;
  --font-sans: 'Golos Text', Arial, sans-serif;
  --bg-dark: #0a0a0a;
  --surface-dark: #181a18;
  --accent: #dfff61;
  --on-accent: #0a0a0a;
  --text-on-dark: #fcfcfc;
  --text-muted-dark: #b3b3a8;
  --bg-light: #f3f3ee;
  --card: #fff;
  --text-on-light: #141414;
  --text-muted-light: #55554d;
  --border-dark: rgba(252, 252, 252, 0.16);
  --track-dark: #2b2b2b;
  --focus: #1f6feb;
  --focus-on-dark: #dfff61;
  --error: #b00020;
  /* Decorative only (the drop of blood in the test tube); not used for text */
  --blood: #ff5a4d;
  --radius-m: 14px;
  --radius-l: 24px;
  --radius-xl: 28px;
  --shadow-card: 0 1px 2px rgba(58, 58, 40, 0.05), 0 8px 24px -12px rgba(58, 58, 40, 0.16);
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-light);
  color: var(--text-on-light);
  font-family: var(--font-sans);
  font-size: clamp(1.0625rem, 1.03rem + 0.1vw, 1.125rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.hero :focus-visible { outline-color: var(--focus-on-dark); }
.join :focus-visible { outline-color: var(--text-on-light); }
[hidden] { display: none !important; }

.skip { position: absolute; left: var(--gutter); top: 0; z-index: 100; transform: translateY(-200%); padding: 12px 24px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip:focus { transform: translateY(8px); background: var(--accent); color: var(--on-accent); outline: 3px solid var(--bg-dark); outline-offset: 2px; }

.page { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter) 32px; }

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.top__logo { display: block; line-height: 0; border-radius: 8px; }
.top__logo img { height: 28px; width: auto; }
.status { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow-card); font-size: 0.875rem; font-weight: 600; }
.status__dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--bg-dark); }
.status__dot::before { content: ''; position: absolute; inset: -4px; border-radius: 50%; background: var(--accent); z-index: -1; animation: pulse 1.8s ease-out infinite; }
.status__dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--bg-dark); }
.status { isolation: isolate; }

/* Hero */
.hero { position: relative; overflow: hidden; border-radius: var(--radius-xl); background: var(--bg-dark); color: var(--text-on-dark); padding: clamp(24px, 4.5vw, 64px) clamp(20px, 4.5vw, 64px) 0; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(rgba(252, 252, 252, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(252, 252, 252, 0.045) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: radial-gradient(120% 90% at 70% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(120% 90% at 70% 30%, #000 20%, transparent 75%); }
.hero__glow { position: absolute; z-index: -1; width: 720px; height: 720px; right: -240px; top: -300px; border-radius: 50%; background: radial-gradient(closest-side, rgba(223, 255, 97, 0.2), rgba(223, 255, 97, 0)); animation: drift 14s ease-in-out infinite alternate; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }

.chip { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border: 1px solid var(--border-dark); border-radius: 999px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-on-dark); }
.chip__bar { width: 28px; height: 6px; border-radius: 3px; background: var(--track-dark); overflow: hidden; }
.chip__bar i { display: block; width: 100%; height: 100%; background: var(--accent); transform-origin: left; animation: load 2.6s cubic-bezier(.6, 0, .3, 1) infinite; }

h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.875rem, 1.2rem + 2.4vw, 3.375rem); line-height: 1.24; letter-spacing: -0.03em; margin-top: 24px; text-wrap: balance; overflow-wrap: break-word; }
.mark { background: var(--accent); color: var(--on-accent); padding: 0 0.22em; margin: 0 -0.04em; border-radius: 0.28em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lead { margin-top: 24px; max-width: 34em; font-size: clamp(1.125rem, 1rem + 0.35vw, 1.375rem); line-height: 1.45; color: var(--text-muted-dark); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 28px; border: 0; border-radius: 999px; font: 700 1rem/1.2 var(--font-sans); text-decoration: none; cursor: pointer; transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease; }
.btn:active { transform: translateY(1px); }
.btn--lime { margin-top: 32px; background: var(--accent); color: var(--on-accent); }
.btn--lime:hover { background: #f0ffa8; }
.btn--dark { background: var(--bg-dark); color: var(--text-on-dark); width: 100%; }
.btn--dark:hover { color: var(--accent); }
.btn[disabled] { opacity: 0.7; cursor: progress; }

/* Readiness counter */
.ready { margin-top: 40px; max-width: 30em; }
.ready__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.ready__label { font-size: 0.875rem; font-weight: 600; color: var(--text-muted-dark); }
.ready__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); letter-spacing: -0.03em; color: var(--accent); font-variant-numeric: tabular-nums; }
.ready__num output { font: inherit; }
.ready__track { height: 8px; margin-top: 8px; border-radius: 4px; background: var(--track-dark); overflow: hidden; }
.ready__fill { height: 100%; border-radius: 4px; background: var(--accent); transition: width 0.4s linear; position: relative; }
.ready__fill::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent); transform: translateX(-100%); animation: sheen 2.4s linear infinite; }
.ready__note { margin-top: 10px; font-size: 0.875rem; line-height: 1.45; color: var(--text-muted-dark); }

/* Lab: test tube and indicators */
.lab { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: 12px; padding: 20px 20px 20px 8px; border: 1px solid var(--border-dark); border-radius: var(--radius-l); background: linear-gradient(160deg, rgba(24, 26, 24, 0.9), rgba(24, 26, 24, 0.55)); backdrop-filter: blur(2px); }
.tube { width: 100%; max-width: 230px; height: auto; margin: 0 auto; overflow: visible; }
.tube__glass { fill: url(#glass); stroke: rgba(252, 252, 252, 0.7); stroke-width: 2.5; }
.tube__rim { fill: none; stroke: rgba(252, 252, 252, 0.7); stroke-width: 2.5; }
.tube__shine { fill: none; stroke: rgba(255, 255, 255, 0.35); stroke-width: 3; stroke-linecap: round; }
.tube__ticks path { fill: none; stroke: var(--text-muted-dark); stroke-width: 1.5; stroke-linecap: round; }
.tube__norm { fill: var(--accent); opacity: 0.9; }
.tube__tag { fill: var(--accent); font: 600 11px var(--font-sans); }
.tube__level { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 4 5; animation: level 12s linear infinite; }
.liquid { fill: var(--blood); transform: translateY(144px); animation: fill 12s cubic-bezier(.45, .05, .3, 1) infinite; }
.liquid__wave { animation: wave 1.6s linear infinite; }
.drop { fill: var(--blood); transform: translateY(0); opacity: 0; animation: fall 12s cubic-bezier(.5, 0, 1, .6) infinite both; transform-box: fill-box; transform-origin: center; }
.drop--2 { animation-delay: 2.4s; }
.drop--3 { animation-delay: 4.8s; }
.ring { fill: none; stroke: rgba(255, 255, 255, 0.55); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; animation: ring 12s ease-out infinite; }

.ind { display: grid; gap: 18px; }
.ind__row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: baseline; }
.ind__name { font-weight: 600; font-size: 0.9375rem; }
.ind__st { position: relative; display: inline-block; min-width: 4.8em; text-align: right; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.ind__st b { font-weight: 600; }
.ind__st b:first-child { color: var(--text-muted-dark); animation: st-a 12s linear infinite both; animation-delay: var(--d); }
.ind__st b:last-child { position: absolute; right: 0; top: 0; color: var(--accent); animation: st-b 12s linear infinite both; animation-delay: var(--d); }
.ind__track { position: relative; grid-column: 1 / -1; height: 10px; border-radius: 5px; background: var(--track-dark); overflow: hidden; }
.ind__zone { position: absolute; left: 30%; width: 40%; top: 0; bottom: 0; background: rgba(223, 255, 97, 0.28); border-radius: 5px; }
.ind__dot { position: absolute; top: 50%; left: var(--x); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--text-on-dark); box-shadow: 0 0 0 3px rgba(223, 255, 97, 0.35); animation: dot 12s cubic-bezier(.3, .6, .2, 1) infinite both; animation-delay: var(--d); }
.ind__track::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(252, 252, 252, 0.35), transparent); transform: translateX(-100%); animation: scan 12s linear infinite both; animation-delay: var(--d); }

/* ECG strip */
.ecg { position: relative; display: block; width: calc(100% + 2 * clamp(20px, 4.5vw, 64px)); height: 88px; margin: clamp(16px, 3vw, 40px) calc(-1 * clamp(20px, 4.5vw, 64px)) 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ecg path { fill: none; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ecg__base { stroke: var(--accent); stroke-width: 1.5; opacity: 0.22; }
.ecg__live { stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 130 870; stroke-dashoffset: 130; animation: beat 4.2s linear infinite; filter: drop-shadow(0 0 5px rgba(223, 255, 97, 0.8)); }

/* Story and signup */
.cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; margin-top: 24px; align-items: stretch; }
.story { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: clamp(24px, 3.5vw, 48px); border-radius: var(--radius-xl); background: var(--card); box-shadow: var(--shadow-card); }
.label-mono { font: 500 0.8125rem/1.4 ui-monospace, Consolas, monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted-light); }
.story__text { font-size: clamp(1.1875rem, 1.05rem + 0.55vw, 1.5rem); line-height: 1.5; text-wrap: pretty; }
.story__sign { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; letter-spacing: -0.02em; }

.join { padding: clamp(24px, 3.5vw, 48px); border-radius: var(--radius-xl); background: var(--accent); color: var(--on-accent); }
.join h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); line-height: 1.15; letter-spacing: -0.03em; text-wrap: balance; }
.join__sub { margin-top: 12px; max-width: 28em; }
.form { display: grid; gap: 18px; margin-top: 28px; }
.field label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9375rem; }
.field input[type='email'] { width: 100%; min-height: 54px; padding: 14px 18px; border: 2px solid var(--on-accent); border-radius: var(--radius-m); background: var(--card); color: var(--text-on-light); font: 500 1.0625rem/1.3 var(--font-sans); }
.field input[type='email']::placeholder { color: var(--text-muted-light); opacity: 1; }
.field input[aria-invalid='true'] { border-color: var(--error); box-shadow: 0 0 0 3px rgba(176, 0, 32, 0.2); }
.field--check { position: relative; padding-left: 36px; }
.field--check input { position: absolute; left: 0; top: 2px; width: 24px; height: 24px; margin: 0; accent-color: var(--on-accent); cursor: pointer; }
.field--check label { margin: 0; font-weight: 400; font-size: 0.875rem; line-height: 1.45; cursor: pointer; }
.field--check a { font-weight: 600; white-space: nowrap; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.err { margin-top: 8px; font-size: 0.875rem; font-weight: 600; color: var(--error); }
.err--box { margin: 0; padding: 12px 16px; border-radius: var(--radius-m); background: var(--card); }
.done { margin-top: 28px; padding: 24px; border-radius: var(--radius-l); background: var(--bg-dark); color: var(--text-on-dark); animation: pop 0.5s cubic-bezier(.2, .9, .3, 1.2) both; }
.done:focus { outline: none; }
.done__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem); line-height: 1.25; letter-spacing: -0.02em; color: var(--accent); }
.done__sub { margin-top: 8px; color: var(--text-muted-dark); font-size: 0.9375rem; }
.nojs { margin-top: 24px; padding: 16px 20px; border-radius: var(--radius-m); background: var(--card); font-weight: 500; }
.nojs a { font-weight: 700; }

/* Footer */
.foot { display: grid; justify-items: center; gap: 14px; padding: 40px 0 8px; text-align: center; }
.social { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.social__link { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--text-on-light); border-radius: 50%; color: var(--text-on-light); background: transparent; transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease; }
.social__link:hover { background: var(--bg-dark); color: var(--accent); transform: translateY(-2px); }
.social__star { position: absolute; top: -3px; right: -1px; font: 700 15px/1 var(--font-sans); }
.ic { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.foot__note { max-width: 46em; font-size: 0.8125rem; line-height: 1.45; color: var(--text-muted-light); }
.foot__legal { display: flex; flex-wrap: wrap; justify-content: inherit; gap: 4px 18px; font-size: 0.875rem; }
.foot__line { font-size: 0.875rem; font-weight: 600; }

/* Keyframes */
@keyframes pulse { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes load { 0% { transform: scaleX(0.05); } 70% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0.3; } }
@keyframes sheen { to { transform: translateX(100%); } }
@keyframes drift { to { transform: translate(-60px, 40px) scale(1.08); } }
@keyframes wave { to { transform: translateX(40px); } }
@keyframes fill {
  0%, 9% { transform: translateY(334px); opacity: 1; }
  15%, 30% { transform: translateY(268px); }
  36%, 50% { transform: translateY(206px); }
  57%, 90% { transform: translateY(144px); opacity: 1; }
  96%, 100% { transform: translateY(144px); opacity: 0; }
}
@keyframes fall {
  0% { transform: translateY(-4px) scale(0.5); opacity: 0; }
  1.5% { opacity: 1; transform: translateY(0) scale(1); }
  9% { transform: translateY(228px) scale(1); opacity: 1; }
  10%, 100% { transform: translateY(240px) scale(0.6); opacity: 0; }
}
@keyframes level { 0%, 50% { opacity: 0.25; } 57%, 90% { opacity: 1; } 96%, 100% { opacity: 0.25; } }
@keyframes ring { 0%, 55% { transform: scale(0.4); opacity: 0; } 58% { opacity: 0.8; } 70%, 100% { transform: scale(3.2); opacity: 0; } }
@keyframes dot { 0% { left: 3%; opacity: 0; } 4% { left: 3%; opacity: 1; } 22% { left: var(--x); } 88% { left: var(--x); opacity: 1; } 95%, 100% { left: var(--x); opacity: 0; } }
@keyframes st-a { 0%, 22% { opacity: 1; } 24%, 100% { opacity: 0; } }
@keyframes st-b { 0%, 22% { opacity: 0; } 25%, 88% { opacity: 1; } 95%, 100% { opacity: 0; } }
@keyframes scan { 0% { transform: translateX(-100%); } 22% { transform: translateX(100%); } 100% { transform: translateX(100%); } }
@keyframes beat { to { stroke-dashoffset: -1000; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.97); } to { opacity: 1; transform: none; } }

/* Responsive */
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .lab { max-width: 560px; }
  .cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .top { padding: 16px 0; }
  .top__logo img { height: 24px; }
  .status { padding: 6px 12px; font-size: 0.8125rem; }
  .btn--lime { width: 100%; }
  .lab { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); padding: 14px 14px 14px 4px; gap: 8px; }
  .ind { gap: 14px; }
  .ind__name { font-size: 0.875rem; }
  .ecg { height: 64px; }
}

/* Animations stop: every element shows its final state */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .drop, .ring, .ecg__live::after { display: none; }
  .ecg__live { stroke-dasharray: none; stroke-dashoffset: 0; filter: none; opacity: 0.9; }
  .ind__st b:first-child, .ind__track::after { display: none; }
  .ind__st b:last-child { position: static; }
  .status__dot::before { display: none; }
}
