/* ==========================================================================
   Сайт адвоката А. В. Березуна
   Обоснование решений: 02_ПЛАН/02_решения-ADR.md (ADR-02, ADR-03, ADR-04)
   Контраст всех пар проверен по формуле WCAG 2.2, уровень AA.
   ========================================================================== */

/* --- 1. Токены ----------------------------------------------------------- */
:root {
  --bg:            #FAF9F7;
  --surface:       #FFFFFF;
  --surface-alt:   #F3F1ED;
  --text:          #16191D;
  --text-muted:    #545B64;
  --accent:        #134A66;
  --accent-hover:  #0D3348;
  --accent-soft:   #E7EEF3;
  --border:        #DEDAD3;
  --border-strong: #8A9099;
  --warn-bg:       #FBF3E4;
  --warn-border:   #C9A24B;

  --font-serif: Georgia, 'PT Serif', 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  --wrap: 1120px;
  --wrap-narrow: 720px;
  --radius: 4px;
  --gap: clamp(1.7rem, 3.5vw, 2.5rem);
  --section-y: clamp(3rem, 8vw, 6rem);

  /* Шкала интервалов, база 8 px (0.5rem). Любой новый отступ берётся отсюда;
     значение вне шкалы требует письменного обоснования.
     Правило группировки: внутренний отступ блока меньше внешнего минимум в 1,5 раза —
     иначе читатель не видит границы групп (закон близости).
     Обоснование: ~/.claude/skills/design-system/references/spatial.md */
  --s-1: 0.25rem;   /*  4 px */
  --s-2: 0.5rem;    /*  8 px */
  --s-3: 0.75rem;   /* 12 px */
  --s-4: 1rem;      /* 16 px */
  --s-5: 1.5rem;    /* 24 px */
  --s-6: 2rem;      /* 32 px */
  --s-7: 3rem;      /* 48 px */
  --s-8: 4rem;      /* 64 px */

  --shadow: 0 1px 2px rgba(22, 25, 29, .05), 0 8px 24px -16px rgba(22, 25, 29, .22);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:            #131619;
    --surface:       #1B1F24;
    --surface-alt:   #1F242A;
    --text:          #E9E7E3;
    --text-muted:    #A3AAB3;
    --accent:        #8CC0E4;
    --accent-hover:  #B0D6F0;
    --accent-soft:   #1C2A34;
    --border:        #2C333A;
    --border-strong: #666D76;
    --warn-bg:       #221D14;
    --warn-border:   #8A6F30;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -16px rgba(0,0,0,.7);
  }
}

/* --- 2. База ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  /* overflow-x: hidden убран: при интервалах SC 1.4.12 он обрезал заголовки
     и текст без возможности прокрутить. Перенос длинных слов решает исходную
     задачу — не давать строке вылезать за экран — не пряча контент. */
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 48em) { body { font-size: 18px; } }

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 .6em;
  text-wrap: balance;
}

p, ul, ol, dl, table { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .35em; }

a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }

strong { font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--gap) 0; }

/* Фокус — WCAG 2.2 SC 2.4.13 Focus Appearance (AA) */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* WCAG 2.2 SC 2.4.11 Focus Not Obscured — учёт липкой шапки.
   Замер 2026-08-10: фактическая высота шапки 105 px, прежние 5.5rem (88 px)
   оставляли цель якоря под ней. */
:target, [id] { scroll-margin-top: 7rem; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--accent);
  /* Не #fff: в тёмной теме --accent светлый, белый текст давал 1.95:1
     при требуемых 4.5:1 (WCAG 2.2 SC 1.4.3 AA). */
  color: var(--bg);
  padding: .8rem 1.2rem;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

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

/* --- 3. Раскладка -------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2.5rem);
}
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: var(--section-y); }
.section--tint { background: var(--surface-alt); }
.section--contact { background: var(--surface-alt); }

.grid { display: grid; gap: var(--gap); }
@media (min-width: 40em) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }

/* «Об адвокате»: на телефоне портрет идёт первым — лицо человека, о котором
   страница, видно сразу, а не через два экрана текста. От 40em он занимает
   правую колонку над карточкой сведений, слева идёт текст во всю высоту.
   Строки заданы явно; если портрет выключен флагом, карточка поднимается
   в первую строку сама. */
.grid--about { display: grid; gap: var(--gap); }
@media (min-width: 40em) {
  .grid--about { grid-template-columns: repeat(2, 1fr); }
  .about__prose { grid-column: 1; grid-row: 1 / span 2; }
  .about__portret { grid-column: 2; grid-row: 1; }
  .about__svedeniya { grid-column: 2; grid-row: 2; }
  .grid--about:not(:has(.about__portret)) .about__svedeniya { grid-row: 1; }
}
@media (min-width: 64em) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 64em) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.prose { max-width: 68ch; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.8em; font-size: 1.15em; font-family: var(--font-sans); font-weight: 650; }

/* --- 4. Типографика ------------------------------------------------------ */
.h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
.h2 { font-size: clamp(1.55rem, 4vw, 2.3rem); }
.h3 { font-size: clamp(1.2rem, 2.6vw, 1.5rem); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: .78rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 .9rem;
  font-weight: 600;
}

.lead { font-size: clamp(1.05rem, 2.2vw, 1.22rem); color: var(--text-muted); max-width: 62ch; }
.muted { color: var(--text-muted); }
.small { font-size: .87rem; }
.link-strong { font-weight: 600; }

.plain-list { list-style: none; padding: 0; margin: 0 0 1em; }
.plain-list li { margin-bottom: .5em; }
.plain-list--tight { margin-top: 1.2em; padding-top: 1.2em; border-top: 1px solid var(--border); }

.checklist { list-style: none; padding: 0; }
.checklist li {
  position: relative;
  padding-left: 1.7em;
  margin-bottom: .7em;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: .1em;
  top: .62em;
  width: .72em;
  height: .72em;
  border: 2px solid var(--accent);
  border-radius: 50%;
}

.deflist { margin: 0; }
.deflist dt { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin-top: .9em; }
.deflist dd { margin: .15em 0 0; }

/* --- 5. Кнопки (WCAG 2.2 SC 2.5.8 — цель не меньше 44×44) ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: .75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn--primary { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--bg); }
.btn--ghost { background: transparent; color: var(--accent); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--accent-soft); color: var(--accent-hover); border-color: var(--accent); }
.btn--small { min-height: 44px; padding: .5rem 1.1rem; font-size: .93rem; }
.btn--wide { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.8rem; }

/* --- 6. Шапка ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
@supports not (backdrop-filter: blur(1px)) { .site-header { background: var(--bg); } }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--text); line-height: 1.25; padding: .35rem 0; }
.brand:hover { color: var(--accent); }
.brand__name { font-family: var(--font-serif); font-size: 1.16rem; }
.brand__role { font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); }

.nav__list { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; gap: .2rem; }
.nav__link {
  display: block;
  padding: .55rem .7rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: .92rem;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius);
}
.nav__link:hover { background: var(--accent-soft); color: var(--accent); }
.nav__link--active { color: var(--accent); font-weight: 650; box-shadow: inset 0 -2px 0 var(--accent); }

.burger {
  display: none;
  width: 48px; height: 48px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
}
.burger__box { position: relative; display: block; width: 20px; height: 2px; }
.burger__line, .burger__line::before, .burger__line::after {
  position: absolute; left: 0; width: 20px; height: 2px;
  background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}
.burger__line { top: 0; }
.burger__line::before { content: ""; top: -6px; }
.burger__line::after  { content: ""; top: 6px; }
.burger[aria-expanded="true"] .burger__line { background: transparent; }
.burger[aria-expanded="true"] .burger__line::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__line::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 63.99em) {
  .burger { display: flex; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: .75rem clamp(1rem, 5vw, 2.5rem) 1.5rem;
    display: none;
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { padding: .8rem .2rem; font-size: 1.02rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav__link--active { box-shadow: none; }
  .nav__cta { margin-top: 1rem; width: 100%; }
}
@media (min-width: 64em) {
  .nav { display: flex !important; align-items: center; gap: 1rem; }
  .nav__cta { margin-left: .4rem; }
}

/* --- 7. Первый экран ----------------------------------------------------- */
.hero {
  padding-block: clamp(3rem, 9vw, 6.5rem) clamp(2.5rem, 7vw, 5rem);
  border-bottom: 1px solid var(--border);
}
.hero__badge {
  display: inline-block;
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: .4rem .9rem;
  margin-bottom: 1.6rem;
}
.hero__name { font-size: clamp(2.1rem, 7vw, 4rem); margin-bottom: .15em; }
.hero__tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3.6vw, 2rem);
  color: var(--accent);
  margin: 0 0 1.4rem;
  line-height: 1.25;
}
.hero__facts {
  display: flex; flex-wrap: wrap; gap: .5rem 1.6rem;
  list-style: none; padding: 0; margin: 0 0 .5rem;
  color: var(--text-muted); font-size: .96rem;
}
.hero__facts li { position: relative; margin: 0; }
@media (min-width: 40em) {
  .hero__facts li + li::before {
    content: ""; position: absolute; left: -.85rem; top: .55em;
    width: 3px; height: 3px; border-radius: 50%; background: var(--border-strong);
  }
}

/* --- 8. Карточки --------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 2.2vw, 1.6rem);
  display: flex;
  flex-direction: column;
}
.card__title { font-size: 1.22rem; margin-bottom: .5rem; }
.card__text { color: var(--text-muted); margin-bottom: 1.2rem; }
/* Цель нажатия не меньше 44 px — WCAG 2.2 SC 2.5.5 */
.card__link {
  margin-top: auto;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  min-height: 44px;
}
.card__link::after { content: " →"; }
.card__link:hover { text-decoration: underline; }

a.card { text-decoration: none; color: inherit; transition: border-color .18s ease, transform .18s ease; }
a.card:hover { border-color: var(--accent); }
a.card:hover .card__title { color: var(--accent); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3.2rem;
  margin-bottom: 1.6rem;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -.1em;
  width: 2.3rem; height: 2.3rem;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 1.05rem;
}
.steps__title { display: block; font-weight: 650; margin-bottom: .2em; }

.notice {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.notice--warn { border-left-color: var(--warn-border); background: var(--warn-bg); }
.notice p:last-child { margin-bottom: 0; }

.table-scroll { overflow-x: auto; margin-bottom: 1.4rem; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-weight: 650; color: var(--text-muted); font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; }

/* --- 9. Блок обращения --------------------------------------------------- */
.contact-layout { display: grid; gap: var(--gap); margin-top: 2.5rem; align-items: start; }
@media (min-width: 64em) {
  .contact-layout { grid-template-columns: minmax(0, 1.35fr) minmax(300px, .9fr); gap: 3.5rem; }
}

.brief-list { counter-reset: brief; list-style: none; padding: 0; margin: 2rem 0; }
.brief-list li {
  counter-increment: brief;
  position: relative;
  padding-left: 2.4rem;
  margin-bottom: 1.1rem;
}
.brief-list li::before {
  content: counter(brief);
  position: absolute;
  left: 0;
  top: .05em;
  width: 1.7rem;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  padding-bottom: .1em;
}
.brief-list b { font-weight: 650; }

.tight-list { margin: .5rem 0 1rem; padding-left: 1.2em; }
.tight-list li { margin-bottom: .25em; }
.no-margin { margin-bottom: 0; }

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.contact-card__label {
  font-size: .74rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin: 0 0 .7rem;
}
.contact-card__label--spaced { margin-top: 1.8rem; }
.contact-card__note { font-size: .85rem; color: var(--text-muted); margin: .7rem 0 0; }
.contact-card__foot { margin-top: 1.8rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.contact-card__foot p + p { margin-top: .4rem; }

.messenger-row { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 25em) { .messenger-row { grid-template-columns: 1fr 1fr; } }

/* Перечень внешних публикаций */
.smi-list { list-style: none; padding: 0; margin: 2.5rem 0 2rem; }
.smi-list li {
  padding: .85rem 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: .15rem;
}
.smi-list li:last-child { border-bottom: 1px solid var(--border); }
.smi-list__meta {
  font-size: .78rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
/* Цель нажатия не меньше 44 px — WCAG 2.2 SC 2.5.5. Проверено автотестом. */
.smi-list a {
  font-weight: 600;
  text-decoration: none;
  display: block;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.smi-list a:hover { text-decoration: underline; }
.smi-list__role { font-size: .88rem; color: var(--text-muted); }

/* Награды */
.awards { list-style: none; padding: 0; margin: 2.5rem 0 0; }
.awards li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: .3rem 1.2rem;
  padding: 1.3rem 0;
  border-top: 1px solid var(--border);
  align-items: start;
}
.awards li:last-child { border-bottom: 1px solid var(--border); }
.awards__year {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--accent);
  line-height: 1.1;
}
.awards__title { display: block; font-weight: 650; margin-bottom: .25rem; }
.awards__meta { display: block; font-size: .88rem; color: var(--text-muted); }
@media (max-width: 32em) {
  .awards li { grid-template-columns: 1fr; }
  .awards__year { font-size: 1.05rem; }
}

/* Портрет */
.portret {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-alt);
}
.portret img { width: 100%; display: block; }
.portret__caption {
  font-size: .8rem;
  color: var(--text-muted);
  padding: .7rem .9rem;
  border-top: 1px solid var(--border);
  margin: 0;
}
.btn--messenger { padding-inline: .8rem; font-size: .93rem; }
.ico { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

/* --- 10. Подвал ---------------------------------------------------------- */
.site-footer {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  padding-block: clamp(2.5rem, 6vw, 4rem) 2rem;
  font-size: .93rem;
}
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 40em) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .footer-grid { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; } }
.footer-col__title { font-family: var(--font-sans); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; margin-bottom: .9rem; }
.footer-col__lead { font-family: var(--font-serif); font-size: 1.1rem; margin-bottom: .3em; }
.footer-note {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .85rem;
  max-width: 90ch;
}
.footer-copy { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; justify-content: space-between; color: var(--text-muted); font-size: .85rem; margin: 1rem 0 0; }

/* --- 11. Плавающая кнопка звонка (только мобильные) ---------------------- */
.callbar { display: none; }
@media (max-width: 47.99em) {
  .callbar {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    padding: .6rem clamp(1rem, 5vw, 2.5rem) calc(.6rem + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
  }
  .callbar__btn {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 50px;
    background: var(--accent);
    color: var(--bg);
    font-weight: 650;
    text-decoration: none;
    border-radius: var(--radius);
  }
  .callbar__icon { font-size: 1.05em; }
  /* Панель звонка фиксирована у нижнего края и закрывала элемент, получивший
     фокус (SC 2.4.11 Focus Not Obscured). Запас снизу больше её высоты, и он
     же учитывается при прокрутке к элементу. */
  body { padding-bottom: 5.75rem; }
  html { scroll-padding-bottom: 5.75rem; }
  a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
    scroll-margin-bottom: 5.75rem;
  }
  /* При открытом меню панель убирается: под ней оказывалась кнопка «Позвонить»
     самого меню. */
  .nav.is-open ~ .callbar, body:has(.nav.is-open) .callbar { display: none; }
  /* Отступа снизу мало: браузер не прокручивает элемент, который уже «виден»,
     хотя его закрывает панель. Пока фокус на странице — панель убирается;
     когда фокус на ней самой, она остаётся. */
  body:has(:focus-visible):not(:has(.callbar :focus-visible)) .callbar {
    opacity: 0;
    pointer-events: none;
  }
}

/* --- 12. Печать ---------------------------------------------------------- */
@media print {
  .site-header, .callbar, .skip-link, .btn { display: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
  /* Токены тёмной темы наследовались потомками и печатались светлым по белому. */
  *, *::before, *::after {
    color: #000 !important;
    background: transparent !important;
    border-color: #999 !important;
  }
  /* Печатать адрес имеет смысл только у внешних ссылок: относительный «/opyt/»
     на бумаге бесполезен. */
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
}


/* --- 13. Очень низкое окно (зум 400 %, SC 1.4.10 Reflow) ------------------ */
/* При высоте окна меньше ~26em липкая шапка и панель звонка занимали 139 px
   из 256: на текст оставалось меньше половины. */
@media (max-height: 26em) {
  .callbar { display: none; }
  .site-header { position: static; }
  body { padding-bottom: 0; }
}

/* Роль в шапке не разрывается посреди фразы «АДВОКАТ · РЕЕСТР 78/156». */
.brand__role { white-space: nowrap; }


/* --- 14. Служебные классы отступов --------------------------------------- */
/* Заменяют 57 атрибутов style="…", стоявших в разметке. Причина не в чистоте:
   боевой .htaccess отдаёт Content-Security-Policy со `style-src 'self'` без
   'unsafe-inline', а этот источник управляет и атрибутом style. На хостинге
   браузер отбросил бы все инлайновые отступы, и вёрстка отличалась бы от той,
   что прошла проверку локально, — молча, без единой ошибки в консоли.

   !important здесь не украшение: атрибут style побеждал правила вида
   `.prose p`, и без !important класс с той же специфичностью проиграл бы им.
   Значения совпадают с прежними до пикселя, сверено скриншотами пяти профилей. */
.u-mb-0       { margin-bottom: 0 !important; }
.u-mt-0       { margin-top: 0 !important; }
.u-mb-5       { margin-bottom: var(--s-5) !important; }
.u-mt-5       { margin-top: var(--s-5) !important; }
.u-mt-6       { margin-top: var(--s-6) !important; }
.u-mt-6a      { margin-top: 2.5rem !important; }   /* 40 px — шаг шкалы 8 px */
.u-mt-7       { margin-top: var(--s-7) !important; }
.u-m-top-5    { margin: var(--s-5) 0 0 !important; }
.u-items-start { align-items: start !important; }

/* Заголовок политики длиннее прочих h1 и на узком экране переносился четырьмя
   строками поверх шапки. */
.h1--long { font-size: clamp(1.8rem, 5vw, 2.8rem) !important; }
