/* Знаниум — общий стиль сайта, кабинета и админки */

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/onest-cyrillic.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: 100 900;
  font-display: swap;
  src: url("/static/fonts/onest-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+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f7f3ee;
  --surface: #fffdfa;
  --surface-2: #f1ebe4;
  --ink: #26222b;
  --ink-soft: #4a4450;
  --muted: #736c76;
  --line: #e7dfd7;
  --plum: #8c6573;
  --plum-strong: #6f4b59;
  --plum-soft: #efe2e6;
  --peach: #f6dfd4;
  --lilac: #e7def0;
  --mint: #d7e9e1;
  --sky: #dde8f3;
  --sun: #f7ebcc;
  --ok: #2f7a55;
  --warn: #9a6a12;
  --danger: #b0413e;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(38, 34, 43, .04), 0 10px 30px rgba(38, 34, 43, .06);
  --header-h: 76px;
  --wrap: 1180px;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #18161c;
  --surface: #211e26;
  --surface-2: #2a2630;
  --ink: #efeaf2;
  --ink-soft: #d0c9d4;
  --muted: #a39aa7;
  --line: #36313c;
  --plum: #d2a9b7;
  --plum-strong: #e6c2ce;
  --plum-soft: #3a2c33;
  --peach: #3a2c27;
  --lilac: #2f2838;
  --mint: #223329;
  --sky: #212c37;
  --sun: #36301f;
  --ok: #6fc49a;
  --warn: #e0b45f;
  --danger: #f08a86;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  overflow-x: clip;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.025em; font-weight: 750; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--plum); margin-bottom: 14px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 52px); }
.section-head p { max-width: 460px; color: var(--muted); font-size: 18px; }
.muted { color: var(--muted); }
.pre { white-space: pre-line; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 650; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--plum-strong); }
:root[data-theme="dark"] .btn-primary { background: var(--plum-strong); color: #1b1720; }
:root[data-theme="dark"] .btn-primary:hover { background: #f3d6df; }
.btn-outline { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn-outline:hover { border-color: var(--plum); }
.btn-ghost { background: transparent; color: var(--ink); padding: 0 14px; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 10%, transparent); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-xs { min-height: 32px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translate(2px, -2px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 23px; letter-spacing: -0.04em; flex-shrink: 0; }
.brand img { width: 42px; height: 42px; }
.brand b { color: var(--plum); }
.main-nav { display: flex; gap: 4px; margin-left: 12px; }
.main-nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-soft); }
.main-nav a:hover { background: var(--surface-2); color: var(--ink); }
.main-nav a[aria-current="page"] { background: var(--plum-soft); color: var(--plum-strong); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: inline-grid; place-items: center; cursor: pointer; color: var(--ink); }
.icon-btn:hover { border-color: var(--plum); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-icon-dark { display: none; }
:root[data-theme="dark"] .theme-icon-dark { display: block; }
:root[data-theme="dark"] .theme-icon-light { display: none; }
.menu-toggle { display: none; }
.main-nav .hide-desktop-link { display: none; }

.contact-menu { position: relative; }
.contact-panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: 300px; padding: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .15s, transform .15s;
}
.contact-menu.open .contact-panel { opacity: 1; transform: none; pointer-events: auto; }
.contact-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none; }
.contact-link:hover { background: var(--surface-2); }
.contact-link .ci { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--plum-soft); color: var(--plum-strong); flex-shrink: 0; }
.contact-link .ci svg { width: 18px; height: 18px; }
.contact-link small { display: block; color: var(--muted); font-size: 12px; line-height: 1.3; }
.contact-link span { font-weight: 600; font-size: 15px; line-height: 1.3; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.6vw, 84px); letter-spacing: -0.045em; line-height: 1.02; }
.hero-lead { margin-top: 24px; font-size: clamp(18px, 1.7vw, 21px); color: var(--ink-soft); max-width: 560px; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn { min-height: 58px; padding: 0 28px; font-size: 17px; }
.hero-note { margin-top: 20px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; }
.hero-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 5px color-mix(in srgb, var(--ok) 18%, transparent); }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 15px; margin-bottom: 26px; }
.hero-badge span { background: var(--plum-soft); color: var(--plum-strong); border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 700; }
.hero-visual { position: relative; aspect-ratio: 1; max-width: 500px; justify-self: center; width: 100%; }
.hero-visual .disc { position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fbe8e0, var(--peach) 60%, #ecc9bb); }
:root[data-theme="dark"] .hero-visual .disc { background: radial-gradient(circle at 35% 30%, #4a3730, #3a2c27 70%); }
.hero-visual img { position: absolute; inset: 14%; width: 72%; height: 72%; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(60, 30, 40, .18)); }
.chip { position: absolute; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow); font-size: 14px; font-weight: 650; line-height: 1.25; }
.chip i { font-style: normal; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 15px; font-weight: 800; }
.chip-1 { left: -4%; top: 16%; } .chip-1 i { background: var(--lilac); color: #6b4f8a; }
.chip-2 { right: -6%; top: 44%; } .chip-2 i { background: var(--mint); color: #2c6a51; }
.chip-3 { left: 6%; bottom: 6%; } .chip-3 i { background: var(--sun); color: #8a6512; }
:root[data-theme="dark"] .chip i { color: var(--ink); }

/* ---------- facts strip ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--ink); color: var(--bg); border-radius: var(--radius); overflow: hidden; }
:root[data-theme="dark"] .facts { background: var(--surface-2); color: var(--ink); }
.facts div { padding: 26px 28px; border-left: 1px solid rgba(255, 255, 255, .1); }
.facts div:first-child { border-left: 0; }
.facts strong { display: block; font-size: 30px; letter-spacing: -0.03em; line-height: 1.1; }
.facts span { font-size: 15px; opacity: .75; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tint-peach { background: var(--peach); border-color: transparent; }
.tint-lilac { background: var(--lilac); border-color: transparent; }
.tint-mint { background: var(--mint); border-color: transparent; }
.tint-sky { background: var(--sky); border-color: transparent; }
.tint-sun { background: var(--sun); border-color: transparent; }

.program-card { display: flex; flex-direction: column; gap: 14px; min-height: 300px; padding: 34px; }
.program-card .num { font-size: 14px; font-weight: 750; color: var(--plum-strong); background: rgba(255, 255, 255, .6); border-radius: 999px; padding: 3px 12px; align-self: flex-start; }
:root[data-theme="dark"] .program-card .num { background: rgba(255, 255, 255, .08); }
.program-card h3 { font-size: clamp(24px, 2.4vw, 30px); }
.program-card p { color: var(--ink-soft); font-size: 17px; }
.program-card .btn { margin-top: auto; align-self: flex-start; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 14px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .65); }
:root[data-theme="dark"] .tag { background: rgba(255, 255, 255, .07); }

.approach-card h3 { font-size: 23px; margin: 18px 0 10px; }
.approach-card p { color: var(--ink-soft); }
.approach-card .ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .7); }
:root[data-theme="dark"] .approach-card .ico { background: rgba(255, 255, 255, .08); }
.approach-card .ico svg { width: 26px; height: 26px; color: var(--plum-strong); }

.steps { counter-reset: step; }
.step { position: relative; padding-top: 70px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 28px; left: 30px; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-weight: 750; font-size: 15px; }
:root[data-theme="dark"] .step::before { background: var(--plum-strong); color: #1b1720; }
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--muted); }

.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.audience li { list-style: none; display: flex; gap: 14px; align-items: flex-start; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 550; }
.audience li svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--plum); margin-top: 2px; }
.audience { padding: 0; margin: 0; }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; padding: 34px; position: relative; }
.price-card h3 { font-size: 24px; }
.price-card .amount { font-size: clamp(38px, 4vw, 48px); font-weight: 800; letter-spacing: -0.04em; margin-top: 18px; line-height: 1; }
.price-card .period { color: var(--muted); font-size: 15px; margin-top: 8px; }
.price-card .desc { margin-top: 16px; color: var(--ink-soft); }
.price-card ul { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; }
.price-card li::before { content: ""; flex-shrink: 0; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%232f7a55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.price-card .btn { margin-top: auto; }
.price-card.featured { border: 2px solid var(--plum); box-shadow: var(--shadow); }
.price-card .badge { position: absolute; top: -13px; left: 34px; background: var(--plum-strong); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
:root[data-theme="dark"] .price-card .badge { color: #1b1720; }
.price-note { margin-top: 22px; text-align: center; color: var(--muted); font-size: 15px; }

/* ---------- referral / cta ---------- */
.banner { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding: 48px 52px; border-radius: 28px; background: var(--ink); color: var(--bg); position: relative; overflow: hidden; }
:root[data-theme="dark"] .banner { background: #2e2433; color: var(--ink); }
.banner::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(214, 160, 178, .35), transparent 70%); pointer-events: none; }
.banner h2 { font-size: clamp(28px, 3.4vw, 42px); }
.banner p { margin-top: 14px; opacity: .8; max-width: 640px; font-size: 18px; }
.banner .pill { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); margin-bottom: 16px; }
.banner .btn { background: var(--bg); color: var(--ink); position: relative; z-index: 1; }
:root[data-theme="dark"] .banner .btn { background: var(--plum-strong); color: #1b1720; }

.mission { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }
.mission img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.mission h2 { font-size: clamp(30px, 3.6vw, 44px); }
.mission h2 mark { background: var(--plum-soft); color: var(--plum-strong); padding: 0 .15em; border-radius: 8px; }
.mission-list { margin-top: 26px; display: grid; gap: 18px; }
.mission-list p { color: var(--ink-soft); }
.mission-list strong { color: var(--ink); }

/* ---------- документы ---------- */
.doc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.doc-card { display: flex; gap: 18px; align-items: flex-start; padding: 24px; }
.doc-card .file-ico { width: 52px; height: 52px; font-size: 12px; }
.doc-info { flex: 1; min-width: 0; }
.doc-info h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }
.doc-info p { color: var(--muted); font-size: 15px; margin-top: 6px; line-height: 1.5; }
.doc-info small { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.doc-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }

/* ---------- faq ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-list details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq-list summary { cursor: pointer; list-style: none; padding: 22px 60px 22px 26px; font-weight: 650; font-size: 19px; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: 20px; font-weight: 500; transition: transform .2s; }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { padding: 0 26px 24px; color: var(--ink-soft); max-width: 760px; }

/* ---------- page head ---------- */
.page-head { padding: 64px 0 24px; }
.page-head h1 { font-size: clamp(40px, 5.6vw, 68px); letter-spacing: -0.04em; }
.page-head p { margin-top: 18px; font-size: 19px; color: var(--ink-soft); max-width: 640px; }

/* ---------- forms ---------- */
.field { display: grid; gap: 7px; margin-bottom: 16px; align-content: start; }
.field > span, .label { font-size: 14px; font-weight: 650; color: var(--ink-soft); }
.field small { color: var(--muted); font-size: 13px; }
.input, input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"], input[type="date"], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23736c76' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 4px color-mix(in srgb, var(--plum) 18%, transparent); }
input[aria-invalid="true"] { border-color: var(--danger); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); line-height: 1.5; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--plum-strong); flex-shrink: 0; }
.check a { color: var(--plum-strong); }
.form-status { min-height: 24px; margin-top: 12px; font-size: 15px; font-weight: 550; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--danger); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 52px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.pw-toggle:hover { background: var(--surface-2); color: var(--ink); }
.pw-toggle svg { width: 20px; height: 20px; }

.signup { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.signup-side { background: var(--plum-soft); padding: 48px; display: flex; flex-direction: column; gap: 18px; }
.signup-side h1, .signup-side h2 { font-size: clamp(34px, 4vw, 48px); }
.signup-side p { color: var(--ink-soft); font-size: 18px; }
.signup-side ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 12px; }
.signup-side li { display: flex; gap: 12px; align-items: flex-start; font-weight: 550; }
.signup-side li b { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 14px; }
.signup-side .contacts-mini { margin-top: auto; padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--plum) 25%, transparent); font-size: 15px; color: var(--ink-soft); }
.signup-side .contacts-mini a { color: var(--plum-strong); font-weight: 650; }
.signup-form { padding: 48px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- contacts ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-card { display: flex; gap: 16px; align-items: center; padding: 22px; text-decoration: none; transition: border-color .15s, transform .15s; }
.contact-card:hover { border-color: var(--plum); transform: translateY(-2px); }
.contact-card .ci { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--plum-soft); color: var(--plum-strong); flex-shrink: 0; }
.contact-card .ci svg { width: 22px; height: 22px; }
.contact-card small { display: block; color: var(--muted); font-size: 13px; }
.contact-card span { font-weight: 650; font-size: 17px; word-break: break-word; }
.requisites { margin-top: 24px; padding: 26px 30px; }
.requisites h3 { font-size: 19px; margin-bottom: 12px; }
.requisites dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; margin: 0; }
.requisites dt { color: var(--muted); }
.requisites dd { margin: 0; font-weight: 600; }

/* ---------- legal ---------- */
.legal { max-width: 860px; }
.legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.legal-tabs a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-size: 14px; font-weight: 600; background: var(--surface); }
.legal-tabs a[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.legal-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 52px); font-size: 16px; line-height: 1.7; }
.legal-body h1 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 24px; }
.legal-body h2 { font-size: 21px; margin: 32px 0 12px; }
.legal-body p, .legal-body li { margin-bottom: 10px; color: var(--ink-soft); }
.legal-body a { color: var(--plum-strong); word-break: break-word; }
.legal-operator { background: var(--surface-2); border-radius: var(--radius-sm); padding: 18px 22px; margin-bottom: 24px; font-size: 15px; }

/* ---------- footer ---------- */
.site-footer { margin-top: 40px; background: #221e26; color: #e9e3ec; padding: 60px 0 34px; font-size: 15px; }
:root[data-theme="dark"] .site-footer { background: #111014; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; }
.site-footer .brand { color: #fff; }
.site-footer .brand b { color: #d6a8b8; }
.site-footer h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #a89fac; margin-bottom: 14px; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: #e9e3ec; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-about p { margin-top: 14px; color: #b9b0bd; max-width: 300px; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; color: #a89fac; font-size: 14px; }
.footer-bottom .req { color: #cfc6d3; }

/* ---------- toast & dialogs ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 14px; font-weight: 600; font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 200; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--danger); color: #fff; }

dialog { border: 0; padding: 0; border-radius: 24px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .25); width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 40px); }
dialog::backdrop { background: rgba(20, 16, 24, .5); backdrop-filter: blur(3px); }
.dialog-body { padding: 30px; }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.dialog-head h2 { font-size: 26px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

/* ---------- auth card (кабинет, админка) ---------- */
.auth-wrap { display: grid; place-items: center; padding: 56px 0 72px; }
.auth-card { width: min(460px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 40px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 34px; margin-bottom: 10px; }
.auth-card > p { color: var(--muted); margin-bottom: 26px; }
.auth-foot { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.auth-foot a { color: var(--plum-strong); font-weight: 600; }
.notice { padding: 14px 18px; border-radius: 14px; background: var(--sun); font-size: 15px; margin-bottom: 18px; }
.notice.info { background: var(--sky); }
.secret { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface-2); border: 1px dashed var(--line); border-radius: 12px; padding: 14px 16px; font-size: 16px; line-height: 1.7; word-break: break-all; }

/* ---------- кабинет ученика ---------- */
.cab-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding: 48px 0 28px; }
.cab-head h1 { font-size: clamp(32px, 4.4vw, 48px); }
.cab-head p { color: var(--muted); margin-top: 8px; }
.cab-grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.cab-side { display: grid; gap: 20px; }
.cab-side h3, .cab-main h2 { font-size: 20px; margin-bottom: 14px; }
.kv { display: grid; gap: 10px; margin: 0; }
.kv div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.kv dt { color: var(--muted); font-size: 15px; }
.kv dd { margin: 0; font-weight: 600; text-align: right; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.toolbar input[type="search"] { flex: 1; min-width: 200px; }
.toolbar select { width: auto; min-width: 170px; }
.file-list { display: grid; gap: 10px; }
.file-row { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.file-ico { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; font-size: 12px; font-weight: 800; letter-spacing: .02em; background: var(--lilac); color: #5d4380; text-transform: uppercase; }
.file-ico.pdf { background: #f8dcd8; color: #a23c33; }
.file-ico.doc, .file-ico.docx, .file-ico.odt, .file-ico.rtf { background: var(--sky); color: #2c5b8a; }
.file-ico.xls, .file-ico.xlsx, .file-ico.ods { background: var(--mint); color: #2c6a51; }
.file-ico.ppt, .file-ico.pptx, .file-ico.odp { background: var(--sun); color: #8a5a12; }
:root[data-theme="dark"] .file-ico { color: var(--ink) !important; background: #342c3d; }
:root[data-theme="dark"] .file-ico.pdf { background: #4b2b2e; }
:root[data-theme="dark"] .file-ico.doc, :root[data-theme="dark"] .file-ico.docx, :root[data-theme="dark"] .file-ico.odt, :root[data-theme="dark"] .file-ico.rtf { background: #243449; }
:root[data-theme="dark"] .file-ico.xls, :root[data-theme="dark"] .file-ico.xlsx, :root[data-theme="dark"] .file-ico.ods { background: #233b30; }
:root[data-theme="dark"] .file-ico.ppt, :root[data-theme="dark"] .file-ico.pptx, :root[data-theme="dark"] .file-ico.odp { background: #46391f; }
.nw { white-space: nowrap; }
.file-info { flex: 1; min-width: 0; }
.file-info strong { display: block; font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.file-info small { color: var(--muted); font-size: 13px; }
.file-actions { display: flex; gap: 8px; flex-shrink: 0; }
.subject-title { font-size: 14px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--plum); margin: 22px 0 10px; }
.subject-title:first-child { margin-top: 0; }
.empty { padding: 36px 20px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line); border-radius: 16px; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { font-size: 14px; min-height: 44px; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 100px 0; }
.notfound img { width: 140px; margin: 0 auto 24px; }
.notfound h1 { font-size: 46px; margin-bottom: 12px; }
.notfound p { color: var(--muted); margin-bottom: 26px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .main-nav a { padding: 8px 10px; }
  .header-actions .hide-md { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --header-h: 66px; }
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .menu-toggle { display: inline-grid; }
  .main-nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 2px; margin: 0; padding: 12px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
  .main-nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .main-nav a { padding: 14px 16px; font-size: 17px; }
  .main-nav .hide-desktop-link { display: block; }
  .header-actions .hide-sm { display: none; }
  .hero { padding: 28px 0 56px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero-visual { max-width: 360px; order: -1; }
  .chip { font-size: 13px; padding: 8px 12px; }
  .chip-1 { left: 0; } .chip-2 { right: 0; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts div:nth-child(3) { border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .1); }
  .grid-2, .grid-3, .price-grid, .audience, .contact-grid, .doc-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .banner { grid-template-columns: 1fr; padding: 34px 28px; }
  .mission { grid-template-columns: 1fr; gap: 28px; }
  .signup { grid-template-columns: 1fr; }
  .signup-side, .signup-form { padding: 30px 24px; }
  .cab-grid { grid-template-columns: 1fr; }
  .price-card.featured { order: -1; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 28px); }
  .brand { font-size: 20px; } .brand img { width: 36px; height: 36px; }
  .header-actions .btn-cabinet span { display: none; }
  .hero-actions .btn { width: 100%; }
  .btn { white-space: normal; text-align: center; line-height: 1.25; }
  .hero-visual { max-width: 230px; }
  .chip { display: none; }
  .hero-badge { font-size: 14px; }
  .facts div { padding: 20px; }
  .facts strong { font-size: 24px; }
  .facts span { font-size: 14px; }
  .grid-4, .row-2 { grid-template-columns: 1fr; }
  .program-card, .price-card, .card { padding: 24px; }
  .card.step { padding-top: 68px; }
  .step::before { top: 22px; left: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 28px 22px; border-radius: 22px; }
  .file-row { flex-wrap: wrap; }
  .file-actions { width: 100%; }
  .file-actions .btn { flex: 1; }
  .requisites dl { grid-template-columns: 1fr; gap: 2px; }
  .doc-card { flex-wrap: wrap; }
  .doc-actions { flex-direction: row; width: 100%; padding-left: 70px; }
  .requisites dd { margin-bottom: 8px; }
  .dialog-body { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .toast { display: none; }
  body { background: #fff; color: #000; }
}
