/* ==========================================================================
   Рейтинг подгузников России 2026 — дизайн-система
   Аналитический editorial-стиль, адаптированный под нишу детских товаров:
   тёплая бумажная база, спокойный бирюзовый акцент, серифные заголовки.
   Без внешних библиотек и шрифтов — только системные стеки.
   ========================================================================== */

:root {
  --paper:      #fbf9f6;
  --surface:    #ffffff;
  --surface-2:  #f5f2ec;
  --ink:        #16262c;
  --ink-soft:   #3c5157;
  --muted:      #6b7d84;
  --border:     #e7e1d7;
  --border-2:   #d9d2c5;
  --accent:     #2b7a78;
  --accent-dk:  #1f5c5a;
  --accent-bg:  #e8f2f1;
  --warm:       #b4703a;
  --warm-bg:    #fbf0e4;
  --shadow-sm:  0 1px 2px rgba(22, 38, 44, .05);
  --shadow:     0 6px 24px rgba(22, 38, 44, .07);
  --shadow-lg:  0 14px 44px rgba(22, 38, 44, .1);
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --maxw: 1160px;
  --serif: ui-serif, Georgia, "Iowan Old Style", "Times New Roman", "PT Serif", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 22px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  overflow-x: hidden;              /* страница никогда не скроллится по горизонтали */
}

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

a { color: var(--accent-dk); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------------------------------------------------------------- типографика */

h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; margin: 0; color: var(--ink); }

h1 { font-size: clamp(30px, 4.4vw, 50px); letter-spacing: -.02em; }
h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.01em; }
h3 { font-size: clamp(19px, 2.1vw, 23px); }
h4 { font-size: 18px; font-family: var(--sans); }

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

.lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-soft); }

.eyebrow {
  font-family: var(--sans); font-size: 12.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 14px;
}

/* ---------------------------------------------------------------- каркас */

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

section { padding: 0; }

.block { padding: 66px 0; }
.block--tight { padding: 44px 0; }
.block + .block { border-top: 1px solid var(--border); }

.block__head { max-width: 760px; margin-bottom: 30px; }
.block__head h2 + p { margin-top: 24px; color: var(--muted); }
.block__head--wide { max-width: 900px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------- шапка */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 249, 246, .94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex; align-items: center; gap: 20px;
  min-height: 66px; padding: 10px 0;
}
.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto;
  background: linear-gradient(140deg, var(--accent) 0%, #4aa39f 100%);
  color: #fff; display: grid; place-items: center;
}
.brand__mark svg { display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__title { font-family: var(--serif); font-weight: 700; font-size: 16px; color: var(--ink); }
.brand__sub { font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }
a.brand:hover { text-decoration: none; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: block; padding: 9px 13px; border-radius: 9px;
  font-size: 15px; color: var(--ink-soft);
}
.nav__link:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.nav__link[aria-current="page"] { color: var(--accent-dk); font-weight: 600; background: var(--accent-bg); }
.nav__cta {
  display: inline-block; padding: 10px 16px; border-radius: 10px;
  background: var(--accent); color: #fff; font-size: 15px; font-weight: 600;
}
.nav__cta:hover { background: var(--accent-dk); text-decoration: none; }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 42px;
  border: 1px solid var(--border-2); border-radius: 10px; background: var(--surface);
  cursor: pointer; align-items: center; justify-content: center; padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 19px; height: 2px; background: var(--ink); position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; margin: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none; padding: 10px var(--gutter) 18px;
  }
  .nav[data-open="true"] { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { padding: 12px 12px; font-size: 16px; }
  .nav__cta { text-align: center; margin-top: 8px; }
}

/* ---------------------------------------------------------------- hero */

.hero { padding: 54px 0 46px; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; align-items: start; }
.hero__lead { max-width: 78ch; }
.hero h1 { margin-bottom: 24px; }
.hero__text { color: var(--ink-soft); font-size: 18px; max-width: 62ch; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 26px; padding: 0; list-style: none;
}
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 7px 14px; font-size: 14px; color: var(--ink-soft);
}
.chip b { color: var(--ink); font-weight: 600; }
.chip--accent { background: var(--accent-bg); border-color: #cfe4e2; color: var(--accent-dk); }
.chip--warm { background: var(--warm-bg); border-color: #ecd9c3; color: var(--warm); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; padding: 14px 24px; border-radius: 12px;
  font-size: 16px; font-weight: 600; border: 1px solid transparent; cursor: pointer;
  font-family: var(--sans); transition: background .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dk); text-decoration: none; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--border-2); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-dk); text-decoration: none; }

@media (max-width: 940px) {
  .hero { padding: 40px 0 34px; }
  .hero__inner { grid-template-columns: 1fr; gap: 30px; }
}

/* ---------------------------------------------------------------- краткий ответ */

.answer {
  background: var(--accent-bg); border: 1px solid #cfe4e2;
  border-left: 5px solid var(--accent);
  border-radius: var(--r); padding: 26px 28px;
}
.answer h2 { font-size: 21px; font-family: var(--sans); font-weight: 700; margin-bottom: 12px; }
.answer p { color: var(--ink-soft); }
.answer b { color: var(--ink); }

/* ---------------------------------------------------------------- цифры исследования */

.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(184px, 1fr)); gap: 16px;
  padding: 0; margin: 0; list-style: none;
}
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: 22px 20px; box-shadow: var(--shadow-sm);
}
.stat__num {
  font-family: var(--serif); font-size: 34px; font-weight: 700; color: var(--accent-dk);
  line-height: 1.05; display: block; margin-bottom: 6px;
}
.stat__num small { font-size: 18px; font-weight: 400; color: var(--muted); }
.stat__label { font-size: 14px; color: var(--muted); }

/* ---------------------------------------------------------------- сетки карточек */

.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--compact { grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }

@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .grid--compact { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 12px; }
.card p:last-child { margin-bottom: 0; }
.card--soft { background: var(--surface-2); box-shadow: none; }

/* ---------------------------------------------------------------- подиум топ-3 */

.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 860px) { .podium { grid-template-columns: 1fr; } }

.podium__item {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 26px 22px 22px;
  display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-sm);
}
.podium__item--first { border-color: #cfe4e2; box-shadow: var(--shadow); }
.podium__rank {
  font-family: var(--serif); font-size: 15px; font-weight: 700; color: var(--muted);
  letter-spacing: .04em;
}
.podium__item--first .podium__rank { color: var(--accent); }
.podium__name { font-family: var(--serif); font-size: 25px; font-weight: 700; }
.podium__score {
  font-family: var(--serif); font-size: 30px; font-weight: 700; color: var(--accent-dk);
}
.podium__score small { font-size: 15px; color: var(--muted); font-weight: 400; }
.podium__desc { font-size: 15.5px; color: var(--ink-soft); }
.podium__row { font-size: 14.5px; color: var(--muted); }
.podium__row b { color: var(--ink); font-weight: 600; }
.podium__medal {
  position: absolute; top: 22px; right: 22px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface-2); color: var(--muted); display: grid; place-items: center;
  font-size: 13px; font-weight: 700; font-family: var(--sans);
}
.podium__item--first .podium__medal { background: var(--accent); color: #fff; }

/* ---------------------------------------------------------------- таблица рейтинга */

.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

.rating-table {
  width: 100%; border-collapse: collapse; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r); overflow: hidden;
  font-size: 15.5px;
}
.rating-table caption {
  caption-side: top; text-align: left; padding: 0 0 14px; color: var(--muted); font-size: 14.5px;
}
.rating-table th, .rating-table td {
  padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.rating-table thead th {
  background: var(--surface-2); font-family: var(--sans); font-size: 13px;
  text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700;
  position: sticky; top: 0; z-index: 2;
}
.rating-table tbody tr:last-child td { border-bottom: 0; }
.rating-table tbody tr:hover { background: #fcfbf9; }
.rating-table .c-rank { width: 62px; font-family: var(--serif); font-size: 19px; font-weight: 700; color: var(--muted); }
.rating-table .c-name { min-width: 190px; font-weight: 600; }
.rating-table .c-score { width: 92px; white-space: nowrap; }
.rating-table .c-score b { font-family: var(--serif); font-size: 20px; color: var(--accent-dk); }
.rating-table tr.is-top .c-rank { color: var(--accent); }
.rating-table tr.is-top { background: #f6fbfa; }
.rating-table td .sub { display: block; color: var(--muted); font-size: 13.5px; font-weight: 400; margin-top: 3px; }

@media (max-width: 760px) {
  /* таблица превращается в карточки — горизонтальной прокрутки страницы нет */
  .rating-table, .rating-table tbody, .rating-table tr, .rating-table td { display: block; width: 100%; }
  .rating-table thead { display: none; }
  .rating-table { border: 0; background: transparent; }
  .rating-table tr {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
    padding: 16px 18px; margin-bottom: 14px; box-shadow: var(--shadow-sm);
  }
  .rating-table td { border: 0; padding: 0 0 9px; }
  .rating-table td:last-child { padding-bottom: 0; }
  .rating-table td::before {
    content: attr(data-label) ": ";
    color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em;
    display: block; margin-bottom: 3px;
  }
  .rating-table .c-rank { font-size: 16px; color: var(--accent); }
  .rating-table .c-score { display: flex; align-items: baseline; gap: 8px; }
  .rating-table .c-score::before { margin-bottom: 0; }
}

/* ---------------------------------------------------------------- подробные карточки топ-5 */

.detail {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 26px;
}
.detail + .detail { margin-top: 18px; }
.detail__rank {
  font-family: var(--serif); font-weight: 700; color: var(--accent);
  font-size: 15px; letter-spacing: .04em;
}
.detail__score { font-family: var(--serif); font-size: 32px; font-weight: 700; color: var(--accent-dk); line-height: 1.1; }
.detail__score small { display: block; font-size: 13px; color: var(--muted); font-weight: 400; font-family: var(--sans); }
.detail__body h3 { font-size: 26px; margin-bottom: 6px; }
.detail__spec { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.detail__body p { color: var(--ink-soft); }
.detail__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 20px; }
.detail__col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 10px; }
.detail__col ul { margin: 0; padding-left: 20px; }
.detail__col li { margin-bottom: 8px; color: var(--ink-soft); font-size: 15.5px; }
.detail__col li:last-child { margin-bottom: 0; }
.detail__facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.detail__comment {
  margin-top: 20px; background: var(--surface-2); border-radius: var(--r-sm);
  padding: 16px 18px; font-size: 15.5px; color: var(--ink-soft);
}
.detail__comment b { color: var(--ink); }

@media (max-width: 760px) {
  .detail { grid-template-columns: 1fr; gap: 16px; padding: 22px; }
  .detail__cols { grid-template-columns: 1fr; gap: 18px; }
  .detail__head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
}

/* ---------------------------------------------------------------- компактные карточки */

.mini {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: 20px; display: flex; flex-direction: column; gap: 9px; box-shadow: var(--shadow-sm);
}
.mini__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mini__rank { font-family: var(--serif); font-size: 15px; font-weight: 700; color: var(--muted); }
.mini__score { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--accent-dk); }
.mini__name { font-family: var(--serif); font-size: 20px; font-weight: 700; }
.mini p { font-size: 15px; color: var(--ink-soft); margin: 0; }
.mini__row { font-size: 14px; color: var(--muted); }
.mini__row b { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------- критерии (методология) */

.crit { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.crit__item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.crit__top { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.crit__name { font-family: var(--serif); font-size: 19px; font-weight: 700; }
.crit__weight {
  font-family: var(--serif); font-size: 21px; font-weight: 700; color: var(--accent);
  white-space: nowrap;
}
.crit__bar { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin: 0 0 14px; }
.crit__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent) 0%, #57a9a5 100%); }
.crit__item h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 14px 0 6px; }
.crit__item p { font-size: 15px; color: var(--ink-soft); margin: 0; }

.weight-sum {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  background: var(--accent-bg); border: 1px solid #cfe4e2; border-radius: var(--r);
  padding: 16px 20px; margin-bottom: 24px; font-size: 15.5px; color: var(--accent-dk);
}

/* ---------------------------------------------------------------- источники */

.sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sources li {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 16px 18px;
}
.sources b { display: block; font-weight: 600; }
.sources a { word-break: break-word; }
.sources span { display: block; color: var(--muted); font-size: 14.5px; margin-top: 4px; }

/* ---------------------------------------------------------------- метки проверок */

.tag {
  display: inline-block; margin-top: 10px; padding: 5px 11px; border-radius: 7px;
  font-size: 12.5px; line-height: 1.4; font-weight: 600;
  border: 1px solid transparent;
}
.tag--advanced    { background: #e6f4ec; border-color: #c2e3d1; color: #1d6b41; }
.tag--mandatory   { background: #eef4e6; border-color: #d3e2bf; color: #4d6b1f; }
.tag--violation   { background: #fdeeee; border-color: #f2cfcf; color: #9b2f2f; }
.tag--old         { background: #eef2f7; border-color: #d3dde9; color: #3b5a7a; }
.tag--neutral     { background: var(--surface-2); border-color: var(--border-2); color: var(--muted); }

/* ---------------------------------------------------------------- FAQ */

.faq { display: grid; gap: 10px; margin: 0; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  overflow: hidden;
}
.faq details[open] { border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 600; font-size: 16.5px;
  position: relative; list-style: none; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg); transition: transform .18s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .faq__answer { padding: 0 20px 20px; color: var(--ink-soft); font-size: 16px; }
.faq .faq__answer p { margin-bottom: 12px; }
.faq .faq__answer p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- хлебные крошки */

.breadcrumbs { padding: 20px 0 0; }
.breadcrumbs ol {
  display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0;
  font-size: 14.5px; color: var(--muted);
}
.breadcrumbs li + li::before { content: "→"; margin-right: 8px; color: var(--border-2); }
.breadcrumbs [aria-current="page"] { color: var(--ink-soft); }

/* ---------------------------------------------------------------- форма */

.form-block {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 30px; box-shadow: var(--shadow-sm);
}
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.form__field { display: flex; flex-direction: column; gap: 7px; }
.form__field--full { grid-column: 1 / -1; }
.form label { font-size: 14.5px; font-weight: 600; color: var(--ink-soft); }
.form input, .form textarea {
  font-family: var(--sans); font-size: 16px; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--border-2); border-radius: var(--r-sm);
  background: #fff; width: 100%;
}
.form textarea { min-height: 118px; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--accent); outline: 3px solid var(--accent-bg); outline-offset: 0; }
.form__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form__note { font-size: 13.5px; color: var(--muted); margin: 0; }
.form__status { grid-column: 1 / -1; font-size: 15px; color: var(--accent-dk); margin: 0; }

@media (max-width: 640px) {
  .form { grid-template-columns: 1fr; }
  .form-block { padding: 22px; }
}

/* ---------------------------------------------------------------- списки-аргументы */

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; color: var(--ink-soft); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 16px; height: 9px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}
.checks li b { color: var(--ink); }

/* ---------------------------------------------------------------- дисклеймер и даты */

.note {
  background: var(--surface-2); border-radius: var(--r); padding: 22px 24px;
  font-size: 15px; color: var(--muted);
}
.note p + p { margin-top: 12px; }
.dates { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ---------------------------------------------------------------- подвал */

.site-footer {
  background: var(--ink); color: #cfd8da; margin-top: 0;
  padding: 52px 0 30px; font-size: 15px;
}
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 18px; font-family: var(--sans); font-weight: 700; margin-bottom: 12px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.site-footer p { color: #9fb0b4; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer li a { color: #cfd8da; }
.site-footer li a:hover { color: #fff; }
.site-footer__bottom {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  color: #9fb0b4; font-size: 13.5px;
}
@media (max-width: 820px) { .site-footer__grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------------------------------------------------------------- 404 */

.error-page { min-height: 62vh; display: grid; place-items: center; padding: 60px 0; }
.error-page__inner { text-align: center; max-width: 620px; }
.error-page__code {
  font-family: var(--serif); font-size: clamp(64px, 14vw, 128px); font-weight: 700;
  color: var(--accent-bg); line-height: 1; margin-bottom: 6px;
}
.error-page__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }

/* ---------------------------------------------------------------- полезные утилиты */

.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.muted { color: var(--muted); }
.small { font-size: 14.5px; }

@media (max-width: 680px) {
  .block { padding: 46px 0; }
  .block--tight { padding: 34px 0; }
}

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