/* ============================================================
   Навигатор Образования — дизайн-система
   Палитра «Малахит и слоновая кость»
   ============================================================ */

:root {
  /* Цветы */
  --bg: #F7F4EC;
  --bg-soft: #FCFAF4;
  --surface: #FFFFFF;
  --line: #E8E1D0;
  --line-strong: #D9CFB8;
  --ink: #22312B;
  --muted: #5F6B62;
  --primary: #14614F;
  --primary-deep: #0C4A3C;
  --dark: #0B3B31;
  --dark-2: #093029;
  --gold: #C29B3C;
  --gold-deep: #A8842F;
  --gold-soft: #EFE3C2;
  --gold-line: rgba(194, 155, 60, .38);
  --tri-white: #FFFFFF;
  --tri-blue: #0039A6;
  --tri-red: #D52B1E;
  --danger: #A8402F;
  --ok: #1E7A55;

  /* Типографика */
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Playfair Display", Georgia, serif;

  /* Геометрия */
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 22px;
  --wrap: 1200px;

  /* Тени */
  --shadow-sm: 0 2px 10px rgba(16, 63, 53, .06);
  --shadow: 0 18px 44px -24px rgba(16, 63, 53, .28);
  --shadow-lg: 0 30px 70px -30px rgba(9, 48, 41, .45);
}

/* ---------- База ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-deep); }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: .005em;
  color: var(--ink);
}
h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.3; }
p { color: var(--muted); }
strong { color: var(--ink); font-weight: 700; }

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

::selection { background: var(--primary); color: #fff; }

/* ---------- Сетка ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 22px; }
.section { padding-block: clamp(48px, 7vw, 92px); }
.section--tight { padding-block: clamp(36px, 5vw, 64px); }
.section--dark { background: linear-gradient(180deg, var(--dark) 0%, var(--dark-2) 100%); color: #EDE9DC; }
.section--dark h2, .section--dark h3 { color: #F6F2E6; }
.section--dark p { color: #B9C4BA; }
.section--tint { background: var(--bg-soft); }

.section-head { max-width: 780px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 12px; font-size: 17.5px; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 14px;
}
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--gold); }
.kicker--light { color: var(--gold-soft); }
.section-head--center .kicker::after { content: ""; width: 26px; height: 1px; background: var(--gold); }

.lead { font-size: 18.5px; }

/* ---------- Триколор ---------- */
.tricolor {
  display: flex; height: 4px; width: 96px; border-radius: 3px; overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.tricolor span { flex: 1; }
.tricolor span:nth-child(1) { background: var(--tri-white); box-shadow: inset 0 0 0 1px #E4DED0; }
.tricolor span:nth-child(2) { background: var(--tri-blue); }
.tricolor span:nth-child(3) { background: var(--tri-red); }
.tricolor--lg { height: 6px; width: 140px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 12px;
  font-weight: 800; font-size: 15.5px; letter-spacing: .01em;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--primary); color: #FDFBF4; box-shadow: 0 12px 26px -12px rgba(20, 97, 79, .55); }
.btn--primary:hover { background: var(--primary-deep); color: #fff; }
.btn--gold { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%); color: #241C08; box-shadow: 0 12px 26px -12px rgba(194, 155, 60, .6); }
.btn--gold:hover { filter: brightness(1.06); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary-deep); }
.btn--light { background: rgba(255,255,255,.08); color: #F6F2E6; border-color: rgba(236, 227, 203, .35); }
.btn--light:hover { background: rgba(255,255,255,.16); color: #fff; }
.btn--sm { padding: 10px 18px; font-size: 14px; border-radius: 10px; }
.btn--block { width: 100%; }

/* ---------- Топбар ---------- */
.topbar {
  background: var(--dark-2);
  color: #C8D2C9;
  font-size: 13.5px;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; flex-wrap: wrap; padding-block: 6px; }
.topbar__group { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; color: #C8D2C9; }
.topbar__item svg { flex: none; }
.topbar a { color: #E9DFC2; }
.topbar a:hover { color: #fff; }
.topbar__hours { white-space: nowrap; }
@media (max-width: 760px) { .topbar__hours { display: none; } }

/* Мессенджеры */
.msg-links { display: inline-flex; align-items: center; gap: 9px; }
.msg-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  transition: transform .18s ease, box-shadow .18s ease;
}
.msg-ico:hover { transform: translateY(-2px) scale(1.06); box-shadow: 0 8px 16px -6px rgba(0,0,0,.45); }
.msg-ico svg { width: 100%; height: 100%; }
.msg-ico--tg { background: radial-gradient(circle at 30% 30%, #37AEE2, #1E96C8); }
.msg-ico--wa { background: linear-gradient(160deg, #45E27B, #25BA4E); }
.msg-ico--max { background: linear-gradient(150deg, #6C5CE7 0%, #3D6BE8 100%); }
.msg-ico--mail { background: linear-gradient(160deg, #D8B85A, #B8912F); }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(252, 250, 244, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease, background .25s ease;
}
.header--scrolled { background: rgba(252, 250, 244, .97); box-shadow: var(--shadow-sm); }
.header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 76px; transition: min-height .25s ease;
}
.header--scrolled .wrap { min-height: 64px; }

.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo__mark {
  width: 46px; height: 46px; border-radius: 13px; flex: none;
  background: linear-gradient(145deg, var(--primary) 0%, var(--dark) 100%);
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(194,155,60,.4), 0 8px 18px -8px rgba(11,59,49,.5);
  transition: transform .2s ease;
}
.logo:hover .logo__mark { transform: rotate(-4deg) scale(1.04); }
.logo__text { display: flex; flex-direction: column; line-height: 1.12; }
.logo__name {
  font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--ink);
  letter-spacing: .01em; white-space: nowrap;
}
.logo__sub {
  font-size: 10.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-deep); white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 13px; border-radius: 10px;
  font-weight: 700; font-size: 14.5px; color: var(--ink);
  transition: color .16s ease, background .16s ease;
  white-space: nowrap;
}
.nav a:hover { color: var(--primary-deep); background: rgba(20, 97, 79, .07); }
.nav a[aria-current="page"] { color: var(--primary-deep); background: rgba(20, 97, 79, .1); }
.header__cta { display: inline-flex; align-items: center; gap: 14px; }

.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--surface);
  padding: 0 11px;
}
.burger span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s ease, opacity .2s ease; }
.burger span:nth-child(2) { width: 70%; }
.nav--open + .burger { background: var(--surface); }
body.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1120px) {
  .nav a { padding: 9px 9px; font-size: 13.5px; }
  .header__cta .btn { display: none; }
}
@media (max-width: 920px) {
  .nav {
    position: fixed; inset: 0; z-index: 55;
    flex-direction: column; justify-content: center; align-items: center; gap: 6px;
    background: linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 100%);
    transform: translateY(-102%);
    transition: transform .35s cubic-bezier(.22, .8, .3, 1);
  }
  .nav--open { transform: translateY(0); }
  .nav a { color: #EDE9DC; font-size: 19px; padding: 12px 20px; }
  .nav a:hover, .nav a[aria-current="page"] { color: var(--gold-soft); background: rgba(255,255,255,.06); }
  .burger { display: flex; position: relative; z-index: 65; }
  body.nav-open { overflow: hidden; }
  .nav .nav__cta { display: inline-flex; margin-top: 14px; }
}
.nav__cta { display: none; }

/* ---------- Хлебные крошки ---------- */
.breadcrumbs { padding-top: 26px; font-size: 13.5px; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 10px; }
.breadcrumbs li + li::before { content: "›"; color: var(--gold-deep); font-weight: 700; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary-deep); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 700; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 88% 12%, rgba(194, 155, 60, .16), transparent 60%),
    radial-gradient(700px 420px at 4% 96%, rgba(62, 138, 110, .28), transparent 62%),
    linear-gradient(165deg, var(--dark) 0%, var(--dark-2) 100%);
  color: #EFEADB;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.4px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 75%);
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px);
  align-items: center; padding-block: clamp(48px, 7vw, 96px);
}
.hero__tri { margin-bottom: 22px; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold-soft); border: 1px solid rgba(194,155,60,.45); border-radius: 999px;
  padding: 9px 18px; margin-bottom: 20px; background: rgba(194,155,60,.08);
}
.hero h1 { color: #F8F4E8; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--gold-soft); position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 8px;
  background: rgba(194,155,60,.28); z-index: -1; border-radius: 4px;
}
.hero__lead { font-size: 18.5px; color: #C3CFC4; max-width: 560px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(236,227,203,.28);
  color: #EDE9DC; font-weight: 700; font-size: 14px;
  padding: 10px 16px; border-radius: 999px;
}
.chip svg { flex: none; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero__stats {
  display: grid; grid-template-columns: repeat(4, auto); gap: clamp(18px, 3vw, 44px);
  margin-top: clamp(30px, 4vw, 48px); padding-top: 26px;
  border-top: 1px solid rgba(236,227,203,.2);
}
.stat__num {
  font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px); font-weight: 700;
  color: var(--gold-soft); line-height: 1;
}
.stat__label { font-size: 13px; color: #AEBBAF; margin-top: 7px; max-width: 150px; }

.hero__media { position: relative; }
.hero__photo {
  border-radius: 999px 999px 18px 18px;
  overflow: hidden; position: relative;
  border: 1px solid rgba(194,155,60,.5);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 4.6;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(11,59,49,0) 45%, rgba(11,59,49,.55) 100%);
}
.hero__badge {
  position: absolute; z-index: 2; left: -14px; bottom: 30px;
  background: var(--surface); color: var(--ink);
  border-radius: 14px; padding: 13px 18px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
}
.hero__badge b { display: block; font-size: 14.5px; }
.hero__badge span { font-size: 12.5px; color: var(--muted); }
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { max-width: 440px; margin-inline: auto; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); justify-items: start; gap: 20px; }
}

/* ---------- Полоса доверия ---------- */
.trust-strip {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.trust-strip .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; padding-block: 16px;
}
.trust-strip__item {
  display: inline-flex; align-items: center; gap: 11px;
  font-weight: 700; font-size: 14.5px; color: var(--ink);
}
.trust-strip__item svg { color: var(--gold-deep); flex: none; }

/* ---------- Карточки ---------- */
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(var(--gold), rgba(194,155,60,0));
  opacity: 0; transition: opacity .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 15.5px; }
.card__icon {
  width: 52px; height: 52px; border-radius: 15px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(20,97,79,.1), rgba(194,155,60,.12));
  color: var(--primary-deep); margin-bottom: 16px;
}
.card__num {
  font-family: var(--font-display); font-size: 44px; font-weight: 700;
  color: transparent; -webkit-text-stroke: 1.4px var(--gold);
  line-height: 1; margin-bottom: 12px; display: block;
}

/* Тёмные карточки */
.section--dark .card {
  background: rgba(255,255,255,.045);
  border-color: rgba(236,227,203,.16);
  box-shadow: none;
}
.section--dark .card:hover { background: rgba(255,255,255,.07); box-shadow: 0 20px 44px -24px rgba(0,0,0,.5); }
.section--dark .card p { color: #B9C4BA; }
.section--dark .card__icon { background: rgba(194,155,60,.14); color: var(--gold-soft); }

/* ---------- Шаги ---------- */
.steps { display: grid; gap: 16px; grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1080px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 24px 20px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step__num {
  font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 1;
  color: var(--primary); opacity: .9;
}
.step__num::after { content: ""; display: block; width: 34px; height: 3px; border-radius: 2px; background: var(--gold); margin-top: 10px; }
.step h3 { font-size: 17.5px; font-family: var(--font-body); font-weight: 800; }
.step p { font-size: 14px; }
.step__meta { margin-top: auto; font-size: 12.5px; font-weight: 800; color: var(--gold-deep); letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Список с галочками ---------- */
.u-list { display: grid; gap: 10px; }
.u-list li {
  position: relative; padding-left: 34px;
  color: var(--muted); font-size: 15.5px;
}
.u-list li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(20, 97, 79, .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314614F' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.section--dark .u-list li { color: #C3CFC4; }
.section--dark .u-list li::before { background-color: rgba(194,155,60,.16); }
.section--dark .u-list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C29B3C' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* ---------- Статья ---------- */
.article { max-width: 840px; margin: 0 auto; }
.article > h2 { margin: clamp(30px, 4vw, 48px) 0 16px; }
.article h3 { margin: 26px 0 12px; }
.article p { margin-bottom: 14px; font-size: 16.5px; }
.article ul, .article ol { margin: 14px 0 18px; }
.article ul li, .article ol li {
  position: relative; padding-left: 30px; margin-bottom: 9px;
  color: var(--muted); font-size: 16px;
}
.article ul li::before {
  content: ""; position: absolute; left: 4px; top: 9px;
  width: 9px; height: 9px; border-radius: 2px; transform: rotate(45deg);
  background: var(--gold);
}
.article ol { counter-reset: art; }
.article ol li::before {
  counter-increment: art; content: counter(art) ".";
  position: absolute; left: 0; top: 0;
  font-weight: 800; color: var(--primary-deep);
}
.article blockquote {
  margin: 22px 0; padding: 18px 22px;
  border-left: 3px solid var(--gold);
  background: var(--bg-soft); border-radius: 0 14px 14px 0;
  color: var(--ink); font-weight: 600;
}
.article .note {
  background: rgba(20,97,79,.06); border: 1px dashed rgba(20,97,79,.3);
  border-radius: var(--r); padding: 16px 20px; margin: 18px 0;
  font-size: 15.5px; color: var(--ink);
}

/* ---------- Таблицы ---------- */
.table-wrap {
  margin: 22px 0; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow-x: auto; background: var(--surface); box-shadow: var(--shadow-sm);
}
table { width: 100%; border-collapse: collapse; min-width: 560px; }
caption { caption-side: top; text-align: left; font-weight: 800; padding: 16px 20px 4px; color: var(--ink); }
th, td { padding: 13px 20px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th {
  background: var(--dark); color: #EDE9DC; font-family: var(--font-body);
  font-size: 13.5px; letter-spacing: .04em; text-transform: uppercase; font-weight: 800;
  border-bottom: none;
}
tbody tr:nth-child(even) { background: var(--bg-soft); }
tbody tr:last-child td { border-bottom: none; }
td.good { color: var(--ok); font-weight: 700; }
td.bad { color: var(--danger); }

/* ---------- Формы ---------- */
.form { display: grid; gap: 14px; }
.form--row { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form--row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 800; color: var(--ink); letter-spacing: .02em; }
.field label small { font-weight: 600; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--surface); color: var(--ink);
  font: inherit; font-size: 15.5px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(20,97,79,.12);
}
.textarea { min-height: 110px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235F6B62' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.form-note { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.form-note svg { flex: none; margin-top: 2px; color: var(--gold-deep); }
.form-status { display: none; padding: 14px 18px; border-radius: 12px; font-weight: 700; font-size: 15px; }
.form-status--ok { display: block; background: rgba(30,122,85,.12); color: var(--ok); border: 1px solid rgba(30,122,85,.35); }
.form-status--err { display: block; background: rgba(168,64,47,.1); color: var(--danger); border: 1px solid rgba(168,64,47,.35); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.consent input { margin-top: 3px; accent-color: var(--primary); width: 16px; height: 16px; flex: none; }
.section--dark .field label { color: #EDE9DC; }
.section--dark .input, .section--dark .select, .section--dark .textarea {
  background: rgba(255,255,255,.06); border-color: rgba(236,227,203,.3); color: #F6F2E6;
}
.section--dark .input::placeholder, .section--dark .textarea::placeholder { color: #8FA396; }
.section--dark .form-note, .section--dark .consent { color: #9FB0A2; }

/* ---------- CTA-секция ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(640px 320px at 90% 0%, rgba(194,155,60,.2), transparent 60%),
    linear-gradient(150deg, var(--primary-deep) 0%, var(--dark) 90%);
  border-radius: var(--r-lg);
  padding: clamp(30px, 4.5vw, 56px);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px);
  align-items: center;
  border: 1px solid rgba(194,155,60,.35);
  box-shadow: var(--shadow-lg);
}
@media (max-width: 900px) { .cta-band { grid-template-columns: 1fr; } }
.cta-band h2 { color: #F8F4E8; }
.cta-band p { color: #BECBC0; margin-top: 10px; }
.cta-band__terms {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px;
  font-size: 14px; font-weight: 700; color: var(--gold-soft);
}

/* ---------- Отзывы ---------- */
.review { display: flex; flex-direction: column; gap: 14px; }
.review__head { display: flex; align-items: center; gap: 13px; }
.review__ava {
  width: 50px; height: 50px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-weight: 800; font-size: 17px; color: #FDF7E7;
  background: linear-gradient(145deg, var(--primary), var(--dark));
  box-shadow: inset 0 0 0 2px rgba(194,155,60,.5);
}
.review__name { font-weight: 800; font-size: 15.5px; color: var(--ink); }
.review__spec { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.review p { font-size: 15px; }
.review__mark {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 800; color: var(--ok);
  background: rgba(30,122,85,.1); border-radius: 999px; padding: 6px 12px;
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; transition: border-color .2s ease;
}
.faq details[open] { border-color: var(--gold-line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; font-weight: 800; font-size: 16px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2314614F' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/12px no-repeat;
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq .faq__body { padding: 0 22px 20px; color: var(--muted); font-size: 15.5px; }

/* ---------- Ссылочные сетки (города/специальности) ---------- */
.link-grid { display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .link-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .link-grid { grid-template-columns: repeat(2, 1fr); } }
.link-card {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 15px 18px; font-weight: 700; font-size: 15px; color: var(--ink);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.link-card::after {
  content: "›"; color: var(--gold-deep); font-weight: 800; font-size: 18px;
  transition: transform .18s ease;
}
.link-card:hover { transform: translateY(-2px); border-color: var(--gold-line); box-shadow: var(--shadow-sm); color: var(--primary-deep); }
.link-card:hover::after { transform: translateX(3px); }

/* ---------- Баннер раздела ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(760px 380px at 92% -10%, rgba(194,155,60,.14), transparent 62%),
    linear-gradient(165deg, var(--dark) 0%, var(--dark-2) 100%);
  color: #EFEADB; padding-block: clamp(34px, 5vw, 64px);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.4px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.65), transparent 80%);
}
.page-hero .breadcrumbs { position: relative; z-index: 1; color: #9FB0A2; }
.page-hero .breadcrumbs a { color: #BFCBC0; }
.page-hero h1 { color: #F8F4E8; margin-top: 18px; max-width: 880px; }
.page-hero__lead { position: relative; z-index: 1; margin-top: 16px; max-width: 760px; color: #C3CFC4; font-size: 17.5px; }
.page-hero__meta { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* ---------- Университеты (список) ---------- */
.uni-list {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-sm);
}
.uni-list h2, .uni-list h3 { margin-bottom: 6px; }
.uni-list > p { margin-bottom: 18px; }
.uni-cols { columns: 2; column-gap: 36px; }
@media (max-width: 760px) { .uni-cols { columns: 1; } }
.uni-cols li {
  break-inside: avoid; margin-bottom: 10px; padding-left: 26px; position: relative;
  font-size: 15.5px; color: var(--muted);
}
.uni-cols li::before {
  content: ""; position: absolute; left: 2px; top: 8px;
  width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--gold);
}
.uni-cols li b { color: var(--ink); font-weight: 700; }

/* ---------- Футер ---------- */
.footer {
  background: linear-gradient(180deg, var(--dark-2), #072720);
  color: #B9C4BA; margin-top: auto;
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, #FFFFFF, #0039A6 45%, #D52B1E 100%) 1;
}
.footer__top {
  display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.15fr; gap: clamp(24px, 4vw, 48px);
  padding-block: clamp(40px, 5vw, 64px) 36px;
}
@media (max-width: 1000px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; } }
.footer h4 {
  color: #F6F2E6; font-size: 13px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; margin-bottom: 18px;
}
.footer__about p { font-size: 14.5px; color: #9FB0A2; margin-top: 16px; max-width: 320px; }
.footer__tri { margin-top: 20px; }
.footer__links li { margin-bottom: 10px; }
.footer__links a { color: #C8D2C9; font-size: 14.5px; transition: color .15s ease; }
.footer__links a:hover { color: var(--gold-soft); }
.footer__contact li { display: flex; gap: 11px; margin-bottom: 13px; font-size: 14.5px; align-items: flex-start; }
.footer__contact svg { flex: none; margin-top: 3px; color: var(--gold); }
.footer__contact a { color: #E9DFC2; }
.footer__contact a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(236,227,203,.14);
  padding-block: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 13.5px; color: #8FA396;
}
.footer__legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__legal a { color: #9FB0A2; }
.footer__legal a:hover { color: var(--gold-soft); }


/* ---------- Мессенджеры, зафиксированные в шапке ---------- */
.header__msg { display: inline-flex; }
.header__msg .msg-ico { width: 28px; height: 28px; }
@media (max-width: 920px) {
  .header__msg .msg-ico { width: 30px; height: 30px; }
}
@media (max-width: 480px) {
  .header__msg { gap: 7px; }
  .header__msg .msg-ico { width: 27px; height: 27px; }
  .logo__name { font-size: 17px; }
  .logo__sub { font-size: 9px; letter-spacing: .14em; }
  .logo__mark { width: 38px; height: 38px; border-radius: 11px; }
}
/* ---------- Анимации появления ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal--in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Страницы разделов ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 1000px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px 22px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 12px;
}
.contact-card__label { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-card__value { font-weight: 800; font-size: 17px; color: var(--ink); word-break: break-word; }
.contact-card__value a { color: var(--primary-deep); }
.contact-card p { font-size: 14px; }
.map-frame {
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); background: var(--surface);
}
.map-frame iframe { width: 100%; height: 420px; border: 0; display: block; }
@media (max-width: 640px) { .map-frame iframe { height: 320px; } }

/* ---------- Утилиты ---------- */
[id] { scroll-margin-top: 96px; }
.mt-0 { margin-top: 0 !important; }
.text-center { text-align: center; }
.gap-top { margin-top: clamp(28px, 4vw, 44px); }
.price { font-family: var(--font-display); font-weight: 700; color: var(--primary-deep); }
.price--light { color: var(--gold-soft); }
.no-scroll { overflow: hidden; }
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--primary); color: #fff; padding: 10px 18px; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { left: 8px; color: #fff; }
