/* abso.school — AbsoSchool, the school of the Absolute community. The family's
   identity (C:\dev\Absolute\docs\brand.md, система «Вольт»): ink, paper, Unbounded
   for headings, Onest for text, the pin in place of the «o» - with «Лазурь» as the
   school's own accent and Volt only on the group's band. Two themes: the system's
   light and dark. Every file is this site's own - no request leaves the origin. */


/* ------------------------------------------------------------------ fonts */

@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/unbounded-cyrillic-700-normal.fdc2a84527.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: 700; font-display: swap; src: url(/assets/fonts/unbounded-latin-700-normal.477fa23002.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: 'Unbounded'; font-style: normal; font-weight: 800; font-display: swap; src: url(/assets/fonts/unbounded-cyrillic-800-normal.a535053f07.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: 800; font-display: swap; src: url(/assets/fonts/unbounded-latin-800-normal.fe6d4ea7ed.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: 'Unbounded'; font-style: normal; font-weight: 900; font-display: swap; src: url(/assets/fonts/unbounded-cyrillic-900-normal.47cf6520d0.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: 900; font-display: swap; src: url(/assets/fonts/unbounded-latin-900-normal.d84ca6bdf9.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: 'Onest'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/onest-cyrillic-400-normal.51adb4c8c5.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/onest-latin-400-normal.93dfb945d2.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: 'Onest'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/onest-cyrillic-500-normal.a345dcbda6.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/onest-latin-500-normal.83c1e16166.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: 'Onest'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/onest-cyrillic-600-normal.73984d20ad.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/onest-latin-600-normal.a56e6d2dcc.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: 'Onest'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/onest-cyrillic-700-normal.0fcb8fa256.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/onest-latin-700-normal.d48e1aee80.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; }
/* Vietnamese: Unbounded has its letters; Onest has no Vietnamese diacritics, so the
   Vietnamese pages set their text in Be Vietnam Pro, drawn for them (as AbsoLive and
   AbsoFood do). A browser loads a subset only for the letters a page uses. */
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/unbounded-vietnamese-700-normal.555c025f3b.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 800; font-display: swap; src: url(/assets/fonts/unbounded-vietnamese-800-normal.f581d893c2.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 900; font-display: swap; src: url(/assets/fonts/unbounded-vietnamese-900-normal.92faaf013c.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/be-vietnam-pro-vietnamese-400-normal.b0d9b8aec7.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/be-vietnam-pro-latin-400-normal.d25f70ff74.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: 'Be Vietnam Pro'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/be-vietnam-pro-vietnamese-500-normal.e83829fe40.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/be-vietnam-pro-latin-500-normal.0336df67f2.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: 'Be Vietnam Pro'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/be-vietnam-pro-vietnamese-600-normal.8439082403.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/be-vietnam-pro-latin-600-normal.14950d0af3.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: 'Be Vietnam Pro'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/be-vietnam-pro-vietnamese-700-normal.141f6c4501.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/be-vietnam-pro-latin-700-normal.cf841d2b61.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 */

:root {
  --ink: #0b0c0f;
  --ink-2: #15171c;
  /* The school's own colour - «Лазурь» (docs/CONCEPT.md, «Цвет»): a fill under
     ink text and an accent on ink; on light, text and links take --deep. */
  --accent: #66baff;
  --accent-600: #4aa9f7;
  --accent-rgb: 102, 186, 255;
  --deep: #0b5cad;
  /* Volt - only the group's band: the bridge to Absolute. */
  --volt: #d4ff3a;
  --flame: #ff4f1f;
  --light: #f5f4ee;

  --paper: #f5f4ee;
  --card: #ffffff;
  --fg: #0b0c0f;
  --link: var(--deep);
  --muted: rgba(11, 12, 15, 0.68);
  --line: rgba(11, 12, 15, 0.12);
  --line-strong: rgba(11, 12, 15, 0.28);

  --wm-pin: var(--ink);
  --wm-accent: var(--accent);

  --display: 'Unbounded', system-ui, sans-serif;
  --sans: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 24px;
  --r-sm: 14px;
  --wrap: 1200px;
  --gut: 16px;
}

html[lang='vi'] { --sans: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif; }

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e0f12;
    --card: #17191e;
    --fg: #f2f1ea;
    --link: var(--accent);
    --muted: rgba(242, 241, 234, 0.7);
    --line: rgba(242, 241, 234, 0.13);
    --line-strong: rgba(242, 241, 234, 0.32);
    --wm-pin: var(--accent);
    --wm-accent: var(--ink);
  }
}

@media (min-width: 640px) { :root { --gut: 24px; } }
@media (min-width: 1024px) { :root { --gut: 32px; } }

/* ------------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--fg);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (min-width: 1024px) { body { font-size: 1.0625rem; } }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p a, li a, dd a, td a { color: var(--link); }
h1, h2, h3, p, ul, ol, dl, dd, fieldset, legend, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--ink); }
[hidden] { display: none !important; }
code { font: 600 0.88em/1 ui-monospace, 'Cascadia Mono', Consolas, monospace; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; box-shadow: 0 0 0 6px var(--ink); border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }

/* A stub the owner fills: never hidden, always visible as one. */
.fill {
  background: transparent; color: inherit; font-weight: 600;
  padding: 0 0.3em; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--flame);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.fill::before { content: '[[ '; color: var(--flame); }
.fill::after { content: ' ]]'; color: var(--flame); }

/* ------------------------------------------------------------- type */

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 0.72rem/1.2 var(--display); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); transform: skewX(-12deg); }
.band .eyebrow { color: rgba(245, 244, 238, 0.72); }

.h1 { font: 900 clamp(2rem, 6.4vw, 4.4rem)/1.04 var(--display); letter-spacing: -0.035em; }
.h2 { font: 800 clamp(1.6rem, 3.8vw, 2.8rem)/1.08 var(--display); letter-spacing: -0.03em; }
.h2-sm { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 20px; }
.h3 { font: 700 1.12rem/1.3 var(--display); letter-spacing: -0.01em; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 46rem; }
.band .lead { color: rgba(245, 244, 238, 0.76); }

.mark {
  background: linear-gradient(transparent 8%, var(--accent) 8%, var(--accent) 94%, transparent 94%); color: var(--ink);
  padding: 0 0.16em; margin: 0 -0.04em; border-radius: 0.14em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

.num {
  display: inline-grid; place-items: center; flex: none;
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--ink); color: var(--accent);
  font: 900 1.05rem/1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.num-sm { width: 40px; height: 40px; border-radius: 11px; font-size: 0.85rem; }
.band .num { background: var(--accent); color: var(--ink); }
@media (prefers-color-scheme: dark) { .num { background: var(--accent); color: var(--ink); } }

.arr { display: inline-block; transition: transform 0.2s ease; }
a:hover .arr, button:hover .arr { transform: translateX(3px); }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 2px solid transparent;
  font: 800 0.8rem/1.15 var(--display); letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  text-align: center; background: transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 0.7rem; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-600); }
.btn-ink { background: var(--ink); color: var(--light); }
@media (prefers-color-scheme: dark) { .btn-ink { background: var(--accent); color: var(--ink); } }
.btn-ghost { border-color: rgba(245, 244, 238, 0.45); color: var(--light); }
.btn-ghost:hover { border-color: var(--light); }
.btn-outline { border-color: var(--fg); color: var(--fg); }
.btn-danger { border-color: var(--flame); }
.btn-save[aria-pressed='true'] { background: var(--ink); color: var(--light); }
.btn-save[aria-pressed='true']::before { content: '✓'; }
@media (prefers-color-scheme: dark) { .btn-save[aria-pressed='true'] { background: var(--card); box-shadow: inset 0 0 0 2px var(--accent); } }
.link-more { font-weight: 700; text-decoration: none; color: var(--link); border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.link-more:hover { border-bottom-color: var(--link); }
.band .link-more { color: var(--accent); border-color: rgba(var(--accent-rgb), 0.45); }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font: 700 0.6rem/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.badge-example { background: rgba(255, 79, 31, 0.12); color: #a82800; }
.badge-demo { background: rgba(255, 79, 31, 0.12); color: #a82800; }
.badge-soon { background: rgba(11, 12, 15, 0.08); color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.badge-format { background: rgba(var(--accent-rgb), 0.22); color: var(--fg); }
@media (prefers-color-scheme: dark) {
  .badge-example, .badge-demo { background: rgba(255, 79, 31, 0.2); color: #ffb39c; }
  .badge-soon { background: rgba(242, 241, 234, 0.08); }
}
.band .badge-example, .band .badge-demo { background: rgba(255, 79, 31, 0.22); color: #ffb39c; }
.band .badge-format { color: var(--light); }
.site-lang { display: inline-flex; padding: 3px 8px; border-radius: 999px; font: 700 0.58rem/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line-strong); }

/* ------------------------------------------------------------ strip, header */

/* The group's band: Volt, as on every site of Absolute. */
.strip { background: var(--volt); color: var(--ink); font: 500 0.78rem/1.2 var(--sans); }
.strip-in { display: flex; align-items: center; gap: 12px; padding-top: 7px; padding-bottom: 7px; }
.strip-dots { display: inline-flex; gap: 3px; flex: none; }
.strip-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1.5px var(--ink); }
.strip-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.strip a { text-decoration: none; font-weight: 700; white-space: nowrap; }
.strip a:hover { text-decoration: underline; }
@media (max-width: 520px) { .strip-dots, .strip-more { display: none; } }

.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 12, 15, 0.95); color: var(--light);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(245, 244, 238, 0.08);
  --wm-pin: var(--accent); --wm-accent: var(--ink);
}
.top-in { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.brand { text-decoration: none; margin-right: auto; display: inline-flex; padding: 6px 0; min-width: 0; }
.nav { display: none; gap: 2px; }
.nav a { padding: 10px 12px; border-radius: 999px; font: 600 0.92rem/1 var(--sans); text-decoration: none; color: rgba(245, 244, 238, 0.84); white-space: nowrap; }
.nav a:not(.nav-cta):hover, .nav a[aria-current='page'] { color: var(--light); background: rgba(245, 244, 238, 0.09); }
.top-cta { display: none; }
.nav .nav-cta { display: none; }
.langs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(245, 244, 238, 0.08); }
.langs a { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 7px; border-radius: 999px; font: 800 0.64rem/1 var(--display); letter-spacing: 0.06em; text-decoration: none; color: rgba(245, 244, 238, 0.74); }
.langs a:hover { color: var(--light); background: rgba(245, 244, 238, 0.1); }
.langs a[aria-current='true'] { background: var(--accent); color: var(--ink); }
.menu { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 0; background: rgba(245, 244, 238, 0.08); cursor: pointer; flex: none; }
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--light); transition: transform 0.2s ease; }
.menu-bars { position: relative; }
.menu-bars::before, .menu-bars::after { content: ''; position: absolute; left: 0; }
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }
.menu[aria-expanded='true'] .menu-bars { background: transparent; }
.menu[aria-expanded='true'] .menu-bars::before { transform: translateY(6px) rotate(45deg); }
.menu[aria-expanded='true'] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1099px) {
  .nav.is-open {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ink); padding: 8px var(--gut) 20px; border-bottom: 1px solid rgba(245, 244, 238, 0.12);
  }
  .nav.is-open a { padding: 14px 4px; font-size: 1.05rem; border-radius: 0; border-bottom: 1px solid rgba(245, 244, 238, 0.08); }
  .nav.is-open .nav-cta { display: inline-flex; margin-top: 16px; padding: 0 24px; border: 0; border-radius: 999px; color: var(--ink); }
}
@media (min-width: 1100px) {
  .nav { display: flex; }
  .top-cta { display: inline-flex; }
  .menu { display: none; }
}
@media (max-width: 380px) { .langs a { min-width: 34px; padding: 0 4px; } .top-in { gap: 6px; } }

/* --------------------------------------------------------------- wordmark */

.wordmark {
  display: inline-flex; align-items: center; white-space: nowrap;
  font: 900 1.3rem/1 var(--display); letter-spacing: -0.04em;
  transform: skewX(-10deg);
}
@media (max-width: 380px) { .top .wordmark { font-size: 1.12rem; } }
.wm-pin { height: 1em; width: auto; margin: 0 0.02em; flex: none; }
.wm-tail { display: inline-flex; }
.wm-swap { display: inline-grid; position: relative; justify-items: start; }
.wm-word { grid-area: 1 / 1; display: inline-flex; }
.wm-word .ch { display: inline-block; transition: transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.26s ease; transition-delay: calc(var(--i, 0) * 45ms); }
.wm-word:not(.is-on) .ch { opacity: 0; transform: translateX(-0.45em); }
.wm-word.is-leaving .ch { opacity: 0; transform: translateX(0.7em); }

/* ------------------------------------------------------------------- bands */

.band { position: relative; background: var(--ink); color: var(--light); overflow: hidden; --wm-pin: var(--accent); --wm-accent: var(--ink); --link: var(--accent); }
@media (prefers-color-scheme: dark) { .band { border-bottom: 1px solid rgba(245, 244, 238, 0.08); } }
/* Points of the map, in the school's colour: a step is a point you can reach. */
.dots {
  position: absolute; top: 0; bottom: 0; right: 0; width: 50%; pointer-events: none;
  background-image: radial-gradient(rgba(var(--accent-rgb), 0.55) 1.3px, transparent 1.7px), radial-gradient(rgba(212, 255, 58, 0.4) 1.3px, transparent 1.7px);
  background-size: 18px 18px, 72px 72px;
  background-position: 0 0, 27px 45px;
  -webkit-mask-image: linear-gradient(to left, #000 15%, transparent 92%);
  mask-image: linear-gradient(to left, #000 15%, transparent 92%);
  opacity: 0.6;
}
.dots-left { right: auto; left: 0; -webkit-mask-image: linear-gradient(to right, #000 10%, transparent 80%); mask-image: linear-gradient(to right, #000 10%, transparent 80%); opacity: 0.3; }

/* -------------------------------------------------------------------- hero */

.hero { padding: 48px 0 56px; }
.hero-in { position: relative; display: grid; gap: 36px; align-items: center; }
.hero-text { max-width: 640px; }
.hero .h1 { margin-top: 22px; font-size: clamp(2rem, 5.6vw, 3.9rem); }
.hero-lead { margin-top: 22px; font-size: 1.1rem; color: rgba(245, 244, 238, 0.8); max-width: 38rem; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 22px; font-size: 0.88rem; color: rgba(245, 244, 238, 0.6); }
@media (min-width: 960px) { .hero { padding: 72px 0 80px; } .hero-in { grid-template-columns: 1.1fr 0.9fr; } }

/* The ladder 0-10: eleven bars, the lit ones are a path; the ninth - «веду». */
.bars { display: flex; align-items: flex-end; gap: 4px; height: 160px; }
.bars li { position: relative; flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: rgba(11, 12, 15, 0.1); transition: background 0.25s ease; }
@media (prefers-color-scheme: dark) { .bars li { background: rgba(242, 241, 234, 0.12); } }
.band .bars li { background: rgba(245, 244, 238, 0.12); }
.bars li.on { background: var(--accent); }
.bars li.from { opacity: 0.75; }
.bars li span { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font: 800 0.68rem/1 var(--display); color: var(--muted); }
.bars li.on span { color: var(--ink); }
.band .bars li span { color: rgba(245, 244, 238, 0.55); }
.band .bars li.on span { color: var(--ink); }
.bars li.lead { box-shadow: inset 0 0 0 2px var(--accent); }
.bars li.here::after { content: ''; position: absolute; left: 50%; top: -16px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--fg); box-shadow: 0 0 0 3px var(--accent); }
.band .bars li.here::after { background: var(--light); }
.bars-sm { height: 64px; gap: 3px; }
.bars-sm li span { display: none; }
.bars-sm li { border-radius: 4px 4px 1px 1px; }
.bars-hero { height: min(300px, 62vw); gap: 6px; }
.bars-hero li { border-radius: 10px 10px 3px 3px; }
.bars-near { height: 200px; }
.bars-phone { height: 120px; gap: 3px; }
.bars-phone li span { display: none; }

.stair { position: relative; width: min(460px, 100%); justify-self: center; padding-top: 48px; }
.stair-tag { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font: 800 0.68rem/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.stair-here { left: 15%; bottom: calc(min(300px, 62vw) * 0.36 + 18px); background: var(--light); color: var(--ink); }
.stair-lead { right: 0; top: 0; background: var(--accent); color: var(--ink); }
.stair-mk { height: 18px; width: auto; }

/* ---------------------------------------------------------------- sections */

.sec { position: relative; padding: 64px 0; }
.sec-card { background: var(--card); }
@media (min-width: 960px) { .sec { padding: 96px 0; } }
.s-head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 36px; max-width: 800px; }
.sec-more { margin-top: 32px; }
.note-line { margin-top: 18px; color: var(--muted); font-size: 0.95rem; max-width: 52rem; }
.src-line { margin-top: 18px; color: var(--muted); font-size: 0.86rem; }
.two-col { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* doors */
.door-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .door-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.door { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 26px 24px; border-radius: var(--r); background: var(--card); border: 2px solid var(--line); }
.door p { color: var(--muted); }
.door .door-out { color: var(--fg); font-weight: 600; padding-top: 12px; border-top: 1px solid var(--line); width: 100%; }
.door .link-more { margin-top: auto; }

/* cycle */
.cycle { display: grid; gap: 14px; }
@media (min-width: 760px) { .cycle { grid-template-columns: repeat(4, 1fr); } }
.cycle li { position: relative; display: grid; align-content: start; gap: 10px; padding: 22px; border-radius: var(--r); background: var(--paper); }
.sec:not(.sec-card) .cycle li { background: var(--card); border: 2px solid var(--line); }
.cycle b { font: 800 1.15rem/1.2 var(--display); }
.cycle span:last-child { color: var(--muted); font-size: 0.96rem; }
@media (min-width: 760px) { .cycle { gap: 28px; } .cycle li:not(:last-child)::after { content: '→'; position: absolute; z-index: 1; right: -21px; top: 30px; font: 900 1rem/1 var(--display); color: var(--muted); } }

/* path cards */
.pcard-grid { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 720px) { .pcard-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .pcard-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.pcard { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--r); background: var(--card); border: 2px solid var(--line); transition: border-color 0.2s ease, transform 0.2s ease; }
.sec-card .pcard { background: var(--paper); }
.pcard:hover { border-color: var(--fg); transform: translateY(-2px); }
.pcard-soon { border-style: dashed; }
.pc-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.pc-kind { font: 700 0.68rem/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-left: auto; }
.pc-art { height: 64px; display: flex; align-items: center; }
.pc-mk-big { height: 56px; width: auto; }
.pc-title { font: 800 1.15rem/1.25 var(--display); letter-spacing: -0.02em; }
.pc-title a { text-decoration: none; color: inherit; }
.pc-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.pc-range { font-size: 0.88rem; color: var(--muted); }
.pc-range b { color: var(--fg); font-weight: 700; }
.pc-lead { color: var(--muted); font-size: 0.95rem; }
.pc-more { margin-top: auto; }

.formats { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 760px) { .formats { grid-template-columns: repeat(4, 1fr); } }
.formats li { display: grid; gap: 6px; padding: 16px 18px; border-radius: 18px; background: var(--card); border-left: 6px solid var(--accent); }
.formats span { color: var(--muted); font-size: 0.92rem; }

/* near */
.near-in { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .near-in { grid-template-columns: 1.15fr 0.85fr; gap: 64px; } }
.near-text { font-size: 1.1rem; color: rgba(245, 244, 238, 0.86); max-width: 40rem; }
.near-rule { margin-top: 16px; padding: 14px 16px; border-radius: 14px; border: 2px dashed rgba(255, 79, 31, 0.6); color: rgba(245, 244, 238, 0.86); max-width: 40rem; }
.near-cta { margin-top: 26px; }
.near-cap { display: flex; justify-content: space-between; margin-top: 10px; font: 700 0.7rem/1 var(--display); color: rgba(245, 244, 238, 0.55); }

/* not here */
.notfor { display: grid; gap: 20px; padding: 28px; border-radius: var(--r); background: var(--ink); color: var(--light); --link: var(--accent); }
.notfor .eyebrow { color: rgba(245, 244, 238, 0.7); }
@media (min-width: 900px) { .notfor { grid-template-columns: 0.85fr 1.15fr; padding: 40px; } .notfor .s-head { margin-bottom: 0; } }
@media (prefers-color-scheme: dark) { .notfor { background: #050506; border: 1px solid rgba(245, 244, 238, 0.14); } }
.notfor-sm { grid-template-columns: 1fr !important; padding: 28px; }
.crosses { display: grid; gap: 12px; }
.crosses li { position: relative; padding-left: 32px; }
.crosses li::before { content: '×'; position: absolute; left: 0; top: 1px; width: 21px; height: 21px; border-radius: 6px; background: var(--flame); color: var(--ink); font: 900 0.9rem/21px var(--display); text-align: center; }
.ticks { display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 7px; background: var(--accent); }
.ticks li::after { content: ''; position: absolute; left: 7px; top: 7px; width: 8px; height: 5px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.ticks-warn li::before { background: transparent; box-shadow: inset 0 0 0 2px var(--flame); }
.ticks-warn li::after { content: '!'; border: 0; transform: none; left: 0; top: 2px; width: 22px; height: 22px; font: 900 0.8rem/22px var(--display); text-align: center; color: var(--flame); }
.ticks-band li { color: rgba(245, 244, 238, 0.88); }
.dashes { display: grid; gap: 12px; }
.dashes li { position: relative; padding-left: 26px; }
.dashes li::before { content: '→'; position: absolute; left: 0; font-weight: 700; color: var(--muted); }

/* neighbours */
.nb-grid { display: grid; gap: 14px; }
@media (min-width: 680px) { .nb-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .nb-grid { grid-template-columns: repeat(4, 1fr); } }
.nb { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px; border-radius: 18px; background: var(--card); border-top: 6px solid var(--c); }
.sec-card .nb { background: var(--paper); }
.nb p { font-size: 0.94rem; color: var(--muted); }
.nb p b { color: var(--fg); }
.nb-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.nb-go { margin-top: auto; font-weight: 700; text-decoration: none; color: var(--link); }
.nb-go:hover { text-decoration: underline; }
.pchip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 6px; border-radius: 999px; background: var(--c); color: var(--on, var(--ink)); font: 700 0.66rem/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; }
.pc-mk { height: 18px; width: auto; }

/* app */
.app-in { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .app-in { grid-template-columns: 1.2fr 0.8fr; gap: 64px; } }
.app-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.installed { margin-top: 18px; font-weight: 700; color: var(--muted); }
.app-note { margin-top: 18px; color: var(--muted); font-size: 0.92rem; }
.phone { justify-self: center; width: min(280px, 78vw); aspect-ratio: 9 / 17; border-radius: 42px; background: var(--ink); padding: 14px; box-shadow: 0 0 0 3px var(--accent), 0 40px 70px -30px rgba(0, 0, 0, 0.6); transform: rotate(3deg); --wm-pin: var(--accent); --wm-accent: var(--ink); }
.ph-screen { height: 100%; border-radius: 30px; background: var(--ink-2); padding: 26px 18px; display: grid; align-content: start; gap: 26px; color: var(--light); }
.ph-top { display: flex; justify-content: center; }
.ph-top .wordmark { font-size: 1.05rem; }
.ph-screen .bars li { background: rgba(245, 244, 238, 0.12); }
.ph-screen .bars li.on { background: var(--accent); }
.ph-lines { display: grid; gap: 10px; }
.ph-lines i { height: 12px; border-radius: 6px; background: rgba(245, 244, 238, 0.12); }
.ph-lines i:nth-child(2) { width: 72%; }
.ph-lines i:nth-child(3) { width: 48%; background: rgba(var(--accent-rgb), 0.5); }

/* ------------------------------------------------------------ inner pages */

.p-hero { padding: 44px 0 52px; }
.h1-p { margin-top: 18px; font-size: clamp(1.9rem, 5.6vw, 3.8rem); max-width: 22ch; }
.back-row { margin-top: 22px; }
.back { color: rgba(245, 244, 238, 0.74); text-decoration: none; font-weight: 600; }
.back:hover { color: var(--accent); }
.p-layout { display: grid; gap: 40px; }
@media (min-width: 980px) { .p-layout { grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: start; } }
.p-body { display: grid; gap: 22px; max-width: 760px; }
.p-body > .h3 { margin-top: 18px; font-size: 1.3rem; }
.example-note { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 2px dashed var(--line-strong); color: var(--muted); font-size: 0.94rem; }
.lead-person { color: var(--muted); }
.card-note { font-size: 0.92rem; color: var(--muted); padding-left: 14px; border-left: 4px solid var(--accent); }
.stages { display: grid; gap: 12px; counter-reset: st; }
.stages li { counter-increment: st; display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 18px; border-radius: 18px; background: var(--card); border: 2px solid var(--line); }
.stages li::before { content: counter(st, decimal-leading-zero); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--accent); color: var(--ink); font: 900 0.85rem/1 var(--display); }
.stages b { font: 700 1.05rem/1.3 var(--display); }
.stages p { margin-top: 6px; color: var(--muted); }
.stages .link-more { display: inline-block; margin-top: 10px; font-size: 0.9rem; word-break: break-all; }
.p-side { display: grid; gap: 16px; }
@media (min-width: 980px) { .p-side { position: sticky; top: 92px; } }
@media (max-width: 979px) { .p-side { order: -1; } }
.terms { display: grid; gap: 14px; padding: 22px; border-radius: var(--r); background: var(--card); border: 2px solid var(--fg); box-shadow: 8px 8px 0 var(--accent); }
.t-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; font: 800 0.8rem/1.2 var(--display); text-transform: uppercase; letter-spacing: 0.06em; }
.t-len { color: var(--muted); font-size: 0.95rem; }
.ladder-box .bars { height: 120px; }
.lad-ends { display: grid; gap: 12px; }
.lad-ends dt { font: 700 0.66rem/1.2 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lad-ends dd { font-size: 0.95rem; }
.lad-all summary { cursor: pointer; font-weight: 700; font-size: 0.92rem; }
.lad-all ol { display: grid; gap: 6px; margin-top: 10px; font-size: 0.88rem; color: var(--muted); }
.lad-all li.on { color: var(--fg); }
.lad-all b { color: var(--fg); }
.lad-note { font-size: 0.82rem; color: var(--muted); }

/* teach */
.axes { display: grid; gap: 18px; margin-bottom: 28px; padding: 24px; border-radius: var(--r); background: var(--card); border: 2px solid var(--fg); box-shadow: 8px 8px 0 var(--accent); }
@media (min-width: 900px) { .axes { grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; } }
.axes-text p { margin-top: 8px; color: var(--muted); }
.axes-give { font-weight: 600; padding-left: 16px; border-left: 4px solid var(--accent); }
.leader { display: grid; gap: 12px; padding: 22px; border-radius: var(--r); border: 2px dashed var(--line-strong); }
.leader > p { color: var(--muted); }
.lead-checks b { color: var(--link); }
.tsteps { display: grid; gap: 14px; }
.tsteps li { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 22px; border-radius: var(--r); background: var(--card); border: 2px solid var(--line); }
.tsteps p { margin-top: 8px; color: var(--muted); max-width: 46rem; }
.tsteps p:last-child { margin-top: 12px; }
@media (min-width: 900px) { .tsteps { grid-template-columns: repeat(5, 1fr); } .tsteps li { grid-template-columns: 1fr; align-content: start; } }
.cycle-4 li { background: var(--card); border: 2px solid var(--line); }
.mini-grid { display: grid; gap: 14px; }
@media (min-width: 680px) { .mini-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .mini-grid { grid-template-columns: repeat(4, 1fr); } }
.mini { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px; border-radius: 18px; background: var(--card); border: 2px solid var(--line); }
.sec-card .mini { background: var(--paper); }
.mini p { color: var(--muted); font-size: 0.95rem; }
.mini .link-more { margin-top: auto; font-size: 0.92rem; word-break: break-word; }
.value { margin-top: 40px; padding: 26px; border-radius: var(--r); border: 2px solid var(--fg); }
.value-in { display: grid; gap: 24px; margin-top: 18px; }
@media (min-width: 760px) { .value-in { grid-template-columns: 1fr 1fr; } }
.value h3 { font: 700 0.72rem/1.2 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }

/* plan */
.plan { display: grid; gap: 28px; }
@media (min-width: 1000px) { .plan { grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; } }
.plan-form { display: grid; gap: 18px; }
.fld { display: grid; gap: 8px; }
.fld > span, .fld > legend { font: 700 0.7rem/1.2 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.fld-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fld-row .fld:last-child { grid-column: 1 / -1; }
@media (min-width: 560px) { .fld-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } .fld-row .fld:last-child { grid-column: auto; } }
.fld input[type='text'], .fld select, .fld textarea, .note-add textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 14px; border: 2px solid var(--line-strong); background: var(--paper); color: var(--fg);
}
.sec-card .fld input[type='text'], .sec-card .fld select, .sec-card .fld textarea { background: var(--card); }
.fld textarea, .note-add textarea { resize: vertical; min-height: 64px; }
.fld input:focus, .fld select:focus, .fld textarea:focus, .note-add textarea:focus { outline: none; border-color: var(--fg); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.6); }
.plan-blocks { display: grid; gap: 12px; }
.plan-blocks li { display: block; }
.plan-blocks small { display: block; margin: 4px 0 8px; color: var(--muted); font-size: 0.86rem; }
.pb-min { display: inline-block; min-width: 34px; margin-left: 6px; padding: 2px 6px; border-radius: 8px; background: var(--accent); color: var(--ink); font: 800 0.8rem/1.2 var(--display); text-align: center; }
.checks { display: grid; gap: 10px; }
.checks label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.checks input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--deep); flex: none; }
@media (prefers-color-scheme: dark) { .checks input { accent-color: var(--accent); } }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--line-strong); font-weight: 600; }
.opt:hover span { border-color: var(--fg); }
.opt input:checked + span { background: var(--ink); color: var(--light); border-color: var(--ink); }
@media (prefers-color-scheme: dark) { .opt input:checked + span { background: var(--accent); color: var(--ink); border-color: var(--accent); } }
.opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.plan-out { display: grid; gap: 16px; }
@media (min-width: 1000px) { .plan-out { position: sticky; top: 92px; } }
.plan-sheet { padding: 24px; border-radius: var(--r); background: var(--paper); border: 2px solid var(--fg); box-shadow: 8px 8px 0 var(--accent); min-height: 200px; }
.plan-pre { margin: 12px 0 0; white-space: pre-wrap; word-break: break-word; font: 400 0.95rem/1.6 var(--sans); }
.plan-status { min-height: 1.5em; font-weight: 700; color: var(--link); }
.me-btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* tables */
.table-wrap:focus-visible { outline-offset: 2px; }
.table-wrap { overflow-x: auto; border-radius: 18px; border: 2px solid var(--line); }
.tbl { width: 100%; border-collapse: collapse; font-size: 0.94rem; min-width: 560px; }
.tbl th, .tbl td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tbl thead th { font: 700 0.66rem/1.2 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
.tbl tbody th { font-weight: 700; }
.tbl tr:last-child th, .tbl tr:last-child td { border-bottom: 0; }
.tbl-num td { font-variant-numeric: tabular-nums; text-align: right; }
.tbl-num td.low { color: #a82800; font-weight: 800; }
@media (prefers-color-scheme: dark) { .tbl-num td.low { color: #ffb39c; } }
.tbl-title { margin: 32px 0 14px; }

/* members */
.acc-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .acc-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
.acc { display: grid; align-content: start; gap: 14px; padding: 26px 24px; border-radius: var(--r); background: var(--card); border: 2px solid var(--line); }
.acc-next { border-color: var(--fg); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.85); }
.acc-never { background: var(--ink); color: var(--light); border-color: var(--ink); --link: var(--accent); }
@media (prefers-color-scheme: dark) { .acc-never { background: #050506; border-color: rgba(245, 244, 238, 0.14); } }
.acc-tag { font: 900 0.9rem/1 var(--display); width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); color: var(--ink); }
.acc-never .acc-tag { background: var(--flame); }
.role-list { display: grid; gap: 12px; max-width: 52rem; }
.role-list li { padding: 14px 18px; border-radius: 14px; background: var(--card); border-left: 6px solid var(--accent); }

/* docs */
.doc-list { display: grid; gap: 16px; }
@media (min-width: 900px) { .doc-list { grid-template-columns: 1fr 1fr; } }
.doc { display: grid; align-content: start; gap: 12px; padding: 24px; border-radius: var(--r); background: var(--card); border: 2px solid var(--line); }
.doc p { color: var(--muted); }
.doc-flag { justify-self: start; padding: 5px 10px; border-radius: 999px; font: 700 0.6rem/1.2 var(--display); letter-spacing: 0.08em; text-transform: uppercase; background: rgba(255, 79, 31, 0.12); color: #a82800 !important; }
@media (prefers-color-scheme: dark) { .doc-flag { background: rgba(255, 79, 31, 0.2); color: #ffb39c !important; } }
.doc-live { border-color: var(--fg); }

/* brand */
.bm-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; margin-bottom: 28px; }
.bm-row figure { display: grid; gap: 8px; justify-items: center; }
.bm-cell { display: grid; place-items: center; min-width: 72px; min-height: 72px; padding: 12px; border-radius: 16px; background: var(--paper); border: 2px solid var(--line); }
.sec-card .bm-cell { background: var(--card); }
.bm-dark { background: var(--ink) !important; border-color: var(--ink); }
.bm-self { box-shadow: 0 0 0 3px var(--accent); }
.bm { width: auto; }
.bm-row figcaption { font: 700 0.7rem/1.2 var(--display); color: var(--muted); }
.tokens { display: grid; gap: 10px; margin-top: 22px; }
@media (min-width: 760px) { .tokens { grid-template-columns: 1fr 1fr; } }
.tokens li { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 4px 12px; padding: 12px; border-radius: 14px; background: var(--paper); }
.tokens small { grid-column: 2 / -1; color: var(--muted); font-size: 0.86rem; }
.sw { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(11, 12, 15, 0.2); }
.sw-sm { display: inline-block; vertical-align: -4px; width: 18px; height: 18px; border-radius: 5px; margin-right: 8px; }
.wm-show { margin: 8px 0 18px; }
.wm-show .wordmark { font-size: clamp(2.2rem, 7vw, 3.6rem); }

/* «Мой путь» */
.me-warn { padding: 14px 16px; border-radius: 14px; border: 2px dashed var(--line-strong); color: var(--muted); margin-bottom: 20px; }
.me-in { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1000px) { .me-in { grid-template-columns: 1.05fr 0.95fr; gap: 28px; } .me-ladder { position: sticky; top: 92px; } }
.me-side { display: grid; gap: 16px; }
.me-card { display: grid; gap: 14px; padding: 22px; border-radius: var(--r); background: var(--card); border: 2px solid var(--line); }
.me-ladder { border-color: var(--fg); box-shadow: 8px 8px 0 var(--accent); }
.bars-me { height: 200px; margin-top: 24px; }
.bars-me li button { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; cursor: pointer; border-radius: inherit; }
.me-now { display: flex; gap: 16px; align-items: flex-start; margin-top: 8px; }
.me-n { font: 900 3.6rem/0.9 var(--display); color: var(--deep); letter-spacing: -0.04em; }
@media (prefers-color-scheme: dark) { .me-n { color: var(--accent); } }
.me-now b { font: 800 1.3rem/1.2 var(--display); }
.me-now p { margin-top: 6px; color: var(--muted); }
.me-mark { display: inline-flex; justify-self: start; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--deep); color: var(--link); font-weight: 700; }
.me-next { color: var(--muted); font-size: 0.94rem; }
.me-next b { color: var(--fg); }
.note-add { display: grid; gap: 10px; }
.notes { display: grid; gap: 10px; max-height: 420px; overflow: auto; }
.notes li { position: relative; padding: 12px 44px 12px 14px; border-radius: 14px; background: var(--paper); }
.notes li.muted { padding-right: 14px; }
.notes small { color: var(--muted); font-weight: 600; font-size: 0.8rem; }
.notes p { white-space: pre-wrap; word-break: break-word; }
.note-del { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; border-radius: 9px; border: 0; background: transparent; cursor: pointer; font-size: 1.2rem; color: var(--muted); }
.note-del:hover { color: var(--fg); background: var(--line); }
.saved { display: grid; gap: 8px; }
.saved li { display: grid; gap: 2px; }
.saved small { color: var(--muted); }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-btn:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }

/* faq */
.faq-in { display: grid; gap: 8px; }
@media (min-width: 1000px) { .faq-in { grid-template-columns: 0.3fr 1.7fr; gap: 48px; } }
.qa { border-bottom: 2px solid var(--line); }
.qa:first-child { border-top: 2px solid var(--line); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; font: 700 1.04rem/1.35 var(--display); letter-spacing: -0.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa-q { font: inherit; letter-spacing: inherit; margin: 0; }
.qa summary i { position: relative; flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--card); box-shadow: inset 0 0 0 2px var(--line); }
.qa summary i::before, .qa summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: currentColor; border-radius: 2px; }
.qa summary i::after { transform: rotate(90deg); transition: transform 0.2s ease; }
.qa[open] summary i { background: var(--accent); color: var(--ink); box-shadow: none; }
.qa[open] summary i::after { transform: rotate(0); }
.qa p { padding: 0 48px 22px 0; color: var(--muted); }
@media (max-width: 520px) { .qa p { padding-right: 0; } }

.nf { padding: 72px 0 96px; border-bottom: 8px solid var(--accent); }

/* ------------------------------------------------------------------ footer */

.foot { background: var(--ink); color: var(--light); padding: 56px 0 28px; --wm-pin: var(--accent); --wm-accent: var(--ink); }
@media (prefers-color-scheme: dark) { .foot { border-top: 1px solid rgba(245, 244, 238, 0.08); } }
.f-top { display: grid; gap: 36px; }
@media (min-width: 900px) { .f-top { grid-template-columns: 0.8fr 2fr; } }
.f-brand .wordmark { font-size: 2rem; }
.f-ru { margin-top: 10px; font: 700 0.72rem/1.2 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.f-motto { margin-top: 14px; color: rgba(245, 244, 238, 0.68); max-width: 22rem; }
.f-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px; }
.f-col h2 { font: 700 0.66rem/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(245, 244, 238, 0.55); margin-bottom: 12px; }
.f-col li + li { margin-top: 2px; }
.f-col a { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: 40px; padding: 4px 0; text-decoration: none; color: rgba(245, 244, 238, 0.88); font-weight: 500; }
.f-col a:hover { color: var(--accent); }
.f-col a i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.f-col small { color: rgba(245, 244, 238, 0.5); font-size: 0.8rem; }
.f-bottom { display: grid; gap: 8px; margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(245, 244, 238, 0.12); font-size: 0.86rem; color: rgba(245, 244, 238, 0.6); }
.foot .fill { box-shadow: inset 0 0 0 1.5px var(--flame); }

/* ------------------------------------------------------------------ motion */

.rise { animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.hero-lead.rise { animation-delay: 0.1s; }
.hero-cta.rise { animation-delay: 0.2s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.bars-hero li { animation: grow 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(var(--h) * 0.008s); transform-origin: bottom; }
@keyframes grow { from { transform: scaleY(0.2); opacity: 0.2; } to { transform: none; opacity: 1; } }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .strip, .top, .hero-art, .dots, .foot, .phone, .menu, .langs, .me-btns, .plan-status { display: none !important; }
  .band { background: none; color: #000; }
  .band, .band * { color: #000 !important; }
  .notfor, .acc-never { background: none !important; color: #000 !important; border: 2px solid #000; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  body.print-plan main > *:not(#plan) { display: none !important; }
  body.print-plan #plan .s-head, body.print-plan .plan-form { display: none !important; }
  body.print-plan .plan { display: block; }
  body.print-plan .plan-sheet { box-shadow: none; border: 0; padding: 0; }
}
