/* Общие стили сайта (владелец — фронтенд, см. docs/FRONTEND.md).
   Правила с пометкой «v10» перенесены из design/v10/index.html без изменений — не править без сверки
   (scripts/compare_v10.py или скриншоты design/v10/shots). Остальное — компоненты внутренних страниц
   в том же языке: тёмный текст на белом, цвет раздела (--tone) только у ссылок, акцентов и заголовков разделов.

   Разделы файла: база · ссылки и кнопки · шапка и меню · заголовки секций и полосы · внутренние страницы
   (крошки, заголовок, текст) · плитка продукта · датированный список · пагинация, пустое состояние, чипы ·
   формы · подвал · плашка черновика · страница ошибки · движение. */

/* ---------- база (v10) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Golos Text", Arial, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* дополнение к сбросу v10 для внутренних страниц */
h4, ol, dl, dd, figure, blockquote { margin: 0; }
ol { padding: 0; list-style: none; }
input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: calc(var(--container) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--pad); top: -100px; z-index: 100; padding: 8px 12px; background: var(--ink); color: #fff; border-radius: var(--radius); }
.skip:focus { top: 8px; }

/* ---------- ссылки и кнопки (v10) ---------- */
.link { color: var(--tone, var(--ink)); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); transition: text-decoration-color .15s; }
.link:hover { text-decoration-color: currentColor; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px; border-radius: var(--radius); border: 1px solid; font-size: 15px; font-weight: 500; line-height: 1; transition: background-color .15s, color .15s, border-color .15s; }
.button--outline { border-color: rgba(24, 33, 43, .3); color: var(--ink); background: transparent; }
.button--outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.button--ghost { border-color: rgba(255, 255, 255, .7); color: #fff; background: transparent; }
.button--ghost:hover { background: #fff; border-color: #fff; color: var(--tone); }
/* сплошная — основное действие формы (то же, что наведённая outline) */
.button--solid { background: var(--ink); border-color: var(--ink); color: #fff; }
.button--solid:hover { background: transparent; color: var(--ink); }
.button svg { flex: none; }
.button[disabled], .button.is-disabled { opacity: .4; pointer-events: none; }

/* ---------- шапка (v10) ---------- */
.header { position: relative; z-index: 20; background: var(--bg); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 36px; height: 36px; }
.brand__name { display: block; font-size: 18px; font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }
.brand__sub { display: none; font-size: 12px; line-height: 1.2; color: var(--muted); margin-top: 4px; }
/* свой логотип из настроек: высота как у эмблемы, ширина по пропорции */
.brand .brand__logo { width: auto; max-width: 160px; object-fit: contain; }
.brand picture { display: contents; }

.burger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; border: 0; background: transparent; border-radius: var(--radius); }
.burger__close { display: none; }
.burger[aria-expanded="true"] .burger__open { display: none; }
.burger[aria-expanded="true"] .burger__close { display: block; }

.menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px var(--pad) 24px; box-shadow: 0 24px 40px -24px rgba(24, 33, 43, .3); }
.menu.is-open { display: block; min-height: calc(100vh - var(--header-h)); }
.nav__item + .nav__item { border-top: 1px solid var(--line); }
.nav__link { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 0; border: 0; background: transparent; font-size: 18px; font-weight: 500; line-height: 1.2; text-align: left; }
.nav__link svg { flex: none; transition: transform .2s; }
.nav__item.is-open > .nav__link { color: var(--tone); }
.nav__item.is-open > .nav__link svg { transform: rotate(180deg); }
.dropdown { display: none; padding: 0 0 12px; }
.nav__item.is-open > .dropdown { display: block; }
.dropdown__link { display: block; padding: 10px 0 10px 16px; font-size: 16px; line-height: 1.35; color: var(--ink); transition: color .15s; }
.dropdown__link:hover { color: var(--tone); }
.dropdown__link--all { color: var(--tone); font-weight: 500; margin-top: 4px; }
.menu__contacts { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 22px; }
.phone { display: inline-block; padding: 8px 0; font-size: 17px; font-weight: 500; white-space: nowrap; }

/* мобильное меню: страница под ним не прокручивается, длинное меню прокручивается само */
html.is-menu-open { overflow: hidden; }
@supports (height: 100dvh) {
  .menu.is-open { min-height: calc(100dvh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; }
}
/* текущий раздел и текущая категория (на телефоне — цветом раздела и подчёркиванием) */
.nav__item.is-current > .nav__link { color: var(--tone); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.dropdown__link[aria-current="page"] { color: var(--tone); }

@media (min-width: 768px) {
  .brand img { width: 44px; height: 44px; }
  .brand__name { font-size: 20px; }
  .brand__sub { display: block; }
}
@media (min-width: 1024px) {
  .burger { display: none; }
  .menu { display: flex; position: static; flex: 1; align-items: center; justify-content: space-between; gap: 24px; margin-left: 24px; padding: 0; border: 0; box-shadow: none; }
  .nav__list { display: flex; gap: 4px; height: var(--header-h); }
  .nav__item { position: relative; display: flex; align-items: center; }
  .nav__item + .nav__item { border: 0; }
  .nav__link { position: relative; width: auto; gap: 6px; padding: 8px 12px; border-radius: var(--radius); font-size: var(--fs-menu); justify-content: flex-start; }
  .nav__link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--tone, var(--ink)); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
  .nav__link:hover::after, .nav__link:focus-visible::after, .nav__item:focus-within > .nav__link::after, .nav__item.is-open > .nav__link::after { transform: scaleX(1); }
  .nav__item.is-open > .nav__link { color: inherit; }
  .nav__item.is-open > .nav__link svg { transform: none; }
  .dropdown { display: block; position: absolute; top: 100%; left: 0; min-width: 470px; padding: 10px 0; background: var(--bg); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 4px 4px; box-shadow: 0 24px 48px -20px rgba(24, 33, 43, .32); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility 0s .18s; }
  /* is-suppressed — список закрыт кликом или Escape, пока курсор/фокус ещё на пункте */
  .nav__item:not(.is-suppressed):hover > .dropdown, .nav__item:not(.is-suppressed):focus-within > .dropdown, .nav__item.is-open > .dropdown { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .dropdown__link { padding: 10px 20px; font-size: 15px; }
  .dropdown__link--all { margin: 8px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
  .menu__contacts { flex-direction: row; align-items: center; gap: 24px; padding: 0; }
  .phone { display: none; padding: 0; font-size: 15px; }

  .menu.is-open { min-height: 0; max-height: none; overflow: visible; }
  html.is-menu-open { overflow: visible; }
  .nav__item.is-current > .nav__link { color: inherit; text-decoration: none; }
  .nav__item.is-current > .nav__link::after { transform: scaleX(1); }
}
@media (min-width: 1200px) {
  .phone { display: inline; }
}

/* ---------- заголовки секций (v10) и светлая полоса ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-title { font-size: var(--fs-h2); font-weight: 600; line-height: 1.25; letter-spacing: -.01em; color: var(--tone, var(--ink)); }
.section-head .link { flex: none; }
@media (min-width: 768px) { .section-head { margin-bottom: 36px; } }

/* светлая полоса на всю ширину (как полоса баннеров v10): <section class="band"><div class="container">… */
.band { padding: var(--section) 0; background: var(--surface); }

/* ---------- внутренние страницы: обёртка, крошки, заголовок, текст ---------- */
.page { padding-bottom: var(--section); }
.page-header { padding: 16px 0 32px; }
.page-header__date { margin-top: 2px; font-size: var(--fs-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.page-title { font-size: var(--fs-h1); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; color: var(--tone); overflow-wrap: break-word; }
.page-title--plain { color: var(--ink); }
.page-header__date + .page-title { margin-top: 8px; }
.page-lead { margin-top: 12px; max-width: 60ch; font-size: var(--fs-lead); line-height: 1.5; color: var(--muted); }
.breadcrumbs + .page-header__date, .breadcrumbs + .page-title { margin-top: 16px; }

.breadcrumbs { font-size: var(--fs-small); line-height: 1.45; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; margin: -9px 0; }
.breadcrumbs li { min-width: 0; }
.breadcrumbs li + li::before { content: "/"; margin: 0 8px; color: rgba(24, 33, 43, .3); }
.breadcrumbs a, .breadcrumbs [aria-current] { display: inline-block; padding: 9px 0; }
.breadcrumbs a { color: var(--tone); }
.breadcrumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* телефон, три уровня и больше: только ссылка на родителя «‹ Раздел» (текущая страница — это h1) */
@media (max-width: 767px) {
  .breadcrumbs ol:has(> li:nth-child(3)) > li { display: none; }
  .breadcrumbs ol:has(> li:nth-child(3)) > li:nth-last-child(2) { display: block; }
  .breadcrumbs ol:has(> li:nth-child(3)) > li:nth-last-child(2)::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 10px 0 3px; border-left: 1.5px solid var(--tone); border-bottom: 1.5px solid var(--tone); transform: translateY(-1px) rotate(45deg); }
  /* длинная подпись переносится внутри пункта, а не уезжает на новую строку отдельно от «/» или «‹» (integ) */
  .breadcrumbs ol:has(> li:nth-child(3)) > li:nth-last-child(2),
  .breadcrumbs ol:not(:has(> li:nth-child(3))) > li:last-child:not(:first-child) { display: flex; align-items: baseline; }
  .breadcrumbs ol:not(:has(> li:nth-child(3))) > li:last-child:not(:first-child) { flex: 1 1 0; }
  .breadcrumbs li::before { flex: none; }
}
@media (min-width: 768px) {
  .page-header { padding: 24px 0 48px; }
  .breadcrumbs ol { margin: 0; }
  .breadcrumbs a, .breadcrumbs [aria-current] { padding: 0; }
  .breadcrumbs + .page-header__date, .breadcrumbs + .page-title { margin-top: 24px; }
  .page-lead { margin-top: 16px; }
}

/* 12 колонок v10 (контейнер 1200, межколонник 32): от 1024 px — колонки, ниже — одна под другой.
   col-3 = ширина плитки продукта, col-2 + col-10 = дата + текст новости. */
.grid-12 { display: grid; gap: 32px var(--gutter); }
@media (min-width: 1024px) {
  .grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .col-2 { grid-column: span 2; } .col-3 { grid-column: span 3; } .col-4 { grid-column: span 4; }
  .col-5 { grid-column: span 5; } .col-6 { grid-column: span 6; } .col-7 { grid-column: span 7; }
  .col-8 { grid-column: span 8; } .col-9 { grid-column: span 9; } .col-10 { grid-column: span 10; }
  .col-12 { grid-column: 1 / -1; }
}

.section-block + .section-block { margin-top: 48px; }
@media (min-width: 768px) { .section-block + .section-block { margin-top: 56px; } }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }

/* текст из визуального редактора (sanitize_html): p, h2–h4, списки, цитата, таблица, ссылки */
.prose { max-width: 72ch; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: var(--fs-h2); font-weight: 600; line-height: 1.25; letter-spacing: -.01em; margin-top: 1.6em; }
.prose h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.35; margin-top: 1.4em; }
.prose h4 { font-size: var(--fs-body); font-weight: 600; margin-top: 1.2em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .35em; }
.prose a { color: var(--tone, var(--ink)); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.prose a:hover { text-decoration-color: currentColor; }
.prose blockquote { margin: 1.2em 0; padding-left: 20px; border-left: 2px solid var(--tone, var(--ink)); color: var(--muted); }
.prose table { display: block; width: 100%; max-width: 100%; overflow-x: auto; font-size: 15px; }
.prose th, .prose td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-weight: 500; }

/* ---------- плитка продукта (v10 «Популярные продукты») ---------- */
.products__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px var(--gutter); }
.product { display: flex; flex-direction: column; }
.product__media { display: block; aspect-ratio: 1; margin-bottom: 14px; overflow: hidden; background: var(--studio); }
.product__media img { width: 100%; height: 100%; object-fit: cover; }
.product__name { font-size: var(--fs-h3); font-weight: 500; line-height: 1.35; margin-bottom: 4px; }
.product__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.product__cat { font-size: var(--fs-small); color: var(--muted); margin-bottom: 8px; }
.product__text { font-size: var(--fs-small); line-height: 1.5; color: var(--muted); margin-bottom: 12px; overflow-wrap: break-word; }
.product__price { font-size: 15px; font-weight: 500; margin-top: auto; }
@media (min-width: 768px) {
  .product__text { font-size: 15px; }
}
@media (min-width: 1024px) {
  .products__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* фото упаковки целиком на студийной подложке (SPEC §3: contain); <picture> не ломает размеры */
.product__media picture { display: contents; }
.product__media img { object-fit: contain; }
/* очень длинные слова («иммунохроматографического») переносятся по слогам, обычные — как в v10 */
.product__text { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 18 6 6; }
.product__price-note { font-weight: 400; color: var(--muted); }

/* ---------- датированный список (v10 «Новости»): дата | заголовок + текст [| превью] ---------- */
.news__list { border-bottom: 1px solid var(--line); }
.news__item { display: grid; gap: 6px; padding: 20px 0; border-top: 1px solid var(--line); }
.news__date { font-size: var(--fs-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.news__title { font-size: var(--fs-h3); font-weight: 500; line-height: 1.35; margin-bottom: 6px; }
.news__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.news__text { color: var(--muted); font-size: 15px; max-width: 72ch; }
.news__title, .news__text { overflow-wrap: anywhere; } /* длинное слово или адрес не растягивает ленту на телефоне */
@media (min-width: 768px) {
  .news__item { grid-template-columns: minmax(0, 2fr) minmax(0, 10fr); gap: var(--gutter); padding: 24px 0; }
  .news__date { padding-top: 3px; }
}
.news__body > :last-child { margin-bottom: 0; }
/* вариант с превью: на телефоне миниатюра справа, от 768 — колонки 2 | 8 | 2 */
.news__item--media { grid-template-columns: minmax(0, 1fr) 96px; column-gap: 16px; }
.news__item--media .news__date { grid-column: 1; grid-row: 1; }
.news__item--media .news__body { grid-column: 1; grid-row: 2; }
.news__media { grid-column: 2; grid-row: 1 / span 2; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface); }
.news__media picture { display: contents; }
.news__media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) {
  .news__item--media { grid-template-columns: minmax(0, 2fr) minmax(0, 8fr) minmax(0, 2fr); column-gap: var(--gutter); }
  .news__item--media .news__body { grid-column: 2; grid-row: 1; }
  .news__media { grid-column: 3; grid-row: 1; }
}

/* ---------- пагинация ---------- */
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 40px; }
.pagination__pages { display: none; align-items: center; gap: 4px; }
.pagination__page { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 8px; font-weight: 500; font-variant-numeric: tabular-nums; }
.pagination__page::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 4px; height: 2px; background: var(--tone); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
a.pagination__page:hover::after, .pagination__page[aria-current="page"]::after { transform: scaleX(1); }
.pagination__page[aria-current="page"] { color: var(--tone); }
.pagination__gap { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 40px; color: var(--muted); }
.pagination__status { color: var(--muted); font-variant-numeric: tabular-nums; }
.pagination__step { gap: 8px; padding: 0 14px; }
.pagination__step.is-disabled { opacity: 1; color: var(--muted); border-color: var(--line); } /* серый, но читаемый (5,8:1) */
.pagination__step--next { margin-left: auto; }
@media (min-width: 600px) {
  .pagination__pages { display: flex; }
  .pagination__status { display: none; }
  .pagination__step--next { margin-left: 0; }
}

/* ---------- пустое состояние ---------- */
.empty-state { padding: 28px 0 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.empty-state__title, .empty-state > strong { display: block; font-size: var(--fs-h3); font-weight: 500; line-height: 1.35; color: var(--ink); margin-bottom: 6px; }
.empty-state__text, .empty-state { color: var(--muted); }
.empty-state__text { max-width: 60ch; }
.empty-state__action { margin-top: 16px; }

/* ---------- чипы (метки, быстрые фильтры): цвет раздела у наведённого и выбранного ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); font-size: var(--fs-small); font-weight: 500; line-height: 1.2; color: var(--ink); transition: color .15s, border-color .15s, background-color .15s; }
a.chip:hover, button.chip:hover, label.chip:hover { border-color: var(--tone); color: var(--tone); }
.chip.is-active, .chip[aria-pressed="true"], .chip[aria-current="page"], .chip:has(input:checked) { background: var(--tone); border-color: var(--tone); color: #fff; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.chip__count { font-weight: 400; color: var(--muted); }
.chip.is-active .chip__count, .chip[aria-pressed="true"] .chip__count, .chip[aria-current="page"] .chip__count, .chip:has(input:checked) .chip__count { color: inherit; }
@media (min-width: 768px) { .chip { min-height: 36px; } }

/* ---------- формы ---------- */
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label, .field legend { font-weight: 500; font-size: 15px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="search"], .field input[type="number"], .field textarea, .field select {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid rgba(24, 33, 43, .3); border-radius: var(--radius);
  font: inherit; color: var(--ink); background: #fff;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.field__hint { font-size: var(--fs-small); color: var(--muted); }
.field__error { font-size: var(--fs-small); color: #B3261E; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
label.field--check { display: flex; align-items: center; gap: 10px; min-height: 32px; margin: 0; font-weight: 400; cursor: pointer; }
label.field--check input { margin: 0; }
.field--check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.field--check label { font-weight: 400; }

/* ---------- подвал (v10) ---------- */
.footer { padding: 48px 0 28px; background: var(--surface); border-top: 1px solid var(--line); font-size: 15px; }
.footer__grid { display: grid; gap: 32px; }
.footer__nav ul { display: grid; gap: 0; }
.footer__nav a { display: inline-block; padding: 9px 0; color: var(--tone, var(--ink)); font-weight: 500; }
.footer__nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__contacts { display: grid; gap: 8px; align-content: start; }
.footer__contacts a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 0 28px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--muted); }
.footer__bottom > * { padding: 10px 0; }
.footer__bottom a:hover { color: var(--ink); }
.footer__producer { width: 100%; }
@media (min-width: 768px) {
  .footer { padding: 64px 0 32px; }
  .footer__grid { grid-template-columns: 4fr 3fr 5fr; gap: var(--gutter); }
  .footer__nav ul { gap: 10px; }
  .footer__nav a { padding: 0; }
  .footer__bottom { margin-top: 56px; gap: 8px 28px; }
  .footer__bottom > * { padding: 0; }
}

/* ---------- плашка черновика (видит только вошедший администратор) ---------- */
.draft-banner { position: relative; z-index: 30; background: #FFF4D6; color: #5C4200; border-bottom: 1px solid rgba(154, 103, 0, .25); font-size: var(--fs-small); }
.draft-banner .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; padding-top: 10px; padding-bottom: 10px; }
.draft-banner a { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.draft-banner :focus-visible { outline-color: #5C4200; }

/* ---------- страница ошибки (404, 500, 403) ---------- */
.error-page .page-header { padding-top: 32px; }
.error-page__code { font-size: var(--fs-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.error-page__code + .page-title { margin-top: 12px; }
.error-page__sections a { display: inline-block; padding: 8px 0; font-size: var(--fs-h3); font-weight: 500; color: var(--tone); }
.error-page__sections a:hover { text-decoration: underline; text-underline-offset: 3px; }
.error-page__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }
.footer--compact { padding: 24px 0; }
.page-error { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.page-error main { flex: 1 0 auto; }
.footer--compact .footer__bottom { margin-top: 0; padding-top: 0; border-top: 0; }
@media (min-width: 768px) {
  .error-page .page-header { padding-top: 64px; }
  .error-page__sections ul { display: flex; flex-wrap: wrap; gap: 8px 32px; }
  .footer--compact { padding: 32px 0; }
}

/* ---------- движение (v10) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
