/* ==========================================================
   ЗащитникОтечества — основной стиль
   Цвета и шрифты меняются в :root
   ========================================================== */
:root {
  --ink: #111214;          /* основной текст, тёмные блоки */
  --ink-2: #1b1d21;        /* вторичный тёмный */
  --paper: #ffffff;        /* фон */
  --paper-2: #f4f2ec;      /* фон чередующихся секций */
  --line: #e2ded4;         /* разделители */
  --muted: #5d5f63;        /* второстепенный текст */
  --red: #c62828;          /* акцент из логотипа */
  --red-dark: #a31f1f;
  --olive: #3e4a2f;        /* дополнительный «военный» оттенок */
  --on-dark: #f3f1ea;
  --on-dark-muted: #b9b7ae;

  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Golos Text", "Segoe UI", sans-serif;

  --radius: 6px;
  --container: 1200px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; margin: 0; text-transform: uppercase; letter-spacing: .01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 96px 0; }
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section__head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: 48px; }
.section__title { font-size: clamp(32px, 4.4vw, 52px); }
.section__lead { color: var(--muted); font-size: 18px; }
.section--dark .section__lead { color: var(--on-dark-muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 500; font-size: 14px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--red);
}
.eyebrow::before { content: ""; width: 28px; height: 4px; background: var(--red); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border: 2px solid transparent; border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 500; font-size: 17px;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--block { width: 100%; }

/* ---------- Логотип ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.logo__mark { width: 44px; height: 44px; flex: none; }
.logo__text { display: flex; flex-direction: column; font-family: var(--font-head); text-transform: uppercase; line-height: 1; gap: 3px; }
.logo__l1 { font-weight: 700; font-size: 20px; letter-spacing: .02em; }
.logo__l2 { display: flex; align-items: center; gap: 6px; font-weight: 500; font-size: 20px; letter-spacing: .02em; }
.logo__l2::before { content: ""; width: 13px; height: 4px; background: var(--red); }

/* ---------- Шапка ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header__row { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.nav { display: flex; gap: 22px; margin-left: auto; white-space: nowrap; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--red); }
.header__contact { display: flex; align-items: center; gap: 18px; }
.header__phone { display: flex; flex-direction: column; text-decoration: none; line-height: 1.2; white-space: nowrap; }
.header__phone strong { font-family: var(--font-head); font-weight: 500; font-size: 19px; letter-spacing: .02em; }
.header__phone span { font-size: 12px; color: var(--muted); }
.header .btn { min-height: 46px; padding: 0 20px; font-size: 15px; white-space: nowrap; }
.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; align-items: center; justify-content: center; margin-left: auto; }
.burger svg { width: 22px; height: 22px; }

@media (max-width: 1240px) {
  .nav, .header__contact .btn { display: none; }
  .burger { display: inline-flex; }
  .header__contact { margin-left: 0; }
  .header.is-open .nav {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
  }
  .header.is-open .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
}
@media (max-width: 560px) {
  .header__phone span { display: none; }
  .header__phone strong { font-size: 16px; }
  .logo__mark { width: 38px; height: 38px; }
  .logo__l1, .logo__l2 { font-size: 17px; }
  .header__row { gap: 12px; }
}
@media (max-width: 400px) { .header__phone { display: none; } }

/* ---------- Первый экран ---------- */
.hero { background: var(--ink); color: var(--on-dark); padding: 72px 0 0; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 24px; }
.hero__title { font-size: clamp(38px, 5.6vw, 72px); }
.hero__title em { font-style: normal; color: var(--red); }
.hero__lead { font-size: 19px; color: var(--on-dark-muted); max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.hero__checks { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; color: var(--on-dark); }
.hero__checks li { list-style: none; display: flex; align-items: center; gap: 8px; }
.hero__checks svg { width: 18px; height: 18px; color: var(--red); flex: none; }
.hero__media { position: relative; }
.hero__img { width: 100%; aspect-ratio: 16 / 10.5; object-fit: cover; border-radius: var(--radius); filter: saturate(.9); }
.hero__badge {
  position: absolute; left: -24px; bottom: 28px;
  display: flex; align-items: center; gap: 12px;
  background: #fff; color: var(--ink); padding: 14px 18px; border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0,0,0,.35); max-width: 300px; font-size: 14px; line-height: 1.35;
}
.hero__badge svg { width: 34px; height: 34px; flex: none; }
.hero__badge strong { display: block; font-family: var(--font-head); font-size: 16px; text-transform: uppercase; letter-spacing: .03em; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 72px; border-top: 1px solid rgba(255,255,255,.14); }
.stat { padding: 36px 28px 40px; border-left: 1px solid rgba(255,255,255,.14); display: flex; flex-direction: column; gap: 10px; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__value { font-family: var(--font-head); font-weight: 700; font-size: clamp(34px, 3.6vw, 50px); line-height: 1; white-space: nowrap; }
.stat__value small { font-size: .5em; font-weight: 500; color: var(--on-dark-muted); margin-left: 4px; }
.stat__pre { font-family: var(--font-head); font-weight: 500; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.stat__label { color: var(--on-dark-muted); font-size: 15px; line-height: 1.4; }

@media (max-width: 960px) {
  .hero { padding-top: 40px; }
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__badge { left: 12px; bottom: 12px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 48px; }
  .stat { padding: 26px 20px 28px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); }
}
@media (max-width: 480px) {
  .hero__cta .btn { width: 100%; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: 0 !important; padding-left: 0; }
  .stat + .stat { border-top: 1px solid rgba(255,255,255,.14); }
  .hero__badge { position: static; margin-top: 12px; max-width: none; box-shadow: none; }
}

/* ---------- Сетка карточек преимуществ ---------- */
.perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.perk { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; display: flex; flex-direction: column; gap: 16px; }
.perk__icon { width: 52px; height: 52px; border-radius: var(--radius); background: var(--ink); color: #fff; display: grid; place-items: center; }
.perk__icon svg { width: 26px; height: 26px; }
.perk h3 { font-size: 22px; }
.perk p { color: var(--muted); font-size: 16px; }
@media (max-width: 900px) { .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .perks { grid-template-columns: 1fr; } }

/* ---------- Выплаты ---------- */
.pay { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.pay__card { border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.pay__card--main { background: var(--red); color: #fff; grid-row: span 2; justify-content: space-between; }
.pay__card--main .pay__value { font-size: clamp(48px, 6vw, 80px); }
.pay__card--line { background: var(--ink-2); color: var(--on-dark); }
.pay__value { font-family: var(--font-head); font-weight: 700; font-size: clamp(34px, 3.8vw, 48px); line-height: 1; }
.pay__label { font-size: 17px; opacity: .85; }
.pay__note { font-size: 14px; color: var(--on-dark-muted); margin-top: 22px; max-width: 760px; }
.pay__list { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.pay__list li { list-style: none; display: flex; gap: 12px; font-size: 16px; }
.pay__list li::before { content: ""; width: 8px; height: 8px; background: #fff; margin-top: 9px; flex: none; }
@media (max-width: 800px) { .pay { grid-template-columns: 1fr; } .pay__card { padding: 28px 24px; } }

/* ---------- Этапы ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 32px 28px 34px; border-top: 4px solid var(--ink); background: #fff; border-radius: 0 0 var(--radius) var(--radius); display: flex; flex-direction: column; gap: 14px; }
.step:first-child { border-top-color: var(--red); }
.step__num { font-family: var(--font-head); font-weight: 700; font-size: 64px; line-height: 1; color: var(--line); }
.step h3 { font-size: 24px; }
.step p { color: var(--muted); font-size: 16px; }
.step .btn { align-self: flex-start; margin-top: 6px; min-height: 46px; font-size: 15px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Земельный участок ---------- */
.land { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.land__img { width: 100%; border-radius: var(--radius); aspect-ratio: 960 / 620; object-fit: cover; }
.land__copy { display: flex; flex-direction: column; gap: 20px; }
.land__list { display: flex; flex-direction: column; gap: 14px; }
.land__list li { list-style: none; display: flex; gap: 14px; align-items: flex-start; }
.land__list svg { width: 22px; height: 22px; color: var(--red); flex: none; margin-top: 2px; }
.land__note { font-size: 14px; color: var(--muted); border-left: 3px solid var(--line); padding-left: 14px; }
@media (max-width: 900px) { .land { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Льготы (вкладки) ---------- */
.benefits { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.benefits__aside { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 110px; }
.benefits__img { width: 100%; border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 30%; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tab {
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-family: var(--font-head); font-weight: 500; font-size: 16px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink);
}
.tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab-panel { display: flex; flex-direction: column; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.tab-panel[hidden] { display: none; }
.tab-panel li { list-style: none; display: flex; gap: 16px; padding: 18px 24px; border-top: 1px solid var(--line); font-size: 16px; }
.tab-panel li:first-child { border-top: 0; }
.tab-panel li::before { content: ""; width: 10px; height: 10px; background: var(--red); flex: none; margin-top: 7px; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.tab-panel li strong { font-weight: 600; }
@media (max-width: 900px) { .benefits { grid-template-columns: 1fr; } .benefits__aside { position: static; } }

/* ---------- Специальности: превью на главной ---------- */
.spec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.spec-card {
  position: relative; display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .2s, box-shadow .2s;
}
.spec-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(17,18,20,.12); }
.spec-card__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--paper-2); }
.spec-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.spec-card__tag { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--olive); background: #e8eadf; padding: 4px 10px; border-radius: 999px; }
.spec-card h3 { font-size: 24px; }
.spec-card p { color: var(--muted); font-size: 15px; flex: 1; }
.spec-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.spec-card__pay { font-family: var(--font-head); font-weight: 700; font-size: 20px; }
.spec-card__pay small { font-weight: 400; font-size: 14px; color: var(--muted); }
.spec-card__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--red); background: none; border: 0; padding: 8px 0; min-height: 44px; }
.spec-card__more svg { width: 18px; height: 18px; }
.section__foot { display: flex; justify-content: center; margin-top: 40px; }
@media (max-width: 960px) { .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .spec-grid { grid-template-columns: 1fr; } }

/* ---------- Кто может / документы ---------- */
.reqs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.req { background: var(--ink-2); border-radius: var(--radius); padding: 34px; display: flex; flex-direction: column; gap: 18px; }
.req h3 { font-size: 26px; }
.req ul { display: flex; flex-direction: column; gap: 14px; }
.req li { list-style: none; display: flex; gap: 14px; color: var(--on-dark); }
.req li svg { width: 22px; height: 22px; color: var(--red); flex: none; margin-top: 2px; }
.req__note { font-size: 14px; color: var(--on-dark-muted); }
@media (max-width: 800px) { .reqs { grid-template-columns: 1fr; } .req { padding: 26px 22px; } }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; font-family: var(--font-head); font-weight: 500; font-size: 21px; letter-spacing: .01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 30px; line-height: 1; color: var(--red); flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--muted); max-width: 760px; }

/* ---------- Форма заявки ---------- */
.lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.lead__copy { display: flex; flex-direction: column; gap: 22px; }
.lead__phone { display: flex; flex-direction: column; gap: 4px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); }
.lead__phone a { font-family: var(--font-head); font-size: 30px; text-decoration: none; }
.lead__phone span { color: var(--on-dark-muted); font-size: 15px; }
.form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.form h3 { font-size: 28px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select {
  width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid #cfcabd; border-radius: var(--radius);
  font: inherit; font-size: 16px; color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.check input[aria-invalid="true"] { outline: 2px solid var(--red); outline-offset: 2px; }
.form__status { font-size: 14px; color: var(--red); font-weight: 500; }
.form__success:focus { outline: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--red); flex: none; }
.check a { color: var(--ink); }
.form__success { display: none; flex-direction: column; gap: 14px; align-items: flex-start; }
.form.is-sent .form__fields { display: none; }
.form.is-sent .form__success { display: flex; }
.form__success svg { width: 56px; height: 56px; color: var(--red); }
.form__fields { display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 900px) { .lead { grid-template-columns: 1fr; gap: 36px; } .form { padding: 26px 20px; } }

/* ---------- Подвал ---------- */
.footer { background: #0a0b0c; color: var(--on-dark-muted); padding: 64px 0 32px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer .logo { color: #fff; }
.footer h4 { color: #fff; font-size: 16px; letter-spacing: .08em; margin-bottom: 16px; }
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer li { list-style: none; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__about { display: flex; flex-direction: column; gap: 18px; }
.footer__legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.footer__legal-row { display: flex; flex-wrap: wrap; gap: 8px 24px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Заголовок внутренних страниц ---------- */
.page-hero { background: var(--ink); color: var(--on-dark); padding: 64px 0 56px; }
.page-hero__inner { display: flex; flex-direction: column; gap: 18px; }
.page-hero h1, .page-hero p { max-width: 820px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 64px); }
.page-hero p { color: var(--on-dark-muted); font-size: 18px; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--on-dark-muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; }
.page-hero__facts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.page-hero__facts span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; font-size: 15px; }
.page-hero__facts b { font-family: var(--font-head); font-weight: 500; color: #fff; }

/* ---------- Фильтр специальностей ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.spec-empty { color: var(--muted); }

/* ---------- Модальное окно специальности ---------- */
.spec-modal { width: min(980px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0; border: 0; border-radius: var(--radius); background: #fff; color: var(--ink); }
.spec-modal::backdrop { background: rgba(10,11,12,.7); }
.spec-modal__inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.spec-modal__media { position: relative; background: var(--ink); }
.spec-modal__media img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.spec-modal__body { padding: 36px 36px 32px; display: flex; flex-direction: column; gap: 22px; }
.spec-modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: #fff; color: var(--ink); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
.spec-modal__close svg { width: 20px; height: 20px; }
.spec-modal h2 { font-size: 38px; }
.spec-modal h3 { font-size: 17px; letter-spacing: .08em; color: var(--red); margin-bottom: 8px; }
.spec-modal p, .spec-modal li { font-size: 16px; color: #33353a; }
.spec-modal ul { display: flex; flex-direction: column; gap: 8px; }
.spec-modal li { list-style: none; display: flex; gap: 12px; }
.spec-modal li::before { content: ""; width: 7px; height: 7px; background: var(--ink); margin-top: 9px; flex: none; }
.spec-modal__pay { display: flex; flex-wrap: wrap; gap: 10px; }
.spec-modal__pay span { padding: 10px 14px; border-radius: var(--radius); background: var(--paper-2); font-size: 14px; }
.spec-modal__pay b { font-family: var(--font-head); font-size: 18px; display: block; }
@media (max-width: 800px) {
  .spec-modal__inner { grid-template-columns: 1fr; }
  .spec-modal__media img { aspect-ratio: 3 / 2; min-height: 0; height: auto; }
  .spec-modal__body { padding: 24px 20px; }
  .spec-modal h2 { font-size: 30px; }
}

/* ---------- Как оформиться (стр. специальностей) ---------- */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.flow__item { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 4px solid var(--on-dark); }
.flow__item:first-child { border-top-color: var(--red); }
.flow__num { font-family: var(--font-head); font-size: 15px; letter-spacing: .12em; color: var(--on-dark-muted); }
.flow__item h3 { font-size: 22px; }
.flow__item p { color: var(--on-dark-muted); font-size: 15px; }
@media (max-width: 900px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } }

@media (max-width: 700px) {
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 32px; }
  body { font-size: 16px; }
}

/* Доступность: видимый фокус */
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Кнопки-фильтры используют стиль вкладок */
.tab[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Условия для всех специальностей */
.terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.term { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; display: flex; flex-direction: column; gap: 10px; }
.term__value { font-family: var(--font-head); font-weight: 700; font-size: 36px; line-height: 1; }
.term p { color: var(--muted); font-size: 16px; }
@media (max-width: 860px) { .terms { grid-template-columns: 1fr; } }

/* ---------- Регионы ---------- */
.cities { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.cities li { list-style: none; }
.city {
  width: 100%; min-height: 56px; padding: 0 18px; display: flex; align-items: center; gap: 12px; text-align: left;
  background: var(--ink-2); color: var(--on-dark); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 16px; font-weight: 500; transition: background .2s, border-color .2s;
}
.city::before { content: ""; width: 10px; height: 10px; background: var(--red); flex: none; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.city:hover { background: #26292e; border-color: rgba(255,255,255,.25); }
.regions__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.14); }
.regions__foot p { color: var(--on-dark-muted); max-width: 620px; }
@media (max-width: 1000px) { .cities { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cities { grid-template-columns: repeat(2, minmax(0, 1fr)); } .city { padding: 0 12px; font-size: 15px; } .regions__foot .btn { width: 100%; } }

/* ---------- Юридические страницы ---------- */
.doc { max-width: 820px; display: flex; flex-direction: column; gap: 14px; font-size: 16px; color: #33353a; }
.doc h2 { font-size: 24px; color: var(--ink); margin-top: 26px; }
.doc ul { display: flex; flex-direction: column; gap: 8px; padding-left: 0; }
.doc li { list-style: none; display: flex; gap: 12px; }
.doc li::before { content: ""; width: 7px; height: 7px; background: var(--red); margin-top: 9px; flex: none; }
.doc a { color: var(--red); }
.doc__date { margin-top: 24px; color: var(--muted); font-size: 14px; }
.page-hero--doc { padding: 48px 0 40px; }
.page-hero--doc h1 { font-size: clamp(30px, 3.6vw, 44px); }
.section--doc { padding-top: 48px; }

/* ---------- Плашка про cookie ---------- */
.cookie { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 16px 24px; max-width: 760px; margin-inline: auto; padding: 16px 20px; background: var(--ink); color: var(--on-dark-muted); font-size: 15px; line-height: 1.45; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.cookie[hidden] { display: none; }
.cookie a { color: var(--on-dark); text-underline-offset: 3px; }
.cookie .btn { flex: none; min-height: 44px; }
@media (max-width: 560px) { .cookie { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); gap: 12px; padding: 10px 12px 10px 14px; font-size: 12.5px; line-height: 1.4; } .cookie .btn { min-height: 40px; padding: 0 16px; font-size: 15px; } }
