/* amirdav.id/test — диагностика для будущих учеников. Токены и шрифты как у сайта (assets/site.css). */

@font-face { font-family: 'Geist'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/geist-cyrillic-dd9286.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/geist-latin-ext-e2aaf8.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/geist-latin-e09adc.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: 'Geist'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/fonts/geist-cyrillic-dd9286.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/fonts/geist-latin-ext-e2aaf8.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/fonts/geist-latin-e09adc.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: 'Geist Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/geist-mono-cyrillic-216093.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/geist-mono-latin-ext-24db3a.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/geist-mono-latin-c8d271.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: 'Spectral'; font-style: italic; font-weight: 300; font-display: swap; src: url('../assets/fonts/spectral-italic-cyrillic-3e8b36.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Spectral'; font-style: italic; font-weight: 300; font-display: swap; src: url('../assets/fonts/spectral-italic-latin-ext-742637.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Spectral'; font-style: italic; font-weight: 300; font-display: swap; src: url('../assets/fonts/spectral-italic-latin-45ba1e.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; }

/* ---------- tokens (same values as assets/site.css) ---------- */
:root {
  --bg: #F7F7F5; --fg: #111111; --muted: #6B6B66; --soft: #55554F;
  --line: #E3E3DF; --line2: #DADAD5; --chip: #ECECE8;
  --f-sans: 'Geist', 'Segoe UI', system-ui, sans-serif;
  --f-serif: 'Spectral', Georgia, serif;
  --f-mono: 'Geist Mono', ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --r: 12px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0B0B0C; --fg: #EDEDED; --muted: #8A8A90; --soft: #A3A3A9;
  --line: #1F1F22; --line2: #2A2A2E; --chip: #17171A;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.55 var(--f-sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { max-width: 640px; margin: 0 auto; padding-block: max(20px, env(safe-area-inset-top)) max(64px, env(safe-area-inset-bottom));
  padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; margin-bottom: 20px; }
.brand { font-family: var(--f-mono); font-size: 13px; letter-spacing: .04em; color: var(--muted); text-decoration: none; padding: 12px 0; }
.brand:hover { color: var(--fg); }
.langs { display: flex; gap: 2px; }
.langs button { border: 0; background: none; color: var(--muted); font: 12.5px var(--f-mono); letter-spacing: .04em; text-transform: uppercase;
  min-width: 36px; min-height: 36px; border-radius: 99px; cursor: pointer; }
.langs button[aria-current="true"] { background: var(--chip); color: var(--fg); }
.langs button:hover { color: var(--fg); }
.nav { display: flex; align-items: center; gap: 16px; min-height: 44px; margin-bottom: 18px; }
.back { border: 0; background: none; color: var(--muted); font: inherit; font-size: 15px; cursor: pointer; padding: 8px 0; min-height: 44px; white-space: nowrap; }
.back:hover { color: var(--fg); }
.bar { flex: 1; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--fg); width: 0; transition: width .6s var(--ease); }

.eyebrow { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(32px, 7vw, 46px); line-height: 1.08; }
h2 { font-size: clamp(23px, 5vw, 30px); line-height: 1.2; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 300; }
.lead { color: var(--soft); margin: 18px 0 0; max-width: 34em; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 32px; padding: 0; list-style: none; }
.facts li { background: var(--chip); border-radius: 99px; padding: 6px 14px; font-size: 14.5px; color: var(--soft); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px;
  border: 0; border-radius: 99px; background: var(--fg); color: var(--bg); font: 500 16px var(--f-sans); cursor: pointer; text-decoration: none;
  transition: transform .4s var(--ease); }
.btn:active { transform: scale(.98); }
.btn i { font-style: normal; transition: transform .4s var(--ease); }
.ghost { background: none; border: 0; color: var(--muted); font: inherit; font-size: 15px; cursor: pointer; min-height: 44px; padding: 0 4px; }
.ghost:hover { color: var(--fg); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

.hint { color: var(--muted); font-size: 15px; margin: 10px 0 0; }
.quote { margin: 0 0 18px; padding: 14px 18px; border-left: 2px solid var(--fg); background: var(--chip); color: var(--soft); font-size: 16px; }
.opts { display: grid; gap: 10px; margin-top: 28px; }
.opt { text-align: left; width: 100%; padding: 16px 18px; border: 1px solid var(--line2); border-radius: var(--r); background: var(--bg);
  color: var(--fg); font: 400 16.5px/1.45 var(--f-sans); cursor: pointer; display: flex; gap: 14px; align-items: flex-start;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), transform .3s var(--ease); }
.opt:active { transform: scale(.99); }
.opt .k { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line2); display: grid; place-items: center;
  font: 12px var(--f-mono); color: var(--muted); margin-top: 1px; }
.opt.on { border-color: var(--fg); background: var(--chip); }
.opt.on .k { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.opt.dk { border-style: dashed; color: var(--soft); }
textarea { width: 100%; min-height: 130px; margin-top: 24px; padding: 14px 16px; border: 1px solid var(--line2); border-radius: var(--r);
  background: var(--bg); color: var(--fg); font: 16.5px/1.5 var(--f-sans); resize: vertical; }
textarea:focus { outline: none; border-color: var(--fg); }
.count { font: 12.5px var(--f-mono); color: var(--muted); text-align: right; margin-top: 6px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; }

.type p { color: var(--soft); margin: 14px 0 0; }
.sec { margin-top: 44px; }
.prof { display: grid; gap: 14px; }
.pr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: baseline; }
.pr b { font-weight: 500; font-size: 16px; }
.pr span { font: 13px var(--f-mono); color: var(--muted); }
.seg { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.seg i { height: 6px; border-radius: 3px; background: var(--line); }
.seg i.f { background: var(--fg); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.two h3 { font-size: 15px; margin: 0 0 10px; }
.two ul { margin: 0; padding-left: 18px; color: var(--soft); font-size: 15.5px; display: grid; gap: 8px; }
.plan { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.plan li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.plan .n { font: 13px var(--f-mono); color: var(--muted); }
.plan .t { font-weight: 500; }
.plan .d { grid-column: 2 / 3; color: var(--muted); font-size: 14.5px; }
.st { font: 12px var(--f-mono); letter-spacing: .03em; border-radius: 99px; padding: 3px 10px; white-space: nowrap; background: var(--chip); color: var(--soft); }
.st.full { background: var(--fg); color: var(--bg); }
.sum { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline; margin-top: 20px; }
.big { font-size: 34px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sum small { color: var(--muted); font-size: 14.5px; }
.cta { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.cta p { color: var(--muted); font-size: 15px; margin: 12px 0 0; }

.view { animation: in .5s var(--ease) both; }
@keyframes in { from { opacity: .001; transform: translateY(8px); } }
@media (hover: hover) {
  .opt:hover { border-color: var(--muted); }
  .btn:hover i { transform: translateX(3px); }
}
@media (prefers-reduced-motion: reduce) { .view { animation: none; } * { transition: none !important; } }
@media (max-width: 520px) {
  body { font-size: 16px; }
  .two { grid-template-columns: 1fr; gap: 22px; }
  .btn { width: 100%; }
}
