/* =========================================================
   Полигон — дизайн-система прототипа
   ========================================================= */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald-cyrillic.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --ink: #101418;
  --ink-2: #1a2026;
  --ink-3: #242c34;
  --ink-4: #303a44;
  --bg: #f4f5f7;
  --bg-2: #eceef1;
  --card: #ffffff;
  --line: #e6e8ec;
  --line-2: #d8dce2;
  --text: #161b21;
  --muted: #6b7280;
  --muted-2: #98a0aa;
  --accent: #ffd400;
  --accent-2: #ffe45c;
  --accent-soft: #fff8cc;
  --accent-ink: #14181c;
  --green: #0f9d76;
  --green-bg: #e6f7f1;
  --red: #dd454b;
  --red-bg: #fdecec;
  --blue: #2f6fed;
  --blue-bg: #eaf1fe;
  --violet: #7c5cff;
  --violet-bg: #f0ecff;
  --amber: #ed9b0b;
  --amber-bg: #fff5e0;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(16, 20, 24, 0.04), 0 8px 24px rgba(16, 20, 24, 0.05);
  --shadow-lg: 0 24px 64px rgba(16, 20, 24, 0.18);
  --sidebar: 252px;
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Oswald", "Manrope", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 3px solid rgba(47, 111, 237, 0.35); outline-offset: 2px; border-radius: 6px; }

/* ---------- утилиты ---------- */
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.strong { font-weight: 700; }
.mono { font-variant-numeric: tabular-nums; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.stack { display: grid; gap: 12px; }
.stack-lg { display: grid; gap: 20px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px;
  border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; font-size: 14px; line-height: 1; white-space: nowrap;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}
.btn:active { transform: translateY(1px) scale(0.995); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px rgba(255, 212, 0, 0.28); }
.btn--primary:hover { background: var(--accent-2); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-3); }
.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover { background: rgba(16, 20, 24, 0.06); }
.btn--outline { background: #fff; border-color: var(--line-2); color: var(--text); }
.btn--outline:hover { border-color: var(--ink); }
.btn--danger { background: var(--red-bg); color: var(--red); }
.btn--danger:hover { background: #fbdada; }
.btn--sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn--sm svg { width: 15px; height: 15px; }
.btn--lg { height: 50px; padding: 0 24px; font-size: 15px; border-radius: 14px; }
.btn--block { width: 100%; }
.btn--icon { width: 40px; height: 40px; padding: 0; border-radius: 11px; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

.link {
  color: var(--blue); font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
}
.link:hover { text-decoration: underline; }
.link svg { width: 15px; height: 15px; }

/* ---------- бейджи и чипы ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 9px; border-radius: 7px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.01em;
  background: var(--bg-2); color: var(--muted);
}
.badge svg { width: 13px; height: 13px; }
.badge--green { background: var(--green-bg); color: var(--green); }
.badge--red { background: var(--red-bg); color: var(--red); }
.badge--blue { background: var(--blue-bg); color: var(--blue); }
.badge--amber { background: var(--amber-bg); color: #a46905; }
.badge--violet { background: var(--violet-bg); color: var(--violet); }
.badge--dark { background: var(--ink); color: #fff; }
.badge--accent { background: var(--accent); color: var(--accent-ink); }
.badge--outline { background: transparent; border: 1px solid var(--line-2); color: var(--muted); }
.badge--dot::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 12px; border-radius: 9px;
  background: #fff; border: 1px solid var(--line-2);
  font-size: 13px; font-weight: 600; color: var(--muted);
  transition: all 0.15s ease; white-space: nowrap;
}
.chip:hover { border-color: var(--ink); color: var(--text); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip svg { width: 15px; height: 15px; }

/* ---------- карточки ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card--flat { box-shadow: none; }
.card--pad { padding: 20px; }
.card-hd {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.card-hd h3 { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.card-bd { padding: 20px; }
.card-bd--tight { padding: 14px 20px; }
.card-ft { padding: 14px 20px; border-top: 1px solid var(--line); background: #fbfbfc; border-radius: 0 0 var(--radius) var(--radius); }

.section-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-hd h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.section-hd p { color: var(--muted); font-size: 13px; margin-top: 4px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--accent); }

/* ---------- аватары ---------- */
.avatar {
  display: inline-grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--bg-2); color: var(--ink);
  font-weight: 800; font-size: 14px; letter-spacing: 0.02em;
}
.avatar--sm { width: 32px; height: 32px; border-radius: 9px; font-size: 12px; }
.avatar--lg { width: 56px; height: 56px; border-radius: 16px; font-size: 18px; }
.avatar--yellow { background: var(--accent); }
.avatar--green { background: var(--green-bg); color: var(--green); }
.avatar--blue { background: var(--blue-bg); color: var(--blue); }
.avatar--violet { background: var(--violet-bg); color: var(--violet); }
.avatar--red { background: var(--red-bg); color: var(--red); }

/* ---------- формы ---------- */
.field { display: grid; gap: 6px; }
.field > label, .label { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0.01em; }
.input, .select, .textarea {
  width: 100%; height: 42px; padding: 0 13px;
  background: #fff; border: 1px solid var(--line-2); border-radius: 10px;
  font-size: 14px; color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.textarea { height: auto; padding: 11px 13px; resize: vertical; min-height: 88px; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(16, 20, 24, 0.07);
}
.input::placeholder { color: var(--muted-2); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }
.input-group { display: flex; align-items: center; gap: 8px; }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted-2); }
.input-icon .input { padding-left: 38px; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.check input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .span-2 { grid-column: span 2; }
.hint { font-size: 12px; color: var(--muted-2); }
.error-text { font-size: 12px; color: var(--red); font-weight: 600; }

/* ---------- прогресс ---------- */
.progress { height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--ink); transition: width 0.5s ease; }
.progress--green > span { background: var(--green); }
.progress--yellow > span { background: var(--accent); }
.progress--blue > span { background: var(--blue); }
.progress--red > span { background: var(--red); }
.progress--lg { height: 10px; }

.ring { position: relative; display: inline-grid; place-items: center; }
.ring svg { transform: rotate(-90deg); }
.ring__value { position: absolute; text-align: center; }
.ring__value b { display: block; font-family: var(--display); font-size: 30px; font-weight: 600; line-height: 1; }
.ring__value span { font-size: 11px; color: var(--muted); font-weight: 600; }

/* ---------- таблицы ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); font-weight: 800; padding: 11px 16px;
  border-bottom: 1px solid var(--line); background: #fbfbfc; white-space: nowrap;
}
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background 0.12s ease; }
.table tbody tr:hover { background: #fafbfc; }
.table tbody tr.is-clickable { cursor: pointer; }
.table .cell-person { display: flex; align-items: center; gap: 10px; }
.table .cell-person b { display: block; font-weight: 700; font-size: 14px; }
.table .cell-person span { display: block; color: var(--muted); font-size: 12px; }

/* ---------- пустые состояния ---------- */
.empty { display: grid; place-items: center; gap: 8px; padding: 48px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 36px; height: 36px; color: var(--muted-2); }
.empty b { color: var(--text); font-size: 15px; }
.empty p { font-size: 13px; max-width: 340px; }

/* =========================================================
   Лендинг
   ========================================================= */
.landing { background: #fff; }
.landing-nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 72px; padding: 0 clamp(20px, 5vw, 64px);
  background: rgba(18, 22, 26, 0.92); backdrop-filter: blur(14px);
  color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.landing-nav__links { display: flex; gap: 26px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.68); }
.landing-nav__links a:hover { color: #fff; }
.landing-nav__actions { display: flex; align-items: center; gap: 10px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 11px; background: var(--accent);
  display: grid; place-items: center; color: var(--ink); flex: none;
}
.brand__mark svg { width: 22px; height: 22px; }
.brand__name { font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: 0.08em; line-height: 1; }
.brand__sub { white-space: nowrap; display: block; font-family: var(--font); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.55; margin-top: 3px; font-weight: 700; }

.hero {
  position: relative; overflow: hidden;
  background: #12161a; color: #fff;
  padding: clamp(48px, 7vw, 92px) clamp(20px, 5vw, 64px) clamp(56px, 7vw, 100px);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 20%, #000 20%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; width: 620px; height: 620px; right: -180px; top: -220px;
  background: radial-gradient(circle, rgba(255, 212, 0, 0.22), transparent 62%);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 99px;
  font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.04);
}
.hero__badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(40px, 5.4vw, 74px); line-height: 0.98; letter-spacing: 0.01em;
  margin: 20px 0 18px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lead { max-width: 540px; color: rgba(255, 255, 255, 0.66); font-size: clamp(15px, 1.4vw, 17px); line-height: 1.6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.hero__stat b { display: block; font-family: var(--display); font-size: 30px; font-weight: 600; color: #fff; line-height: 1; }
.hero__stat span { display: block; font-size: 12px; color: rgba(255, 255, 255, 0.5); margin-top: 6px; font-weight: 600; }

.hero-mock { position: relative; }
.hero-mock__window {
  background: #fff; color: var(--text); border-radius: 20px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5);
  overflow: hidden; transform: rotate(1.2deg);
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.hero-mock__bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: #f3f4f6; border-bottom: 1px solid var(--line); }
.hero-mock__bar i { width: 9px; height: 9px; border-radius: 50%; background: #d6dae0; }
.hero-mock__bar i:first-child { background: #ff6b6b; }
.hero-mock__bar i:nth-child(2) { background: #ffd166; }
.hero-mock__bar i:nth-child(3) { background: #06d6a0; }
.hero-mock__bar span { margin-left: auto; font-size: 10px; color: var(--muted); font-weight: 700; letter-spacing: 0.04em; }
.hero-mock__body { padding: 16px; display: grid; gap: 12px; }
.hero-mock__row { display: grid; grid-template-columns: 1.3fr .9fr .7fr; gap: 10px; }
.hero-mock__tile { background: #f7f8fa; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.hero-mock__tile b { font-family: var(--display); font-size: 24px; font-weight: 600; display: block; line-height: 1; }
.hero-mock__tile span { font-size: 10px; color: var(--muted); font-weight: 700; }
.hero-mock__tile--accent { background: var(--accent); border-color: var(--accent); }
.hero-mock__tile--accent span { color: rgba(20, 24, 28, 0.6); }
.hero-mock__list { display: grid; gap: 7px; }
.hero-mock__item { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; min-width: 0; }
.hero-mock__item i { width: 22px; height: 22px; border-radius: 7px; background: var(--bg-2); flex: none; }
.hero-mock__item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-mock__item em { margin-left: auto; flex: none; font-style: normal; color: var(--muted); font-size: 10px; }
.hero-mock__float {
  position: absolute; right: -14px; bottom: 34px;
  background: var(--accent); color: var(--ink); border-radius: 14px;
  padding: 12px 16px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  font-weight: 800; font-size: 13px; transform: rotate(-2deg);
}
.hero-mock__float small { display: block; font-size: 10px; font-weight: 700; opacity: 0.6; }

.landing-section { padding: clamp(48px, 6vw, 84px) clamp(20px, 5vw, 64px); max-width: 1240px; margin: 0 auto; }
.landing-section--tint { max-width: none; background: #f7f8fa; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.landing-section--tint > .inner { max-width: 1240px; margin: 0 auto; }
.landing-title { font-family: var(--display); text-transform: uppercase; font-weight: 600; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.02; letter-spacing: 0.01em; }
.landing-title em { font-style: normal; color: var(--green); }
.landing-sub { color: var(--muted); max-width: 560px; margin-top: 12px; font-size: 15px; }

.cabinet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.cabinet-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.cabinet-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.cabinet-card__icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--bg-2); }
.cabinet-card__icon svg { width: 22px; height: 22px; }
.cabinet-card h3 { font-size: 17px; font-weight: 800; }
.cabinet-card p { color: var(--muted); font-size: 13px; line-height: 1.55; flex: 1; }
.cabinet-card__list { display: grid; gap: 7px; font-size: 12.5px; color: var(--muted); }
.cabinet-card__list li { display: flex; gap: 7px; align-items: center; }
.cabinet-card__list svg { width: 14px; height: 14px; color: var(--green); flex: none; }
.cabinet-card__go { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13px; }
.cabinet-card--student .cabinet-card__icon { background: var(--blue-bg); color: var(--blue); }
.cabinet-card--school .cabinet-card__icon { background: var(--accent-soft); color: #8a6d00; }
.cabinet-card--admin .cabinet-card__icon { background: var(--violet-bg); color: var(--violet); }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.feature svg { width: 22px; height: 22px; color: var(--green); margin-bottom: 14px; }
.feature h4 { font-size: 14px; font-weight: 800; margin-bottom: 6px; }
.feature p { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.landing-cta {
  background: var(--ink); color: #fff; border-radius: 24px; padding: clamp(28px, 4vw, 48px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin: 0 auto clamp(40px, 5vw, 64px); max-width: 1112px;
}
.landing-cta h3 { font-family: var(--display); text-transform: uppercase; font-size: 30px; font-weight: 600; line-height: 1.05; }
.landing-cta p { color: rgba(255, 255, 255, 0.6); font-size: 13px; margin-top: 8px; }
.landing-footer { border-top: 1px solid var(--line); padding: 26px clamp(20px, 5vw, 64px); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }

/* =========================================================
   Оболочка приложения
   ========================================================= */
.shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; z-index: 50;
  display: flex; flex-direction: column;
  background: var(--ink); color: #c7cdd4;
  padding: 18px 14px;
}
.sidebar__brand { padding: 4px 8px 18px; }
.sidebar__brand .brand__name { font-size: 19px; }
.sidebar__org {
  display: flex; align-items: center; gap: 10px;
  margin: 0 4px 18px; padding: 10px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.07);
}
.sidebar__org b { display: block; font-size: 12.5px; color: #fff; font-weight: 700; line-height: 1.25; }
.sidebar__org span { display: block; font-size: 10.5px; color: rgba(255, 255, 255, 0.45); margin-top: 2px; }
.sidebar__org .avatar { width: 34px; height: 34px; border-radius: 9px; font-size: 12px; background: var(--accent); color: var(--ink); }
.nav { display: grid; gap: 2px; }
.nav__label { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.32); font-weight: 800; padding: 16px 10px 6px; }
.nav__item {
  display: flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 10px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, 0.66);
  transition: background 0.14s ease, color 0.14s ease;
}
.nav__item svg { width: 18px; height: 18px; flex: none; opacity: 0.8; }
.nav__item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.nav__item.is-active { background: var(--accent); color: var(--ink); font-weight: 800; }
.nav__item.is-active svg { opacity: 1; }
.nav__count { margin-left: auto; font-size: 11px; font-weight: 800; background: rgba(255, 255, 255, 0.1); padding: 2px 7px; border-radius: 99px; }
.nav__item.is-active .nav__count { background: rgba(20, 24, 28, 0.14); }
.sidebar__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.sidebar__user { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; }
.sidebar__user b { display: block; font-size: 12px; color: #fff; }
.sidebar__user span { display: block; font-size: 10.5px; color: rgba(255, 255, 255, 0.45); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 16px;
  height: 64px; padding: 0 24px;
  background: rgba(244, 245, 247, 0.88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar__title { font-size: 14px; font-weight: 800; letter-spacing: -0.01em; }
.topbar__crumb { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.topbar__crumb svg { width: 14px; height: 14px; }
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.role-switch {
  display: inline-flex; align-items: center; padding: 3px; gap: 2px;
  background: #fff; border: 1px solid var(--line-2); border-radius: 10px;
}
.role-switch a {
  display: inline-flex; align-items: center; gap: 5px;
  height: 28px; padding: 0 9px; border-radius: 7px;
  font-size: 11.5px; font-weight: 700; color: var(--muted); white-space: nowrap;
}
.role-switch a svg { width: 13px; height: 13px; }
.role-switch a:hover { color: var(--text); }
.role-switch a.is-active { background: var(--ink); color: #fff; }
.icon-btn {
  position: relative; width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; color: var(--muted); background: #fff; border: 1px solid var(--line-2);
}
.icon-btn:hover { color: var(--text); border-color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn__dot { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); border: 2px solid #fff; }
.content { padding: 24px; width: 100%; max-width: 1440px; margin: 0 auto; flex: 1; }
.page-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.page-hd h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.page-hd p { color: var(--muted); font-size: 13px; margin-top: 5px; }
.page-hd__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.mobile-menu-btn { display: none; }
.scrim { position: fixed; inset: 0; background: rgba(10, 14, 18, 0.5); z-index: 60; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
.scrim.is-open { opacity: 1; pointer-events: auto; }

/* ---------- студенческая оболочка ---------- */
.topnav {
  position: sticky; top: 0; z-index: 40;
  background: #fff; border-bottom: 1px solid var(--line);
}
.topnav__inner { max-width: 1180px; margin: 0 auto; height: 66px; padding: 0 22px; display: flex; align-items: center; gap: 26px; }
.topnav .brand__name { font-size: 19px; color: var(--ink); }
.topnav .brand__sub { color: var(--muted); opacity: 1; }
.topnav__links { display: flex; gap: 4px; margin-left: 8px; }
.topnav__link {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 11px;
  border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--muted);
}
.topnav__link svg { width: 16px; height: 16px; }
.topnav__link:hover { background: var(--bg); color: var(--text); }
.topnav__link.is-active { background: var(--ink); color: #fff; }
.topnav__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.student-content { max-width: 1180px; margin: 0 auto; padding: 26px 22px 80px; width: 100%; }
.student-hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px;
  background: var(--ink); color: #fff; border-radius: 22px; padding: 26px;
}
.student-hero::after {
  content: ""; position: absolute; width: 340px; height: 340px; right: -90px; top: -120px;
  background: radial-gradient(circle, rgba(255, 212, 0, 0.2), transparent 65%);
}
.student-hero h1 { font-family: var(--display); text-transform: uppercase; font-weight: 600; font-size: 32px; line-height: 1.02; letter-spacing: 0.02em; }
.student-hero p { color: rgba(255, 255, 255, 0.6); font-size: 13px; margin-top: 8px; max-width: 380px; }
.student-hero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.student-hero__meta span {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px;
  border-radius: 7px; background: rgba(255, 255, 255, 0.08); font-size: 11.5px; font-weight: 700; color: rgba(255, 255, 255, 0.78);
}
.student-hero__meta svg { width: 13px; height: 13px; }
.student-hero__progress { position: relative; z-index: 1; display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.student-hero .ring__value b { color: #fff; }
.student-hero .ring__value span { color: rgba(255, 255, 255, 0.5); }
.student-hero__legend { display: grid; gap: 10px; font-size: 11.5px; }
.student-hero__legend div { display: flex; align-items: center; gap: 7px; color: rgba(255, 255, 255, 0.66); }
.student-hero__legend i { width: 8px; height: 8px; border-radius: 2px; }
.student-hero__legend b { margin-left: auto; color: #fff; font-weight: 700; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.grid-main--wide { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }

/* ---------- статистика ---------- */
.stat { padding: 18px 20px; }
.stat__label { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.stat__label svg { width: 14px; height: 14px; }
.stat__value { font-family: var(--display); font-size: 32px; font-weight: 600; line-height: 1; margin-top: 12px; letter-spacing: 0.01em; }
.stat__value small { font-family: var(--font); font-size: 13px; font-weight: 700; color: var(--muted); margin-left: 5px; }
.stat__foot { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 11.5px; color: var(--muted); }
.delta { display: inline-flex; align-items: center; gap: 3px; font-weight: 800; font-size: 11.5px; }
.delta svg { width: 13px; height: 13px; }
.delta--up { color: var(--green); }
.delta--down { color: var(--red); }

/* ---------- список занятий ---------- */
.lesson-row { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.lesson-row:last-child { border-bottom: 0; }
.lesson-date {
  width: 48px; flex: none; text-align: center; border-radius: 10px; padding: 7px 0;
  background: var(--bg); border: 1px solid var(--line);
}
.lesson-date b { display: block; font-family: var(--display); font-size: 18px; line-height: 1; }
.lesson-date span { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 800; margin-top: 3px; }
.lesson-info { min-width: 0; flex: 1; }
.lesson-info b { display: block; font-size: 13.5px; font-weight: 700; }
.lesson-info span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.lesson-time { font-size: 12.5px; font-weight: 800; white-space: nowrap; }

/* ---------- светофор допуска ---------- */
.admission { display: grid; gap: 9px; }
.admission__item { display: flex; align-items: center; gap: 9px; font-size: 12.5px; }
.admission__item .dot { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.admission__item .dot svg { width: 12px; height: 12px; }
.admission__item.is-ok .dot { background: var(--green-bg); color: var(--green); }
.admission__item.is-wait .dot { background: var(--amber-bg); color: var(--amber); }
.admission__item.is-bad .dot { background: var(--red-bg); color: var(--red); }
.admission__item b { margin-left: auto; font-weight: 700; font-size: 11.5px; color: var(--muted); }

/* ---------- таймлайн ---------- */
.timeline { display: grid; gap: 0; }
.timeline__item { position: relative; padding: 0 0 18px 24px; border-left: 2px solid var(--line); }
.timeline__item:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline__item::before {
  content: ""; position: absolute; left: -6px; top: 2px; width: 10px; height: 10px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line-2);
}
.timeline__item.is-done::before { background: var(--green); border-color: var(--green); }
.timeline__item.is-current::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.timeline__item b { display: block; font-size: 13px; font-weight: 700; }
.timeline__item span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* ---------- модули теории ---------- */
.module { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.module:last-child { border-bottom: 0; }
.module__num {
  width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center;
  background: var(--bg); font-family: var(--display); font-size: 16px; font-weight: 600; color: var(--muted);
}
.module.is-done .module__num { background: var(--green-bg); color: var(--green); }
.module.is-current .module__num { background: var(--accent); color: var(--ink); }
.module__body { flex: 1; min-width: 0; }
.module__body b { display: block; font-size: 13.5px; font-weight: 700; }
.module__body span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.module__side { display: flex; align-items: center; gap: 10px; }
.module__bar { width: 90px; }

/* ---------- слоты практики ---------- */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.slot {
  display: flex; flex-direction: column; gap: 6px; text-align: left;
  padding: 13px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.slot:hover { border-color: var(--ink); box-shadow: var(--shadow); transform: translateY(-1px); }
.slot.is-selected { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-bg); }
.slot b { font-size: 14px; font-weight: 800; }
.slot span { font-size: 11.5px; color: var(--muted); }
.slot .row { gap: 6px; margin-top: 2px; }

.day-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.day-tab {
  flex: none; width: 66px; padding: 9px 0; text-align: center; border-radius: 11px;
  border: 1px solid var(--line-2); background: #fff;
}
.day-tab b { display: block; font-family: var(--display); font-size: 19px; font-weight: 600; line-height: 1; }
.day-tab span { display: block; font-size: 10px; text-transform: uppercase; color: var(--muted); font-weight: 800; margin-top: 3px; }
.day-tab.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.day-tab.is-active span { color: rgba(255, 255, 255, 0.6); }

/* ---------- оплата ---------- */
.pay-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pay-summary > div { background: var(--bg); border-radius: 12px; padding: 13px 15px; }
.pay-summary span { display: block; font-size: 11px; color: var(--muted); font-weight: 700; }
.pay-summary b { display: block; font-family: var(--display); font-size: 22px; font-weight: 600; margin-top: 5px; }
.method { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.method label {
  display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--line-2);
  border-radius: 11px; cursor: pointer; font-size: 12px; font-weight: 700;
}
.method label svg { width: 20px; height: 20px; }
.method input { position: absolute; opacity: 0; }
.method input:checked + span { color: var(--ink); }
.method label:has(input:checked) { border-color: var(--green); background: var(--green-bg); box-shadow: 0 0 0 3px var(--green-bg); }

/* ---------- документы ---------- */
.doc-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.doc-row:last-child { border-bottom: 0; }
.doc-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--bg); color: var(--muted); flex: none; }
.doc-icon svg { width: 18px; height: 18px; }
.doc-row b { display: block; font-size: 13px; font-weight: 700; }
.doc-row span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.doc-row__side { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ---------- OCR ---------- */
.dropzone {
  display: grid; place-items: center; gap: 8px; text-align: center;
  padding: 30px 20px; border: 1.5px dashed var(--line-2); border-radius: 14px;
  background: #fbfbfc; transition: border-color 0.15s ease, background 0.15s ease;
}
.dropzone:hover { border-color: var(--ink); background: #fff; }
.dropzone svg { width: 30px; height: 30px; color: var(--muted-2); }
.dropzone b { font-size: 13.5px; }
.dropzone span { font-size: 12px; color: var(--muted); }
.scan-preview { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #eef0f3; }
.scan-preview__paper { padding: 18px; display: grid; gap: 8px; background: #fff; margin: 14px; border-radius: 6px; box-shadow: var(--shadow); }
.scan-preview__line { height: 9px; border-radius: 3px; background: #e8eaee; }
.scan-preview__line.w40 { width: 40%; } .scan-preview__line.w60 { width: 60%; } .scan-preview__line.w80 { width: 80%; }
.scan-line {
  position: absolute; left: 0; right: 0; height: 2px; background: var(--green);
  box-shadow: 0 0 18px 3px rgba(15, 157, 118, 0.5);
  animation: scan 1.2s ease-in-out infinite;
}
@keyframes scan { 0%, 100% { top: 10%; } 50% { top: 88%; } }
.ocr-fields { display: grid; gap: 10px; }
.ocr-field { display: grid; grid-template-columns: 1fr 120px; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; }
.ocr-field b { font-size: 12px; font-weight: 700; display: block; }
.ocr-field span { font-size: 12.5px; color: var(--muted); display: block; margin-top: 1px; }
.conf { font-size: 10.5px; font-weight: 800; text-align: right; }
.conf--hi { color: var(--green); } .conf--mid { color: var(--amber); } .conf--lo { color: var(--red); }

/* =========================================================
   Календарь
   ========================================================= */
.cal-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cal-nav { display: inline-flex; align-items: center; gap: 2px; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 3px; }
.cal-nav button { width: 30px; height: 28px; border-radius: 7px; display: grid; place-items: center; color: var(--muted); }
.cal-nav button:hover { background: var(--bg); color: var(--text); }
.cal-nav svg { width: 15px; height: 15px; }
.cal-range { font-size: 13px; font-weight: 800; min-width: 150px; }

.cal { display: grid; grid-template-columns: 54px repeat(7, minmax(120px, 1fr)); border-top: 1px solid var(--line); }
.cal__corner { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cal__dayhead {
  padding: 9px 8px; text-align: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: #fbfbfc;
}
.cal__dayhead span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); font-weight: 800; }
.cal__dayhead b { display: block; font-family: var(--display); font-size: 18px; font-weight: 600; margin-top: 2px; }
.cal__dayhead.is-today { background: var(--accent-soft); }
.cal__dayhead.is-today b { color: #8a6d00; }
.cal__time { height: 54px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; }
.cal__time span { position: absolute; top: -7px; right: 8px; font-size: 10px; font-weight: 700; color: var(--muted-2); background: #fff; padding: 0 3px; }
.cal__col { position: relative; border-right: 1px solid var(--line); background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 53px, var(--line) 53px, var(--line) 54px); }
.cal__col.is-weekend { background-color: #fafbfc; }
.cal-event {
  position: absolute; left: 4px; right: 4px; z-index: 2;
  border-radius: 8px; padding: 5px 7px; overflow: hidden;
  font-size: 10.5px; font-weight: 700; line-height: 1.25; text-align: left;
  border-left: 3px solid var(--blue); background: var(--blue-bg); color: #1d4ed8;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.cal-event:hover { box-shadow: 0 6px 18px rgba(16, 20, 24, 0.16); transform: translateY(-1px); z-index: 3; }
.cal-event b { display: block; font-size: 10.5px; }
.cal-event span { display: block; opacity: 0.75; font-size: 9.5px; font-weight: 600; margin-top: 1px; }
.cal-event--theory { border-left-color: var(--violet); background: var(--violet-bg); color: #5b3fd6; }
.cal-event--practice { border-left-color: var(--blue); background: var(--blue-bg); color: #1d4ed8; }
.cal-event--exam { border-left-color: var(--green); background: var(--green-bg); color: #0b7c5e; }
.cal-event--cancelled { border-left-color: var(--red); background: var(--red-bg); color: var(--red); opacity: 0.6; text-decoration: line-through; }
.cal-event--no_show { border-left-color: var(--amber); background: var(--amber-bg); color: #a46905; }
.cal-scroll { overflow-x: auto; }
.cal-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11px; color: var(--muted); font-weight: 600; }
.cal-legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; margin-right: 5px; }

/* =========================================================
   Канбан лидов
   ========================================================= */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 14px; align-items: start; }
.kanban__col { background: #eef0f3; border-radius: 14px; padding: 10px; min-height: 120px; }
.kanban__hd { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 10px; }
.kanban__hd b { font-size: 12px; font-weight: 800; }
.kanban__hd span { font-size: 10.5px; font-weight: 800; color: var(--muted); background: #fff; border-radius: 99px; padding: 2px 7px; }
.kanban__list { display: grid; gap: 8px; }
.lead-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px;
  display: grid; gap: 8px; cursor: pointer; transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.lead-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.lead-card__top { display: flex; align-items: center; gap: 8px; }
.lead-card__top b { font-size: 12.5px; font-weight: 800; }
.lead-card__meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 10.5px; color: var(--muted); }
.lead-card__meta span { display: inline-flex; align-items: center; gap: 3px; }
.lead-card__meta svg { width: 11px; height: 11px; }
.lead-card__foot { display: flex; align-items: center; gap: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.lead-card__foot .btn { flex: 1; }
.lead-time { margin-left: auto; font-size: 10px; color: var(--muted-2); font-weight: 700; }

/* =========================================================
   Модалки, дроверы, тосты
   ========================================================= */
.overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.overlay__scrim { position: absolute; inset: 0; background: rgba(10, 14, 18, 0.58); backdrop-filter: blur(3px); animation: fade 0.18s ease; }
.modal {
  position: relative; z-index: 1; width: 100%; max-width: 560px; max-height: 92vh;
  display: flex; flex-direction: column;
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg);
  animation: pop 0.2s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.modal--lg { max-width: 760px; }
.modal--sm { max-width: 420px; }
.modal__hd { display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px 14px; }
.modal__hd h3 { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.modal__hd p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.modal__x { margin-left: auto; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); flex: none; }
.modal__x:hover { background: var(--bg); color: var(--text); }
.modal__x svg { width: 18px; height: 18px; }
.modal__bd { padding: 4px 22px 20px; overflow-y: auto; }
.modal__ft { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); background: #fbfbfc; border-radius: 0 0 18px 18px; }
.modal__ft .grow { flex: 1; }

.drawer-wrap { position: fixed; inset: 0; z-index: 100; }
.drawer-wrap__scrim { position: absolute; inset: 0; background: rgba(10, 14, 18, 0.5); animation: fade 0.18s ease; }
.drawer {
  position: absolute; top: 0; right: 0; bottom: 0; width: 560px; max-width: 94vw;
  background: #fff; box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
  animation: slide 0.24s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.drawer--wide { width: 720px; }
.drawer__hd { display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer__bd { padding: 20px 22px; overflow-y: auto; flex: 1; }
.drawer__ft { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; background: #fbfbfc; }
.drawer__tabs { display: flex; gap: 4px; padding: 10px 22px 0; border-bottom: 1px solid var(--line); }
.drawer__tab { padding: 9px 12px; font-size: 12.5px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; }
.drawer__tab.is-active { color: var(--text); border-bottom-color: var(--accent); }

.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: grid; gap: 8px; width: min(360px, calc(100vw - 40px)); }
.toast {
  display: flex; align-items: flex-start; gap: 10px; padding: 13px 15px;
  background: var(--ink); color: #fff; border-radius: 12px; box-shadow: var(--shadow-lg);
  animation: toast-in 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
  font-size: 13px; font-weight: 600;
}
.toast svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.toast--success svg { color: var(--accent); }
.toast--error { background: #5d1f22; }
.toast--error svg { color: #ffb4b4; }
.toast--info svg { color: #93c5fd; }
.toast b { display: block; font-weight: 800; margin-bottom: 1px; }
.toast span { display: block; color: rgba(255, 255, 255, 0.62); font-size: 12px; font-weight: 500; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes slide { from { transform: translateX(30px); } to { transform: none; } }

/* =========================================================
   Аналитика
   ========================================================= */
.funnel { display: grid; gap: 10px; }
.funnel__row { display: grid; grid-template-columns: 130px 1fr 52px; align-items: center; gap: 12px; }
.funnel__row span { font-size: 12px; color: var(--muted); font-weight: 600; }
.funnel__row b { font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.funnel__bar { height: 26px; border-radius: 7px; background: var(--bg); overflow: hidden; }
.funnel__bar i { display: block; height: 100%; border-radius: 7px; background: linear-gradient(90deg, var(--ink), var(--ink-4)); }
.funnel__row:nth-child(2) .funnel__bar i { background: linear-gradient(90deg, #2e3a45, #4a5866); }
.funnel__row:nth-child(3) .funnel__bar i { background: linear-gradient(90deg, #3c6b5d, #0f9d76); }
.funnel__row:nth-child(4) .funnel__bar i { background: linear-gradient(90deg, #b58e00, #ffd400); }
.funnel__row:nth-child(5) .funnel__bar i { background: linear-gradient(90deg, #7c5cff, #a78bfa); }

.bars { display: flex; align-items: flex-end; gap: 10px; height: 160px; padding-top: 10px; }
.bars__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; height: 100%; justify-content: flex-end; }
.bars__col i { width: 100%; max-width: 34px; border-radius: 6px 6px 3px 3px; background: var(--ink); min-height: 4px; transition: height 0.5s ease; }
.bars__col.is-accent i { background: var(--accent); }
.bars__col span { font-size: 10px; color: var(--muted); font-weight: 700; }
.bars__col b { font-size: 10px; color: var(--muted-2); font-weight: 700; }

.hbars { display: grid; gap: 12px; }
.hbar { display: grid; grid-template-columns: 140px 1fr 44px; gap: 10px; align-items: center; }
.hbar span { font-size: 12px; font-weight: 600; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar b { font-size: 11.5px; text-align: right; font-variant-numeric: tabular-nums; }
.hbar__track { height: 9px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.hbar__track i { display: block; height: 100%; border-radius: 99px; background: var(--green); }

.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11px; color: var(--muted); font-weight: 600; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }

/* =========================================================
   Админка / таблицы
   ========================================================= */
.filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filters .input-icon { min-width: 220px; flex: 1; max-width: 320px; }
.filters .select { width: auto; min-width: 140px; }

.tenant-cell { display: flex; align-items: center; gap: 10px; }
.tenant-logo { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 12px; background: var(--bg-2); }
.tenant-cell b { display: block; font-size: 13px; }
.tenant-cell span { display: block; font-size: 11px; color: var(--muted); }

.queue-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.queue-item:last-child { border-bottom: 0; }
.queue-item__body { flex: 1; min-width: 0; }
.queue-item__body b { display: block; font-size: 13px; }
.queue-item__body span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.queue-item__side { display: flex; gap: 6px; }

.flag-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.flag-row:last-child { border-bottom: 0; }
.flag-row b { display: block; font-size: 13px; }
.flag-row span { display: block; font-size: 11.5px; color: var(--muted); }
.flag-row__side { margin-left: auto; }
.switch { position: relative; width: 40px; height: 22px; border-radius: 99px; background: var(--line-2); transition: background 0.15s ease; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.15s ease; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }
.switch.is-on { background: var(--green); }
.switch.is-on::after { transform: translateX(18px); }

.note {
  display: flex; gap: 10px; padding: 12px 14px; border-radius: 11px;
  background: var(--amber-bg); color: #8a5a00; font-size: 12.5px; line-height: 1.45;
}
.note svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.note--info { background: var(--blue-bg); color: #1d4ed8; }
.note--danger { background: var(--red-bg); color: #a32b30; }
.note b { font-weight: 800; }

/* ---------- детали ученика ---------- */
.profile-hd { display: flex; gap: 14px; align-items: center; }
.profile-hd h3 { font-size: 17px; font-weight: 800; }
.profile-hd p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 9px 14px; font-size: 12.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }

/* ---------- мобильная навигация ученика ---------- */
.mobile-nav { display: none; }

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 1180px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .student-hero { grid-template-columns: 1fr; }
  .student-hero__progress { justify-content: flex-start; }
}
@media (max-width: 1024px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; width: 276px;
    transform: translateX(-100%); transition: transform 0.22s ease;
  }
  .sidebar.is-open { transform: none; }
  .mobile-menu-btn { display: grid; }
  .cabinet-grid { grid-template-columns: 1fr; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero-mock { max-width: 520px; }
  .grid-main, .grid-main--wide { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .content { padding: 20px 16px 80px; }
}
@media (max-width: 860px) {
  .kanban { grid-template-columns: repeat(4, 260px); overflow-x: auto; padding-bottom: 8px; }
  .topnav__links { display: none; }
  .topnav__inner { gap: 12px; height: 60px; }
  .student-content { padding: 18px 14px 92px; }
  .grid-2 { grid-template-columns: 1fr; }
  .pay-summary { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .mobile-nav {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 45;
    background: rgba(18, 22, 26, 0.96); backdrop-filter: blur(14px);
    border-radius: 16px; padding: 6px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    justify-content: space-around;
  }
  .mobile-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 10px; border-radius: 10px; color: rgba(255, 255, 255, 0.55); font-size: 9.5px; font-weight: 700; }
  .mobile-nav a svg { width: 19px; height: 19px; }
  .mobile-nav a.is-active { background: var(--accent); color: var(--ink); }
  .student-hero { padding: 20px; }
  .student-hero h1 { font-size: 26px; }
  .page-hd h1 { font-size: 20px; }
  .modal { max-height: 88vh; }
  .overlay { padding: 10px; align-items: end; }
  .modal { border-radius: 18px 18px 12px 12px; }
  .drawer { width: 100%; max-width: 100%; }
  .funnel__row { grid-template-columns: 100px 1fr 40px; }
  .hbar { grid-template-columns: 110px 1fr 38px; }
}
@media (max-width: 620px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .cabinet-grid { gap: 12px; }
  .hero__stats { gap: 18px; }
  .hero__stat b { font-size: 24px; }
  .landing-nav__links { display: none; }
  .landing-cta { border-radius: 18px; }
  .topbar { padding: 0 14px; gap: 8px; }
  .topbar__crumb { display: none; }
  .role-switch a span { display: none; }
  .role-switch a { padding: 0 8px; }
  .cal { grid-template-columns: 44px repeat(7, 110px); }
  .student-hero__meta span:nth-child(n+3) { display: none; }
  .pay-summary { grid-template-columns: 1fr; }
  .modal__ft { flex-wrap: wrap; }
  .modal__ft .btn { flex: 1; }
  .toasts { right: 12px; left: 12px; bottom: 12px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* =========================================================
   Дополнения: квиз, видео, договор, донат, календарь
   ========================================================= */
.sidebar .brand__name { color: #fff; }
.sidebar .brand__sub { color: rgba(255, 255, 255, 0.4); opacity: 1; }

.quiz-q { padding: 14px 0; border-bottom: 1px solid var(--line); }
.quiz-q:last-of-type { border-bottom: 0; }
.quiz-q > b { display: block; font-size: 14px; line-height: 1.45; margin-bottom: 10px; }
.quiz-opts { display: grid; gap: 7px; }
.quiz-opt {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 9px;
  cursor: pointer; font-size: 13px; transition: border-color .15s ease, background .15s ease;
}
.quiz-opt:hover { border-color: var(--ink); }
.quiz-opt:has(input:checked) { border-color: var(--green); background: var(--green-bg); }
.quiz-opt input { accent-color: var(--green); flex: none; }

.video-mock {
  height: 190px; border-radius: 12px;
  background: linear-gradient(135deg, #1a2026, #2c3640);
  color: rgba(255, 255, 255, 0.65); display: grid; place-items: center; gap: 8px;
  font-size: 12px; font-weight: 600;
}
.video-mock svg { width: 34px; height: 34px; color: var(--accent); }

.contract-box {
  background: var(--bg); border-radius: 12px; padding: 16px;
  font-size: 12.5px; line-height: 1.65; color: var(--muted);
}
.contract-box b { display: block; color: var(--text); margin-bottom: 8px; font-size: 13px; }
.contract-box p { margin: 0 0 8px; }
.contract-box p:last-child { margin-bottom: 0; }

.spinner {
  width: 18px; height: 18px; border: 2px solid var(--line-2);
  border-top-color: var(--ink); border-radius: 50%; display: inline-block;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.donut { width: 156px; height: 156px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; position: relative; }
.donut::after { content: ""; position: absolute; inset: 28px; background: #fff; border-radius: 50%; }
.donut > div { position: relative; z-index: 1; text-align: center; }
.donut b { display: block; font-family: var(--display); font-size: 28px; font-weight: 600; line-height: 1; }
.donut span { font-size: 11px; color: var(--muted); font-weight: 600; }

.cal__times { display: grid; grid-template-rows: repeat(13, 54px); border-right: 1px solid var(--line); }
.cal__col.is-today { background-color: #fffdf2; }
.ocr-field { grid-template-columns: 1fr 54px; }
.ocr-field .input { height: 34px; font-size: 12.5px; margin-top: 4px; padding: 0 9px; }

.lesson-row .badge { flex: none; }
.cell-person .avatar { flex: none; }

/* ---------- мобильные ограничения ---------- */
.grid-main > *, .grid-main--wide > *, .stack-lg, .stack, .card { min-width: 0; }
.day-tabs { max-width: 100%; }

@media (max-width: 620px) {
  .topnav .role-switch,
  .topbar .role-switch { display: none; }
  .topnav__inner { gap: 10px; }
  .next-lesson { flex-wrap: wrap; }
  .next-lesson > .grow { flex: 1 1 160px; }
  .next-lesson > .stack { flex-direction: row; width: 100%; }
  .next-lesson > .stack .btn { flex: 1; }
}


/* карточки учеников для мобильных */
.student-cards { display: none; }
.student-card {
  display: block; padding: 13px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff;
}
.student-card b { font-size: 14px; }
.student-card span { font-size: 11.5px; color: var(--muted); display: block; margin-top: 2px; }
.student-card .row .badge { flex: none; }
@media (max-width: 620px) {
  .student-cards { display: grid; gap: 10px; padding: 14px; }
  .student-card .row .avatar { width: 36px; height: 36px; border-radius: 9px; }
  #students-table { display: none; }
  .filters { gap: 6px; }
  .filters .input-icon { max-width: none; }
  .filters .select { flex: 1; min-width: 0; }
}

@media (max-width: 620px) {
  .filters { display: grid; grid-template-columns: 1fr 1fr; }
  .filters .input-icon { grid-column: 1 / -1; max-width: none; min-width: 0; }
  .filters .select { width: 100%; min-width: 0; }
}

@media (max-width: 1180px) {
  .topnav .role-switch { display: none; }
}

@media (min-width: 861px) and (max-width: 1180px) {
  .student-hero { grid-template-columns: 1.25fr 1fr; }
  .student-hero__progress { justify-content: flex-end; }
}
@media (min-width: 901px) and (max-width: 1024px) {
  .grid-main, .grid-main--wide { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
}

/* =========================================================
   Публичные страницы: регистрация и СИМ
   ========================================================= */
.public { background: #fff; min-height: 100vh; }
.public-nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 24px;
  height: 68px; padding: 0 clamp(18px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.public-nav__links { display: flex; gap: 22px; margin-left: 16px; font-size: 13px; font-weight: 600; color: var(--muted); }
.public-nav__links a:hover, .public-nav__links a.is-active { color: var(--text); }
.public-nav__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.auth { display: grid; grid-template-columns: 1.05fr 0.95fr; min-height: calc(100vh - 68px); }
.auth-aside {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
  padding: clamp(32px, 5vw, 72px);
  display: flex; flex-direction: column; justify-content: center;
}
.auth-aside::after {
  content: ""; position: absolute; width: 440px; height: 440px; right: -160px; top: -120px;
  background: radial-gradient(circle, rgba(255, 212, 0, 0.18), transparent 65%);
}
.auth-aside h1 {
  font-family: var(--display); text-transform: uppercase; font-weight: 600;
  font-size: clamp(34px, 4vw, 54px); line-height: 1; letter-spacing: 0.01em;
  margin: 14px 0 14px;
}
.auth-aside h1 em { font-style: normal; color: var(--accent); }
.auth-aside p { color: rgba(255, 255, 255, 0.62); font-size: 14px; line-height: 1.6; max-width: 420px; }
.auth-benefits { display: grid; gap: 16px; margin-top: 34px; }
.auth-benefits li { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: rgba(255, 255, 255, 0.74); }
.auth-benefits svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.auth-benefits b { display: block; color: #fff; font-size: 13px; margin-bottom: 2px; }
.auth-aside__foot { margin-top: 40px; font-size: 12px; color: rgba(255, 255, 255, 0.45); }
.auth-aside__foot a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.auth-main { display: grid; place-items: center; padding: 34px 24px; background: var(--bg); }
.auth-card { width: 100%; max-width: 580px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 28px; }
.auth-card h2 { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.auth-card__sub { color: var(--muted); font-size: 13px; margin-top: 4px; }

.steps { display: flex; gap: 8px; margin: 22px 0 24px; }
.step { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; color: var(--muted-2); }
.step i {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-2); font-style: normal; font-size: 11px; font-weight: 800; flex: none;
}
.step.is-active { color: var(--text); }
.step.is-active i { background: var(--accent); color: var(--ink); }
.step.is-done i { background: var(--green); color: #fff; }
.step span { display: none; }
.step.is-active span, .step.is-done span { display: inline; }

.auth-actions { display: flex; gap: 8px; margin-top: 20px; }
.auth-actions .btn--primary { flex: 1; }
.auth-note { font-size: 11.5px; color: var(--muted-2); margin-top: 14px; line-height: 1.5; }

.auth-success { text-align: center; padding: 8px 0 4px; }
.success-check {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--green-bg); color: var(--green); display: grid; place-items: center;
}
.auth-success h2 { font-size: 23px; }
.auth-success p { color: var(--muted); font-size: 13px; margin-top: 8px; }
.success-number {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  padding: 7px 12px; border-radius: 9px; background: var(--bg); border: 1px solid var(--line);
  font-size: 12px; font-weight: 800;
}
.auth-success__actions { display: grid; gap: 8px; margin-top: 20px; }

/* ---------- СИМ ---------- */
.sim-hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
  padding: clamp(40px, 6vw, 78px) clamp(20px, 5vw, 64px);
}
.sim-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000, transparent 75%);
}
.sim-hero__inner { position: relative; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.sim-hero h1 {
  font-family: var(--display); text-transform: uppercase; font-weight: 600;
  font-size: clamp(40px, 5.4vw, 66px); line-height: .98; letter-spacing: .01em;
  margin: 14px 0 16px;
}
.sim-hero h1 em { font-style: normal; color: var(--accent); }
.sim-hero p { color: rgba(255,255,255,.64); font-size: 15px; line-height: 1.6; max-width: 500px; }
.sim-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.sim-badges span {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px;
  border-radius: 8px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  font-size: 11.5px; font-weight: 700; color: rgba(255,255,255,.78);
}
.sim-badges svg { width: 14px; height: 14px; color: var(--accent); }
.sim-visual {
  position: relative; border-radius: 24px; padding: 26px;
  background: linear-gradient(160deg, #1d242b, #12161a);
  border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.sim-visual__big { font-family: var(--display); font-size: clamp(72px, 8vw, 104px); line-height: .85; color: var(--accent); }
.sim-visual__big small { font-size: 18px; color: rgba(255,255,255,.55); font-family: var(--font); font-weight: 700; letter-spacing: 0; }
.sim-visual__label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.4); font-weight: 800; margin-bottom: 8px; }
.sim-visual__rows { display: grid; gap: 10px; margin-top: 22px; }
.sim-visual__row { display: flex; align-items: center; gap: 9px; font-size: 12px; color: rgba(255,255,255,.68); }
.sim-visual__row i { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: var(--accent); flex: none; }
.sim-visual__row svg { width: 14px; height: 14px; }

.sim-content { max-width: 1180px; margin: 0 auto; padding: clamp(32px, 5vw, 60px) 22px 80px; }
.sim-section-title { font-family: var(--display); text-transform: uppercase; font-weight: 600; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.05; margin: 6px 0 8px; }
.sim-section-sub { color: var(--muted); font-size: 14px; max-width: 620px; }
.sim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.sim-list { display: grid; gap: 10px; margin-top: 14px; }
.sim-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.5; }
.sim-list svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.sim-list b { display: block; color: var(--text); font-size: 13px; margin-bottom: 1px; }
.sim-list--ok svg { color: var(--green); }
.sim-list--no svg { color: var(--red); }
.sim-age { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 12px; }
.sim-age th { text-align: left; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.sim-age td { padding: 10px; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: top; }
.sim-age td b { color: var(--text); }
.sim-age tr:last-child td { border-bottom: 0; }

.sim-quiz { margin-top: 26px; }
.sim-quiz__q { padding: 16px 0; border-bottom: 1px solid var(--line); }
.sim-quiz__q:last-of-type { border-bottom: 0; }
.sim-quiz__q b { display: block; font-size: 14px; margin-bottom: 10px; }
.sim-quiz__result {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px;
  background: var(--green-bg); color: #0b6b51; margin-top: 14px; font-size: 13px;
}
.sim-quiz__result b { font-size: 20px; font-family: var(--display); }
.sim-quiz__result svg { width: 22px; height: 22px; }

.sim-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 28px; padding: 24px; border-radius: 18px;
  background: var(--ink); color: #fff;
}
.sim-cta h3 { font-family: var(--display); text-transform: uppercase; font-size: 24px; font-weight: 600; }
.sim-cta p { font-size: 12.5px; color: rgba(255,255,255,.55); margin-top: 5px; }
.sim-cta__price { font-family: var(--display); font-size: 30px; color: var(--accent); }

@media (max-width: 1024px) {
  .auth { grid-template-columns: 1fr; }
  .auth-aside { padding: 34px 24px; }
  .auth-aside h1 { font-size: 34px; }
  .auth-benefits { display: none; }
  .auth-aside__foot { display: none; }
  .sim-hero__inner { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .public-nav__links { display: none; }
  .sim-grid { grid-template-columns: 1fr; }
  .auth-main { padding: 20px 12px 40px; }
  .auth-card { padding: 20px; border-radius: 16px; }
  .steps { gap: 4px; }
  .step span { display: none !important; }
  .auth-actions { flex-direction: column-reverse; }
  .auth-actions .btn { width: 100%; }
  .sim-cta { padding: 20px; }
}

/* промо СИМ на лендинге */
.sim-promo {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  background: linear-gradient(120deg, #12161a, #1d242b);
  color: #fff; border-radius: 24px; padding: clamp(26px, 3.6vw, 44px);
}
.sim-promo::after {
  content: ""; position: absolute; width: 360px; height: 360px; right: -80px; top: -160px;
  background: radial-gradient(circle, rgba(255, 212, 0, 0.2), transparent 65%);
}
.sim-promo > div { position: relative; z-index: 1; }
.sim-promo h2 {
  font-family: var(--display); text-transform: uppercase; font-weight: 600;
  font-size: clamp(28px, 3.2vw, 42px); line-height: 1.02; margin: 10px 0 8px;
}
.sim-promo h2 em { font-style: normal; color: var(--accent); }
.sim-promo p { color: rgba(255,255,255,.58); font-size: 13.5px; max-width: 560px; line-height: 1.55; }
.sim-promo__side { display: flex; align-items: center; gap: 18px; }
.sim-promo__price { font-family: var(--display); font-size: 34px; color: var(--accent); }
@media (max-width: 620px) {
  .sim-promo__side { width: 100%; justify-content: space-between; }
}

@media (max-width: 860px) {
  .auth-aside { padding: 22px 18px 18px; }
  .auth-aside h1 { font-size: 28px; margin: 8px 0; }
  .auth-aside p { font-size: 12.5px; line-height: 1.45; }
  .auth-aside .eyebrow { font-size: 10px; }
}
@media (max-width: 620px) {
  .sim-hero .hero__actions { flex-direction: column; align-items: stretch; }
  .sim-hero .hero__actions .btn { width: 100%; }
}

@media (max-width: 620px) {
  .auth-aside { padding: 16px 16px 14px; }
  .auth-aside p { display: none; }
  .auth-aside h1 { font-size: 26px; margin: 6px 0 2px; }
  .auth-aside::after { width: 220px; height: 220px; right: -80px; top: -80px; }
}

@media (max-width: 860px) {
  .auth { min-height: 0; }
}

/* =========================================================
   Обучение, дисциплина и свидетельство
   ========================================================= */
.edu-panel { padding: 16px; }
.edu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.edu-cell { background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.edu-cell > span:first-child { display: block; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.edu-cell > b { display: block; font-family: var(--display); font-size: 20px; line-height: 1.1; margin: 5px 0 8px; }
.edu-grade { color: var(--green); }
.edu-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.edu-foot b { color: var(--text); }
.edu-foot .btn { margin-left: auto; }
.cert-block { padding: 16px; margin-top: 16px; }

.certificate-wrap { background: #e9ebef; padding: 12px; border-radius: 10px; }
.certificate-sheet {
  position: relative; background: #fff; color: #111;
  border: 2px solid #111; padding: 12px;
  font-family: "Times New Roman", "Manrope", serif;
  aspect-ratio: 297 / 210; overflow: hidden;
}
.certificate-inner { display: grid; grid-template-columns: 34% 66%; gap: 10px; height: 100%; border: 1px solid #111; padding: 9px; }
.certificate-left { text-align: center; padding: 4px 8px; border-right: 1px solid #111; }
.cert-country { font-size: 11px; font-weight: 700; letter-spacing: .04em; margin-bottom: 6px; }
.cert-school { font-size: 9px; font-style: italic; line-height: 1.3; }
.cert-city { font-size: 9px; font-style: italic; margin-bottom: 10px; }
.cert-title { font-family: var(--display); font-size: 28px; line-height: 1; font-weight: 700; letter-spacing: .03em; margin: 6px 0 4px; }
.cert-title span { display: block; font-size: 15px; margin-top: 2px; }
.cert-series { font-size: 9px; margin-top: 6px; }
.cert-kind { font-size: 8px; margin-bottom: 8px; }
.cert-fio { font-size: 15px; font-style: italic; margin: 6px 0 1px; }
.cert-period { font-size: 8px; font-style: italic; margin-bottom: 6px; }
.cert-program-label { font-size: 8px; }
.cert-program { font-size: 9px; font-style: italic; line-height: 1.3; margin: 2px 0 5px; }
.cert-exam { font-size: 8px; font-style: italic; }
.certificate-right { display: flex; flex-direction: column; min-width: 0; }
.cert-table { width: 100%; border-collapse: collapse; font-size: 7.4px; }
.cert-table th, .cert-table td { border: 1px solid #333; padding: 2px 4px; vertical-align: middle; }
.cert-table th { background: #eee; font-size: 6.8px; text-align: center; }
.cert-table td:nth-child(2), .cert-table td:nth-child(3) { text-align: center; width: 12%; }
.cert-section td { background: #f3f3f3; font-weight: 700; text-align: center; font-size: 7.2px; }
.cert-total td { font-weight: 700; }
.cert-note { font-size: 6.8px; font-style: italic; text-align: center; margin-top: 5px; }
.cert-bottom { margin-top: auto; font-size: 7.6px; display: grid; gap: 3px; }
.cert-bottom > div { display: flex; justify-content: space-between; gap: 10px; }
.cert-seal { justify-content: flex-end !important; font-size: 6.5px; color: #555; }
.cert-watermark { position: absolute; inset: 0; display: grid; place-items: center; font-size: 72px; font-family: var(--display); color: rgba(221, 69, 75, .14); transform: rotate(-24deg); pointer-events: none; letter-spacing: .1em; }
.cert-demo { position: absolute; left: 12px; bottom: 4px; font-size: 6px; color: #888; font-family: var(--font); }

@media (max-width: 620px) {
  .edu-grid { grid-template-columns: 1fr 1fr; }
  .edu-foot .btn { margin-left: 0; }
  .certificate-wrap { padding: 6px; overflow-x: auto; }
  .certificate-sheet { min-width: 620px; }
}

@media print {
  @page { size: A4 landscape; margin: 6mm; }
  html, body { margin: 0 !important; padding: 0 !important; background: #fff !important; }
  body.printing-certificate #app,
  body.printing-certificate .toasts,
  body.printing-certificate .drawer-wrap,
  body.printing-certificate .overlay__scrim,
  body.printing-certificate .modal__hd,
  body.printing-certificate .modal__ft { display: none !important; }
  body.printing-certificate .overlay { display: none !important; }
  body.printing-certificate .overlay:last-child { display: block !important; position: static; padding: 0; width: auto; }
  body.printing-certificate .overlay:last-child .modal { max-width: none; max-height: none; width: 100%; margin: 0; box-shadow: none; border-radius: 0; }
  body.printing-certificate .overlay:last-child .modal__bd { width: 100%; }
  body.printing-certificate .modal__bd { padding: 0; overflow: visible; }
  body.printing-certificate .certificate-wrap { padding: 0; background: #fff; }
  body.printing-certificate .certificate-sheet { width: 200mm; height: 141mm; margin: 0; zoom: 1.4; border: 2px solid #000; }
}

/* =========================================================
   QR-оплата, тарифы СИМ, курьеры и наклейка
   ========================================================= */
.qr-pay { display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: start; }
.qr-pay__code { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; text-align: center; }
.qr-svg { width: 100%; }
.qr-svg svg { width: 100%; height: auto; display: block; }
.qr-placeholder { padding: 50px 10px; color: var(--muted); font-size: 12px; }
.qr-amount { font-family: var(--display); font-size: 38px; line-height: 1; margin: 3px 0 8px; }

.sim-courier {
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 20px; align-items: stretch;
  margin-bottom: 34px; padding: 24px; border-radius: 18px;
  background: linear-gradient(120deg, #12161a, #1d242b); color: #fff;
}
.sim-courier .eyebrow { color: rgba(255,255,255,.5); }
.sim-courier .sim-section-title { color: #fff; margin-top: 8px; }
.sim-courier .sim-section-sub { color: rgba(255,255,255,.6); }
.sim-courier .sim-list li { color: rgba(255,255,255,.7); }
.sim-courier .sim-list b { color: #fff; }
.sim-courier__card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #fff; align-self: start; }
.sim-courier__card .muted { color: rgba(255,255,255,.55) !important; }
.sim-courier__card .btn--primary { box-shadow: none; }

.sim-sticker { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; padding: 22px; margin-top: 22px; align-items: center; }
.sticker-preview { display: grid; place-items: center; }
.sticker-preview--modal { margin: 0 auto; }
.sticker {
  width: 210px; height: 210px; flex: none;
  background: var(--accent); color: var(--ink);
  border: 5px solid var(--ink); border-radius: 14px;
  padding: 14px; position: relative; overflow: hidden;
  transform: rotate(-2deg);
  box-shadow: 0 12px 30px rgba(16,20,24,.18);
}
.sticker__brand { font-size: 8px; font-weight: 800; letter-spacing: .18em; }
.sticker__title { font-family: var(--display); font-size: 34px; line-height: .92; margin-top: 8px; font-weight: 600; }
.sticker__check { position: absolute; right: 14px; top: 12px; font-size: 34px; font-weight: 800; }
.sticker__rules { position: absolute; left: 14px; right: 14px; bottom: 40px; font-size: 9px; font-weight: 800; border-top: 2px solid var(--ink); padding-top: 5px; }
.sticker__name { position: absolute; left: 14px; bottom: 22px; font-size: 10px; font-style: italic; }
.sticker__date { position: absolute; right: 14px; bottom: 22px; font-size: 9px; font-weight: 800; }
.sticker-partner { padding-top: 12px; border-top: 1px solid var(--line); }

.sim-pricing { margin-top: 30px; }
.sim-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0; }
.sim-plan { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.sim-plan h3 { font-family: var(--display); font-size: 30px; font-weight: 600; line-height: 1; }
.sim-plan h3 small { font-family: var(--font); font-size: 12px; color: var(--muted); font-weight: 700; }
.sim-plan p { font-size: 12px; color: var(--muted); }
.sim-plan .sim-list { gap: 6px; margin: 4px 0 10px; }
.sim-plan .sim-list li { font-size: 11.5px; }
.sim-plan .btn { margin-top: auto; }
.sim-plan.is-featured { border-color: var(--accent); box-shadow: 0 12px 30px rgba(255,212,0,.22); }
.sim-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: var(--green-bg); color: #0b6b51; font-size: 12px; }
.sim-status .btn { margin-left: auto; }
.sim-hero__status { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 11.5px; color: var(--accent); font-weight: 700; }

@media (max-width: 860px) {
  .qr-pay { grid-template-columns: 1fr; }
  .sim-courier { grid-template-columns: 1fr; padding: 20px; }
  .sim-sticker { grid-template-columns: 1fr; }
  .sim-plans { grid-template-columns: 1fr; }
  .sticker { margin: 0 auto; }
}
.sim-plan .badge { align-self: flex-start; }

.green { color: var(--green); }

/* СИМ для школ: оптовые доступы */
.sim-calc { margin-top: 16px; }
.sim-calc__controls { display: grid; grid-template-columns: 320px 1fr; gap: 18px; align-items: end; margin-top: 16px; }
.sim-calc__controls .input { max-width: 120px; }
.sim-tier-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tier-chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 12px; font-size: 11.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.tier-chip:hover { border-color: var(--ink); color: var(--ink); }
.tier-chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.sim-calc__summary { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 14px; align-items: center; margin-top: 16px; padding: 16px; border-radius: 14px; background: var(--bg-soft, #f6f7f8); }
.sim-calc__sum { display: flex; flex-direction: column; gap: 2px; }
.sim-calc__sum b { font-family: var(--display); font-size: 24px; line-height: 1.1; }
.sim-buy__total { display: flex; flex-direction: column; gap: 3px; padding: 16px; border-radius: 14px; background: var(--accent-soft, #fff7cc); }
.sim-buy__total b { font-family: var(--display); font-size: 32px; line-height: 1; }
.table tr.is-selected td { background: #fffbe6; }
.access-code { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; background: var(--bg-soft, #f6f7f8); padding: 4px 7px; border-radius: 6px; }

@media (max-width: 860px) {
  .sim-calc__controls { grid-template-columns: 1fr; }
  .sim-calc__summary { grid-template-columns: 1fr 1fr; }
  .sim-calc__summary .btn { grid-column: 1 / -1; }
}
.sim-step { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 12px; flex: none; }
.doc-row .sim-step { display: grid; place-items: center; margin-top: 0; color: var(--ink); font-size: 12px; }
.sim-code-entry { margin-top: 12px; font-size: 12px; color: var(--muted); }
.sim-code-entry .link { color: var(--ink); font-weight: 700; text-decoration: underline; background: none; border: 0; padding: 0; cursor: pointer; }
.table-wrap { max-width: 100%; }
.grid-2 > *, .grid-4 > * { min-width: 0; }
.table-wrap { overflow: auto; contain: paint; }

/* =========================================================
   СИМ: игровой маршрут «Путь курьера»
   ========================================================= */
.journey-teaser {
  display: grid; grid-template-columns: 160px 1fr auto; gap: 18px; align-items: center;
  padding: 20px; margin-bottom: 22px; border-radius: 18px;
  background: linear-gradient(120deg, #12161a, #202830); color: #fff;
}
.journey-teaser__art { display: flex; flex-wrap: wrap; gap: 6px; align-content: center; }
.jteaser-dot {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.5); font-size: 12px; font-weight: 800;
  border: 1px solid rgba(255,255,255,.12);
}
.jteaser-dot.is-open { color: var(--ink); background: var(--accent); border-color: var(--accent); }
.jteaser-dot.is-done { color: #0b6b51; background: #b8f0dd; border-color: #b8f0dd; }
.journey-teaser .eyebrow { color: rgba(255,255,255,.5); }
.journey-teaser h2 { font-family: var(--display); font-size: 32px; line-height: 1; margin: 5px 0 6px; color: #fff; }
.journey-teaser p { color: rgba(255,255,255,.65); font-size: 12.5px; max-width: 520px; }
.journey-teaser__meta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; color: rgba(255,255,255,.5); font-size: 11px; font-weight: 700; }

.game-page { background: var(--bg); min-height: 100vh; }
.game-top { max-width: 1180px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.game-back { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 700; }
.game-back:hover { color: var(--ink); }
.game-top__stats { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11px; color: var(--muted); font-weight: 700; }
.game-hero {
  max-width: 1180px; margin: 0 auto 22px; padding: 34px; border-radius: 22px;
  background: var(--ink); color: #fff; display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px;
}
.game-hero h1 { font-family: var(--display); font-size: clamp(48px, 6vw, 78px); line-height: .9; font-weight: 600; letter-spacing: -.02em; margin: 14px 0 14px; color: #fff; }
.game-hero h1 em { color: var(--accent); font-style: normal; }
.game-hero p { color: rgba(255,255,255,.62); max-width: 520px; font-size: 14px; line-height: 1.55; }
.game-hero__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.game-hero__hint { font-size: 11px; color: rgba(255,255,255,.45); }
.game-hero__panel { align-self: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 18px; }
.game-progress__label { display: flex; justify-content: space-between; font-size: 11px; color: rgba(255,255,255,.55); font-weight: 700; margin-bottom: 7px; }
.game-progress__label b { color: var(--accent); }
.game-progress { height: 8px; background: rgba(255,255,255,.12); border-radius: 99px; overflow: hidden; }
.game-progress > span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.game-hero__mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.game-hero__mini div { display: flex; flex-direction: column; }
.game-hero__mini b { font-family: var(--display); font-size: 24px; line-height: 1; color: #fff; }
.game-hero__mini span { font-size: 10px; color: rgba(255,255,255,.45); margin-top: 3px; }
.game-hero__level { margin-top: 14px; font-size: 11px; color: var(--accent); font-weight: 700; }

.game-layout { max-width: 1180px; margin: 0 auto; padding: 0 24px 44px; display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.game-section-hd { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 12px; }
.game-section-hd h2 { font-family: var(--display); font-size: 28px; line-height: 1; margin-top: 4px; }
.journey-map { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.journey-map::before { content: ""; position: absolute; left: 50%; top: 20px; bottom: 20px; border-left: 2px dashed var(--line); z-index: 0; }
.journey-stop {
  position: relative; z-index: 1; display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 9px;
  width: 100%; text-align: left; padding: 14px; border-radius: 14px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s;
}
.journey-stop:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--ink); }
.journey-stop.is-done { border-color: #b8e9d8; background: #f5fdf9; }
.journey-stop.is-current { border-color: var(--accent); box-shadow: 0 10px 24px rgba(255,212,0,.2); }
.journey-stop.is-locked { opacity: .55; cursor: not-allowed; }
.journey-stop__num { width: 26px; height: 26px; border-radius: 8px; background: var(--bg-soft, #f2f3f5); color: var(--muted); display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.journey-stop.is-done .journey-stop__num { background: #d8f5e9; color: #0b6b51; }
.journey-stop.is-current .journey-stop__num { background: var(--accent); color: var(--ink); }
.journey-stop__icon { color: var(--muted); display: flex; }
.journey-stop.is-current .journey-stop__icon, .journey-stop.is-done .journey-stop__icon { color: var(--ink); }
.journey-stop__body b { display: block; font-size: 13px; }
.journey-stop__body span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.journey-stop__state { font-size: 10px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.journey-stop.is-current .journey-stop__state { color: #8a6d00; }
.journey-stop.is-done .journey-stop__state { color: #0b6b51; }

.game-side { display: flex; flex-direction: column; gap: 14px; }
.leader-row { display: grid; grid-template-columns: 18px 26px 1fr auto; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 11.5px; }
.leader-row:last-child { border-bottom: 0; }
.leader-row.is-me { margin-top: 6px; padding: 9px; border: 1px solid var(--accent); border-radius: 10px; background: #fffbe6; }
.leader-row__n { color: var(--muted); font-size: 10px; }
.leader-row__avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; font-size: 10px; font-weight: 800; }
.leader-row__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leader-row__pct { font-weight: 800; color: var(--muted); }
.badge-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.game-badge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 12px 6px; border: 1px solid var(--line); border-radius: 12px; opacity: .5; }
.game-badge.is-earned { opacity: 1; border-color: #b8e9d8; background: #f5fdf9; }
.game-badge > span { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; }
.game-badge b { font-size: 10px; }
.game-badge small { font-size: 9px; color: var(--muted); }
.game-reward { text-align: center; }
.game-reward__icon { width: 54px; height: 54px; border-radius: 16px; background: var(--accent-soft, #fff7cc); color: #8a6d00; display: grid; place-items: center; margin: 0 auto 10px; }
.game-reward__bar { height: 6px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; margin-top: 12px; }
.game-reward__bar > span { display: block; height: 100%; background: var(--accent); }

.game-q__meta { display: flex; justify-content: space-between; gap: 10px; font-size: 10.5px; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.game-q__meta span { display: inline-flex; align-items: center; gap: 4px; }
.game-q h3 { font-size: 20px; line-height: 1.3; margin-bottom: 14px; }
.game-q__options { display: flex; flex-direction: column; gap: 8px; }
.game-option { display: flex; align-items: center; gap: 10px; text-align: left; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font: inherit; }
.game-option:hover { border-color: var(--ink); background: #fafbfc; }
.game-option span { width: 24px; height: 24px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; font-size: 10px; font-weight: 800; flex: none; }
.game-option b { font-size: 12.5px; font-weight: 600; }
.game-result { text-align: center; padding: 6px 0; }
.game-result__icon { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 10px; background: var(--green-bg); color: var(--green); }
.game-result.is-bad .game-result__icon { background: #fdecec; color: #c0392b; }
.game-result__score { font-family: var(--display); font-size: 44px; line-height: 1; }
.game-result__answer { font-size: 13px; text-align: left; }
.game-result__xp { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 800; font-size: 11px; color: #8a6d00; }

@media (max-width: 900px) {
  .journey-teaser { grid-template-columns: 1fr; }
  .journey-teaser__art { order: 2; }
  .journey-teaser .btn { justify-self: start; }
  .game-hero { grid-template-columns: 1fr; margin-left: 16px; margin-right: 16px; padding: 24px; }
  .game-layout { grid-template-columns: 1fr; padding: 0 16px 30px; }
  .game-top { padding: 14px 16px; }
  .journey-map { grid-template-columns: 1fr; }
  .journey-map::before { display: none; }
  .badge-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Смена курьера: ежедневный цикл */
.shift-card {
  max-width: 1180px; margin: 0 auto 20px; display: grid; grid-template-columns: 1fr 260px; gap: 20px;
  padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff;
}
.shift-card.is-done { background: #f5fdf9; border-color: #b8e9d8; }
.shift-card__hd { display: flex; justify-content: space-between; gap: 14px; align-items: start; }
.shift-card__hd h2 { font-family: var(--display); font-size: 24px; line-height: 1.1; margin-top: 4px; }
.shift-streak { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-size: 11px; font-weight: 800; color: #8a6d00; background: #fff7cc; border-radius: 999px; padding: 6px 10px; }
.shift-orders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.shift-order { display: flex; gap: 8px; align-items: start; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fafbfc; }
.shift-order__n { width: 22px; height: 22px; border-radius: 7px; background: #eef0f2; display: grid; place-items: center; font-size: 10px; font-weight: 800; flex: none; }
.shift-order.is-current { border-color: var(--accent); background: #fffbe6; }
.shift-order.is-current .shift-order__n { background: var(--accent); }
.shift-order.is-done { border-color: #b8e9d8; background: #f5fdf9; }
.shift-order.is-done .shift-order__n { background: #d8f5e9; color: #0b6b51; }
.shift-order b { display: block; font-size: 11.5px; }
.shift-order small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 10px; color: var(--muted); line-height: 1.3; margin-top: 2px; }
.shift-card__side { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding-left: 20px; border-left: 1px solid var(--line); }
.shift-result { display: flex; flex-direction: column; gap: 2px; }
.shift-result b { font-family: var(--display); font-size: 30px; line-height: 1; }
.shift-result span { font-size: 10.5px; color: var(--muted); }
.shift-hint { font-size: 9.5px; color: var(--muted); text-align: center; }
.shift-combo { display: inline-flex; align-items: center; gap: 4px; background: var(--bg-soft); border-radius: 999px; padding: 3px 7px; }
.shift-combo.is-hot { background: #fff7cc; color: #8a6d00; }
.shift-combo-line { margin-top: 10px; font-size: 11px; font-weight: 800; color: #8a6d00; }
.shift-check { text-align: center; padding: 4px 0; }
.shift-check__top { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 16px; border: 1px dashed var(--line); border-radius: 14px; background: #fffdf5; }
.shift-check__top span { font-size: 9px; letter-spacing: .18em; color: var(--muted); }
.shift-check__top b { font-family: var(--display); font-size: 40px; line-height: 1; }
.shift-check__top small { font-size: 11px; color: var(--muted); }
.shift-check__rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.shift-check__rows div { display: flex; flex-direction: column; gap: 2px; padding: 10px; background: var(--bg-soft); border-radius: 10px; }
.shift-check__rows span { font-size: 9.5px; color: var(--muted); }
.shift-check__rows b { font-size: 14px; }
.shift-check__note { font-size: 11px; color: var(--muted); margin-top: 12px; }

@media (max-width: 760px) {
  .shift-card { grid-template-columns: 1fr; margin-left: 16px; margin-right: 16px; }
  .shift-card__side { padding-left: 0; padding-top: 12px; border-left: 0; border-top: 1px solid var(--line); }
  .shift-orders { grid-template-columns: 1fr; }
  .shift-card__hd { flex-direction: column; }
}

/* =========================================================
   СИМ: три аудитории — курьеры, родители, компании
   ========================================================= */
.sim-audience { max-width: 1180px; margin: 14px auto 0; padding: 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sim-audience a { padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; display: flex; flex-direction: column; gap: 1px; }
.sim-audience a b { font-size: 12px; }
.sim-audience a span { font-size: 10px; color: var(--muted); }
.sim-audience a:hover { border-color: var(--ink); }
.sim-audience a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.sim-audience a.is-active span { color: rgba(255,255,255,.55); }

/* Родители */
.family-page { background: #fbfaf7; min-height: 100vh; }
.family-hero {
  max-width: 1180px; margin: 20px auto 22px; padding: 34px; border-radius: 22px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px;
  background: linear-gradient(120deg, #fff4d8, #e8f7f1); border: 1px solid #eadfc3;
}
.family-hero h1 { font-family: var(--display); font-size: clamp(42px, 5vw, 68px); line-height: .95; font-weight: 600; margin: 14px 0; letter-spacing: -.02em; }
.family-hero h1 em { color: #0b6b51; font-style: normal; }
.family-hero p { color: #4a4f55; max-width: 520px; font-size: 14px; line-height: 1.55; }
.family-hero__report { align-self: center; background: #fff; border: 1px solid #e7dfcf; border-radius: 16px; padding: 18px; box-shadow: 0 16px 34px rgba(80,70,40,.08); }
.family-hero__hint { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); margin-top: 12px; }
.family-status { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 7px 10px; border-radius: 99px; background: #fff; border: 1px solid #cde9de; color: #0b6b51; font-size: 11px; font-weight: 800; }
.family-content { max-width: 1180px; margin: 0 auto; padding: 0 24px 44px; }
.family-section-hd { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 12px; }
.family-section-hd h2 { font-family: var(--display); font-size: 30px; line-height: 1; margin-top: 4px; }
.family-children { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.child-card { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.child-card__hd { display: flex; align-items: center; gap: 10px; }
.child-avatar { width: 38px; height: 38px; border-radius: 12px; background: #fff1c7; color: #8a6d00; display: grid; place-items: center; font-weight: 800; }
.child-card__hd b { display: block; font-size: 14px; }
.child-card__hd span:not(.child-avatar):not(.badge) { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.child-card__hd .badge { margin-left: auto; }
.child-bar { height: 7px; border-radius: 99px; background: #f0eee8; overflow: hidden; margin: 12px 0 8px; }
.child-bar > span { display: block; height: 100%; background: #0f9d76; border-radius: inherit; }
.child-card__meta { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; color: var(--muted); }
.family-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; align-items: start; }
.family-title { font-family: var(--display); font-size: 28px; line-height: 1; margin: 6px 0 8px; }
.family-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.family-plan { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.family-plan.is-featured { border-color: var(--accent); box-shadow: 0 8px 18px rgba(255,212,0,.18); }
.family-plan b { font-family: var(--display); font-size: 24px; line-height: 1; }
.family-plan small { font-size: 10px; color: var(--muted); min-height: 24px; }
.family-plan .btn { margin-top: 6px; }
.family-report__top { display: flex; flex-direction: column; gap: 2px; }
.family-report__top span { font-size: 9px; letter-spacing: .16em; color: var(--muted); }
.family-report__top b { font-family: var(--display); font-size: 28px; line-height: 1.05; }
.family-report__top small { font-size: 10.5px; color: var(--muted); }
.family-report__rows { display: grid; gap: 6px; margin-top: 10px; }
.family-report__rows div { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.family-report__rows span { color: var(--muted); }
.family-check__price { font-family: var(--display); font-size: 42px; line-height: 1; padding: 16px; border-radius: 14px; background: #fff7cc; }
.family-check__price small { font-family: var(--font); font-size: 12px; color: #8a6d00; }

/* Компании */
.corp-page { background: #f4f6f8; min-height: 100vh; }
.corp-hero {
  max-width: 1180px; margin: 20px auto 22px; padding: 34px; border-radius: 22px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px;
  background: linear-gradient(120deg, #0f1720, #1c2a36); color: #fff;
}
.corp-hero h1 { font-family: var(--display); font-size: clamp(38px, 4.6vw, 62px); line-height: .96; font-weight: 600; margin: 14px 0; letter-spacing: -.02em; }
.corp-hero h1 em { color: var(--accent); font-style: normal; }
.corp-hero p { color: rgba(255,255,255,.62); max-width: 560px; font-size: 14px; line-height: 1.55; }
.corp-hero__points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.corp-hero__points span { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: 99px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.7); font-size: 10.5px; }
.corp-hero__panel { align-self: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 18px; }
.corp-hero__panel-hd { display: flex; justify-content: space-between; align-items: center; font-size: 9px; letter-spacing: .14em; color: rgba(255,255,255,.45); }
.corp-hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.corp-hero__stats div { display: flex; flex-direction: column; }
.corp-hero__stats b { font-family: var(--display); font-size: 28px; line-height: 1; color: #fff; }
.corp-hero__stats span { font-size: 9.5px; color: rgba(255,255,255,.45); margin-top: 4px; }
.corp-hero__bar { height: 7px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.corp-hero__bar > span { display: block; height: 100%; background: var(--accent); }
.corp-hero__hint { display: flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 10px; color: #ffcf6b; }
.corp-content { max-width: 1180px; margin: 0 auto; padding: 0 24px 44px; }
.corp-calc { padding: 18px; }
.corp-calc__controls { display: grid; grid-template-columns: 320px 1fr; gap: 18px; align-items: end; margin-top: 14px; }
.corp-calc__controls .input { max-width: 120px; }
.corp-calc__summary { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 14px; align-items: center; margin-top: 14px; padding: 14px; border-radius: 14px; background: #f4f6f8; }
.corp-calc__summary > div { display: flex; flex-direction: column; gap: 2px; }
.corp-calc__summary b { font-family: var(--display); font-size: 24px; line-height: 1.1; }
.corp-calc__summary small { font-size: 10px; color: var(--muted); }
.corp-title { font-family: var(--display); font-size: 28px; line-height: 1; margin: 6px 0 10px; }
.corp-pilot { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px; border-radius: 18px; background: #fff7cc; border: 1px solid #f0df9a; }
.corp-pilot h3 { font-family: var(--display); font-size: 24px; line-height: 1.1; margin: 4px 0; }
.corp-pilot p { font-size: 11.5px; color: #6b5a1b; max-width: 680px; }
.corp-quote__line { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 12px; border-radius: 12px; background: #f4f6f8; font-size: 12px; }
.corp-quote__line b { font-family: var(--display); font-size: 22px; }
.stat-card { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; display: flex; flex-direction: column; gap: 4px; }
.stat-card__label { font-size: 10.5px; color: var(--muted); font-weight: 700; }
.stat-card b { font-family: var(--display); font-size: 32px; line-height: 1; }
.stat-card__foot { font-size: 10px; color: var(--muted); }

@media (max-width: 900px) {
  .sim-audience { grid-template-columns: 1fr; padding: 0 16px; }
  .family-hero, .corp-hero { grid-template-columns: 1fr; margin-left: 16px; margin-right: 16px; padding: 24px; }
  .family-content, .corp-content { padding: 0 16px 30px; }
  .family-children, .family-grid { grid-template-columns: 1fr; }
  .family-plans { grid-template-columns: 1fr; }
  .corp-calc__controls { grid-template-columns: 1fr; }
  .corp-calc__summary { grid-template-columns: 1fr 1fr; }
  .corp-calc__summary .btn { grid-column: 1 / -1; }
  .corp-pilot { flex-direction: column; align-items: flex-start; }
}

.family-hero .hero__badge { background: rgba(255,255,255,.72); color: var(--ink); border-color: #eadfc3; }
.family-hero .hero__badge i { background: #c99a00; }
.family-hero .sim-badges span { color: #4a4f55; background: rgba(255,255,255,.6); border-color: #eadfc3; }
.family-hero .sim-badges svg { color: #0b6b51; }
.family-plan .badge { align-self: flex-start; }

/* =========================================================
   Мини-игра «Термосумка»
   ========================================================= */
.catch-page, .ride-page { background: #f6f5f0; min-height: 100vh; }
.catch-top, .ride-top { max-width: 1180px; margin: 0 auto; padding: 14px 24px; display: flex; justify-content: space-between; gap: 12px; }
.catch-hero, .ride-hero {
  max-width: 1180px; margin: 0 auto 18px; padding: 30px; border-radius: 22px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 26px;
  background: linear-gradient(120deg, #fff3cb, #e6f6ef); border: 1px solid #eadfc3;
}
.catch-hero h1, .ride-hero h1 { font-family: var(--display); font-size: clamp(42px, 5vw, 64px); line-height: .95; margin: 12px 0 10px; font-weight: 600; }
.catch-hero h1 { color: #6a4b00; }
.catch-hero p, .ride-hero p { color: #4a4f55; max-width: 560px; font-size: 13.5px; line-height: 1.55; }
.catch-badges, .ride-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.catch-badges span, .ride-badges span { display: inline-flex; gap: 5px; align-items: center; border: 1px solid #e5d9b9; background: rgba(255,255,255,.65); border-radius: 99px; padding: 6px 9px; font-size: 10.5px; color: #5c4d22; }
.catch-hero__art { position: relative; min-height: 190px; display: flex; align-items: center; justify-content: center; }
.catch-emoji { position: absolute; font-size: 48px; filter: drop-shadow(0 8px 10px rgba(0,0,0,.12)); }
.catch-emoji:nth-child(1) { left: 16%; top: 10%; transform: rotate(-12deg); }
.catch-emoji:nth-child(2) { right: 17%; top: 4%; transform: rotate(12deg); }
.catch-emoji:nth-child(3) { left: 24%; bottom: 8%; transform: rotate(8deg); }
.catch-emoji:nth-child(4) { right: 22%; bottom: 12%; transform: rotate(-8deg); }
.catch-bag-art { position: relative; z-index: 2; width: 150px; height: 150px; border-radius: 22px; background: var(--accent); border: 5px solid var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; box-shadow: 0 14px 26px rgba(0,0,0,.14); }
.catch-bag-art span { font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.catch-content, .ride-content { max-width: 1180px; margin: 0 auto; padding: 0 24px 38px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; align-items: start; }
.catch-game, .ride-wrap { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.catch-hud, .ride-hud { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.catch-hud > div, .ride-hud > div { background: #f6f7f8; border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 1px; }
.catch-hud span, .ride-hud span { font-size: 9.5px; color: var(--muted); font-weight: 700; }
.catch-hud b, .ride-hud b { font-size: 16px; }
.catch-field { position: relative; height: 470px; border-radius: 14px; overflow: hidden; background: linear-gradient(#cfe3f5 0 48%, #e8e2d2 48% 100%); border: 1px solid #d9d4c6; touch-action: none; }
.catch-field::before { content: ""; position: absolute; left: 0; right: 0; top: 48%; border-top: 3px dashed #fff; opacity: .6; }
.catch-start { position: absolute; inset: 0; z-index: 8; background: rgba(12,16,20,.72); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 8px; }
.catch-start b { font-size: 22px; }
.catch-start p { max-width: 430px; font-size: 12px; color: rgba(255,255,255,.7); }
.catch-start__icon { width: 54px; height: 54px; border-radius: 16px; background: var(--accent); color: var(--ink); display: grid; place-items: center; }
.catch-courier { position: absolute; bottom: 16px; left: 50%; width: 76px; height: 96px; transform: translateX(-50%); z-index: 4; pointer-events: none; }
.catch-courier__head { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 34px; height: 34px; border-radius: 50%; background: var(--accent); border: 3px solid var(--ink); display: grid; place-items: center; }
.catch-courier__body { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); width: 62px; height: 42px; border-radius: 14px; background: var(--ink); }
.catch-courier__bag { position: absolute; left: 50%; top: -11px; transform: translateX(-50%); min-width: 34px; height: 26px; border-radius: 7px; background: var(--accent); color: var(--ink); display: grid; place-items: center; font-size: 15px; border: 2px solid var(--ink); }
.catch-courier__bag.is-full { width: 40px; }
.catch-courier__wheel { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 44px; height: 9px; border-radius: 9px; background: var(--ink); }
.catch-item { position: absolute; z-index: 3; width: 60px; display: flex; flex-direction: column; align-items: center; gap: 1px; pointer-events: none; }
.catch-item span { font-size: 34px; line-height: 1; filter: drop-shadow(0 4px 4px rgba(0,0,0,.14)); }
.catch-item small { font-size: 8.5px; font-weight: 800; background: rgba(255,255,255,.85); border-radius: 5px; padding: 1px 4px; }
.catch-prompt { position: absolute; inset: 0; z-index: 7; display: grid; place-items: center; padding: 16px; background: rgba(10,14,18,.55); }
.catch-prompt__box { width: min(460px, 100%); background: #fff; border-radius: 16px; padding: 18px; text-align: center; }
.catch-pair { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 10px; }
.catch-pair > div { display: flex; flex-direction: column; align-items: center; gap: 1px; width: 120px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.catch-pair > div > div { font-size: 40px; }
.catch-pair b { font-size: 12px; }
.catch-pair small { font-size: 9px; color: var(--muted); }
.catch-pair > span { font-size: 20px; color: var(--muted); }
.catch-prompt__box.is-ok { border: 2px solid #b8e9d8; }
.catch-prompt__box.is-bad { border: 2px solid #f3c4c0; }
.catch-feedback__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--green-bg); color: var(--green); display: grid; place-items: center; margin: 0 auto 8px; }
.catch-prompt__box.is-bad .catch-feedback__icon { background: #fdecec; color: #c0392b; }
.catch-prompt__box p { font-size: 12px; color: var(--muted); max-width: 360px; margin: 6px auto 0; }
.catch-controls, .ride-controls { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; }
.catch-controls span, .ride-controls span { font-size: 10px; color: var(--muted); text-align: center; }
.catch-how, .ride-how { display: flex; flex-direction: column; gap: 12px; }
.catch-how h3, .ride-how h3 { font-family: var(--display); font-size: 24px; line-height: 1; margin: 4px 0 8px; }
.catch-result { text-align: center; padding: 4px 0; }
.catch-result__score, .ride-result__score { font-family: var(--display); font-size: 48px; line-height: 1; }

/* =========================================================
   Мини-игра «Курьер в городе»
   ========================================================= */
.ride-hero { background: linear-gradient(120deg, #0f1720, #1d2d36); color: #fff; border-color: #1d2d36; }
.ride-hero h1 { color: #fff; }
.ride-hero h1 em { color: var(--accent); font-style: normal; }
.ride-hero p { color: rgba(255,255,255,.62); }
.ride-badges span { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.7); }
.ride-hero__art { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.ride-hero__art span { font-size: 110px; filter: drop-shadow(0 16px 22px rgba(0,0,0,.25)); }
.ride-hero__art b { font-size: 10px; letter-spacing: .18em; color: rgba(255,255,255,.5); }
.ride-hud { grid-template-columns: repeat(5, 1fr); }
.ride-canvas-wrap { position: relative; border-radius: 14px; overflow: hidden; background: #dfe8d8; }
.ride-canvas-wrap canvas { display: block; width: 100%; height: auto; }
.ride-start { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 24px; background: rgba(10,14,18,.72); color: #fff; }
.ride-start__icon { font-size: 52px; }
.ride-start b { font-size: 22px; }
.ride-start p { max-width: 420px; font-size: 12px; color: rgba(255,255,255,.7); }
.ride-loc-banner { position: absolute; top: 14px; left: 50%; transform: translate(-50%, -12px); opacity: 0; background: rgba(0,0,0,.68); color: #fff; border-radius: 999px; padding: 7px 14px; font-size: 11px; font-weight: 800; pointer-events: none; transition: all .25s; }
.ride-loc-banner.is-on { opacity: 1; transform: translate(-50%, 0); }
.ride-result { text-align: center; padding: 4px 0; }

@media (max-width: 900px) {
  .catch-hero, .ride-hero { grid-template-columns: 1fr; margin-left: 16px; margin-right: 16px; padding: 22px; }
  .catch-content, .ride-content { grid-template-columns: 1fr; padding: 0 16px 30px; }
  .catch-field { height: 430px; }
  .catch-hud, .ride-hud { grid-template-columns: repeat(2, 1fr); }
  .catch-top, .ride-top { padding: 12px 16px; }
}
.mini-games { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.mini-game { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .15s, transform .15s; }
.mini-game:hover { border-color: var(--ink); transform: translateY(-2px); }
.mini-game__art { width: 58px; height: 58px; border-radius: 14px; background: #fff7cc; display: grid; place-items: center; font-size: 30px; }
.mini-game b { display: block; font-size: 14px; margin-top: 1px; }
.mini-game small { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.mini-game > svg { color: var(--muted); }
@media (max-width: 700px) { .mini-games { grid-template-columns: 1fr; } }
[hidden] { display: none !important; }
.catch-hero .hero__badge { background: rgba(255,255,255,.72); color: var(--ink); border-color: #eadfc3; }
.catch-hero .hero__badge i { background: #c99a00; }
.sim-audience { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .sim-audience { grid-template-columns: 1fr; } }

/* =========================================================
   Кабинет ученика СИМ
   ========================================================= */
.cabinet-page { background: #f5f7f8; min-height: 100vh; }
.cabinet-onboard { max-width: 1100px; margin: 26px auto 44px; padding: 0 24px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; align-items: start; }
.cabinet-onboard__card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.cabinet-onboard__card h1 { font-family: var(--display); font-size: clamp(32px, 4vw, 46px); line-height: .98; margin: 8px 0 10px; }
.cabinet-onboard__card > p { color: var(--muted); font-size: 13px; line-height: 1.5; max-width: 560px; }
.cabinet-onboard__side { display: flex; flex-direction: column; gap: 12px; }
.cabinet-onboard__side h3 { font-family: var(--display); font-size: 24px; margin: 4px 0 8px; }
.cabinet-kind { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cabinet-kind label { display: flex; gap: 8px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.cabinet-kind label:has(input:checked) { border-color: var(--accent); background: #fffbe6; }
.cabinet-kind b { display: block; font-size: 12px; }
.cabinet-kind small { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; line-height: 1.3; }
.cabinet-hero { max-width: 1100px; margin: 22px auto 14px; padding: 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cabinet-id { display: flex; align-items: center; gap: 14px; }
.cabinet-avatar { width: 64px; height: 64px; border-radius: 20px; background: var(--accent); display: grid; place-items: center; font-family: var(--display); font-size: 28px; font-weight: 800; flex: none; }
.cabinet-id h1 { font-family: var(--display); font-size: 38px; line-height: 1; margin: 4px 0; }
.cabinet-sub { font-size: 11.5px; color: var(--muted); }
.cabinet-edit { margin-left: 8px; }
.cabinet-rank { text-align: right; display: flex; flex-direction: column; gap: 1px; }
.cabinet-rank b { font-family: var(--display); font-size: 36px; line-height: 1; color: #8a6d00; }
.cabinet-stats { max-width: 1100px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cabinet-grid { max-width: 1100px; margin: 16px auto 44px; padding: 0 24px; display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
.cabinet-side { display: flex; flex-direction: column; gap: 12px; }
.cabinet-card-title { font-family: var(--display); font-size: 26px; line-height: 1; margin: 4px 0 8px; }
.cabinet-progress .card-bd { padding: 18px; }
.cabinet-bar { height: 9px; border-radius: 99px; background: #f0f1f2; overflow: hidden; }
.cabinet-bar > span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.cabinet-dots { display: flex; gap: 7px; margin: 12px 0 14px; flex-wrap: wrap; }
.cabinet-dots span { width: 30px; height: 30px; border-radius: 9px; background: #f2f3f5; color: var(--muted); display: grid; place-items: center; font-size: 10px; font-weight: 800; }
.cabinet-dots span.is-done { background: #d8f5e9; color: #0b6b51; }
.cabinet-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.ach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ach { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 12px 6px; border: 1px solid var(--line); border-radius: 12px; opacity: .45; }
.ach.is-earned { opacity: 1; border-color: #b8e9d8; background: #f5fdf9; }
.ach > span { width: 32px; height: 32px; border-radius: 10px; background: #f2f3f5; display: grid; place-items: center; }
.ach.is-earned > span { background: #d8f5e9; color: #0b6b51; }
.ach b { font-size: 10px; }
.ach small { font-size: 8.5px; color: var(--muted); line-height: 1.2; }
.rank-table tr.is-me td { background: #fffbe6; font-weight: 700; }
.cabinet-kv { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 11.5px; }
.cabinet-kv:last-of-type { border-bottom: 0; }
.cabinet-kv span { color: var(--muted); }
.cabinet-kv b { text-align: right; }

@media (max-width: 900px) {
  .cabinet-onboard, .cabinet-hero, .cabinet-grid { grid-template-columns: 1fr; margin-left: 16px; margin-right: 16px; padding-left: 0; padding-right: 0; }
  .cabinet-hero { align-items: flex-start; padding: 18px; }
  .cabinet-rank { text-align: left; }
  .cabinet-stats { grid-template-columns: 1fr 1fr; padding: 0 16px; }
  .ach-grid { grid-template-columns: repeat(2, 1fr); }
  .cabinet-id { flex-wrap: wrap; }
  .cabinet-edit { margin-left: 0; }
  .cabinet-kind { grid-template-columns: 1fr; }
}

/* Авторизация СИМ: VK / Яндекс / MAX */
.auth-block { margin: 16px 0 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fafbfc; }
.auth-block__hd { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 800; margin-bottom: 8px; }
.provider-row { display: flex; gap: 7px; flex-wrap: wrap; }
.provider-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font: inherit; font-size: 11px; font-weight: 700; }
.provider-btn:hover { border-color: var(--ink); }
.provider-btn__mark { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: #fff; font-size: 9px; font-weight: 900; flex: none; }
.auth-divider { display: flex; align-items: center; gap: 8px; margin: 12px 0; color: var(--muted); font-size: 10px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.auth-note { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 10.5px; color: #0b6b51; background: #e6f7f1; border-radius: 8px; padding: 8px 10px; }
.auth-link { padding-top: 10px; border-top: 1px solid var(--line); }
.auth-link .provider-row { margin-top: 6px; }
.auth-link .provider-btn { padding: 5px 7px; font-size: 9.5px; }
.auth-link .provider-btn__mark { width: 18px; height: 18px; font-size: 8px; }
.provider-modal { text-align: center; padding: 4px 0; }
.provider-logo { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; color: #fff; font-size: 17px; font-weight: 900; margin: 0 auto 10px; }
.provider-modal b { display: block; font-size: 18px; }
.provider-modal p { max-width: 360px; margin: 8px auto 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
@media (max-width: 600px) { .provider-row { flex-direction: column; } .provider-btn { width: 100%; justify-content: flex-start; } }

@media (max-width: 620px) {
  .landing .cabinet-grid, .landing .hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .landing .hero-mock__row {
    grid-template-columns: minmax(0, 1fr);
  }
  .landing-nav { flex-wrap: wrap; }
  .landing .hero__stats { flex-wrap: wrap; }
  .cabinet-hero { flex-direction: column; }
  .cabinet-id h1, .cabinet-kv b, .child-card__hd b { overflow-wrap: anywhere; }
  .child-card__hd > div { min-width: 0; }
}
