/* Бвишечка. Образ — дорога из логотипа: она ведёт от олимпиады к вузу и золотой звезде.
   Графит для текста и тёмных панелей, золото — только для цели (звезда, акценты пути). */
:root {
  --paper: #ffffff;
  --paper-2: #f6f6f8;
  --ink: #232326;
  --ink-2: #3a3a40;
  --muted: #6e6e78;
  --line: #e6e6ea;
  --road: #d6d6dc;
  --gold: #c0952d;
  --gold-deep: #94701b;
  --gold-soft: #f7efdc;
  --gold-light: #e8c873;
  --bvi: #1e8e5a;
  --bvi-soft: #e7f4ec;
  --ege: #2463d6;
  --ege-soft: #e7eefb;
  --dvi: #7a3fd1;
  --dvi-soft: #f0e9fb;
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --text: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--text); }
a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; }
h1, h2 { font-family: var(--display); letter-spacing: -.015em; }
h2 { font-weight: 600; font-size: 26px; line-height: 1.2; margin: 0 0 18px; }
h3 { font-size: 18px; margin: 0 0 6px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.nowrap { white-space: nowrap; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* шапка */
.site-head { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; }
.brand img { width: 44px; height: 44px; }
.site-nav { display: flex; gap: 22px; margin-left: auto; font-weight: 600; }
.site-nav a { text-decoration: none; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.me-link { display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border: 1.5px solid var(--ink);
  border-radius: 999px; text-decoration: none; font-weight: 700; }
.me-link .dot { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--gold-light);
  display: grid; place-items: center; font-size: 12px; }
.me-link:hover { background: var(--ink); color: #fff; }

/* кнопки */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; padding: 11px 20px; border-radius: 10px;
  background: var(--ink); color: #fff; font: 700 15px var(--text); cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--gold-deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.gold { background: var(--gold); color: var(--ink); }
.btn.gold:hover { background: var(--gold-light); color: var(--ink); }
.btn.small { padding: 7px 13px; font-size: 14px; }
.btn.following { background: var(--gold-soft); color: var(--gold-deep); box-shadow: inset 0 0 0 1.5px var(--gold); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline;
  text-decoration-color: var(--line); cursor: pointer; }
.linkbtn:hover { color: var(--ink); }
form.inline { display: inline; }

/* ───── главная: дорога через экран ───── */
.hero { position: relative; overflow: hidden; padding: 64px 0 120px; }
.hero-road { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-road .lane { fill: none; stroke: var(--road); stroke-linecap: round; }
.hero-road .lane.inner { stroke: #fff; stroke-dasharray: 18 22; }
.hero-road .stop circle { fill: #fff; stroke: var(--ink); stroke-width: 3; }
.hero-road .stop text { font: 700 15px var(--text); fill: var(--ink); }
.hero-road .stop .sub { font-weight: 500; font-size: 13px; fill: var(--muted); }
.hero-road .star { fill: var(--gold); }
@media (prefers-reduced-motion: no-preference) {
  .hero-road .lane { stroke-dasharray: 3200; stroke-dashoffset: 3200; animation: draw 2.4s ease-out .15s forwards; }
  .hero-road .lane.inner { stroke-dasharray: 18 22; stroke-dashoffset: 0; opacity: 0; animation: fade .6s ease 2.2s forwards; }
  .hero-road .stop, .hero-road .star { opacity: 0; animation: fade .45s ease forwards; }
  .hero-road .stop:nth-of-type(1) { animation-delay: .7s; }
  .hero-road .stop:nth-of-type(2) { animation-delay: 1.2s; }
  .hero-road .stop:nth-of-type(3) { animation-delay: 1.7s; }
  .hero-road .star { animation-delay: 2.3s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes fade { to { opacity: 1; } }
}
.hero .wrap { position: relative; }
.hero h1 { font: 700 clamp(32px, 5.2vw, 60px)/1.04 var(--display); letter-spacing: -.025em; max-width: 12.5em; margin: 0 0 20px; }
.hero .lead { font-size: 19px; color: var(--ink-2); max-width: 31em; margin: 0 0 30px; }
.search { display: flex; max-width: 600px; border: 2px solid var(--ink); border-radius: var(--radius); background: #fff; }
.search input { flex: 1; min-width: 0; border: 0; padding: 16px 18px; font: 500 17px var(--text); background: transparent;
  border-radius: var(--radius); color: var(--ink); }
.search input:focus-visible { outline: none; }
.search:focus-within { box-shadow: 0 0 0 4px var(--gold-soft); }
.search button { border: 0; margin: 6px; padding: 0 22px; border-radius: 10px; background: var(--ink); color: #fff;
  font: 700 16px var(--text); cursor: pointer; }
.search button:hover { background: var(--gold-deep); }
.quick { margin: 16px 0 0; color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; gap: 6px 14px; }

/* блоки */
section.block { padding: 64px 0; }
section.block + section.block { border-top: 1px solid var(--line); }
.block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 22px; }
.block-head h2 { margin: 0; }
.block-head p { margin: 0; color: var(--muted); max-width: 34em; }

/* «Где диплом сильнее всего»: полоса из N делений — по делению на вуз */
.routes { list-style: none; margin: 0; padding: 0; }
.routes li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(220px, 1fr) auto; gap: 8px 28px; align-items: center;
  padding: 16px 0; border-top: 1px solid var(--line); }
.routes li:last-child { border-bottom: 1px solid var(--line); }
.routes .name { font-weight: 700; text-decoration: none; }
.routes .name span { display: block; font-weight: 500; color: var(--muted); font-size: 14px; }
.meter { display: flex; gap: 4px; }
.meter i { flex: 1; height: 12px; border-radius: 3px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); }
.meter i.bvi { background: var(--bvi); box-shadow: none; }
.meter i.score100 { background: var(--ege); box-shadow: none; opacity: .75; }
.routes .count { font-size: 14px; color: var(--muted); text-align: right; min-width: 9em; }
.routes .count b { color: var(--ink); font-size: 18px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); margin-top: 14px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 6px; }

.unis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); border-top: 1px solid var(--line); }
.unis a { display: block; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.unis a b { display: block; font-size: 18px; }
.unis a span { font-size: 14px; color: var(--muted); }
.unis a:hover b { color: var(--gold-deep); }

/* тёмная панель: подбор по диплому, тизер кабинета, финальный блок */
.panel { background: var(--ink); color: #fff; border-radius: 22px; padding: 30px; }
.panel h2 { color: #fff; }
.panel .muted, .panel p { color: #c9c9d0; }
.panel a { color: #fff; }
.panel label { color: #e9e9ee; }
.panel .kicker { color: var(--gold-light); font-weight: 700; font-size: 15px; margin: 0 0 6px; }
.teaser { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; }
.teaser ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.teaser li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; color: #e3e3e8; }
.teaser li::before { content: "★"; color: var(--gold); }

/* списки */
.page-head { padding: 40px 0 24px; }
.page-head h1 { font: 700 clamp(26px, 4vw, 42px)/1.1 var(--display); letter-spacing: -.02em; margin: 0 0 10px; }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.head-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.chip { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 15px; }
.chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.list .title { font-weight: 700; text-decoration: none; }
.list .meta { grid-column: 1; color: var(--muted); font-size: 14px; }
.list .side { grid-row: 1 / span 2; grid-column: 2; align-self: center; text-align: right; font-size: 14px; color: var(--muted); }
.level { display: inline-block; min-width: 2.2em; padding: 1px 8px; border-radius: 6px; background: var(--gold-soft);
  color: var(--gold-deep); font-weight: 700; font-size: 13px; text-align: center; }

/* метки льгот */
.badge { display: inline-block; padding: 2px 9px; border-radius: 6px; font-weight: 700; font-size: 13px; white-space: nowrap; }
.b-bvi { background: var(--bvi-soft); color: var(--bvi); }
.b-score100 { background: var(--ege-soft); color: var(--ege); }
.b-dvi100 { background: var(--dvi-soft); color: var(--dvi); }
.panel .b-bvi { background: #234d38; color: #9fe0bd; }
.panel .b-score100 { background: #22355c; color: #a9c4ff; }
.panel .b-dvi100 { background: #3a2a5c; color: #d2b8ff; }

/* страница олимпиады */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; padding-bottom: 64px; }
.layout > * { min-width: 0; }
.aside-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.aside-box h3 { font-size: 16px; }
.scroll { overflow-x: auto; }
.note { background: var(--gold-soft); border-left: 3px solid var(--gold); padding: 12px 16px;
  border-radius: 0 10px 10px 0; margin: 0 0 16px; font-size: 15px; }

.fit { margin: 8px 0 40px; }
.fit form { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-top: 16px; }
.fit label { display: grid; gap: 5px; font-weight: 600; font-size: 14px; }
.fit select, .field { font: 500 16px var(--text); padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); min-width: 140px; }
.panel select { border-color: #4a4a52; }
.fit-results { margin-top: 26px; border-top: 1px solid #3c3c43; }
.fit-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 16px 0; border-bottom: 1px solid #3c3c43; }
.fit-row h3 { margin: 0; font-size: 18px; }
.fit-row h3 a { text-decoration: none; }
.fit-row .groups { grid-column: 1 / -1; }
.fit-summary { font-size: 15px; color: #e3e3e8; margin: 0; }
.fit-summary b { color: var(--gold-light); }

.uni { padding: 20px 0; border-top: 1px solid var(--line); }
.uni-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 10px; }
.uni-head h3 { margin: 0; }
.uni-head h3 a { text-decoration: none; }
.status { font-size: 13px; color: var(--muted); }
.panel .status { color: #a9a9b2; }
.status.old::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); margin-right: 6px; vertical-align: 1px; }
.groups { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.groups li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: start; font-size: 15px; }
.groups .who { font-weight: 700; }

/* «Маршрут сезона»: этапы как остановки на дороге */
.route { list-style: none; margin: 8px 0 0; padding: 0 0 0 26px; position: relative; }
.route::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 22px; width: 4px; border-radius: 4px;
  background: repeating-linear-gradient(var(--road) 0 10px, transparent 10px 16px); }
.route li { position: relative; padding: 0 0 16px; font-size: 14px; }
.route li::before { content: ""; position: absolute; left: -24px; top: 4px; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; box-shadow: inset 0 0 0 3px var(--ink); }
.route li.soon::before { box-shadow: inset 0 0 0 3px var(--gold); background: var(--gold-soft); }
.route li.goal::before { content: "★"; box-shadow: none; background: none; color: var(--gold); font-size: 18px;
  left: -26px; top: -4px; width: auto; height: auto; }
.route b { display: block; font-size: 15px; }
.route .when { color: var(--gold-deep); font-weight: 700; font-size: 13px; }

table.rules { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.rules th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1.5px solid var(--ink); }
table.rules td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.rules td.programs { color: var(--ink-2); }
.years { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.years th { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.years th, .years td { padding: 5px 3px; border-bottom: 1px solid var(--line); text-align: center; }
.years th:first-child, .years td:first-child { text-align: left; }
.years td.none { color: #c3c3ca; }

/* ───── кабинет ───── */
.me-hero { padding: 36px 0 8px; }
.me-hero h1 { font: 700 clamp(26px, 4vw, 40px)/1.1 var(--display); margin: 0 0 6px; }
.journey { display: grid; grid-template-columns: 1fr 120px 1fr; align-items: stretch; margin: 26px 0 8px; }
.journey .side h3 { font-size: 14px; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.journey .road { position: relative; }
.journey .road svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.journey .road path { fill: none; stroke: var(--road); stroke-width: 10; stroke-linecap: round; }
.journey .road .center { stroke: #fff; stroke-width: 2; stroke-dasharray: 8 8; }
.stops { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.stops li { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.stops li b { display: block; }
.stops.goals li { border-color: var(--gold); background: var(--gold-soft); }
.stops .empty { border-style: dashed; color: var(--muted); }
.stats { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 18px 0 0; color: var(--muted); }
.stats b { font: 700 26px var(--display); color: var(--ink); display: block; }
.me-section { padding: 34px 0; border-top: 1px solid var(--line); }
.me-section .block-head { margin-bottom: 14px; }
.diploma { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; }
.diploma:first-of-type { border-top: 1px solid var(--line); }
.pills { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 14px;
  border: 1px solid var(--line); text-decoration: none; }
.pill.bvi { border-color: #b9e0c9; background: var(--bvi-soft); }
.pill.score100 { border-color: #c4d6f8; background: var(--ege-soft); }
.pill.dvi100 { border-color: #dacbf6; background: var(--dvi-soft); }
.pill.none { color: var(--muted); }
.form-grid { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.form-grid label { display: grid; gap: 5px; font-weight: 600; font-size: 14px; }
.countdown { font-weight: 800; color: var(--gold-deep); white-space: nowrap; }
.danger { color: #b3261e; }

/* вход */
.login { max-width: 560px; margin: 0 auto; padding: 56px 0 80px; text-align: left; }
.login h1 { font: 700 clamp(26px, 4vw, 38px)/1.1 var(--display); margin: 0 0 12px; }
.login ol { padding-left: 20px; color: var(--ink-2); }
.login .wait { display: flex; align-items: center; gap: 10px; color: var(--muted); margin-top: 18px; font-size: 15px; }
.login .wait i { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
@media (prefers-reduced-motion: no-preference) { .login .wait i { animation: pulse 1.2s ease-in-out infinite; } }
@keyframes pulse { 50% { opacity: .25; } }

.closing { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; margin: 0 0 56px; }
.closing h2 { color: var(--gold-light); margin-bottom: 8px; }
.closing p { margin: 0; max-width: 40em; }

.site-foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; }

/* Сопровождение */
.wrap.help-page { display: grid; grid-template-columns: 1fr minmax(0, 480px); gap: 48px; padding: 56px 24px 72px; align-items: start; }
.help-intro h1 { font: 700 clamp(30px, 4.4vw, 48px)/1.08 var(--display); margin: 0 0 16px; }
.help-intro .lead { font-size: 18px; color: var(--ink-2); max-width: 34em; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; }
.steps li::before { content: counter(step); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font: 700 18px var(--display); background: var(--gold-soft); color: var(--gold-deep); }
.steps li:last-child::before { content: "★"; background: var(--gold); color: #fff; }
.steps b { font-size: 17px; }
.steps span { color: var(--muted); }
.stack { display: grid; gap: 14px; margin-top: 8px; }
.stack label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; color: #e9e9ee; }
.stack .field { width: 100%; }
textarea.field { resize: vertical; font: 500 16px/1.45 var(--text); }
.stack .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 13px; color: #c9c9d0; }
.stack .check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--gold); flex: none; }
.stack .btn { justify-self: start; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: #4a2525; color: #ffd2d2 !important; padding: 10px 14px; border-radius: 10px; }
@media (max-width: 900px) { .wrap.help-page { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; } }
@media (max-width: 640px) { .wrap.help-page { padding: 28px 16px 48px; } }

/* Подбор от вуза */
.hero-alt { margin: 18px 0 0; font-weight: 600; }
.hero-alt a { color: var(--gold-deep); }
.kicker-dark { color: var(--gold-deep); font-weight: 700; font-size: 15px; margin: 0 0 6px; }
.unis.big a { padding: 20px 16px 20px 0; }
.unis.big a b { font-family: var(--display); font-weight: 600; font-size: 20px; margin-bottom: 2px; }
.fit label.grow { flex: 1 1 360px; min-width: 0; }
.fit label.grow select { width: 100%; }
.route-results { margin: 0 0 24px; }
.route-summary { font-size: 18px; margin: 0 0 6px; }
.route-summary b { color: var(--gold-deep); }
.route-item { display: grid; grid-template-columns: 1fr 190px; gap: 10px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.route-item h3 a { text-decoration: none; }
.route-item h3 a:hover { text-decoration: underline; }
.route-side { display: grid; gap: 6px; align-content: start; justify-items: start; }
.route-side .next { font-size: 14px; line-height: 1.35; }
.route-side .next b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--gold-deep); }
details.more { display: contents; }
details.more summary { list-style: none; cursor: pointer; padding: 4px 10px; border-radius: 999px; font-size: 14px; font-weight: 600;
  border: 1px dashed var(--road); color: var(--muted); }
details.more summary::-webkit-details-marker { display: none; }
details.more[open] summary { display: none; }
@media (max-width: 640px) {
  .route-item { grid-template-columns: 1fr; }
  .route-side { grid-auto-flow: column; justify-content: start; align-items: center; gap: 12px; }
  .route-side .next b { display: inline; margin-right: 4px; }
}

@media (max-width: 900px) {
  .layout, .teaser { grid-template-columns: 1fr; gap: 0; }
  .teaser { gap: 20px; }
  .closing { grid-template-columns: 1fr; }
  .routes li { grid-template-columns: 1fr; gap: 8px; }
  .routes .count { text-align: left; }
  .journey { grid-template-columns: 1fr; gap: 14px; }
  .journey .road { height: 40px; }
  .journey .road svg { transform: rotate(90deg) scale(.4); }
  .hero-road .stop { display: none; }
  table.rules thead { display: none; }
  table.rules tr { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  table.rules td { border: 0; padding: 0; }
  table.rules td.programs, table.rules td.cond { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .site-head .wrap { gap: 12px; }
  .site-nav { gap: 14px; font-size: 15px; }
  .brand span { display: none; }
  .me-link { padding: 6px; }
  .me-link span { display: none; }
  .hero { padding: 40px 0 72px; }
  .panel { padding: 22px 18px; border-radius: 18px; }
  .groups li { grid-template-columns: 1fr; gap: 2px; }
  .list li { grid-template-columns: 1fr; }
  .list .side { grid-row: auto; grid-column: 1; text-align: left; }
  .diploma { grid-template-columns: 1fr; }
}

/* ───── сопровождение: роадмап клиента ───── */
.me-id { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 14px 0 6px; }
.id-chip { display: inline-flex; gap: 8px; padding: 8px 14px; border-radius: 10px; background: var(--paper-2); font-weight: 700; white-space: nowrap; }
.id-chip .muted { font-weight: 600; }
.rm { padding-top: 22px; padding-bottom: 64px; }
.rm-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.rm-tabs a { padding: 10px 16px; text-decoration: none; font-weight: 600; color: var(--muted); }
.rm-tabs a[aria-current="page"] { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2.5px 0 var(--gold); }
.rm-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 22px; }
.rm-hero h1 { margin: 0; font-size: 34px; line-height: 1.15; }
.rm-hero .kicker { margin: 0 0 6px; color: var(--gold-deep); font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.rm-hero p.muted { margin: 8px 0 0; }
.rm-hero-side { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.share { position: relative; }
.share summary { list-style: none; }
.share summary::-webkit-details-marker { display: none; }
.share-box { position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; width: min(420px, 86vw); padding: 14px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.share-box p { margin: 0 0 8px; }
.share-box .field { width: 100%; font-size: 14px; }
.rm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 28px; }
.rm-stats div { padding: 16px 20px; border-radius: var(--radius); background: var(--paper-2); }
.rm-stats .done { background: var(--bvi-soft); }
.rm-stats .now { background: var(--gold-soft); }
.rm-stats p { margin: 0; font-weight: 700; font-size: 14px; color: var(--muted); }
.rm-stats .done p { color: #1a6b45; }
.rm-stats .now p { color: var(--gold-deep); }
.rm-stats b { display: block; font: 600 28px var(--display); }
.rm-block { margin-bottom: 28px; }
.rm-block h2, .rm-side h2, .adm-card h2 { font-size: 20px; margin: 0 0 14px; }
.rm-goals { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.rm-goal { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.rm-goal h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; }
.rm-goal p { margin: 0; color: var(--ink-2); }
.ok { color: #1a6b45; font-weight: 700; }
.warn { color: var(--gold-deep); font-weight: 700; }
.rm-goal .ok { margin-top: 6px; font-size: 14px; }
.rm-cols { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.rm-main { flex: 999 1 560px; min-width: 0; }
.rm-side { flex: 1 1 290px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.rm-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 14px; }
.rm-head h2 { margin: 0; }
.rm-legend { display: flex; gap: 14px; font-size: 13px; color: var(--ink-2); }
.rm-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; box-sizing: border-box; }
.dot.d { background: var(--ink); }
.dot.n { border: 2.5px solid var(--gold); }
.dot.x { border: 2px solid #c4c4cc; }
.rm-item { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; display: flex; flex-direction: column; gap: 14px; }
.rm-item-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; }
.rm-item-head h3 { margin: 0; }
.rm-item-head p { margin: 2px 0 0; }
.rm-status { padding: 5px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; background: var(--paper-2); color: var(--ink-2); }
.rm-status.gold { background: var(--gold-soft); color: #7a5a12; }
.rm-status.alert { background: var(--ink); color: #fff; }
.rm-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.rm-steps li { position: relative; display: flex; flex-direction: column; gap: 2px; padding-right: 8px; font-size: 14px; }
.rm-steps li::after { content: ""; position: absolute; left: 30px; right: 6px; top: 11px; height: 3px; border-radius: 2px; background: var(--line); }
.rm-steps li:last-child::after { display: none; }
.rm-steps li.st-d::after { background: var(--ink); }
.rm-steps .node { width: 24px; height: 24px; border-radius: 50%; box-sizing: border-box; display: grid; place-items: center;
  border: 2px solid #c4c4cc; background: #fff; margin-bottom: 6px; font-weight: 800; color: #b3261e; }
.rm-steps .st-d .node { background: var(--ink); border-color: var(--ink); }
.rm-steps .st-n .node { border: 3px solid var(--gold); background: var(--gold-soft); }
.rm-steps .st-f .node { border-color: #b3261e; }
.rm-steps .st-s { opacity: .45; }
.rm-steps .st-note { color: var(--muted); font-size: 13px; line-height: 1.3; }
.rm-next { padding: 20px; border-radius: var(--radius); background: var(--ink); color: #fff; }
.rm-next h2 { color: #fff; }
.rm-date { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.rm-date .cal { flex: none; width: 52px; text-align: center; padding: 6px 0; border-radius: 10px; background: #3a3a40; }
.rm-date:first-of-type .cal { background: var(--gold); color: var(--ink); }
.rm-date .cal b { display: block; font-size: 20px; line-height: 1.1; }
.rm-date .cal span { font-size: 12px; font-weight: 700; }
.rm-date p { margin: 0; }
.rm-date .what { font-weight: 700; }
.rm-next .small { color: #c9c9d1; }
.rm-ask { padding: 20px; border-radius: var(--radius); background: var(--paper-2); }
.rm-ask p { margin: 0 0 12px; color: var(--ink-2); }
@media (max-width: 560px) {
  .rm-hero h1 { font-size: 26px; }
  .rm-steps { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .rm-steps li:nth-child(2n)::after { display: none; }
}

/* ───── админка сопровождения ───── */
.adm { padding-top: 22px; padding-bottom: 64px; }
.adm h1 { margin: 0; font-size: 30px; }
.adm-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 10px 0 18px; }
.adm-head p { margin: 4px 0 0; }
.adm-open, .adm-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.adm-open label { font-weight: 700; font-size: 14px; }
.adm-open .field { width: 180px; }
.adm-inline { margin: 10px 0; }
.adm-inline .grow { flex: 1 1 260px; }
.adm-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.small-field { font-size: 13px !important; padding: 7px 10px !important; width: 300px; max-width: 100%; }
.adm-alert { padding: 12px 18px; border-radius: var(--radius); background: var(--gold-soft); color: #5c430c; margin-bottom: 16px; }
.adm-groups { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid #c4c4cc;
  background: #fff; color: var(--ink); font: 600 14px var(--text); text-decoration: none; cursor: pointer; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.add { border-style: dashed; border-color: var(--gold-deep); color: var(--gold-deep); list-style: none; }
.chip.add::-webkit-details-marker { display: none; }
.adm-newgroup[open] { flex-basis: 100%; }
.adm-search { margin-left: auto; }
.adm-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.adm-table.flat { border: 0; border-radius: 0; margin: 0 -20px 8px; }
.adm-table table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; }
.adm-table th { text-align: left; color: var(--muted); font-size: 13px; padding: 10px 12px; }
.adm-table td { padding: 12px; border-top: 1px solid var(--line); vertical-align: top; }
.adm-table th:first-child, .adm-table td:first-child { padding-left: 20px; }
.adm-table .strong { font-weight: 700; text-decoration: none; }
.adm-table .field { font-size: 14px; padding: 7px 8px; }
.prog .bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--line); margin: 6px 0 4px; min-width: 110px; }
.prog .d { background: var(--ink); }
.prog .n { background: var(--gold); }
.tag { display: inline-block; margin: 0 4px 4px 0; padding: 3px 9px; border-radius: 8px; font-weight: 700; font-size: 12px; }
.tag.alert { background: var(--ink); color: #fff; }
.adm-card { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 18px; }
.adm-goals { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.goal-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 12px; border-radius: 10px; background: var(--gold-soft); font-size: 14px; }
.goal-chip button { width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; font-size: 17px; color: #7a5a12; }
.adm-hit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.adm-hit .field { font-size: 14px; padding: 7px 8px; max-width: 280px; }
.adm-suggest { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-suggest .chip { border-radius: 10px; font-size: 13px; min-height: 38px; text-align: left; }
.adm-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.adm-log span { display: block; }
.check { display: flex; gap: 8px; align-items: center; }
.adm-card label { color: var(--ink-2); font-weight: 600; }
.adm-card .stack label .field { margin-top: 4px; }
.adm-card .stack .check { color: var(--ink-2); font-size: 14px; align-items: center; }
.adm-table.flat table { min-width: 680px; }
@media (max-width: 860px) { .rm .rm-side { order: -1; } }
.rm-access { border-top: 1px dashed var(--line); padding-top: 12px; }
.rm-access p { margin: 0 0 6px; }
.rm-access.bad > p:first-child, .rm-access.none > p:first-child { color: var(--ink); }
.rm-access.ok b { color: #1a6b45; }
.rm-access.pending b { color: var(--gold-deep); }
.rm-access details > summary { list-style: none; display: inline-flex; cursor: pointer; }
.rm-access details > summary::-webkit-details-marker { display: none; }
.rm-access-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.rm-access-form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; max-width: 460px; }
.rm-access-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; }
.rm-access-form .rm-consent { flex-direction: row; gap: 8px; align-items: flex-start; font-weight: 500; color: var(--ink-2); }
.rm-access-form .rm-consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--ink); }
.rm-warn { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--gold-soft); color: #5c430c; font-size: 14px; }
.rm-safe { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.adm-acc { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.adm-cred { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 14px; }
.adm-cred dt { color: var(--muted); }
.adm-cred dd { margin: 0; }
.adm-cred .adm-inline { margin: 0; }
.ok-btn { background: var(--bvi); }
.tag.gold { background: var(--gold-soft); color: #7a5a12; text-decoration: none; }
@media (max-width: 860px) { .journey .road { display: none; } }
.add-goal { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.add-goal .field { flex: 1 1 220px; max-width: 360px; }
.list .side form { margin-top: 6px; display: inline-block; }

/* ───── новости ───── */
.news-page { padding-bottom: 64px; }
.news-tabs { display: flex; gap: 8px; margin-top: 14px; }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.news-list .title { font-weight: 700; font-size: 18px; text-decoration: none; }
.news-list p { margin: 0; color: var(--ink-2); }
.news-meta { color: var(--muted); font-size: 13px; }
.pager { display: flex; gap: 10px; margin-top: 20px; }
.news-article { max-width: 760px; margin-top: 14px; }
.news-article h1 { font-size: 32px; line-height: 1.2; margin: 6px 0 18px; }
.news-article p { font-size: 17px; }
.news-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.suggest { margin-top: 40px; padding: 24px; border-radius: var(--radius); background: var(--paper-2); }
.suggest h2 { margin-bottom: 6px; }
.suggest-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; align-items: end; margin-top: 12px; }
.suggest-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; }
.adm-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 4px; }
.adm-news { display: flex; flex-direction: column; gap: 10px; }
.adm-news-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.adm-news-item input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--ink); }
.adm-news-item > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.adm-card .stack label, .adm .stack > label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; }
