/* === Шрифты ===
   Satoshi — подключён в <head> с Fontshare (бесплатный).
   Druk Wide Cyr — платный (Commercial Type). Положи файлы в папку fonts/:
   fonts/DrukWideCyr-Bold.woff2 (и при желании -Super.woff2). Пока их нет,
   заголовки рисуются запасным широким шрифтом Unbounded. */
@font-face {
  font-family: "Druk Wide Cyr";
  src: url("fonts/DrukWideCyr-Bold.woff2") format("woff2"), url("fonts/DrukWideCyr-Bold.woff") format("woff");
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: "Druk Wide Cyr";
  src: url("fonts/DrukWideCyr-Super.woff2") format("woff2"), url("fonts/DrukWideCyr-Super.woff") format("woff");
  font-weight: 900; font-display: swap;
}

:root {
  --bg: #f4efe6;        /* рисовая бумага */
  --bg2: #ebe3d4;
  --card: #fbf8f2;
  --ink: #16130f;       /* тушь */
  --text: #16130f;
  --muted: #5a5348;
  --dim: #8c8477;
  --line: #d4cab8;
  --red: #c8102e;       /* печать */
  --red-dark: #9e0c24;
  --accent: var(--red);
  --radius: 3px;
  --display: "Druk Wide Cyr", "Unbounded", "Arial Black", sans-serif;
  --body: "Satoshi", "Helvetica Neue", Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--red); text-decoration: none; }
::selection { background: var(--red); color: #fff; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
h1, h2, .sec-title, .display {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: -.01em; line-height: .98;
}

/* === Навигация === */
nav { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1.5px solid var(--ink); }
.nav-inner { max-width: 1180px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 24px; }
.logo { font-family: var(--display); font-size: 15px; letter-spacing: .02em; color: var(--ink); display: inline-flex; align-items: center; gap: 10px; }
.logo span { color: var(--red); }
.logo .logo-sub { font-family: var(--body); font-size: 12px; font-weight: 500; color: var(--muted); text-transform: none; letter-spacing: 0; padding-left: 10px; border-left: 1px solid var(--line); }
@media (max-width: 520px) { .logo .logo-sub { display: none; } }
.logo::before { content: "留学"; font-family: "Noto Serif SC", serif; font-size: 13px; letter-spacing: -.05em; padding: 0 5px; height: 28px; display: inline-grid; place-items: center; background: var(--red); color: #fff; border-radius: 2px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--ink); font-size: 15px; font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--red); }
.nav-links a.btn-tg { color: var(--bg); }
.hero > * { min-width: 0; }
.nav-links a.active { color: var(--red); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }

/* === Кнопки === */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: var(--radius);
  font-family: var(--body); font-size: 16px; font-weight: 700; cursor: pointer;
  border: 1.5px solid var(--ink); transition: background .15s, color .15s;
}
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-tg { background: var(--ink); color: var(--bg); }
.btn-tg:hover { background: var(--red); border-color: var(--red); }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn .arr { transition: transform .15s; }
.btn:hover .arr { transform: translateX(3px); }

/* === Hero === */
.hero { padding: 72px 0 0; display: grid; grid-template-columns: 1.55fr 1fr; gap: 48px; align-items: end; }
.hero .kicker { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-bottom: 22px; display: flex; gap: 10px; align-items: center; }
.hero .kicker::before { content: ""; width: 28px; height: 1.5px; background: var(--red); }
.hero h1 { font-size: clamp(26px, 8.4vw, 82px); margin-bottom: 28px; }
.hero h1 em { color: var(--red); font-style: normal; }
.hero p { font-size: 19px; color: var(--muted); max-width: 560px; margin-bottom: 32px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-side { border-left: 1.5px solid var(--ink); padding-left: 28px; padding-bottom: 6px; }
.hero-hanzi { font-family: "Noto Serif SC", serif; font-weight: 900; font-size: clamp(120px, 15vw, 210px); line-height: .9; color: var(--red); letter-spacing: -.04em; }
.hero-side .cap { margin-top: 18px; font-size: 14px; color: var(--muted); }
.hero-side .cap b { color: var(--ink); }
.ticker { margin-top: 64px; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); overflow: hidden; white-space: nowrap; }
.ticker-in { display: inline-block; padding: 14px 0; animation: tick 40s linear infinite; font-family: var(--display); font-size: 15px; text-transform: uppercase; }
.ticker-in span { margin: 0 22px; }
.ticker-in i { font-style: normal; color: var(--red); }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-in { animation: none; } }

/* === Секции === */
section { padding: 88px 0; }
.sec-head { display: grid; grid-template-columns: 90px 1fr; gap: 24px; margin-bottom: 44px; align-items: start; }
.sec-num { font-family: var(--display); font-size: 14px; color: var(--red); padding-top: 8px; border-top: 1.5px solid var(--red); }
.sec-title { font-size: clamp(24px, 3.6vw, 46px); margin-bottom: 12px; }
.sec-sub { color: var(--muted); margin-bottom: 36px; max-width: 620px; }
.sec-head .sec-sub { margin-bottom: 0; }

/* === Факты (бывшая статистика) === */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1.5px solid var(--ink); }
.stat { padding: 26px 22px 6px 0; border-right: 1px solid var(--line); margin-right: 22px; }
.stat:last-child { border-right: none; margin-right: 0; }
.stat b { display: block; font-family: var(--display); font-size: 40px; line-height: 1; margin-bottom: 12px; }
.stat b small { font-size: 18px; color: var(--red); }
.stat span { color: var(--muted); font-size: 15px; display: block; }

/* === О нас === */
.case { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.case .lead { font-size: 24px; line-height: 1.35; font-weight: 500; }
.case .lead em { font-style: normal; color: var(--red); }
.case p { color: var(--muted); }
.case p + p { margin-top: 14px; }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; margin-top: 36px; grid-column: 1 / -1; }
.member .ph { aspect-ratio: 4/5; background: var(--bg2); border: 1px dashed var(--dim); display: grid; place-items: center; color: var(--dim); font-size: 13px; text-align: center; padding: 10px; }
.member .ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2); }
.member b { display: block; margin-top: 10px; font-size: 15px; }
.member span { color: var(--muted); font-size: 13.5px; }

/* === Таймлайн === */
.steps { border-top: 1.5px solid var(--ink); }
.step { display: grid; grid-template-columns: 90px 210px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.step .num { font-family: var(--display); font-size: 14px; color: var(--red); }
.step h4 { font-size: 20px; font-weight: 700; }
.step h4 small { display: block; font-size: 13px; font-weight: 500; color: var(--dim); margin-top: 4px; text-transform: uppercase; letter-spacing: .06em; }
.step p { color: var(--muted); font-size: 16px; max-width: 620px; }

/* === Тарифы === */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); border: 1.5px solid var(--ink); }
.plan { padding: 32px 28px; display: flex; flex-direction: column; border-right: 1.5px solid var(--ink); background: var(--card); }
.plan:last-child { border-right: none; }
.plan.featured { background: var(--ink); color: var(--bg); }
.plan.featured li, .plan.featured .tag { color: #c9c0b1; }
.plan .tag { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.plan.featured .tag { color: #ff6b7f; }
.plan h3 { font-size: 22px; margin: 10px 0 18px; font-weight: 700; }
.plan .price { font-family: var(--display); font-size: 34px; margin-bottom: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.plan.featured .price { border-color: #3a342c; }
.plan ul { list-style: none; margin-bottom: 28px; flex: 1; }
.plan li { color: var(--muted); font-size: 15.5px; padding: 6px 0 6px 22px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 15px; width: 10px; height: 1.5px; background: var(--red); }
.plan.featured .btn-primary { border-color: var(--red); }
.plan .btn { justify-content: center; }
.plan.featured .btn-ghost { color: var(--bg); border-color: var(--bg); }

/* === FAQ === */
body { counter-reset: q; }
details { border-bottom: 1px solid var(--line); counter-increment: q; }
.faq-list { border-top: 1.5px solid var(--ink); }
summary { padding: 22px 48px 22px 56px; cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; position: relative; }
summary::before { content: counter(q, decimal-leading-zero); position: absolute; left: 0; top: 25px; font-family: var(--display); font-size: 13px; color: var(--red); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; color: var(--ink); transition: transform .2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--red); }
summary:hover { color: var(--red); }
details .answer { padding: 0 48px 24px 56px; color: var(--muted); font-size: 16px; max-width: 820px; }

/* === CTA === */
.cta { background: var(--red); color: #fff; padding: 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; border-radius: var(--radius); position: relative; overflow: hidden; }
.cta::after { content: "来"; position: absolute; right: -20px; top: -60px; font-family: "Noto Serif SC", serif; font-weight: 900; font-size: 320px; line-height: 1; color: rgba(255,255,255,.09); pointer-events: none; }
.cta h2 { grid-column: 1 / -1; position: relative; z-index: 1; font-size: clamp(28px, 3.8vw, 48px); margin-bottom: 14px; }
.cta p { position: relative; z-index: 1; color: rgba(255,255,255,.85); margin-bottom: 0; }
.cta .btn { background: #fff; color: var(--ink); border-color: #fff; justify-self: start; position: relative; z-index: 1; }
.cta .btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* === Футер === */
footer { border-top: 1.5px solid var(--ink); padding: 28px 0; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.footer-inner a { color: var(--ink); }

/* === Страница университетов === */
.map-wrap { width: 100%; height: 62vh; min-height: 440px; background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 26px 0; }
.chip { padding: 7px 14px; border-radius: var(--radius); border: 1px solid var(--ink); background: transparent; color: var(--ink); font: 500 14px var(--body); cursor: pointer; }
.chip:hover { background: var(--bg2); }
.chip.active { background: var(--ink); color: var(--bg); }
.uni-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px,1fr)); border-top: 1.5px solid var(--ink); border-left: 1px solid var(--line); }
.uni-card { background: var(--card); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px; transition: background .2s; }
.uni-card { cursor: pointer; }
.uni-card:hover { background: #fff; }
.uni-card.flash { animation: flash 1.6s ease; }
@keyframes flash { 30% { background: #fde7ea; } }
.uni-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.uni-head h3 { font-size: 18px; font-weight: 700; line-height: 1.25; }
.uni-head .en { display: block; font-size: 13px; color: var(--dim); font-weight: 500; margin-top: 3px; }
.uni-head .zh { color: var(--red); font-size: 17px; white-space: nowrap; font-family: "Noto Serif SC", serif; font-weight: 700; }
.uni-city { color: var(--muted); font-size: 14px; margin: 12px 0; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.badge { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 2px; background: var(--red); color: #fff; text-transform: uppercase; letter-spacing: .04em; }
.badge.gray { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.uni-tuition { font-size: 15px; margin-bottom: 10px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tag2 { font-size: 12.5px; padding: 2px 8px; border-radius: 2px; background: var(--bg2); color: var(--muted); }
.uni-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }
.map-hint { color: var(--dim); font-size: 13.5px; margin-top: 12px; text-align: center; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; gap: 32px; }
  .hero-side { border-left: none; border-top: 1.5px solid var(--ink); padding: 20px 0 0; display: flex; gap: 20px; align-items: end; }
  .hero-hanzi { font-size: 110px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: none; margin-right: 0; }
  .case, .cta { grid-template-columns: 1fr; gap: 28px; }
  .plans { grid-template-columns: 1fr; }
  .plan { border-right: none; border-bottom: 1.5px solid var(--ink); }
  .plan:last-child { border-bottom: none; }
  .step { grid-template-columns: 60px 1fr; }
  .step p { grid-column: 2; }
  .sec-head { grid-template-columns: 1fr; gap: 12px; }
  .sec-num { width: 60px; }
  .nav-inner { flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
  .nav-links { margin-left: 0; gap: 16px; flex-wrap: wrap; }
  .container { padding: 0 16px; }
  .cta { padding: 36px 24px; }
  section { padding: 64px 0; }
  summary { padding-left: 44px; font-size: 16px; }
  details .answer { padding-left: 44px; padding-right: 0; }
}

.cur-row { display: flex; align-items: center; gap: 12px; margin-top: 22px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }

/* === Карта: управление, мини-карточка, легенда, фильтры === */
.map-box { position: relative; }
#map, #map * { touch-action: pan-x pan-y; }
.zoom-ctl { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 0; z-index: 5; border: 1.5px solid var(--ink); }
.zoom-ctl button { width: 38px; height: 38px; border: none; border-bottom: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 18px; cursor: pointer; }
.zoom-ctl button:last-child { border-bottom: none; }
.zoom-ctl button:hover { background: var(--ink); color: var(--bg); }
.mini { position: absolute; left: 12px; bottom: 12px; max-width: 300px; z-index: 6; background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 14px 16px; font-size: 13.5px; line-height: 1.5; }
.mini[hidden], .zoom-ctl[hidden] { display: none; }
.mini b { font-size: 15px; display: block; padding-right: 22px; }
.mini .en { color: var(--dim); font-size: 12.5px; margin-bottom: 4px; }
.mini .x { position: absolute; top: 6px; right: 10px; background: none; border: none; color: var(--muted); font-size: 20px; cursor: pointer; }
.mini-btns { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin-top: 14px; color: var(--muted); font-size: 13px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.legend .sw { width: 14px; height: 10px; border-radius: 1px; border: 1px solid var(--line); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 30px; }
.filters input[type=search], .filters select { background: var(--card); color: var(--ink); border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 10px 12px; font: 15px var(--body); }
.filters input[type=search]:focus, .filters select:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.filters input[type=search] { flex: 1; min-width: 200px; }
.filters .chk { color: var(--ink); font-size: 14px; display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.filters .chk input { accent-color: var(--red); }
.uni-card.hl { background: #fff; box-shadow: inset 3px 0 0 var(--red); }
@media (max-width: 800px) { .mini { right: 12px; max-width: none; } }

/* === Боковая панель === */
.map-layout { display: flex; align-items: stretch; }
.map-box { flex: 1; min-width: 0; }
.side { width: 0; opacity: 0; overflow: hidden; margin-left: 0; transition: width .35s ease, margin .35s ease, opacity .3s ease; }
.map-layout.open .side { width: 360px; opacity: 1; margin-left: 16px; }
.side-in { width: 360px; height: 100%; max-height: 62vh; min-height: 440px; overflow-y: auto; position: relative; background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 22px; }
.side-in h3 { font-size: 20px; padding-right: 26px; font-weight: 700; }
.side-in .en { color: var(--dim); font-size: 13px; margin: 2px 0 12px; }
.side-in .row { font-size: 14.5px; margin-bottom: 8px; }
.side-in p { color: var(--muted); font-size: 14px; margin: 10px 0 14px; }
.side-in .x { position: absolute; top: 10px; right: 14px; background: none; border: none; color: var(--muted); font-size: 22px; cursor: pointer; }
.side-in .back { background: none; border: none; color: var(--red); cursor: pointer; font: 600 13.5px var(--body); padding: 0 0 8px; }
.side-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.side-list { display: flex; flex-direction: column; margin-top: 12px; border-top: 1px solid var(--line); }
.side-uni { text-align: left; background: none; border: none; border-bottom: 1px solid var(--line); padding: 12px 0; color: var(--ink); cursor: pointer; font: 600 14.5px var(--body); }
.side-uni:hover { color: var(--red); }
.side-uni span { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; font-weight: 400; }
@media (max-width: 800px) {
  .map-layout { flex-direction: column; }
  .side, .map-layout.open .side { width: auto; display: none; opacity: 1; margin: 0; }
  .map-layout.open .side { display: block; margin-top: 16px; }
  .side-in { width: auto; max-height: none; min-height: 0; }
}

/* === Логотип вуза === */
.uni-top { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.uni-top h3 { padding-right: 24px; font-size: 18px; line-height: 1.25; }
.uni-top .en { margin-bottom: 0; }
.logo-box { position: relative; flex: none; width: 60px; height: 60px; border-radius: 50%; overflow: hidden; background: var(--bg2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.logo-box .mono { font-family: var(--display); color: var(--ink); text-align: center; }
.logo-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 4px; }
.uni-id { display: flex; gap: 14px; align-items: center; min-width: 0; }
.logo-box.sm { width: 50px; height: 50px; }
.logo-box.sm img { padding: 3px; }

.hero .hero-channel { margin: 22px 0 0; font-size: 15px; color: var(--muted); }
.hero-channel a { font-weight: 700; }

/* === Предупреждение для топ-вузов === */
.top-note { border-left: 3px solid var(--red); background: #fbe9ea; padding: 10px 12px; margin: -4px 0 16px; font-size: 13.5px; line-height: 1.45; color: var(--ink); }
.top-note b { color: var(--red); }

/* === Фильтры каталога (переопределяют базовые стили выше) === */
.filters { display: flex; flex-wrap: wrap; gap: 0; align-items: stretch; margin-top: 32px; border: 1.5px solid var(--ink); background: var(--card); }
.filters > * { border-right: 1px solid var(--line); }
.filters > *:last-child { border-right: none; }
.filters input[type=search] { flex: 1 1 260px; min-width: 200px; border: none; border-radius: 0; background: transparent; padding: 0 18px; min-height: 60px; font: 500 16px var(--body); }
.filters input[type=search]::placeholder { color: var(--dim); }
.filters input[type=search]:focus, .filters select:focus { outline: none; }
.filters > *:focus-within { box-shadow: inset 0 -3px 0 var(--red); }
.fsel { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 8px 44px 8px 18px; min-width: 190px; cursor: pointer; }
.fsel span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.fsel::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.filters .fsel select { appearance: none; -webkit-appearance: none; border: none; border-radius: 0; background: transparent; padding: 2px 0 0; font: 700 15.5px var(--body); color: var(--ink); cursor: pointer; width: 100%; }
.fsel:hover { background: var(--bg); }
.fsel:has(option:checked:not([value=""])) span { color: var(--red); }
.filters .chk { display: inline-flex; align-items: center; gap: 12px; padding: 0 20px; font: 700 15px var(--body); color: var(--ink); cursor: pointer; user-select: none; }
.filters .chk:hover { background: var(--bg); }
.filters .chk input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chk i { position: relative; width: 38px; height: 22px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--card); transition: background .15s; flex: none; }
.chk i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: var(--ink); transition: transform .15s; }
.chk input:checked + i { background: var(--red); border-color: var(--red); }
.chk input:checked + i::after { background: #fff; transform: translateX(16px); }
.chk input:focus-visible + i { outline: 2px solid var(--red); outline-offset: 2px; }
.freset { border: none; background: transparent; padding: 0 20px; font: 600 14px var(--body); color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.freset:hover { color: var(--red); }
@media (max-width: 760px) {
  .filters > * { border-right: none; border-bottom: 1px solid var(--line); }
  .filters input[type=search] { flex-basis: 100%; }
  .fsel { flex: 1 1 50%; min-width: 0; }
  .fsel + .fsel { border-left: 1px solid var(--line); }
  .filters .chk { flex: 1; min-height: 52px; }
  .freset { min-height: 52px; border-left: 1px solid var(--line); }
}

/* === Квиз === */
.quiz { border: 1.5px solid var(--ink); background: var(--card); padding: 36px 40px 40px; min-height: 360px; }
.quiz-top { display: flex; align-items: center; gap: 18px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 28px; }
.quiz-bar { flex: 1; height: 3px; background: var(--line); }
.quiz-bar i { display: block; height: 100%; background: var(--red); transition: width .3s; }
.quiz-back { border: none; background: none; font: 600 14px var(--body); color: var(--muted); cursor: pointer; text-transform: none; letter-spacing: 0; }
.quiz-back:hover { color: var(--red); }
.quiz-q { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; line-height: 1.2; margin-bottom: 8px; }
.quiz-hint { color: var(--muted); font-size: 15px; margin-bottom: 0; }
.quiz-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-top: 26px; }
.quiz-opt { text-align: left; padding: 18px 20px; border: 1.5px solid var(--ink); background: var(--bg); border-radius: var(--radius); font: 600 16px var(--body); color: var(--ink); cursor: pointer; transition: background .12s, color .12s; }
.quiz-opt:hover, .quiz-opt.on { background: var(--ink); color: var(--bg); }
.quiz-res { margin: 22px 0 18px; border-top: 1px solid var(--line); }
.quiz-uni { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.quiz-uni:hover b { color: var(--red); }
.quiz-uni-t { flex: 1; min-width: 0; }
.quiz-uni-t b { display: block; font-size: 16px; }
.quiz-uni-t span { color: var(--muted); font-size: 13.5px; }
.quiz-uni em { font-style: normal; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 2px; white-space: nowrap; }
.quiz-uni em.dream { background: var(--red); color: #fff; }
.quiz-uni em.real { border: 1px solid var(--ink); }
.quiz-uni em.bold { border: 1px solid var(--red); color: var(--red); }
.quiz-uni em.safe { background: var(--bg2); color: var(--muted); }
.quiz-legend { font-size: 13px; color: var(--dim); margin: -6px 0 14px; }
.quiz-legend b { color: var(--ink); font-weight: 600; }
.quiz-note { color: var(--muted); font-size: 14px; margin-bottom: 20px; max-width: 640px; }
@media (max-width: 760px) { .quiz { padding: 24px 18px 28px; } .quiz-opts { grid-template-columns: 1fr; } .quiz-uni { align-items: flex-start; } .quiz-uni em { font-size: 10.5px; padding: 2px 6px; } }

/* === Юридические страницы === */
.legal h3 { font-size: 19px; font-weight: 700; margin: 30px 0 10px; }
.legal p { color: var(--muted); margin-bottom: 12px; }

@media (max-width: 520px) { .hero-btns .btn { width: 100%; justify-content: center; } }

h1, h2, .sec-title { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
