/* ============================================================
   Академический Центр — основная таблица стилей
   Палитра «Сапфир и дым» · Manrope + Inter
   ============================================================ */

:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --ink: #1c2733;
  --ink-2: #33424f;
  --muted: #5a6b7d;
  --line: #dce3ec;
  --accent: #274b8f;
  --accent-dark: #1d3a72;
  --accent-deep: #142a52;
  --accent-soft: #e8eef7;
  --terracotta: #b24335;
  --terracotta-soft: #f7e9e6;
  --ok: #2f7d5b;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(28, 39, 51, .06), 0 4px 14px rgba(28, 39, 51, .05);
  --shadow-md: 0 6px 24px rgba(28, 39, 51, .09);
  --shadow-lg: 0 18px 48px rgba(20, 42, 82, .16);
  --font-head: "Manrope", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--ink);
  overflow-wrap: break-word;
}

h1 { font-size: clamp(30px, 4.6vw, 46px); }
h2 { font-size: clamp(24px, 3.2vw, 34px); }
h3 { font-size: clamp(19px, 2.2vw, 23px); font-weight: 700; }
h4 { font-size: 18px; font-weight: 700; }

p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container--wide { max-width: 1320px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- Триколор ---------- */
.tricolor {
  display: flex; height: 4px; width: 100%;
}
.tricolor span { flex: 1; }
.tricolor span:nth-child(1) { background: #ffffff; box-shadow: inset 0 -1px 0 rgba(28,39,51,.12); }
.tricolor span:nth-child(2) { background: #2f5ecc; }
.tricolor span:nth-child(3) { background: #c8402f; }

.tricolor--inline {
  display: inline-flex; width: 46px; height: 5px;
  border-radius: 3px; overflow: hidden; vertical-align: middle;
  box-shadow: 0 0 0 1px rgba(28,39,51,.08);
}

/* ---------- Верхняя плашка ---------- */
.topbar {
  background: var(--accent-deep);
  color: #dbe4f2;
  font-size: 14px;
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 42px; flex-wrap: wrap;
}
.topbar__note {
  display: inline-flex; align-items: center; gap: 8px; color: #fff;
}
.topbar__note svg { flex: none; color: #f0b429; }
.topbar__right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.topbar a.topbar__mail { color: #fff; font-weight: 600; }
.topbar a.topbar__mail:hover { color: #cdd9ec; text-decoration: underline; }
.topbar__sep { width: 1px; height: 16px; background: rgba(255,255,255,.22); }

/* ---------- Мессенджеры ---------- */
.messengers { display: flex; align-items: center; gap: 8px; }
.messengers--lg { gap: 12px; }
.messengers a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.messengers--lg a { width: 46px; height: 46px; }
.messengers a:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,.22); color: #fff; }
.messengers svg { display: block; }
.ms-max { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.ms-wa { background: linear-gradient(135deg, #34d979, #1fae53); }
.ms-tg { background: linear-gradient(135deg, #3fb0e8, #1e88c7); }
.ms-label {
  font-size: 13px; font-weight: 600; color: var(--muted);
}

/* Кнопки мессенджеров в шапке (в тёмном топбаре) — заметные цветные круги */
.topbar .messengers { gap: 7px; margin-left: 4px; }
.topbar .messengers a {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.92);
  background-clip: padding-box;
}
.topbar .messengers a:hover {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,.35), 0 5px 12px rgba(0,0,0,.35);
}

/* Шапка на мобильных: верхняя плашка с иконками всегда видна */
@media (max-width: 1080px) {
  .topbar__note { font-size: 12.5px; line-height: 1.35; }
}
@media (max-width: 720px) {
  .topbar { position: sticky; top: 0; z-index: 60; }
  .topbar__inner {
    min-height: 44px;
    flex-wrap: nowrap;
    justify-content: space-between;
    padding-top: 4px; padding-bottom: 4px;
  }
  .topbar__mail { display: none; }        /* email убираем, остаётся срок + иконки */
  .topbar__sep { display: none; }
  .topbar__note span.wraptext { display: inline; }
  .topbar .messengers { gap: 6px; }
  .topbar .messengers a { width: 32px; height: 32px; }
  .header { top: 52px; }                  /* шапка прилипает под топбаром */
}

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 76px;
}

.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo__mark { flex: none; }
.logo__name {
  font-family: var(--font-head); font-weight: 800; font-size: 21px;
  letter-spacing: -0.01em; color: var(--ink); line-height: 1.1;
  display: flex; flex-direction: column;
}
.logo__name small {
  font-size: 10.5px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); margin-top: 2px;
}
.logo:hover .logo__name { color: var(--ink); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: 15.5px; font-weight: 600; color: var(--ink-2);
  padding: 9px 13px; border-radius: 9px; white-space: nowrap;
}
.nav a:hover { background: var(--accent-soft); color: var(--accent-dark); }
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }

.header__cta { display: flex; align-items: center; gap: 14px; }

/* бургер */
.burger {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; border-radius: 10px;
  align-items: center; justify-content: center; color: var(--ink);
}
.burger:hover { background: var(--accent-soft); }
.burger svg { display: block; }

.mobile-nav {
  display: none; border-top: 1px solid var(--line);
  background: #fff; padding: 10px 0 18px;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 12px 20px; font-size: 16px; font-weight: 600;
  color: var(--ink-2); border-radius: 10px;
}
.mobile-nav a:hover { background: var(--accent-soft); color: var(--accent-dark); }
.mobile-nav .mobile-nav__extra {
  margin: 12px 20px 0; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 16px;
  padding: 14px 26px; border-radius: 12px; border: 0; cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  text-align: center; line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); color: #fff; }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: linear-gradient(160deg, #2f5cb0, var(--accent) 55%, var(--accent-dark));
  color: #fff; box-shadow: 0 8px 20px rgba(39, 75, 143, .32);
}
.btn--primary:hover { box-shadow: 0 12px 26px rgba(39, 75, 143, .42); }
.btn--ghost {
  background: transparent; color: var(--accent);
  box-shadow: inset 0 0 0 2px var(--accent);
}
.btn--ghost:hover { background: var(--accent-soft); color: var(--accent-dark); box-shadow: inset 0 0 0 2px var(--accent-dark); }
.btn--on-dark {
  background: #fff; color: var(--accent-dark);
  box-shadow: 0 8px 22px rgba(6, 14, 32, .3);
}
.btn--on-dark:hover { color: var(--accent-deep); }
.btn--outline-light {
  background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.55);
}
.btn--outline-light:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn--lg { padding: 17px 32px; font-size: 17px; border-radius: 14px; }
.btn--sm { padding: 10px 18px; font-size: 14.5px; border-radius: 10px; }

/* ---------- Хлебные крошки ---------- */
.breadcrumbs { padding: 18px 0 0; }
.breadcrumbs ol {
  list-style: none; display: flex; flex-wrap: wrap; gap: 4px 10px;
  font-size: 13.5px; color: var(--muted);
}
.breadcrumbs li { display: flex; align-items: center; gap: 10px; }
.breadcrumbs li + li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: #b8c3d1; flex: none;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(79, 118, 189, .55), transparent 60%),
    radial-gradient(700px 420px at -5% 110%, rgba(178, 67, 53, .28), transparent 55%),
    linear-gradient(148deg, #16233b 0%, var(--accent-deep) 48%, #1e3d78 100%);
  color: #fff;
}
.hero__skyline {
  position: absolute; right: -40px; bottom: -6px; width: min(720px, 62%);
  opacity: .13; pointer-events: none;
}
.hero__grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 30%, transparent 75%);
}
.hero__inner {
  position: relative; display: grid;
  grid-template-columns: 1.15fr .85fr; gap: 48px;
  padding: 72px 0 84px; align-items: start;
}
.hero__flag { display: flex; gap: 0; width: 64px; height: 6px; border-radius: 3px; overflow: hidden; margin-bottom: 22px; }
.hero__flag span { flex: 1; }
.hero__flag span:nth-child(1) { background: #fff; }
.hero__flag span:nth-child(2) { background: #3f6fd8; }
.hero__flag span:nth-child(3) { background: #d5493a; }

.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 em {
  font-style: normal; color: #ffc9c0;
}
.hero__lead {
  font-size: 18.5px; color: #ccd7e8; max-width: 560px; margin-bottom: 26px;
}
.hero__checks { list-style: none; display: grid; gap: 12px; margin-bottom: 30px; }
.hero__checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: #e4ebf5; }
.hero__checks svg { flex: none; margin-top: 3px; color: #6ee7b7; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero__price {
  display: inline-flex; align-items: baseline; gap: 10px;
  font-family: var(--font-head);
}
.hero__price b { font-size: 24px; font-weight: 800; color: #fff; }
.hero__price span { font-size: 14px; color: #a8b8cf; }
.hero__badge {
  position: absolute; top: 26px; right: 26px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px; padding: 8px 16px; font-size: 13.5px; font-weight: 600; color: #dbe4f2;
  backdrop-filter: blur(6px);
}

/* карточка формы в hero */
.hero-card {
  background: #fff; color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 30px 28px; box-shadow: var(--shadow-lg);
}
.hero-card h2 { font-size: 22px; margin-bottom: 6px; }
.hero-card > p { font-size: 14.5px; color: var(--muted); margin-bottom: 18px; }

/* ---------- Формы ---------- */
.form { display: grid; gap: 14px; }
.form label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); display: grid; gap: 6px; }
.form input, .form select, .form textarea {
  font-family: var(--font-body); font-size: 15.5px; color: var(--ink);
  background: #fbfcfe; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 12px 14px; width: 100%;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.form input:hover, .form select:hover, .form textarea:hover { border-color: #b9c6d8; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--accent); background: #fff;
  box-shadow: 0 0 0 3px rgba(39, 75, 143, .16);
}
.form textarea { resize: vertical; min-height: 96px; }
.form small { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .btn { width: 100%; }
.form-note { display: flex; gap: 8px; align-items: flex-start; }
.form-note svg { flex: none; margin-top: 2px; color: var(--ok); }

.form--inline {
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end;
}
.form--inline label { gap: 6px; }

/* ---------- Секции ---------- */
.section { padding: 76px 0; }
.section--alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.section-head .kicker::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--terracotta); }
.section-head p { color: var(--muted); font-size: 17px; margin-top: 12px; }

/* ---------- Полоса доверия ---------- */
.trust { border-bottom: 1px solid var(--line); background: #fff; }
.trust__inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 30px 0;
}
.trust__item { display: flex; gap: 14px; align-items: center; }
.trust__num {
  font-family: var(--font-head); font-weight: 800; font-size: 30px; color: var(--accent);
  letter-spacing: -0.02em; line-height: 1;
}
.trust__num small { font-size: 18px; font-weight: 800; }
.trust__label { font-size: 13.5px; color: var(--muted); line-height: 1.4; }

/* ---------- Статья ---------- */
.article-layout {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start;
}
.article-body h2 { margin: 0 0 18px; }
.article-body h3 { margin: 28px 0 12px; }
.article-body p { color: var(--ink-2); margin-bottom: 16px; }
.article-body ul { margin: 0 0 16px; padding-left: 22px; color: var(--ink-2); display: grid; gap: 8px; }
.article-body ul li::marker { color: var(--terracotta); }
.article-body blockquote {
  margin: 26px 0; padding: 20px 26px; border-radius: var(--radius);
  background: var(--accent-soft); border-left: 4px solid var(--accent);
  font-family: var(--font-head); font-weight: 600; font-size: 19px; color: var(--accent-deep);
}
.article-aside {
  position: sticky; top: 108px; display: grid; gap: 20px;
}
.aside-card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 24px; border: 1px solid var(--line);
}
.aside-card h3 { font-size: 17px; margin-bottom: 12px; }
.aside-card ul { list-style: none; display: grid; gap: 10px; }
.aside-card ul a {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 600; color: var(--ink-2);
  padding: 9px 12px; border-radius: 9px; background: #f7f9fc;
}
.aside-card ul a:hover { background: var(--accent-soft); color: var(--accent-dark); }
.aside-card--dark {
  background: linear-gradient(150deg, var(--accent-deep), var(--accent-dark));
  border: 0; color: #fff;
}
.aside-card--dark h3 { color: #fff; }
.aside-card--dark p { color: #c4d1e5; font-size: 14.5px; }
.aside-card--dark .ms-label { color: #c4d1e5; }
.aside-fact {
  display: flex; gap: 12px; margin-top: 16px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.14); font-size: 14px; color: #e4ebf5;
}
.aside-fact svg { flex: none; color: #ffc9c0; margin-top: 2px; }

/* ---------- Этапы ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px 22px 24px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step__num {
  position: absolute; top: -16px; left: 22px;
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(150deg, var(--accent), var(--accent-dark));
  color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(39, 75, 143, .35);
}
.step:nth-child(odd) .step__num { background: linear-gradient(150deg, #c85545, var(--terracotta)); box-shadow: 0 6px 14px rgba(178, 67, 53, .3); }
.step h3 { font-size: 16.5px; margin: 14px 0 8px; }
.step p { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* ---------- Преимущества ---------- */
.advantages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.advantage {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.advantage:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.advantage__icon {
  width: 52px; height: 52px; border-radius: 14px; display: flex;
  align-items: center; justify-content: center; margin-bottom: 18px;
  background: var(--accent-soft); color: var(--accent);
}
.advantage:nth-child(2) .advantage__icon { background: var(--terracotta-soft); color: var(--terracotta); }
.advantage h3 { margin-bottom: 10px; }
.advantage p { font-size: 15px; color: var(--muted); }

/* ---------- Карточки направлений/городов ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dir-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-sm); color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.dir-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #c5d2e4; }
.dir-card__icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft);
  color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.dir-card h3 { font-size: 18px; margin-bottom: 8px; }
.dir-card p { font-size: 14.5px; color: var(--muted); flex: 1; }
.dir-card__meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--muted); font-weight: 600;
}
.dir-card__meta b { color: var(--accent); font-weight: 800; }
.dir-card:hover .dir-card__meta b { color: var(--terracotta); }

.city-cloud { display: flex; flex-wrap: wrap; gap: 10px; max-width: 920px; }
.city-cloud a {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 18px; font-size: 14.5px; font-weight: 600; color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, border-color .16s ease, color .16s ease, background .16s ease;
}
.city-cloud a::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--terracotta);
}
.city-cloud a:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent-dark); background: var(--accent-soft); }
.city-more { margin-top: 26px; }

/* ---------- Отзывы ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 16px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.review__stars { display: flex; gap: 3px; color: #f0b429; }
.review__text { font-size: 15.5px; color: var(--ink-2); flex: 1; }
.review__author { display: flex; align-items: center; gap: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.review__avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: linear-gradient(150deg, var(--accent), var(--accent-dark));
  color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
}
.review:nth-child(2) .review__avatar { background: linear-gradient(150deg, #c85545, var(--terracotta)); }
.review__name { font-weight: 700; font-family: var(--font-head); }
.review__role { font-size: 13px; color: var(--muted); }

/* ---------- CTA-блок ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background:
    radial-gradient(640px 300px at 110% -20%, rgba(178, 67, 53, .4), transparent 60%),
    linear-gradient(140deg, #16233b, var(--accent-deep) 55%, #1e3d78);
  color: #fff; padding: 52px; display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 40px; align-items: center; box-shadow: var(--shadow-lg);
}
.cta h2 { color: #fff; margin-bottom: 12px; }
.cta p { color: #c9d5e7; max-width: 480px; }
.cta .form { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 22px; backdrop-filter: blur(8px); }
.cta .form label { color: #dbe4f2; }
.cta .form input, .cta .form select, .cta .form textarea {
  background: rgba(255,255,255,.95); border-color: transparent;
}
.cta__flagline { display: flex; width: 54px; height: 5px; border-radius: 3px; overflow: hidden; margin-bottom: 20px; }
.cta__flagline span { flex: 1; }
.cta__flagline span:nth-child(1) { background: #fff; }
.cta__flagline span:nth-child(2) { background: #3f6fd8; }
.cta__flagline span:nth-child(3) { background: #d5493a; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq details[open] { border-color: #c5d2e4; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; padding: 19px 24px;
  font-family: var(--font-head); font-weight: 700; font-size: 16.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; color: var(--accent); transition: transform .2s ease; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq__answer { padding: 0 24px 20px; color: var(--muted); font-size: 15.5px; }

/* ---------- Футер ---------- */
.footer { background: #131c2b; color: #b9c5d6; margin-top: 76px; }
.footer .tricolor { opacity: .85; }
.footer__inner {
  display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.2fr; gap: 40px; padding: 56px 0 40px;
}
.footer h3 { color: #fff; font-size: 16px; margin-bottom: 16px; letter-spacing: .02em; }
.footer__about { font-size: 14.5px; line-height: 1.6; margin-top: 14px; max-width: 300px; }
.footer__nav { list-style: none; display: grid; gap: 9px; }
.footer__nav a { color: #b9c5d6; font-size: 14.5px; }
.footer__nav a:hover { color: #fff; }
.footer__contact { display: grid; gap: 12px; font-size: 14.5px; font-style: normal; }
.footer__contact a { color: #fff; font-weight: 600; }
.footer__contact a:hover { color: #cdd9ec; }
.footer .messengers a { box-shadow: none; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0 26px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 13.5px; color: #8395ab;
}
.footer__bottom a { color: #8395ab; }
.footer__bottom a:hover { color: #fff; }

/* ---------- Появление при скролле ---------- */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity .6s ease, transform .6s ease;
}

/* ---------- Шапка внутренних страниц ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(760px 380px at 88% -20%, rgba(79, 118, 189, .5), transparent 60%),
    linear-gradient(148deg, #16233b 0%, var(--accent-deep) 52%, #1e3d78 100%);
}
.page-hero .hero__grid { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 85% at 50% 0%, #000 30%, transparent 78%);
}
.page-hero__inner { position: relative; padding: 40px 0 44px; }
.page-hero h1 { color: #fff; max-width: 860px; margin: 12px 0 14px; }
.page-hero__lead { color: #ccd7e8; font-size: 17.5px; max-width: 720px; }
.page-hero__flag { display: flex; width: 54px; height: 5px; border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
.page-hero__flag span { flex: 1; }
.page-hero__flag span:nth-child(1) { background: #fff; }
.page-hero__flag span:nth-child(2) { background: #3f6fd8; }
.page-hero__flag span:nth-child(3) { background: #d5493a; }
.page-hero .breadcrumbs a { color: #a9b9d2; }
.page-hero .breadcrumbs a:hover { color: #fff; }
.page-hero .breadcrumbs li + li::before { background: #5a7099; }
.page-hero .breadcrumbs [aria-current="page"] { color: #fff; }

/* ---------- Панель сортировки ---------- */
.list-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin-bottom: 26px;
}
.list-toolbar__count { font-size: 14.5px; color: var(--muted); }
.list-toolbar__count b { color: var(--ink); }
.list-toolbar select {
  font-family: var(--font-body); font-size: 14.5px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 10px 14px; cursor: pointer;
}
.list-toolbar select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(39,75,143,.14); }

/* ---------- Буквенные группы каталога ---------- */
.alpha-group { margin-bottom: 34px; }
.alpha-group__title {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-head); font-weight: 800; font-size: 20px; color: var(--accent);
  margin-bottom: 16px;
}
.alpha-group__title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.alpha-group .cards-grid { margin-bottom: 8px; }

/* ---------- Двустрочный список ВУЗов ---------- */
.uni-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.uni-list li {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 14px; font-size: 14.5px; color: var(--ink-2); line-height: 1.5;
  box-shadow: var(--shadow-sm);
}

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .hero__inner { grid-template-columns: 1fr; padding: 56px 0 64px; }
  .hero__badge { display: none; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .advantages, .cards-grid, .reviews { grid-template-columns: repeat(2, 1fr); }
  .trust__inner { grid-template-columns: repeat(2, 1fr); }
  .cta { grid-template-columns: 1fr; padding: 40px 32px; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .topbar__inner { justify-content: center; }
  .topbar__note { font-size: 13px; }
  .hero__inner { padding: 44px 0 52px; }
  .hero__lead { font-size: 17px; }
  .hero-card { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .form--inline { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .advantages, .cards-grid, .reviews { grid-template-columns: 1fr; }
  .trust__inner { grid-template-columns: 1fr 1fr; gap: 14px; padding: 22px 0; }
  .trust__num { font-size: 24px; }
  .article-aside { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; padding: 44px 0 32px; }
  .footer__bottom { justify-content: center; text-align: center; }
  .cta { padding: 32px 20px; }
  .hero__skyline { width: 90%; opacity: .09; }
  .page-hero__inner { padding: 28px 0 34px; }
  .uni-list { grid-template-columns: 1fr; }
}
