/* ==========================================================
   UNIWAY — стили
   Бренд: Yellow #FFFF00 · Blue #0000FF · GhostWhite #F8F8FF
   ========================================================== */
:root {
  --yellow: #FFFF00;
  --blue: #0000FF;
  --ghost: #F8F8FF;
  --white: #FFFFFF;

  --blue-dark: #0000B8;
  --blue-deep: #00006B;
  --blue-soft: #E8E8FF;
  --blue-line: #D4D4FA;
  --yellow-soft: #FFFFB8;
  --ink: #0A0A33;
  --muted: #5B5B7A;
  --ok: #0A8F4E;
  --ok-soft: #E3F7EC;
  --bad: #D21F3C;
  --bad-soft: #FDE7EB;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(0, 0, 80, .06), 0 8px 24px rgba(0, 0, 80, .06);
  --shadow-lg: 0 20px 50px rgba(0, 0, 120, .14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--ghost);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img, svg { display: block; }
main { outline: none; min-height: 70vh; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(34px, 5vw, 60px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.2vw, 40px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
.lead { font-size: 18px; color: var(--muted); max-width: 640px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--blue);
}
.eyebrow::before { content: ""; width: 18px; height: 4px; background: var(--yellow); border-radius: 4px; box-shadow: 0 0 0 1px var(--blue); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { margin-top: 8px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--blue-line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: .02em; color: var(--blue); }
.logo b { font-weight: 800; color: var(--ink); }
.logo--light { color: var(--yellow); }
.logo--light b { color: var(--white); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 10px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--ink);
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--blue-soft); color: var(--blue); }
.nav a.active { color: var(--blue); background: var(--blue-soft); }
.nav a.nav__cta { background: var(--blue); color: var(--white); margin-left: 8px; }
.nav a.nav__cta:hover, .nav a.nav__cta.active { background: var(--blue-dark); color: var(--yellow); }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { width: 22px; height: 2.5px; background: var(--blue); border-radius: 2px; transition: .2s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 16px;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--yellow { background: var(--yellow); color: var(--blue); box-shadow: 0 0 0 2px var(--blue) inset; }
.btn--yellow:hover { box-shadow: 0 0 0 2px var(--blue) inset, 0 8px 20px rgba(0, 0, 255, .2); }
.btn--yellow.on-blue { box-shadow: none; }
.btn--yellow.on-blue:hover { box-shadow: 0 10px 24px rgba(255, 255, 0, .35); }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-dark); box-shadow: 0 8px 20px rgba(0, 0, 255, .25); }
.btn--ghost { background: transparent; color: var(--blue); box-shadow: 0 0 0 2px var(--blue-line) inset; }
.btn--ghost:hover { box-shadow: 0 0 0 2px var(--blue) inset; }
.btn--white-outline { color: var(--white); box-shadow: 0 0 0 2px rgba(255, 255, 255, .5) inset; }
.btn--white-outline:hover { box-shadow: 0 0 0 2px var(--yellow) inset; color: var(--yellow); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--blue); color: var(--white);
  padding: 80px 0 96px;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.hero::before { width: 520px; height: 520px; right: -140px; top: -180px; background: radial-gradient(circle, rgba(255, 255, 0, .35), transparent 65%); }
.hero::after { width: 420px; height: 420px; left: -160px; bottom: -220px; background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 65%); }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 mark { background: var(--yellow); color: var(--blue); padding: 0 .18em; border-radius: 10px; }
.hero .lead { color: rgba(255, 255, 255, .85); margin: 22px 0 32px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__badges { display: flex; gap: 24px; margin-top: 40px; flex-wrap: wrap; }
.hero__badge strong { display: block; font-size: 30px; font-weight: 800; color: var(--yellow); }
.hero__badge span { font-size: 14px; color: rgba(255, 255, 255, .8); }

.hero-card {
  background: var(--white); color: var(--ink); border-radius: 24px; padding: 24px;
  box-shadow: var(--shadow-lg); transform: rotate(1.5deg);
}
.hero-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.hero-card__score { font-size: 48px; font-weight: 800; color: var(--blue); line-height: 1; }
.hero-card__score small { font-size: 18px; color: var(--muted); font-weight: 600; }
.hero-card__row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px dashed var(--blue-line); font-size: 14px; font-weight: 600; }
.hero-card__bar { height: 8px; border-radius: 8px; background: var(--blue-soft); width: 110px; overflow: hidden; }
.hero-card__bar i { display: block; height: 100%; background: var(--blue); border-radius: 8px; }
.hero-card__tag { margin-top: 16px; background: var(--yellow); color: var(--blue); border-radius: 12px; padding: 12px 14px; font-weight: 700; font-size: 14px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--blue-line); box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
a.card:hover, .card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--blue); }

.subject-card { display: flex; flex-direction: column; gap: 12px; position: relative; }
.subject-card__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 28px;
  background: var(--blue-soft);
}
.subject-card:hover .subject-card__icon { background: var(--yellow); }
.subject-card p { color: var(--muted); font-size: 15px; flex: 1; }
.subject-card__meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; background: var(--blue-soft); color: var(--blue);
}
.tag--yellow { background: var(--yellow); color: var(--blue); }
.tag--ok { background: var(--ok-soft); color: var(--ok); }
.tag--line { background: transparent; box-shadow: 0 0 0 1px var(--blue-line) inset; color: var(--muted); }
.progress-mini { height: 6px; background: var(--blue-soft); border-radius: 6px; overflow: hidden; }
.progress-mini i { display: block; height: 100%; background: var(--blue); }

/* Features */
.feature { display: flex; flex-direction: column; gap: 14px; }
.feature__num { width: 44px; height: 44px; border-radius: 12px; background: var(--yellow); color: var(--blue); font-weight: 800; display: grid; place-items: center; font-size: 18px; box-shadow: 0 0 0 2px var(--blue) inset; }
.feature p { color: var(--muted); }
.feature .btn { align-self: flex-start; margin-top: auto; }

/* Banner */
.banner {
  background: var(--yellow); border-radius: 28px; padding: 48px; color: var(--blue);
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: center;
  border: 3px solid var(--blue);
}
.banner h2 { color: var(--blue); }
.banner p { color: var(--blue-deep); margin-top: 12px; font-size: 17px; }
.banner__actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }

/* ENT structure */
.ent-structure { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.ent-block { background: var(--white); border-radius: var(--radius-sm); padding: 18px; border: 1px solid var(--blue-line); }
.ent-block strong { display: block; font-size: 28px; color: var(--blue); font-weight: 800; }
.ent-block span { font-size: 14px; color: var(--muted); font-weight: 600; }
.ent-block--profile { background: var(--blue); border-color: var(--blue); }
.ent-block--profile strong { color: var(--yellow); }
.ent-block--profile span { color: rgba(255, 255, 255, .85); }

/* ---------- Page header ---------- */
.page-head { background: var(--white); border-bottom: 1px solid var(--blue-line); padding: 48px 0 40px; }
.page-head .lead { margin-top: 12px; }
.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 16px; font-weight: 600; }
.breadcrumbs a { color: var(--blue); }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------- Subject page ---------- */
.subject-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.topic-list { list-style: none; display: grid; gap: 10px; }
.topic-list li {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--ghost); font-weight: 600;
}
.topic-list li span { width: 30px; height: 30px; border-radius: 9px; background: var(--blue); color: var(--yellow); display: grid; place-items: center; font-size: 13px; font-weight: 800; flex-shrink: 0; }
.sticky { position: sticky; top: 96px; }
.stat-big { font-size: 44px; font-weight: 800; color: var(--blue); line-height: 1; }

/* ---------- Quiz ---------- */
.quiz { max-width: 820px; margin: 0 auto; }
.quiz__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; font-weight: 700; flex-wrap: wrap; }
.quiz__timer { display: inline-flex; align-items: center; gap: 6px; background: var(--blue); color: var(--yellow); padding: 8px 14px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.quiz__bar { height: 10px; background: var(--blue-soft); border-radius: 10px; overflow: hidden; margin-bottom: 28px; }
.quiz__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), #4040FF); border-radius: 10px; transition: width .3s; }
.quiz__subject { font-size: 13px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.quiz__q { font-size: 22px; font-weight: 700; margin-bottom: 22px; }
.passage { background: var(--yellow-soft); border-left: 5px solid var(--blue); padding: 18px 20px; border-radius: var(--radius-sm); margin-bottom: 22px; font-size: 16px; }
.passage summary { font-weight: 700; color: var(--blue); cursor: pointer; }
.passage p { margin-top: 10px; }
.options { display: grid; gap: 12px; }
.option {
  display: flex; align-items: center; gap: 14px; text-align: left; width: 100%;
  padding: 16px 18px; border-radius: 14px; background: var(--white); border: 2px solid var(--blue-line);
  font-size: 16px; font-weight: 600; transition: border-color .15s, background .15s;
}
.option:hover:not([disabled]) { border-color: var(--blue); background: var(--blue-soft); }
.option__letter { width: 32px; height: 32px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.option.selected { border-color: var(--blue); background: var(--blue-soft); }
.option.selected .option__letter { background: var(--blue); color: var(--yellow); }
.option.correct { border-color: var(--ok); background: var(--ok-soft); }
.option.correct .option__letter { background: var(--ok); color: var(--white); }
.option.wrong { border-color: var(--bad); background: var(--bad-soft); }
.option.wrong .option__letter { background: var(--bad); color: var(--white); }
.option[disabled] { cursor: default; }
.explain { margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: var(--ghost); border: 1px dashed var(--blue); font-size: 15px; }
.explain b { color: var(--blue); }
.quiz__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }

/* Scale answers (career test) */
.scale { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.scale .option { justify-content: center; text-align: center; padding: 18px 10px; flex-direction: column; gap: 6px; }
.scale .option .emoji { font-size: 26px; }

/* Results */
.result-hero { text-align: center; padding: 40px 24px; background: var(--blue); color: var(--white); border-radius: 28px; position: relative; overflow: hidden; }
.result-hero::after { content: ""; position: absolute; width: 300px; height: 300px; right: -100px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 0, .4), transparent 65%); }
.result-hero__score { font-size: 72px; font-weight: 800; color: var(--yellow); line-height: 1; margin: 12px 0; }
.result-hero__score small { font-size: 28px; color: rgba(255, 255, 255, .7); }
.result-hero p { color: rgba(255, 255, 255, .85); }
.result-hero .btn { margin-top: 8px; }
.result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; position: relative; z-index: 1; }
.review-item { padding: 16px 0; border-top: 1px solid var(--blue-line); }
.review-item:first-child { border-top: 0; }
.review-item__q { font-weight: 700; margin-bottom: 6px; }
.review-item__a { font-size: 14px; color: var(--muted); }
.review-item__a .ok { color: var(--ok); font-weight: 700; }
.review-item__a .bad { color: var(--bad); font-weight: 700; }

/* Type bars */
.type-bars { display: grid; gap: 14px; }
.type-bar { display: grid; grid-template-columns: 140px 1fr 48px; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; }
.type-bar__track { height: 14px; background: var(--blue-soft); border-radius: 14px; overflow: hidden; }
.type-bar__track i { display: block; height: 100%; border-radius: 14px; background: var(--blue); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.type-bar.top .type-bar__track i { background: linear-gradient(90deg, var(--blue), var(--blue)); box-shadow: inset 0 0 0 3px var(--yellow); }
.type-bar span:last-child { text-align: right; color: var(--blue); }
.type-code { display: inline-flex; gap: 8px; }
.type-code b { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--yellow); color: var(--blue); }

/* ---------- Profession cards ---------- */
.prof-card { display: flex; flex-direction: column; gap: 12px; }
.prof-card__head { display: flex; gap: 14px; align-items: center; }
.prof-card__icon { font-size: 30px; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--blue-soft); flex-shrink: 0; }
.prof-card p { color: var(--muted); font-size: 15px; flex: 1; }
.prof-card__facts { display: flex; flex-wrap: wrap; gap: 6px; }
.prof-card__salary { font-weight: 800; color: var(--blue); font-size: 18px; }
.prof-card__salary small { color: var(--muted); font-weight: 600; font-size: 13px; }
.match { font-weight: 800; color: var(--blue); background: var(--yellow); padding: 4px 10px; border-radius: 999px; font-size: 13px; }

.info-list { list-style: none; display: grid; gap: 10px; }
.info-list li { display: flex; gap: 10px; align-items: flex-start; }
.info-list li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--yellow); box-shadow: 0 0 0 2px var(--blue); margin-top: 7px; flex-shrink: 0; }
.kv { display: grid; gap: 0; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--blue-line); font-size: 15px; }
.kv div:first-child { border-top: 0; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { font-weight: 700; text-align: right; }

/* ---------- Universities ---------- */
.uni-layout { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
.filters { display: grid; gap: 20px; }
.field label, .field .label { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 8px; }
.select, .input {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--blue-line); background: var(--white);
  font: inherit; font-weight: 600; color: var(--ink); outline: none; appearance: none;
}
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230000FF' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.select:focus, .input:focus { border-color: var(--blue); }
.range-value { font-size: 22px; font-weight: 800; color: var(--blue); margin-bottom: 6px; }
input[type="range"] { width: 100%; accent-color: var(--blue); height: 28px; }
.field label.check { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--ink); margin-bottom: 0; }
.check input { width: 20px; height: 20px; accent-color: var(--blue); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 999px; background: var(--white); border: 2px solid var(--blue-line); font-weight: 700; font-size: 14px; transition: .15s; }
.chip:hover { border-color: var(--blue); }
.chip.active { background: var(--blue); color: var(--yellow); border-color: var(--blue); }

.uni-list { display: grid; gap: 16px; }
.uni-card { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.uni-card h3 { font-size: 18px; }
.uni-card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.uni-card__note { color: var(--muted); font-size: 14px; margin-top: 8px; }
.uni-card__price { text-align: right; min-width: 170px; }
.uni-card__price strong { display: block; font-size: 22px; font-weight: 800; color: var(--blue); white-space: nowrap; }
.uni-card__price span { font-size: 13px; color: var(--muted); font-weight: 600; }
.uni-card__total { font-size: 13px; color: var(--muted); margin-top: 4px; }
.stars { color: var(--blue); letter-spacing: 1px; font-size: 14px; }
.results-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.results-bar strong { font-size: 18px; }
.empty { text-align: center; padding: 48px 24px; color: var(--muted); }
.empty .emoji { font-size: 44px; margin-bottom: 10px; }
.notice { font-size: 13px; color: var(--muted); background: var(--white); border: 1px dashed var(--blue-line); border-radius: 12px; padding: 12px 14px; }

/* ---------- Calculator ---------- */
.calc-row { display: grid; grid-template-columns: 1fr 110px; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--blue-line); }
.calc-row:first-child { border-top: 0; }
.calc-row label { font-weight: 600; }
.calc-row small { color: var(--muted); font-weight: 600; }
.calc-total { margin-top: 18px; display: flex; justify-content: space-between; align-items: center; padding: 18px; border-radius: 14px; background: var(--blue); color: var(--white); }
.calc-total strong { font-size: 34px; color: var(--yellow); font-weight: 800; }
.verdict { margin-top: 12px; padding: 14px 16px; border-radius: 12px; font-weight: 700; font-size: 15px; }
.verdict--good { background: var(--ok-soft); color: var(--ok); }
.verdict--mid { background: var(--yellow-soft); color: var(--blue-deep); }
.verdict--bad { background: var(--bad-soft); color: var(--bad); }

.pair-card { cursor: pointer; text-align: left; width: 100%; }
.pair-card.active { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue) inset; }
.pair-card h3 { margin-bottom: 6px; }
.pair-card p { color: var(--muted); font-size: 14px; }

/* ---------- Footer ---------- */
.footer { background: var(--blue-deep); color: rgba(255, 255, 255, .8); margin-top: 64px; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; padding: 48px 0 32px; flex-wrap: wrap; }
.footer__text { max-width: 340px; margin-top: 12px; font-size: 15px; }
.footer__cols { display: flex; gap: 64px; }
.footer__cols h4 { color: var(--yellow); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.footer__cols a { display: block; padding: 4px 0; font-size: 15px; }
.footer__cols a:hover { color: var(--yellow); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 20px 0 28px; font-size: 13px; color: rgba(255, 255, 255, .6); }

/* ---------- Utilities ---------- */
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.muted { color: var(--muted); }
.flex { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.fade-in { animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .ent-structure { grid-template-columns: repeat(3, 1fr); }
  .subject-layout, .uni-layout { grid-template-columns: 1fr; }
  .sticky { position: static; }
}
@media (max-width: 860px) {
  .burger { display: flex; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--white); padding: 12px 20px 20px; border-bottom: 1px solid var(--blue-line);
    box-shadow: var(--shadow-lg); display: none;
  }
  .nav.open { display: flex; }
  .nav a.nav__cta { margin: 8px 0 0; text-align: center; }
  .hero { padding: 56px 0 64px; }
  .hero__grid, .banner { grid-template-columns: 1fr; }
  .hero-card { transform: none; }
  .banner { padding: 32px 24px; }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .ent-structure { grid-template-columns: repeat(2, 1fr); }
  .scale { grid-template-columns: repeat(2, 1fr); }
  .uni-card { grid-template-columns: 1fr; }
  .uni-card__price { text-align: left; }
  .type-bar, .type-bar[style] { grid-template-columns: 120px 1fr 52px !important; font-size: 13px; }
  .section { padding: 44px 0; }
  .quiz__q { font-size: 19px; }
  .footer__cols { gap: 40px; }
}

/* ==========================================================
   v2: язык, модули, уроки, слайды, шпаргалка
   ========================================================== */
.header__inner { gap: 16px; }
.logo { order: 1; }
.nav { order: 2; margin-left: auto; }
.header__right { order: 3; display: flex; align-items: center; gap: 8px; }
.lang { display: inline-flex; background: var(--blue-soft); border-radius: 999px; padding: 3px; }
.lang button { padding: 7px 12px; border-radius: 999px; font-weight: 800; font-size: 13px; color: var(--blue); letter-spacing: .03em; }
.lang button.active { background: var(--blue); color: var(--yellow); }

.type-bar--wide { grid-template-columns: 210px 1fr 64px; }

/* Modules */
.modules { display: grid; gap: 16px; }
.module { padding: 0; overflow: hidden; }
.module__head { width: 100%; display: flex; align-items: center; gap: 16px; padding: 20px 22px; text-align: left; }
.module__num { width: 46px; height: 46px; border-radius: 14px; background: var(--blue); color: var(--yellow); font-weight: 800; font-size: 20px; display: grid; place-items: center; flex-shrink: 0; }
.module__title { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.module__title b { font-size: 18px; }
.module__meta { font-size: 13px; font-weight: 700; color: var(--muted); text-align: right; }
.module__chev { font-size: 22px; color: var(--blue); transition: transform .2s; line-height: 1; }
.module.open .module__chev { transform: rotate(180deg); }
.module__body { display: none; padding: 0 22px 22px; }
.module.open .module__body { display: block; }
.lessons { list-style: none; display: grid; gap: 10px; margin-top: 16px; }
.lesson-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--ghost); border: 2px solid transparent; transition: .15s; }
a.lesson-item:hover { border-color: var(--blue); background: var(--white); }
.lesson-item__num { width: 34px; height: 34px; border-radius: 10px; background: var(--white); color: var(--blue); border: 2px solid var(--blue-line); font-weight: 800; display: grid; place-items: center; flex-shrink: 0; }
.lesson-item__num.done { background: var(--ok); border-color: var(--ok); color: #fff; }
.lesson-item__text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.lesson-item__parts { font-size: 13px; color: var(--muted); font-weight: 600; }
.lesson-item__go { font-weight: 800; color: var(--blue); font-size: 20px; }
.lesson-item--soon { opacity: .6; }
.lesson-item--ent { background: var(--yellow); border-color: var(--blue); }
.lesson-item--ent .lesson-item__num { border-color: var(--blue); }
a.lesson-item--ent:hover { background: var(--yellow); box-shadow: 0 8px 20px rgba(0, 0, 255, .18); }

/* Stepper */
.section--lesson { padding-top: 32px; }
.stepper { display: flex; gap: 8px; flex-wrap: wrap; }
.stepper__item { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 10px; border-radius: 999px; background: var(--white); border: 2px solid var(--blue-line); font-weight: 700; font-size: 14px; }
.stepper__item:hover { border-color: var(--blue); }
.stepper__n { width: 26px; height: 26px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.stepper__item.done .stepper__n { background: var(--ok); color: #fff; }
.stepper__item.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.stepper__item.active .stepper__n { background: var(--yellow); color: var(--blue); }

/* Slides */
.slide-wrap { max-width: 920px; margin: 0 auto; }
.slide {
  position: relative; overflow: hidden; aspect-ratio: 16 / 9; min-height: 360px;
  background: var(--blue); color: #fff; border-radius: 24px; padding: 32px 40px;
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.slide::before { content: ""; position: absolute; right: -120px; top: -140px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 0, .35), transparent 65%); }
.slide__top { position: relative; display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .75); }
.slide__top b { color: var(--yellow); }
.slide__title { position: relative; font-size: clamp(24px, 3.2vw, 36px); margin: 22px 0 18px; color: var(--yellow); max-width: 80%; }
.slide__points { position: relative; list-style: none; display: grid; gap: 14px; font-size: clamp(15px, 1.8vw, 19px); font-weight: 600; max-width: 88%; }
.slide__points li { display: flex; gap: 12px; }
.slide__points li::before { content: ""; width: 12px; height: 12px; margin-top: 8px; border-radius: 4px; background: var(--yellow); flex-shrink: 0; }
.slide__deco { position: absolute; right: 28px; bottom: -30px; font-size: 180px; font-weight: 800; color: rgba(255, 255, 255, .08); line-height: 1; }
.slide-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
.slide-dots { display: flex; gap: 8px; }
.slide-dots button { width: 10px; height: 10px; border-radius: 50%; background: var(--blue-line); }
.slide-dots button.active { background: var(--blue); width: 28px; border-radius: 10px; }
.btn--yellow.on-blue, .slide-nav .btn--yellow { box-shadow: 0 0 0 2px var(--blue) inset; }
.result-hero .btn--yellow.on-blue, .hero .btn--yellow.on-blue { box-shadow: none; }

/* Test intro */
.test-intro { text-align: center; padding: 40px 24px; }
.test-intro__icon { font-size: 44px; margin-bottom: 10px; }

/* Cheat sheet */
.cheat { background: var(--white); border: 3px solid var(--blue); border-radius: 24px; padding: 28px; max-width: 920px; margin: 0 auto; }
.cheat__head { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 20px; }
.cheat__grid { display: grid; gap: 10px; }
.cheat__row { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: center; padding: 12px 16px; border-radius: 12px; background: var(--ghost); }
.cheat__row:nth-child(odd) { background: var(--yellow-soft); }
.cheat__key { font-weight: 800; color: var(--blue); font-size: 17px; }
.cheat__val { font-weight: 600; }
.cheat + .flex { max-width: 920px; margin-left: auto; margin-right: auto; }

@media (max-width: 860px) {
  .header__right { margin-left: auto; }
  .nav { margin-left: 0; }
}
@media (max-width: 640px) {
  .slide { aspect-ratio: auto; padding: 24px; min-height: 380px; }
  .slide__title, .slide__points { max-width: 100%; }
  .cheat { padding: 20px 16px; }
  .cheat__row { grid-template-columns: 1fr; gap: 4px; }
  .module__head { padding: 16px; gap: 12px; }
  .module__meta { display: none; }
  .module__body { padding: 0 16px 16px; }
  .stepper__item { font-size: 13px; padding: 8px 12px 8px 8px; }
  .lang button { padding: 6px 9px; }
}
@media print {
  .header, .footer, .page-head, .stepper, .no-print { display: none !important; }
  body { background: #fff; }
  .cheat { border-width: 2px; }
}

/* v3: покрытие тем ЕНТ */
.coverage { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 12px 16px; border-radius: 12px; background: var(--white); border: 1px solid var(--blue-line); font-size: 14px; font-weight: 700; color: var(--blue-deep); }
.lesson-item__topics { font-size: 12px; font-weight: 700; color: var(--blue); }

/* ---------- вход, заявки, модальные окна ---------- */
.auth-btn { white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.modal { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 60, .45); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fadeIn .15s; }
.modal__box { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow: auto; padding: 32px; box-shadow: var(--shadow-lg); }
.modal__close { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 22px; cursor: pointer; }
.modal__close:hover { background: var(--blue); color: var(--yellow); }
textarea.input { resize: vertical; font-family: inherit; }
.form-error { color: var(--bad); background: var(--bad-soft); border-radius: var(--radius-sm); padding: 10px 14px; font-weight: 600; font-size: 14px; }
.link-btn { background: none; border: 0; color: var(--blue); font-weight: 700; cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }
.mb-24 { margin-bottom: 24px; }
.auth-hint { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; background: var(--yellow-soft); border-color: var(--blue-line); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 560px) { .auth-btn { max-width: 110px; padding: 8px 12px; } }

/* ---------- согласие и соглашение ---------- */
.field.consent label.check { align-items: flex-start; font-size: 14px; font-weight: 500; line-height: 1.45; }
.consent .check input { flex: 0 0 auto; margin-top: 1px; }
.consent a { color: var(--blue); text-decoration: underline; }
.legal { max-width: 820px; }
.legal h3 { font-size: 20px; }
.legal p { line-height: 1.65; }
.footer__bottom a { color: inherit; text-decoration: underline; }
.lock-card { background: var(--yellow-soft); border-color: var(--blue); }
.lock-card h3 { color: var(--blue); }
.ov-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ov-stat { padding: 18px; text-align: center; }
.ov-stat strong { display: block; font-size: 30px; color: var(--blue); }
.ov-stat span { font-size: 13px; color: var(--muted); font-weight: 600; }
@media (max-width: 640px) { .ov-stats { grid-template-columns: repeat(2, 1fr); } }
.ent-block small { display: block; margin-top: 4px; font-size: 12px; opacity: .75; font-weight: 600; }

/* ---------- задания с несколькими ответами ---------- */
.multi-hint { font-size: 14px; font-weight: 600; color: var(--blue); background: var(--blue-soft); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 4px; }
.option--multi .option__letter { border-radius: 6px; }
.option--multi.selected .option__letter::after { content: " ✓"; }

/* ---------- как сдать ЕНТ ---------- */
.ent-info { background: var(--white); border-block: 1px solid var(--blue-line); }
.ent-session { display: flex; flex-direction: column; gap: 6px; }
.ent-session__icon { font-size: 28px; }
.ent-session .kv div { font-size: 14px; padding: 8px 0; flex-direction: column; align-items: flex-start; gap: 2px; }
.ent-session .kv dd { text-align: left; }
.ent-session .kv dt { color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.ent-session .kv dd { font-weight: 600; }
.ent-session--main { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue) inset; }
.ent-fact p { color: var(--muted); font-size: 15px; }

/* ---------- родители ---------- */
.seg { display: flex; gap: 8px; }
.seg label { flex: 1; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 10px 12px; border: 2px solid var(--blue-line); border-radius: var(--radius-sm); font-weight: 700; }
.seg input:checked + span { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.seg input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.parent-code { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.parent-code strong { font-size: 26px; letter-spacing: .12em; color: var(--blue); background: var(--yellow); padding: 4px 14px; border-radius: var(--radius-sm); font-family: ui-monospace, Menlo, monospace; }
.child-card .type-bar { cursor: default; }

/* ---------- сроки ЕНТ в первом экране ---------- */
.hero__ent { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 24px; padding: 14px 18px; border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .08); }
.hero__ent div { display: flex; flex-direction: column; gap: 2px; }
.hero__ent span { font-size: 13px; color: rgba(255, 255, 255, .75); }
.hero__ent strong { font-size: 15px; font-weight: 700; color: #fff; }
.hero__ent a { font-size: 14px; font-weight: 700; color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }
.hero__ent-title { flex-basis: 100%; font-size: 16px; font-weight: 800; color: var(--yellow); }
.hero__ent-note { flex-basis: 100%; font-size: 13px; color: rgba(255, 255, 255, .7); margin: 0; }
