@font-face {
  font-family: "Navigacia Sans";
  src: url("/fonts/ibm-plex-sans-cyr-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: optional;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Navigacia Sans";
  src: url("/fonts/ibm-plex-sans-lat-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: optional;
  unicode-range: U+0000-00FF;
}
@font-face {
  font-family: "Navigacia Sans";
  src: url("/fonts/ibm-plex-sans-cyr-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: optional;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Navigacia Sans";
  src: url("/fonts/ibm-plex-sans-lat-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: optional;
  unicode-range: U+0000-00FF;
}

:root {
  --ink: #0e141b;
  --paper: #eef1f5;
  --card: #fff;
  --muted: #5b6776;
  --line: #dce3ec;
  --accent: #0f766e;
  --accent-ink: #f3fffb;
  --glow: #2ee6a6;
  --ok: #0f766e;
  --err: #b42318;
  --hero: #0b1220;
  --hero-2: #122033;
  --max: 1120px;
  --r: 16px;
  --shadow: 0 1px 0 rgba(14, 20, 27, 0.04), 0 18px 40px rgba(14, 20, 27, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 "Navigacia Sans", "Segoe UI", "Helvetica Neue", sans-serif;
  letter-spacing: -0.01em;
}
img { max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 8px;
  top: 8px;
  z-index: 40;
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--hero);
  color: #e8eef6;
}
.top__in {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
}
.brand {
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.03em;
}
.brand span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: #93a0b3;
}
.nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.nav a {
  text-decoration: none;
  color: #c5d0de;
  padding: 8px 10px;
  border-radius: 999px;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav .btn { color: var(--ink); }
.burger { display: none; }
.nav-toggle:checked ~ .nav { display: flex; }

.flash, .ok, .err {
  max-width: var(--max);
  margin: 16px auto 0;
  padding: 12px 16px;
  border-radius: 12px;
}
.ok { color: var(--ok); background: #e7f7f3; }
.err { color: var(--err); background: #fdecec; }
.form .err { margin: 0; }

.main { max-width: 760px; margin: 0 auto; padding: 28px 20px 72px; }
.main--wide { max-width: var(--max); }
.main--home {
  max-width: none;
  padding: 0 0 72px;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 20px 0;
}

.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(46, 230, 166, 0.16), transparent 55%),
    linear-gradient(180deg, var(--hero) 0%, var(--hero-2) 100%);
  color: #f4f7fb;
  margin: 0;
  padding: 28px 0 40px;
}
.hero__grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  gap: 28px;
}
.hero h1 {
  font-size: clamp(30px, 5.4vw, 52px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.04em;
  margin: 10px 0 16px;
  max-width: 22ch;
}
.lead { color: #b7c3d3; max-width: 40rem; }
.lead--tight { color: var(--muted); }
.eyebrow {
  display: inline-block;
  margin: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(46, 230, 166, 0.12);
  color: var(--glow);
  font-size: 13px;
  letter-spacing: 0.01em;
}
.hero .lead { color: #c5d0de; }
.facts {
  list-style: none;
  padding: 0;
  margin: 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.facts li {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
}
.hero .facts li {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: #e8eef6;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }

.path {
  list-style: none;
  margin: 0;
  padding: 8px 0 0;
  display: grid;
  gap: 6px;
}
.path li {
  position: relative;
  min-width: 0;
  padding: 10px 14px 10px 32px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d5deea;
  font-size: 14px;
}
.path li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4b5b70;
}
.path .is-now {
  border-color: rgba(46, 230, 166, 0.45);
  color: #fff;
}
.path .is-now::before { background: var(--glow); }
.path span {
  display: block;
  color: var(--glow);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 2px;
}
.path-col { min-width: 0; }
.path-toc {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.path-toc__label {
  margin: 0 0 8px;
  color: #93a0b3;
  font-size: 12px;
  font-weight: 600;
}
.path--toc { padding-top: 0; gap: 4px; }
.path--toc li {
  padding: 8px 12px 8px 32px;
  font-size: 13px;
}
.outline {
  margin: 28px 0 0;
  padding: 20px 22px;
  background: var(--card);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.outline h3 { margin: 0 0 6px; }
.outline p { color: var(--muted); margin: 0 0 12px; }
.outline ol {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.outline li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.outline li:last-child { border-bottom: 0; padding-bottom: 0; }
.outline li span {
  display: inline-block;
  min-width: 2.4em;
  margin-right: 8px;
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--glow);
  color: var(--ink);
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.05); }
.btn--ghost {
  background: transparent;
  color: #f4f7fb;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}
.btn--sm { padding: 8px 14px; font-size: 15px; }
.btn--quiet {
  background: #e8eef4;
  color: var(--ink);
}

h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.04em; line-height: 1.15; margin: 8px 0 12px; }
h2 { font-size: 28px; line-height: 1.2; letter-spacing: -0.03em; margin: 0 0 12px; }
h3 { font-size: 18px; margin: 0 0 8px; letter-spacing: -0.02em; }

.split { display: grid; gap: 24px; margin: 56px 0; }
.about {
  display: grid;
  gap: 24px;
  margin: 48px 0 56px;
  align-items: center;
}
.about__photo {
  margin: 0;
  min-width: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #1a2230;
}
.about__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 18%;
}
.about p { margin: 0 0 12px; color: var(--ink); }
.about .lead--tight, .about p + p { color: var(--muted); }
#kak { margin: 56px 0; }
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  counter-reset: step;
}
.steps li {
  position: relative;
  min-width: 0;
  background: var(--card);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 16px 18px 16px 56px;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e7f7f3;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  display: grid;
  place-items: center;
}
.why-grid {
  display: grid;
  gap: 14px;
}
.why-grid article {
  min-width: 0;
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 22px;
}
.why__n {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.why-grid h3 { margin: 0 0 8px; }
.why-grid p { margin: 0; color: var(--muted); }
.stats { margin: 56px 0; }
.stats-grid {
  display: grid;
  gap: 14px;
}
.stats-grid article {
  min-width: 0;
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 24px;
}
.stats__n {
  margin: 0 0 8px;
  font-size: clamp(36px, 6vw, 52px);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 600;
  color: var(--accent);
}
.stats-grid h3 { margin: 0 0 6px; }
.stats-grid p { margin: 0; color: var(--muted); }
.stack { margin: 56px 0; }
.stack-grid {
  display: grid;
  gap: 0;
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 8px 22px;
}
.stack-grid article {
  min-width: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.stack-grid article:last-child { border-bottom: 0; }
.stack-grid h3 {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.tags span {
  background: #e7f7f3;
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 14px;
}
.cards, .tariffs, .quotes, .mods {
  display: grid;
  gap: 14px;
}
.cards article, .tariffs article, .mod, .topic, .q, .q-block, .course-card {
  min-width: 0;
  background: var(--card);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 18px;
}
.mod__n {
  margin: 0 0 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
}
.mod ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.topic-body {
  margin: 8px 0 0;
  color: var(--muted);
}
.topic-body p { margin: 0 0 10px; }
.topic-body p:last-child { margin-bottom: 0; }
.topic-body a { color: var(--accent); }
.hl-yellow { background: #fff3bf; padding: 0 3px; border-radius: 3px; }
.hl-green { background: #d3f9d8; padding: 0 3px; border-radius: 3px; }
.topic-qs { margin: 12px 0 0; padding-left: 20px; }
.topic-qs li { margin: 6px 0; }
.topic-qs .pill { margin-right: 6px; }
.topic-qs .is-done { color: var(--muted); }
.topic--l2 { margin-left: 12px; padding-left: 12px; border-left: 2px solid var(--line); }
.sprint-bar {
  background: #e7f7f3;
  border-radius: 12px;
  padding: 10px 14px;
  margin: 0 0 16px;
}
.mentor-card { margin: 20px 0; }
.q-edit { margin: 10px 0; background: var(--card); border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow); }
.q-edit summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.q-edit .form { margin-top: 10px; }
.handin__links { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0; }
.prog-more { margin: 20px 0 0; }
.prog-more .btn { width: fit-content; }
.course-card {
  text-decoration: none;
  display: grid;
  gap: 6px;
  color: inherit;
}
a.course-card--open:hover { box-shadow: 0 10px 28px rgba(15, 118, 110, 0.16); }
.sprint-now {
  display: grid;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 22px;
  margin: 0 0 28px;
  border: 1px solid rgba(15, 118, 110, 0.28);
}
.sprint-now h2 { margin: 0; }
a.sprint-now:hover { box-shadow: 0 10px 28px rgba(15, 118, 110, 0.16); }
.sprint-now--empty { border-style: dashed; color: var(--muted); }
.pick {
  display: grid;
  gap: 8px;
  max-height: 380px;
  overflow: auto;
  padding: 4px 0 8px;
}
.form .pick label.check { max-width: none; }
.course-card--locked, .course-card--closed {
  background: #e8edf3;
  box-shadow: none;
  color: var(--muted);
}
.stage-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.stage-strip li {
  min-width: 2.4rem;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  background: #e8edf3;
  color: var(--muted);
}
.stage-strip a, .stage-strip span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
  padding: 0 8px;
}
.stage-strip .is-open { background: #e7f7f3; color: var(--ok); }
.stage-strip .is-closed { background: #f3e8e8; color: #8a4b4b; }
.stage-strip .is-here {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.course-layout {
  display: grid;
  gap: 24px;
  margin-top: 8px;
}
.topic-toc {
  background: var(--card);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 14px 16px;
}
.topic-toc ol {
  margin: 8px 0 0;
  padding-left: 18px;
}
.topic-toc li { margin: 2px 0; }
.topic-toc a { color: var(--ink); display: inline-block; padding: 5px 0; }
.topic-toc a:hover { color: var(--accent); }
.topic { scroll-margin-top: 16px; }
.handin {
  margin: 28px 0 0;
  padding: 20px;
  background: var(--card);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 118, 110, 0.28);
  display: grid;
  gap: 10px;
}
.handin h2 { margin: 0; }
.handin .btn { width: fit-content; }
.preview-bar {
  background: #fff4e5;
  color: #9a5b12;
  padding: 10px 14px;
  border-radius: 12px;
  margin: 0 0 16px;
}
.preview-bar a { color: inherit; }
.pill {
  display: inline-block;
  width: fit-content;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 600;
  background: #e8edf3;
  color: var(--muted);
}
.pill--ok { background: #e7f7f3; color: var(--ok); }
.pill--warn { background: #fff4e5; color: #9a5b12; }
.price { font-weight: 600; margin: 0 0 8px; font-size: 18px; }
.note, .muted { color: var(--muted); font-size: 15px; }
.note a { color: var(--accent); }
.person-meta {
  color: var(--muted);
  margin: 0 0 16px;
}
.person-meta a { color: var(--accent); }
blockquote,
.quote {
  margin: 0;
  min-width: 0;
  background: var(--card);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 18px;
}
blockquote footer,
.quote footer { color: var(--muted); margin-top: 10px; font-size: 14px; }
.quote footer a { color: var(--accent); text-decoration: none; }
.quote summary {
  list-style: none;
  cursor: pointer;
}
.quote summary::-webkit-details-marker { display: none; }
.quote summary p { margin: 0; }
.quote__more {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}
.quote[open] summary { display: none; }
.quote__body {
  margin: 0;
  white-space: pre-wrap;
}

.apply {
  display: grid;
  gap: 24px;
  margin: 56px 0 0;
  padding: 28px 22px;
  border-radius: 24px;
  background:
    radial-gradient(500px 200px at 100% 0%, rgba(46, 230, 166, 0.14), transparent 60%),
    var(--hero);
  color: #e8eef6;
}
.apply p { color: #c5d0de; }
.apply a { color: var(--glow); }
.apply-q {
  margin: 12px 0 0;
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
  color: #c5d0de;
  font-size: 15px;
  line-height: 1.45;
}
.apply .form {
  background: var(--card);
  color: var(--ink);
  padding: 22px;
  border-radius: 18px;
  max-width: none;
}
.form { display: grid; gap: 12px; max-width: 420px; }
.form--row { max-width: none; }
.form label { display: grid; gap: 6px; font-size: 15px; }
.form input, .form textarea, .form select {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  width: 100%;
  min-width: 0;
  /* меньше 16px — Safari на iPhone зумит страницу при фокусе */
  font-size: 16px;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: 2px solid rgba(15, 118, 110, 0.35);
  border-color: var(--accent);
}
.form label.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}
.form label.check a { color: inherit; text-decoration: underline; }
.form label.check a:hover { color: var(--accent); }
.form label.check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 2px 0 0;
  padding: 0;
  flex: none;
  accent-color: var(--accent);
}

.auth {
  max-width: 420px;
  margin: 24px auto;
  background: var(--card);
  padding: 28px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.auth .lead--tight { color: var(--muted); }

.cab-grid { display: grid; gap: 32px; }
.feedback {
  background: #fff7ee;
  padding: 10px 12px;
  border-radius: 10px;
}
.answer {
  white-space: pre-wrap;
  background: #f7f9fb;
  border-radius: 12px;
  padding: 12px;
  font: inherit;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  overflow-x: auto;
  display: block;
  background: var(--card);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 8px 16px;
}
.table th, .table td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 12px 12px 12px 0;
  vertical-align: top;
}
.table tr:last-child td { border-bottom: 0; }
.table-empty td { color: var(--muted); }
.invite-url {
  display: flex;
  gap: 8px;
  align-items: stretch;
  max-width: 36rem;
  margin: 0 0 8px;
}
.invite-url input {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.invite-url--fresh {
  max-width: 44rem;
  margin: 0 0 20px;
}
.invite-url--fresh input { padding: 12px; }
.table tr.is-new td { background: #e7f7f3; }
.auth .muted { margin-top: 16px; }
.panel-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.panel-nav a {
  text-decoration: none;
  background: var(--card);
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: var(--shadow);
}
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline select { width: auto; border-radius: 10px; padding: 8px 10px; border: 1px solid var(--line); }
.back {
  display: inline-block;
  margin: 0 0 12px;
  color: var(--muted);
  text-decoration: none;
}
.back:hover { color: var(--ink); }

.is-map { background: #1b2026; }
.main--map { padding: 0; }
.is-map .foot {
  border-color: rgba(255, 255, 255, 0.08);
  color: #93a0b3;
}
.is-map .foot a { color: #e8eef4; }
.is-map .foot a:hover { color: var(--glow); }

.plan { color: #f4f7fb; }
.plan__head {
  background: linear-gradient(180deg, #d8dee6 0%, #8a97a6 42%, #1b2026 100%);
  padding: 48px 20px 40px;
  text-align: center;
}
.plan__head .eyebrow { color: #0f766e; }
.plan__head h1 { color: #0e141b; margin: 8px 0 16px; }
.plan__head .back { color: #3d4a5a; }
.plan__head .back:hover { color: #0e141b; }
.plan-stage {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 20px 56px;
  text-align: center;
}
.plan-grid { text-align: left; }
.plan-stage__badge {
  display: inline-block;
  margin: 0 0 16px;
  padding: 8px 16px;
  border-radius: 8px;
  background: #0b0d10;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.plan-stage h2 {
  text-align: center;
  color: #fff;
  margin: 0 0 16px;
}
.plan-stage .lead {
  text-align: center;
  color: #c5d0de;
  max-width: 40rem;
  margin: 0 auto 16px;
}
.plan-stage__sub {
  text-align: center;
  font-weight: 600;
  margin: 0 0 28px;
}
.plan-stage h2 + .plan-grid,
.plan-stage h2 + .lead { margin-top: 8px; }
.plan-grid {
  display: grid;
  gap: 28px 24px;
}
.plan-card {
  position: relative;
  min-width: 0;
  padding: 28px 4px 4px;
}
.plan-card__n {
  position: absolute;
  top: -6px;
  left: 0;
  z-index: 0;
  font-size: clamp(64px, 8vw, 92px);
  font-weight: 600;
  line-height: 0.9;
  color: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.plan-card h3,
.plan-card p,
.plan-card ul,
.plan-card ol { position: relative; z-index: 1; }
.plan-card h3 { margin: 0 0 10px; color: #fff; }
.plan-card p { margin: 0 0 10px; color: #d5dde6; }
.plan-card ul,
.plan-card ol {
  margin: 0;
  padding-left: 1.15em;
  color: #d5dde6;
}
.plan-card li { margin: 0 0 6px; }
.plan-card li ul { margin-top: 6px; }
.plan-card--plain {
  text-align: center;
  padding-top: 40px;
}
.plan-card--plain .plan-card__n {
  left: 50%;
  transform: translateX(-50%);
}
.plan-card--plain p {
  margin: 0;
  color: #f4f7fb;
  font-weight: 600;
}
.plan-rule {
  border: 0;
  height: 1px;
  margin: 0 auto;
  max-width: 42rem;
  background: linear-gradient(90deg, transparent, rgba(46, 230, 166, 0.55), transparent);
}
.plan-tg {
  margin: 0;
  padding: 48px 20px 64px;
  text-align: center;
  background: #0b0d10;
}
.plan-tg a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #f4f7fb;
  font-size: 14px;
}
.plan-tg a:hover { color: var(--glow); }

.foot {
  border-top: 1px solid var(--line);
  padding: 28px 20px 36px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.foot p { margin: 0 0 8px; }
.foot p:last-child { margin-bottom: 0; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--accent); }
.legal { max-width: 720px; }
.legal h2 { font-size: 18px; margin: 28px 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 1.2em; }
.legal-scan { margin: 16px 0 0; }
.legal-scan img { display: block; width: 100%; height: auto; margin: 0 0 16px; background: #fff; }

@media (min-width: 768px) {
  .hero { padding: 48px 0 72px; }
  .hero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.7fr); align-items: start; }
  .main { padding-top: 36px; }
  .split { grid-template-columns: 1fr 1.15fr; align-items: start; }
  .about { grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.15fr); }
  .cards, .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .why-grid article { grid-column: span 2; }
  .why-grid article:nth-child(4) { grid-column: 2 / span 2; }
  .why-grid article:nth-child(5) { grid-column: 4 / span 2; }
  .tariffs, .mods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .main--map { padding-top: 0; }
  .apply { grid-template-columns: 0.9fr 1.1fr; align-items: start; padding: 40px; }
  .cab-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr); }
  .course-layout {
    grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
    align-items: start;
  }
  .topic-toc { position: sticky; top: 16px; }
  .table { display: table; }
  .table thead { display: table-header-group; }
  .table tbody { display: table-row-group; }
  .table tr { display: table-row; }
  .table th, .table td { display: table-cell; }
}

@media (max-width: 767px) {
  .invite-url input { font-size: 16px; }
  .table {
    display: block;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
  }
  .table thead { display: none; }
  .table tbody { display: block; }
  .table tr {
    display: block;
    background: var(--card);
    border-radius: var(--r);
    box-shadow: var(--shadow);
    padding: 14px 16px;
    margin: 0 0 12px;
  }
  .table tr:last-child { margin-bottom: 0; }
  .table th, .table td {
    display: block;
    border: 0;
    padding: 8px 0 0;
    width: auto;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .table td:first-child { padding-top: 0; }
  .table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    margin: 0 0 4px;
  }
  .table td[data-label=""]::before { display: none; }
  .table__name {
    font-weight: 600;
    font-size: 16px;
    padding-bottom: 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--line);
  }
  .table__actions { padding-top: 12px; }
  .table__actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #e8eef4;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
  }
  .table .btn,
  .table .btn--sm {
    width: 100%;
    min-height: 40px;
    box-sizing: border-box;
  }
  .table .inline {
    flex-direction: column;
    align-items: stretch;
  }
  .table .invite-url,
  .invite-url {
    flex-direction: column;
    max-width: none;
  }
  .handin .btn { width: 100%; }
  .table tr.is-new { background: #e7f7f3; }
  .table tr.is-new td { background: transparent; }
  .path-col { display: none; }
  .top--app .burger { display: none; }
  .top--app .nav {
    display: flex;
    position: static;
    flex-direction: row;
    padding: 0;
    background: transparent;
  }
  .burger {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    cursor: pointer;
    border-radius: 10px;
  }
  .burger span, .burger span:before, .burger span:after {
    content: "";
    display: block;
    width: 18px;
    height: 2px;
    background: #e8eef6;
    position: relative;
  }
  .burger span:before { top: -6px; position: absolute; }
  .burger span:after { top: 6px; position: absolute; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    background: var(--hero);
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 20px 24px;
  }
  .nav-toggle:checked ~ .nav { display: flex; }
  .hero h1 { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { filter: none; }
}
/* ═══════════════════════════════════════════════════════════════
   PREMIUM UPGRADE — Этап 1: лендинг + /map
   Не заменяет существующие правила, только дополняет и перекрывает
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────── 1. ШАПКА ─────────────── */
.top {
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(46, 230, 166, 0.12);
  position: sticky;
  top: 0;
  z-index: 50;
}
.top::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(46, 230, 166, 0.35) 20%,
    rgba(46, 230, 166, 0.35) 80%,
    transparent);
  pointer-events: none;
}
.top__in { padding: 12px 20px; }

.brand:hover { transform: translateX(2px); }
/* ═══════════════════════════════════════════════════════════════
   Логотип-иконка в шапке
   ═══════════════════════════════════════════════════════════════ */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 10px 4px 4px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s ease;
  position: relative;
  padding-left: 4px; /* было 44px — убираем */
}
.brand:hover {
  background: rgba(46, 230, 166, 0.05);
  text-decoration: none;
}

.brand__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg,
    rgba(46, 230, 166, 0.18),
    rgba(46, 230, 166, 0.05));
  border: 1px solid rgba(46, 230, 166, 0.25);
  box-shadow: 0 0 16px rgba(46, 230, 166, 0.15);
  transition: all 0.3s ease;
}
.brand:hover .brand__icon {
  transform: rotate(-6deg) scale(1.05);
  box-shadow: 0 0 24px rgba(46, 230, 166, 0.35);
}
.brand__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 6px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.brand__text span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #93a0b3;
  letter-spacing: 0;
}

/* Мобильная адаптация */
@media (max-width: 767px) {
  .brand__icon {
    width: 34px;
    height: 34px;
  }
  .brand__icon img {
    padding: 5px;
  }
  .brand__text span {
    display: none; /* скрываем подпись на маленьких экранах */
  }
}
.nav a {
  transition: all 0.25s ease;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 2px;
  width: 0; height: 1px;
  background: #2ee6a6;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.nav a:hover::after { width: 60%; }
.nav .btn::after { display: none; }

/* ─────────────── 2. HERO ─────────────── */
.hero {
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(46, 230, 166, 0.20), transparent 55%),
    radial-gradient(600px 320px at 10% 110%, rgba(79, 143, 247, 0.12), transparent 60%),
    linear-gradient(180deg, #0b1220 0%, #101c30 60%, #0e1a2c 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero__glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: heroFloat 12s ease-in-out infinite;
}
.hero__glow--tr {
  top: -180px; right: -140px;
  background: radial-gradient(circle, rgba(46, 230, 166, 0.35), transparent 65%);
}
.hero__glow--bl {
  bottom: -220px; left: -140px;
  background: radial-gradient(circle, rgba(79, 143, 247, 0.28), transparent 65%);
  animation-delay: -6s;
}
@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, 20px); }
}
.hero__grid { position: relative; z-index: 1; }
.hero__body { min-width: 0; }
.hero__title {
  background: linear-gradient(135deg, #ffffff 0%, #b8e8d4 70%, #7ad9b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__title em {
  font-style: normal;
  position: relative;
  display: inline-block;
}
.hero__title em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 3px;
  background: linear-gradient(90deg, rgba(46, 230, 166, 0.65), transparent);
  border-radius: 2px;
}
/* Градиент — только на лендинге */
.hero--landing .hero__title,
.hero--landing .hero__title em {
  background: linear-gradient(135deg, #ffffff 0%, #b8e8d4 70%, #7ad9b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero--landing .hero__title em {
  font-style: normal;
  position: relative;
  display: inline-block;
}

.hero--landing .hero__title em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 3px;
  background: linear-gradient(90deg, rgba(46, 230, 166, 0.65), transparent);
  border-radius: 2px;
}
/* Чипы-факты */
.facts--chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}
.facts--chips li:hover {
  transform: translateY(-2px);
  border-color: rgba(46, 230, 166, 0.35);
  box-shadow: 0 6px 20px rgba(46, 230, 166, 0.12);
}
.facts__ico {
  display: inline-flex;
  width: 22px; height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(46, 230, 166, 0.12);
  font-size: 12px;
  flex-shrink: 0;
}

/* CTA-кнопки */
.btn--primary {
  background: linear-gradient(135deg, #2ee6a6, #22b888);
  box-shadow: 0 4px 14px rgba(46, 230, 166, 0.30);
  color: var(--ink);
  transition: all 0.3s ease;
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46, 230, 166, 0.45);
  filter: brightness(1.05);
}
.btn--lg {
  padding: 14px 24px;
  font-size: 17px;
}

/* Path — timeline */
.path li {
  transition: all 0.3s ease;
  position: relative;
}
.path li:hover {
  transform: translateX(4px);
  border-color: rgba(46, 230, 166, 0.25);
}
.path .is-now {
  box-shadow: 0 0 0 1px rgba(46, 230, 166, 0.35), 0 4px 18px rgba(46, 230, 166, 0.15);
}
.path .is-now::before {
  box-shadow: 0 0 12px rgba(46, 230, 166, 0.8);
  animation: pathPulse 2s ease-in-out infinite;
}
@keyframes pathPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(46, 230, 166, 0.8); }
  50% { box-shadow: 0 0 20px rgba(46, 230, 166, 1); }
}

/* ─────────────── 3. ABOUT ─────────────── */
.about__photo {
  position: relative;
  border: 1px solid rgba(46, 230, 166, 0.20);
  box-shadow:
    0 20px 60px rgba(14, 20, 27, 0.15),
    0 0 0 8px rgba(46, 230, 166, 0.04);
}
.about__photo-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle, rgba(46, 230, 166, 0.18), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}
.about__photo img {
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.about__photo:hover img { transform: scale(1.04); }
.about__body { min-width: 0; }

/* ─────────────── 4. STEPS ─────────────── */
.steps li {
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}
.steps li::after {
  content: "";
  position: absolute;
  left: 0; top: 16px; bottom: 16px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(to bottom, var(--accent), var(--glow));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.steps li:hover {
  transform: translateX(4px);
  box-shadow: 0 12px 32px rgba(14, 20, 27, 0.10);
}
.steps li:hover::after { opacity: 1; }
.steps li::before {
  background: linear-gradient(135deg, #e7f7f3, #d3f0e8);
  transition: all 0.3s ease;
}
.steps li:hover::before {
  background: linear-gradient(135deg, #2ee6a6, #22b888);
  color: #0e141b;
  transform: scale(1.1);
  box-shadow: 0 0 16px rgba(46, 230, 166, 0.4);
}

/* ─────────────── 5. STATS ─────────────── */
.stats-grid article {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.stats-grid article::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(46, 230, 166, 0.12), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.stats-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(14, 20, 27, 0.10);
}
.stats__n {
  background: linear-gradient(135deg, var(--accent), var(--glow));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─────────────── 6. TAGS ─────────────── */
.tags span {
  transition: all 0.25s ease;
  cursor: default;
}
.tags span:hover {
  background: linear-gradient(135deg, rgba(46, 230, 166, 0.22), rgba(46, 230, 166, 0.08));
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(46, 230, 166, 0.15);
}
.stack-grid h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stack-grid h3::before {
  content: "";
  width: 16px; height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* ─────────────── 7. CARDS / WHY ─────────────── */
.cards--bordered article {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.cards--bordered article::before {
  content: "";
  position: absolute;
  left: 0; top: 20px; bottom: 20px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(to bottom, var(--accent), var(--glow));
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
.cards--bordered article:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(14, 20, 27, 0.10);
}
.cards--bordered article:hover::before { opacity: 1; }

.why-grid article {
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
}
.why-grid article::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(46, 230, 166, 0.12), transparent 65%);
  filter: blur(24px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.why-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(14, 20, 27, 0.10);
}
.why-grid article:hover::before { opacity: 1; }
.why__n {
  font-size: 20px;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--accent), var(--glow));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─────────────── 8. MODS ─────────────── */
.mod {
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}
.mod::before {
  content: "";
  position: absolute;
  left: 0; top: 18px; bottom: 18px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(to bottom, var(--accent), var(--glow));
  opacity: 0.75;
}
.mod:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(14, 20, 27, 0.10);
}
.mod:hover::before { opacity: 1; }
.mod__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 26px;
  padding: 0 9px;
  margin-bottom: 10px;
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(46, 230, 166, 0.15), rgba(46, 230, 166, 0.04));
  border: 1px solid rgba(46, 230, 166, 0.22);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ─────────────── 9. OUTLINE ─────────────── */
.outline {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.outline::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--glow), var(--accent), transparent);
  opacity: 0.6;
}
.outline li {
  transition: all 0.25s ease;
}
.outline li:hover {
  background: rgba(46, 230, 166, 0.04);
  padding-left: 8px;
}

/* ─────────────── 10. TARIFFS ─────────────── */
.tariffs article {
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}
.tariffs article::before {
  content: "";
  position: absolute;
  left: 0; top: 20px; bottom: 20px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(to bottom, var(--accent), var(--glow));
  opacity: 0.5;
  transition: opacity 0.3s ease;
}
.tariffs article:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(14, 20, 27, 0.10);
}
.tariffs article:hover::before { opacity: 1; }
.tariff--featured {
  border: 1px solid rgba(46, 230, 166, 0.35) !important;
  background:
    radial-gradient(500px 220px at 100% 0%, rgba(46, 230, 166, 0.08), transparent 60%),
    var(--card) !important;
  box-shadow:
    0 4px 14px rgba(46, 230, 166, 0.10),
    0 20px 44px rgba(14, 20, 27, 0.08) !important;
}
.tariff--featured::after {
  content: "Хит";
  position: absolute;
  top: 14px; right: 14px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  background: rgba(46, 230, 166, 0.12);
  border: 1px solid rgba(46, 230, 166, 0.30);
  padding: 3px 8px;
  border-radius: 5px;
}

/* ─────────────── 11. QUOTES ─────────────── */
blockquote, .quote {
  position: relative;
  transition: all 0.3s ease;
}
blockquote:hover, .quote:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(14, 20, 27, 0.10);
}
.quote__mark {
  display: block;
  font-size: 32px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.5;
  margin-bottom: 6px;
  font-family: Georgia, serif;
}
.quote summary p { margin: 8px 0 0; }

/* ─────────────── 12. APPLY ─────────────── */
.apply {
  background:
    radial-gradient(600px 240px at 100% 0%, rgba(46, 230, 166, 0.18), transparent 60%),
    radial-gradient(500px 200px at 0% 100%, rgba(79, 143, 247, 0.12), transparent 60%),
    linear-gradient(180deg, #0b1220 0%, #0d1726 100%);
  border-radius: 28px;
  box-shadow: 0 30px 60px rgba(14, 20, 27, 0.20);
  position: relative;
  overflow: hidden;
}
.apply::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 70%);
  pointer-events: none;
}
.apply > * { position: relative; z-index: 1; }
.apply__body { min-width: 0; }
.apply .form {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.30),
    0 0 0 1px rgba(46, 230, 166, 0.10) inset;
  border-radius: 20px;
}
.apply .form input,
.apply .form textarea,
.apply .form select {
  transition: all 0.25s ease;
}
.apply .form input:hover,
.apply .form textarea:hover {
  border-color: rgba(15, 118, 110, 0.35);
}
.apply-q li::marker {
  color: var(--glow);
  font-weight: 700;
}

/* ─────────────── 13. /map — ПЛАН ОБУЧЕНИЯ ─────────────── */
.plan__head {
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(46, 230, 166, 0.12), transparent 60%),
    linear-gradient(180deg, #e6ebf1 0%, #b5c0cf 35%, #1b2026 100%);
  padding: 64px 20px 56px;
  position: relative;
  overflow: hidden;
}
.plan__head::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46, 230, 166, 0.6), transparent);
}
.plan-stage {
  position: relative;
}
.plan-stage__badge {
  background: linear-gradient(135deg, #0b1220, #1a2536);
  border: 1px solid rgba(46, 230, 166, 0.30);
  color: #2ee6a6;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(46, 230, 166, 0.10) inset;
}
.plan-card {
  position: relative;
  transition: all 0.35s ease;
}
.plan-card__n {
  font-size: clamp(72px, 9vw, 110px);
  color: rgba(255, 255, 255, 0.06);
  transition: all 0.4s ease;
  letter-spacing: -0.04em;
}
.plan-card:hover .plan-card__n {
  color: rgba(46, 230, 166, 0.14);
  transform: translateY(-4px);
}
.plan-card h3 {
  font-size: 20px;
  letter-spacing: -0.02em;
}
.plan-card ul, .plan-card ol {
  line-height: 1.6;
}
.plan-card li strong {
  color: #2ee6a6;
  font-weight: 600;
}
.plan-card a { color: #2ee6a6; text-decoration: underline; text-underline-offset: 3px; }
.plan-card--plain {
  padding: 32px 12px 12px;
}
.plan-card--plain .plan-card__n {
  font-size: clamp(48px, 6vw, 72px);
}
.plan-rule {
  background: linear-gradient(90deg, transparent, rgba(46, 230, 166, 0.65) 50%, transparent);
  max-width: 60rem;
}
.plan-tg {
  background: linear-gradient(180deg, #0b0d10, #050608);
  position: relative;
}
.plan-tg a {
  transition: all 0.3s ease;
}
.plan-tg a:hover {
  transform: translateY(-3px);
}
.plan-tg a:hover svg {
  filter: drop-shadow(0 0 16px rgba(42, 171, 238, 0.6));
}

/* ─────────────── 14. АНИМАЦИИ ПОЯВЛЕНИЯ ─────────────── */
@media (prefers-reduced-motion: no-preference) {
  .hero__body > *,
  .path-col > * {
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 0.7s ease forwards;
  }
  .hero__body > *:nth-child(1) { animation-delay: 0.05s; }
  .hero__body > *:nth-child(2) { animation-delay: 0.12s; }
  .hero__body > *:nth-child(3) { animation-delay: 0.20s; }
  .hero__body > *:nth-child(4) { animation-delay: 0.28s; }
  .hero__body > *:nth-child(5) { animation-delay: 0.36s; }
  .path-col > *:nth-child(1) { animation-delay: 0.20s; }
  .path-col > *:nth-child(2) { animation-delay: 0.35s; }

  .about, .steps, .stats, .stack,
  .band, #programma, .split, .apply {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.15s;
  }

  @keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__glow { animation: none; }
  .path .is-now::before { animation: none; }
}

/* ─────────────── 15. МОБИЛЬНАЯ АДАПТАЦИЯ ─────────────── */
@media (max-width: 767px) {
  .hero { padding: 24px 0 32px; }
  .hero__glow { width: 340px; height: 340px; filter: blur(60px); }
  .hero__glow--tr { top: -120px; right: -100px; }
  .hero__glow--bl { display: none; }
  .top::after { opacity: 0.5; }
  .facts--chips li { padding: 7px 12px; font-size: 13px; }
  .stats-grid article::before { width: 80px; height: 80px; }
  .why-grid article::before { width: 100px; height: 100px; }
  .apply .form { padding: 18px; }
}

/* ═══════════════════════════════════════════════════════════════
   Темы внутри модулей на лендинге
   ═══════════════════════════════════════════════════════════════ */
.mod ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}
.mod ul li {
  position: relative;
  padding: 5px 0 5px 18px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
  transition: color 0.2s ease;
}
.mod ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--glow));
  opacity: 0.7;
  transition: all 0.25s ease;
}
.mod:hover ul li::before {
  opacity: 1;
  box-shadow: 0 0 8px rgba(46, 230, 166, 0.5);
}
.mod ul li:hover {
  color: var(--ink);
}
.mod ul li:hover::before {
  transform: translateY(-50%) scale(1.3);
}

/* ═══════════════════════════════════════════════════════════════
   AUTH — премиум-страница входа
   ═══════════════════════════════════════════════════════════════ */

.auth--premium {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 72px);
  margin: 0;
  padding: 40px 20px;
  max-width: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: hidden;
}

/* Свечения на фоне */
.auth__glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.auth__glow--tr {
  top: -180px; right: -140px;
  background: radial-gradient(circle, rgba(46, 230, 166, 0.22), transparent 65%);
}
.auth__glow--bl {
  bottom: -220px; left: -140px;
  background: radial-gradient(circle, rgba(79, 143, 247, 0.16), transparent 65%);
}

/* Сетка */
.auth__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  align-items: center;
}

/* ─── ЛЕВАЯ КОЛОНКА ─── */
.auth__side {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.auth__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  width: fit-content;
  transition: opacity 0.25s ease;
}
.auth__brand:hover { opacity: 0.85; text-decoration: none; }

.auth__brand-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: linear-gradient(135deg,
    rgba(46, 230, 166, 0.18),
    rgba(46, 230, 166, 0.05));
  border: 1px solid rgba(46, 230, 166, 0.25);
  box-shadow: 0 0 16px rgba(46, 230, 166, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.auth__brand:hover .auth__brand-icon {
  transform: rotate(-6deg) scale(1.05);
  box-shadow: 0 0 24px rgba(46, 230, 166, 0.35);
}

.auth__brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}
.auth__brand-text strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.auth__brand-text span {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0;
}

.auth__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0;
}
.auth__lead {
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 42ch;
  margin: 0;
}

/* Фичи */
.auth__features {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: grid;
  gap: 10px;
}
.auth__features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink);
  transition: all 0.25s ease;
}
.auth__features li:hover {
  border-color: rgba(46, 230, 166, 0.35);
  transform: translateX(4px);
  box-shadow: 0 6px 18px rgba(46, 230, 166, 0.08);
}
.auth__feature-ico {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 15px;
  background: linear-gradient(135deg,
    rgba(46, 230, 166, 0.18),
    rgba(46, 230, 166, 0.05));
  border: 1px solid rgba(46, 230, 166, 0.22);
}

.auth__foot {
  font-size: 14px;
  color: var(--muted);
  margin: 4px 0 0;
}
.auth__foot a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.auth__foot a:hover {
  border-bottom-color: var(--accent);
  text-decoration: none;
}

/* ─── ПРАВАЯ КОЛОНКА — ФОРМА ─── */
.auth__form-wrap {
  position: relative;
  min-width: 0;
}

.auth__form-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at 30% 0%, rgba(46, 230, 166, 0.10), transparent 60%);
  filter: blur(30px);
  pointer-events: none;
  z-index: -1;
}

.auth__form {
  position: relative;
  background: #fff;
  padding: 32px;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow:
    0 1px 0 rgba(14, 20, 27, 0.04),
    0 24px 60px rgba(14, 20, 27, 0.10),
    0 0 0 1px rgba(46, 230, 166, 0.05) inset;
  display: grid;
  gap: 16px;
  max-width: none;
}

.auth__form-head {
  margin-bottom: 4px;
}
.auth__form-head h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 4px;
}
.auth__form-head p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* Ошибка */
.auth__error {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fdecec;
  border: 1px solid rgba(180, 35, 24, 0.20);
  color: #b42318;
  font-size: 14px;
  font-weight: 500;
  animation: authShake 0.4s ease;
}
.auth__error-ico {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #b42318;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}
@keyframes authShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* Поля */
.auth__field {
  display: grid;
  gap: 6px;
}
.auth__field-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.auth__field-input {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: all 0.2s ease;
}
.auth__field-input svg {
  flex-shrink: 0;
  color: var(--muted);
  transition: color 0.2s ease;
}
.auth__field-input input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 13px 0;
  background: transparent;
  font-size: 15px;
  color: var(--ink);
  font-family: inherit;
}
.auth__field-input input::placeholder {
  color: #b0bac6;
}
.auth__field-input:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.10);
}
.auth__field-input:focus-within svg {
  color: var(--accent);
}

/* Кнопка */
.auth__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  margin-top: 6px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: linear-gradient(135deg, var(--glow), var(--accent));
  box-shadow: 0 4px 14px rgba(46, 230, 166, 0.30);
  transition: all 0.25s ease;
}
.auth__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46, 230, 166, 0.45);
}
.auth__submit:active {
  transform: translateY(0);
}
.auth__submit svg {
  transition: transform 0.25s ease;
}
.auth__submit:hover svg {
  transform: translateX(3px);
}

.auth__note {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin: 4px 0 0;
}
.auth__note a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.auth__note a:hover {
  text-decoration: underline;
}

/* ─── АДАПТИВ ─── */
@media (max-width: 900px) {
  .auth--premium {
    padding: 24px 16px;
    min-height: auto;
  }
  .auth__grid {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 460px;
  }
  .auth__side {
    text-align: center;
    align-items: center;
  }
  .auth__features {
    text-align: left;
    width: 100%;
  }
  .auth__lead {
    margin: 0 auto;
  }
  .auth__form { padding: 24px; }
  .auth__glow { width: 340px; height: 340px; filter: blur(60px); }
  .auth__glow--bl { display: none; }
}

@media (min-width: 901px) {
  .auth__grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .auth__side > * {
    opacity: 0;
    transform: translateY(12px);
    animation: authFade 0.6s ease forwards;
  }
  .auth__side > *:nth-child(1) { animation-delay: 0.05s; }
  .auth__side > *:nth-child(2) { animation-delay: 0.12s; }
  .auth__side > *:nth-child(3) { animation-delay: 0.20s; }
  .auth__side > *:nth-child(4) { animation-delay: 0.28s; }
  .auth__side > *:nth-child(5) { animation-delay: 0.36s; }

  .auth__form {
    opacity: 0;
    transform: translateY(16px);
    animation: authFade 0.7s ease 0.20s forwards;
  }

  @keyframes authFade {
    to { opacity: 1; transform: translateY(0); }
  }
}
.auth__or{ display:flex; align-items:center; gap:12px; margin:1.1rem 0 .9rem; color:#5c6a7e; font-size:12px; }
.auth__or::before,.auth__or::after{ content:''; flex:1; height:1px; background:rgba(255,255,255,.10); }
.tg-widget{ display:flex; justify-content:center; min-height:48px; }
.tg-widget iframe{ max-width:100%; }
.auth__note b{ color:#e8ecf2; }

/* ═══════════════════════════════════════════════════════════════
   AUTH DARK — тёмная тема для страниц входа и привязки Telegram
   ═══════════════════════════════════════════════════════════════ */

/* Общий контейнер — тёмный фон */
body:has(.auth--dark) {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(46, 230, 166, 0.10), transparent 55%),
    radial-gradient(600px 350px at 10% 110%, rgba(79, 143, 247, 0.08), transparent 60%),
    linear-gradient(180deg, #0b1220 0%, #0e1626 100%);
  color: #e8ecf2;
}
body:has(.auth--dark) .top,
body:has(.auth--dark) .nav a { color: #c5d0de; }
body:has(.auth--dark) .brand { color: #e8ecf2; }

/* Тёмная карточка */
.auth--dark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 72px);
  margin: 0;
  padding: 40px 20px;
  max-width: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: hidden;
}

/* Свечения */
.auth--dark .auth__glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.auth--dark .auth__glow--tr {
  top: -180px; right: -140px;
  background: radial-gradient(circle, rgba(46, 230, 166, 0.22), transparent 65%);
}
.auth--dark .auth__glow--bl {
  bottom: -220px; left: -140px;
  background: radial-gradient(circle, rgba(79, 143, 247, 0.16), transparent 65%);
}

/* Сетка */
.auth--dark .auth__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  align-items: center;
}

/* ─── ЛЕВАЯ КОЛОНКА ─── */
.auth--dark .auth__side {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.auth--dark .auth__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  width: fit-content;
  transition: opacity 0.25s ease;
}
.auth--dark .auth__brand:hover { opacity: 0.85; text-decoration: none; }

.auth--dark .auth__brand-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #2ee6a6;
  background: linear-gradient(135deg, rgba(46, 230, 166, 0.18), rgba(46, 230, 166, 0.05));
  border: 1px solid rgba(46, 230, 166, 0.25);
  box-shadow: 0 0 16px rgba(46, 230, 166, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.auth--dark .auth__brand:hover .auth__brand-icon {
  transform: rotate(-6deg) scale(1.05);
  box-shadow: 0 0 24px rgba(46, 230, 166, 0.35);
}

.auth--dark .auth__brand-text strong { color: #e8ecf2; }
.auth--dark .auth__brand-text span { color: #8896a8; }

.auth--dark .auth__title {
  color: #e8ecf2;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0;
}
.auth--dark .auth__lead {
  color: #8896a8;
  font-size: 16px;
  line-height: 1.55;
  max-width: 42ch;
  margin: 0;
}

/* Фичи */
.auth--dark .auth__features li {
  background: linear-gradient(145deg, #1a2332 0%, #111827 100%);
  border: 1px solid #1e2d40;
  color: #e8ecf2;
  transition: all 0.25s ease;
}
.auth--dark .auth__features li:hover {
  border-color: rgba(46, 230, 166, 0.45);
  transform: translateX(4px);
  box-shadow: 0 6px 18px rgba(46, 230, 166, 0.10);
}
.auth--dark .auth__feature-ico {
  background: linear-gradient(135deg, rgba(46, 230, 166, 0.20), rgba(46, 230, 166, 0.06));
  border-color: rgba(46, 230, 166, 0.30);
}

.auth--dark .auth__foot { color: #8896a8; }
.auth--dark .auth__foot a { color: #2ee6a6; font-weight: 600; }

/* ─── ФОРМА ─── */
.auth--dark .auth__form-wrap { position: relative; min-width: 0; }
.auth--dark .auth__form-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at 30% 0%, rgba(46, 230, 166, 0.12), transparent 60%);
  filter: blur(30px);
  pointer-events: none;
  z-index: -1;
}

.auth--dark .auth__form {
  position: relative;
  background: linear-gradient(145deg, #1a2332 0%, #111827 100%);
  padding: 32px;
  border-radius: 22px;
  border: 1px solid #1e2d40;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.03) inset,
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(46, 230, 166, 0.05) inset;
  display: grid;
  gap: 16px;
  max-width: none;
}

.auth--dark .auth__form-head h2 {
  color: #e8ecf2;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 4px;
}
.auth--dark .auth__form-head p {
  color: #8896a8;
  font-size: 14px;
  margin: 0;
}

/* Ошибка */
.auth--dark .auth__error {
  background: rgba(240, 96, 96, 0.10);
  border: 1px solid rgba(240, 96, 96, 0.30);
  color: #f06060;
}
.auth--dark .auth__error-ico {
  background: #f06060;
  color: #fff;
}

/* Поля */
.auth--dark .auth__field-label {
  color: #8896a8;
}
.auth--dark .auth__field-input {
  background: rgba(11, 18, 32, 0.5);
  border: 1px solid #1e2d40;
  transition: all 0.2s ease;
}
.auth--dark .auth__field-input svg { color: #5c6a7e; }
.auth--dark .auth__field-input input {
  color: #e8ecf2;
  background: transparent;
}
.auth--dark .auth__field-input input::placeholder { color: #5c6a7e; }
.auth--dark .auth__field-input:focus-within {
  border-color: #2ee6a6;
  box-shadow: 0 0 0 4px rgba(46, 230, 166, 0.12);
  background: rgba(11, 18, 32, 0.7);
}
.auth--dark .auth__field-input:focus-within svg { color: #2ee6a6; }

/* Кнопка */
.auth--dark .auth__submit {
  color: #0b1220;
  background: linear-gradient(135deg, #2ee6a6 0%, #22b888 100%);
  box-shadow: 0 4px 14px rgba(46, 230, 166, 0.30);
}
.auth--dark .auth__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46, 230, 166, 0.45);
}

.auth--dark .auth__note {
  color: #8896a8;
}
.auth--dark .auth__note a { color: #2ee6a6; }

/* Разделитель */
.auth--dark .auth__or {
  color: #5c6a7e;
}
.auth--dark .auth__or::before,
.auth--dark .auth__or::after {
  background: rgba(255, 255, 255, 0.10);
}

/* Telegram-виджет — на тёмном фоне */
.auth--dark .tg-widget iframe {
  color-scheme: dark;
}

/* ─── АДАПТИВ ─── */
@media (max-width: 900px) {
  .auth--dark {
    padding: 24px 16px;
    min-height: auto;
  }
  .auth--dark .auth__grid {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 460px;
  }
  .auth--dark .auth__side {
    text-align: center;
    align-items: center;
  }
  .auth--dark .auth__features { text-align: left; width: 100%; }
  .auth--dark .auth__lead { margin: 0 auto; }
  .auth--dark .auth__form { padding: 24px; }
  .auth--dark .auth__glow { width: 340px; height: 340px; filter: blur(60px); }
  .auth--dark .auth__glow--bl { display: none; }
}

@media (min-width: 901px) {
  .auth--dark .auth__grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
  }
}

/* Анимации появления */
@media (prefers-reduced-motion: no-preference) {
  .auth--dark .auth__side > * {
    opacity: 0;
    transform: translateY(12px);
    animation: authFade 0.6s ease forwards;
  }
  .auth--dark .auth__side > *:nth-child(1) { animation-delay: 0.05s; }
  .auth--dark .auth__side > *:nth-child(2) { animation-delay: 0.12s; }
  .auth--dark .auth__side > *:nth-child(3) { animation-delay: 0.20s; }
  .auth--dark .auth__side > *:nth-child(4) { animation-delay: 0.28s; }
  .auth--dark .auth__side > *:nth-child(5) { animation-delay: 0.36s; }

  .auth--dark .auth__form {
    opacity: 0;
    transform: translateY(16px);
    animation: authFade 0.7s ease 0.20s forwards;
  }
}
body:has(.auth--dark) {
  background: linear-gradient(180deg, #0b1220 0%, #0e1626 100%);
  color: #e8ecf2;
}
/* ═══════════════════════════════════════════════════════════════
   AUTH — чекбокс согласия (для /join и /login)
   ═══════════════════════════════════════════════════════════════ */
.auth__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 1rem;
  cursor: pointer;
  user-select: none;
  font-size: 12px;
  line-height: 1.4;
  color: #5c6a7e;
}

.auth__check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.auth__check-box {
  position: relative;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border-radius: 5px;
  border: 1.5px solid #5c6a7e;
  background: #111827;
  transition: all 0.2s ease;
}

.auth__check:hover .auth__check-box {
  border-color: #2ee6a6;
}

.auth__check input:checked + .auth__check-box {
  background: linear-gradient(135deg, #2ee6a6, #22b888);
  border-color: #2ee6a6;
  box-shadow: 0 0 0 3px rgba(46, 230, 166, 0.12);
}

.auth__check input:checked + .auth__check-box::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 5px;
  width: 4px;
  height: 9px;
  border: solid #0b1220;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.auth__check input:focus-visible + .auth__check-box {
  box-shadow: 0 0 0 3px rgba(46, 230, 166, 0.25);
}

.auth__check-text {
  flex: 1;
  min-width: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.auth__check-text a {
  color: #2ee6a6;
  font-size: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.auth__check-text a:hover {
  border-bottom-color: #2ee6a6;
}.media{ position:relative; margin:.6rem 0 0; }
.media__player{ display:block; width:100%; max-height:70vh; border-radius:12px; background:#000; }
.media__note{ margin-top:8px; font-size:12px; color:var(--muted); }
.rich-img{ display:block; max-width:100%; height:auto; margin:.8rem 0; border-radius:12px; }
.rich-link{ color:var(--accent); }
.media__speed{ display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin-top:10px; }
.media__speed-label{ font-size:11px; text-transform:uppercase; letter-spacing:1px; color:var(--muted); }
.media__speed-btn{ min-width:44px; padding:5px 10px; border-radius:8px; border:1px solid var(--line); background:#fff; color:var(--muted); font-size:12.5px; font-weight:600; cursor:pointer; }
.media__speed-btn.is-active{ background:var(--accent); color:#fff; border-color:var(--accent); }