@font-face{font-family:'Golos Text';font-style:normal;font-weight:400 900;font-display:swap;src:url(/assets/fonts/Golos-Text-normal-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Golos Text';font-style:normal;font-weight:400 900;font-display:swap;src:url(/assets/fonts/Golos-Text-normal-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Lora';font-style:italic;font-weight:400 700;font-display:swap;src:url(/assets/fonts/Lora-italic-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Lora';font-style:italic;font-weight:400 700;font-display:swap;src:url(/assets/fonts/Lora-italic-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Lora';font-style:normal;font-weight:400 700;font-display:swap;src:url(/assets/fonts/Lora-normal-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Lora';font-style:normal;font-weight:400 700;font-display:swap;src:url(/assets/fonts/Lora-normal-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Golos Text';font-style:normal;font-weight:400 900;font-display:swap;src:url(/assets/fonts/Golos-Text-normal-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}

:root {
  --bg: #FCFBF8;
  --paper: #FBFAF6;
  --surface: #FFFFFF;
  --text: #1E1F1C;
  --text-soft: #3E3F3A;
  --muted: #66655F;
  --muted-strong: #5D5B55;
  --bronze: #8A5F35;
  --bronze-hover: #6B4724;
  --bronze-dark: #7A4F28;
  --bronze-light: #C49A5C;
  --bronze-pale: #E7D2B2;
  --bronze-tint: #F6EEE6;
  --green: #2F4A3A;
  --green-deep: #22382B;
  --green-tint: #EAF0EB;
  --green-mist: #DCE7DE;
  --line: #ECE8E1;
  --line-strong: #E2DCD0;
  --line-paper: #E9E4DA;
  --chip: #F2EFE9;
  --note: #F2EFE7;
  --font-body: 'Golos Text', system-ui, sans-serif;
  --font-head: 'Lora', Georgia, serif;
  --head-weight: 600;
  --head-ls: -0.01em;
  --gutter: 24px;
}

/* Две темы досок: главная (белая шапка, тёмный подвал) и бумажная (статья, зелёный подвал). */
body.theme-home {
  --page-bg: var(--bg);
  --header-bg: var(--surface);
  --header-line: var(--line);
  --footer-bg: #1E1F1C;
  --footer-text: #DAD7D0;
  --footer-link: #D9B98C;
}
body.theme-paper {
  --page-bg: var(--paper);
  --header-bg: var(--paper);
  --header-line: var(--line-paper);
  --footer-bg: var(--green-deep);
  --footer-text: var(--green-mist);
  --footer-link: var(--bronze-pale);
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }
  /* на телефоне шапка белая в обеих темах (Telefon-C) */
  body.theme-paper { --header-bg: var(--surface); --header-line: var(--line); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  overflow-wrap: break-word;
}
main { flex: 1 0 auto; }
img, svg { max-width: 100%; }
a { color: var(--bronze); }
a:hover { color: var(--bronze-hover); }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  letter-spacing: var(--head-ls);
  text-wrap: balance;
}
p { margin: 0; }
.container { max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }
.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-link {
  position: absolute; left: 12px; top: -64px; z-index: 100;
  padding: 10px 16px; border-radius: 12px; background: var(--green); color: #fff;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }
.section-title { font-size: 28px; line-height: 1.2; margin-bottom: 20px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* components/breadcrumbs.css */
.crumbs ol {
  display: flex; flex-wrap: wrap; gap: 2px 8px; margin: 0 0 16px; padding: 0; list-style: none;
  font-size: 14px; line-height: 1.4; color: var(--muted);
}
.crumbs--center ol { justify-content: center; }
.crumbs li { min-width: 0; max-width: 100%; }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--bronze-light); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--bronze-hover); text-decoration: underline; }
.crumbs [aria-current] { display: block; max-width: 36ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 720px) {
  .crumbs--center ol { justify-content: flex-start; }
  .crumbs ol { margin-bottom: 12px; font-size: 13px; }
  .crumbs [aria-current] { max-width: 24ch; }
}

/* в статье видим только путь «Главная › Рубрика»: длинное название уже в H1 (BreadcrumbList в разметке полный) */
.crumbs--center li:last-child { display: none; }

/* components/button.css */
.btn {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px;
  border-radius: 16px; font-size: 17px; text-decoration: none;
}
.btn--primary { background: var(--bronze); color: #fff; font-weight: 700; }
.btn--primary:hover { background: var(--bronze-hover); color: #fff; }
.btn--ghost { background: var(--surface); color: var(--text); border: 1px solid #DDD7CC; font-weight: 600; }
.btn--ghost:hover { color: var(--text); border-color: var(--bronze); }

/* components/callouts.css */
.kratko { margin: 0 0 48px; padding: 28px 30px; background: var(--green); color: #fff; border-radius: 24px; }
.kratko .kratko__title { margin: 0 0 10px; font-family: var(--font-head); font-size: 24px; font-style: italic; font-weight: 500; color: var(--bronze-pale); }
.kratko .kratko__body p { margin: 0 0 12px; font-size: 18px; line-height: 1.65; }
.kratko__body > :last-child { margin-bottom: 0; }
.kratko__body a { color: var(--bronze-pale); }

.pm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 0 0 16px; }
.pm { margin: 0 0 12px; padding: 16px 18px; border-radius: 16px; }
.pm-grid .pm { margin: 0; }
.pm--plus { background: var(--green-tint); }
.pm--minus { background: var(--bronze-tint); }
.pm .pm__title { margin: 0 0 8px; font-weight: 700; font-size: 16px; }
.pm--plus .pm__title { color: var(--green); }
.pm--minus .pm__title { color: var(--bronze-dark); }
div.pm ul { margin: 0; padding-left: 18px; font-size: 16px; line-height: 1.55; }
.pm li + li { margin-top: 4px; }

@media (max-width: 720px) {
  .kratko { margin-bottom: 28px; padding: 20px; border-radius: 20px; }
  .kratko .kratko__title { font-size: 18px; font-style: normal; font-weight: var(--head-weight); margin-bottom: 6px; }
  .kratko .kratko__body p { font-size: 17px; line-height: 1.6; }
  .pm { border-radius: 14px; padding: 14px 16px; }
  .pm .pm__title, div.pm ul { font-size: 15px; }
}

/* components/card.css */
.card {
  display: flex; flex-direction: column; gap: 12px; padding: 22px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 20px; text-decoration: none; color: var(--text);
}
.card:hover { color: var(--text); border-color: var(--bronze-light); }
.card__badge {
  align-self: flex-start; padding: 4px 10px; border-radius: 12px; font-size: 13px; font-weight: 600;
  background: var(--green-tint); color: var(--green);
}
.card__badge--bronze { background: var(--bronze-tint); color: var(--bronze-dark); }
.card__title { font-size: 19px; line-height: 1.3; }
.card__meta { font-size: 14px; color: var(--muted); }
/* «Читайте также»: бейдж превращается в строку, заголовок крупнее */
.card--related { gap: 10px; border-color: var(--line-paper); }
.card--related .card__badge { padding: 0; background: none; border-radius: 0; color: var(--green); }
.card--related .card__title { font-size: 22px; }
.card--related .card__meta { display: none; }

/* components/cookie.css */
.cookie {
  position: fixed; z-index: 50; left: 24px; bottom: 24px; max-width: 420px;
  padding: 18px 20px; background: var(--surface); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 20px; box-shadow: 0 12px 32px rgba(30, 31, 28, 0.14);
}
.cookie[hidden] { display: none; }
.cookie .cookie__text { margin: 0 0 14px; font-size: 15px; line-height: 1.55; hyphens: none; }
.cookie__text a { color: var(--bronze); }
.cookie__actions { display: flex; gap: 10px; }
.cookie__btn {
  flex: 1 1 0; min-height: 44px; padding: 0 16px; border-radius: 14px; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
}
.cookie__btn--yes { background: var(--bronze); color: #fff; border: 1px solid var(--bronze); }
.cookie__btn--yes:hover { background: var(--bronze-hover); border-color: var(--bronze-hover); }
.cookie__btn--no { background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); }
.cookie__btn--no:hover { border-color: var(--text-soft); }
@media (max-width: 720px) {
  .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; padding: 16px; border-radius: 18px; }
}

/* components/empty.css */
.empty {
  padding: 28px 24px; border: 1px dashed var(--line-strong); border-radius: 20px;
  background: var(--surface); color: var(--muted-strong); font-size: 17px; text-align: center;
}

/* components/footer.css */
.site-footer { background: var(--footer-bg); color: var(--footer-text); }
.site-footer__in {
  max-width: 1160px; margin: 0 auto; padding: 36px var(--gutter);
  display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; font-size: 14px;
}
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--footer-link); }
.site-footer a:hover { color: #fff; }

.site-footer__cookie {
  padding: 0; border: 0; background: none; font: inherit; color: var(--footer-link); cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.site-footer__cookie:hover { color: #fff; }

.site-footer__codes { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter) 16px; font-size: 12px; opacity: 0.7; }

/* components/header.css */
.site-header { background: var(--header-bg); border-bottom: 1px solid var(--header-line); }
.site-header__in {
  max-width: 1160px; margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text);
  font-family: var(--font-head); font-size: 21px; font-weight: var(--head-weight); letter-spacing: var(--head-ls);
}
.brand:hover { color: var(--text); }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand em { font-style: italic; color: var(--bronze); }

.nav { display: flex; gap: 4px; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.nav a { padding: 10px 14px; border-radius: 20px; color: var(--text); text-decoration: none; }
.nav a:hover { background: var(--chip); color: var(--text); }
.nav a[aria-current] { color: var(--green); font-weight: 700; }

.menu { display: none; position: relative; }
.menu summary {
  list-style: none; width: 44px; height: 44px; border-radius: 22px; background: var(--chip);
  display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text);
}
.menu summary::-webkit-details-marker { display: none; }
.menu__close, .menu[open] .menu__open { display: none; }
.menu[open] .menu__close { display: block; }
.menu__panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 250px;
  display: flex; flex-direction: column; padding: 8px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 24px rgba(30, 31, 28, 0.12);
}
.menu__panel a { padding: 12px 14px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 16px; }
.menu__panel a:hover { background: var(--chip); color: var(--text); }
.menu__panel hr { width: 100%; margin: 6px 0; border: 0; border-top: 1px solid var(--line); }

.chips { display: none; }

/* Бумажная шапка доски C3: крупнее, ссылки без плашек */
@media (min-width: 721px) {
  .site-header--paper .site-header__in { max-width: 1120px; padding-block: 16px; }
  .site-header--paper .brand { font-size: 27px; font-weight: 700; }
  .site-header--paper .brand__mark { width: 36px; height: 36px; }
  .site-header--paper .brand em { font-weight: 500; }
  .site-header--paper .nav { gap: 22px; }
  .site-header--paper .nav a { padding: 0; border-radius: 0; }
  .site-header--paper .nav a:hover { background: none; color: var(--bronze-hover); }
}

@media (max-width: 720px) {
  .site-header__in { padding-block: 10px; flex-wrap: nowrap; }
  .brand { font-size: 18px; gap: 8px; }
  .brand__mark { width: 32px; height: 32px; }
  .nav { display: none; }
  .menu { display: block; }
  .chips {
    display: flex; gap: 8px; padding: 12px var(--gutter); overflow-x: auto; white-space: nowrap;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chips__item {
    flex: none; padding: 10px 14px; border-radius: 20px; background: var(--surface);
    border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 14px;
  }
  .chips__item--active { background: var(--green); border-color: var(--green); color: #fff; }
  .chips__item--active:hover { color: #fff; }
}

/* components/offer.css */
.offer-card {
  margin: 0 0 56px; padding: clamp(20px, 5vw, 32px); background: var(--surface);
  border: 1px solid var(--line-paper); border-radius: 24px;
}
.offer-card .offer-card__kicker { margin: 0 0 4px; font-family: var(--font-head); font-style: italic; font-size: 17px; color: var(--bronze); }
.offer-card .offer-card__title { margin: 0 0 20px; font-size: 30px; line-height: 1.2; }
.offer-card .offer-card__text { margin: 0 0 16px; font-size: 16px; line-height: 1.6; }
.offer-card__btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 24px;
  background: var(--green); color: #fff; border-radius: 28px; text-decoration: none; font-size: 18px; font-weight: 600;
}
.offer-card__btn:hover { background: var(--green-deep); color: #fff; }
/* Маркировка: мелко и приглушённо, но контраст не ниже 4.5:1 (#66655F на белом около 5.7:1) */
.offer-card .offer-card__ad { margin: 12px 0 0; font-size: 13px; line-height: 1.4; color: var(--muted); text-align: center; hyphens: none; }
.ad-mark { margin-left: 0.4em; font-size: 0.72em; line-height: 1.3; color: var(--muted); font-weight: 400; hyphens: none; white-space: normal; }
@media (max-width: 720px) {
  .offer-card { margin-bottom: 40px; border-radius: 22px; box-shadow: 0 8px 24px rgba(30, 31, 28, 0.06); }
  .offer-card .offer-card__title { font-size: 21px; margin-bottom: 14px; }
  .offer-card__btn { min-height: 54px; border-radius: 16px; background: var(--bronze); font-size: 17px; font-weight: 700; }
  .offer-card__btn:hover { background: var(--bronze-hover); }
  .offer-card .offer-card__ad { font-size: 12px; }
}

/* components/pager.css */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; margin-top: 40px; font-size: 16px; }
.pager__nums { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pager__nums a, .pager__nums span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px;
  border-radius: 12px; text-decoration: none; color: var(--text-soft); border: 1px solid var(--line-strong); background: var(--surface);
}
.pager__nums a:hover { border-color: var(--bronze-light); color: var(--bronze-hover); }
.pager__nums [aria-current] { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }
.pager__step { font-weight: 600; text-decoration: none; }
.pager__step:hover { text-decoration: underline; }

/* components/prose.css */
/* Текст статьи и служебных страниц. Колонка 680px, всё широкое (таблицы) выходит за неё через grid. */
.prose {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 680px) minmax(0, 1fr);
  font-size: 19px; line-height: 1.7;
}
.prose > * { grid-column: 2; min-width: 0; }
/* без автопереносов по слогам (Стефан 13.10: «читать — сущий ад»); ровнее край даёт text-wrap: pretty */
.prose p, .prose li { hyphens: manual; -webkit-hyphens: manual; text-wrap: pretty; }
.prose p { margin: 0 0 24px; }
.prose > .lead { display: flow-root; font-size: 21px; line-height: 1.65; }
.prose h2 { margin: 48px 0 16px; font-size: 34px; line-height: 1.2; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin: 32px 0 12px; font-size: 26px; line-height: 1.25; }
.prose a { text-underline-offset: 3px; }
.prose ul { margin: 0 0 24px; padding-left: 1.3em; }
.prose ul li::marker { color: var(--bronze); }
.prose li + li { margin-top: 6px; }
.prose strong { font-weight: 700; }

/* Нумерованный список: строки с курсивным бронзовым номером */
.prose .steps { counter-reset: step; list-style: none; margin: 0 0 40px; padding: 0; border-top: 1px solid var(--line-strong); }
.prose .steps > li { counter-increment: step; display: flex; gap: 20px; margin: 0; padding: 18px 0; border-bottom: 1px solid var(--line-strong); }
.prose .steps > li::before {
  content: counter(step); flex: none; width: 40px; font-family: var(--font-head); font-style: italic;
  font-size: 30px; line-height: 1; color: var(--bronze);
}
.prose .steps__body { flex: 1; min-width: 0; font-size: 18px; line-height: 1.65; }
.prose .steps__body p { margin: 0; }

/* Цитата-вставка */
.prose .pull { margin: 0 0 56px; padding: 0 12px; text-align: center; }
.prose .pull__mark { display: block; font-family: var(--font-head); font-size: 72px; line-height: 0.6; color: var(--bronze-light); }
.prose .pull p { margin: 8px 0 0; font-family: var(--font-head); font-style: italic; font-size: 27px; line-height: 1.4; color: var(--green); hyphens: manual; }

/* Таблица: своя рамка, прокручивается внутри неё, страница не уезжает */
.prose .table-wrap {
  grid-column: 1 / -1; justify-self: center; width: 100%; max-width: 880px; margin: 0 0 56px;
  overflow-x: auto; background: var(--surface); border: 1px solid var(--line-paper); border-radius: 20px;
}
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.prose table:has(th:nth-child(4)) { min-width: 640px; }
.prose th {
  padding: 16px 18px; text-align: left; font-family: var(--font-head); font-style: italic;
  font-size: 16px; font-weight: 600; color: var(--bronze);
}
.prose td { padding: 16px 18px; border-top: 1px solid var(--line-paper); vertical-align: top; }
.prose td:first-child { font-weight: 700; }
/* цифры в ячейках не переносятся: таблица листается вбок, переносится только первая колонка с описанием */
.prose td, .prose th { white-space: nowrap; }
.prose td:first-child, .prose th:first-child { white-space: normal; min-width: 9.5em; }
.prose td p, .prose th p { margin: 0; }

/* FAQ */
.prose .faq { margin: 0; padding: 20px 0; border-top: 1px solid var(--line-strong); }
.prose .faq:last-of-type { border-bottom: 1px solid var(--line-strong); margin-bottom: 56px; }
.prose .faq summary { cursor: pointer; font-size: 18px; font-weight: 600; line-height: 1.4; }
.prose .faq__a { margin-top: 10px; font-size: 17px; line-height: 1.7; }
.prose .faq__a p { margin: 0 0 12px; }
.prose .faq__a > :last-child { margin-bottom: 0; }

@media (max-width: 720px) {
  .prose { font-size: 18px; line-height: 1.65; }
  .prose p { margin-bottom: 18px; }
  .prose > .lead { font-size: 18px; line-height: 1.6; font-weight: 500; }
  .prose h2 { margin: 36px 0 12px; font-size: 25px; line-height: 1.22; }
  .prose h3 { font-size: 21px; }
  /* шаги превращаются в карточки с круглым номером (Telefon-C) */
  .prose .steps { border-top: 0; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
  .prose .steps > li { gap: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
  .prose .steps > li::before {
    width: 36px; height: 36px; border-radius: 18px; background: var(--bronze-tint); display: flex;
    align-items: center; justify-content: center; font-style: normal; font-weight: 600; font-size: 16px;
  }
  .prose .steps__body { font-size: 17px; line-height: 1.55; }
  .prose .pull { margin-bottom: 36px; }
  .prose .pull p { font-size: 22px; }
  .prose .table-wrap { margin-bottom: 36px; border-radius: 16px; }
  .prose .faq:last-of-type { margin-bottom: 40px; }
}

/* components/rubric_tile.css */
.tile {
  display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 20px; text-decoration: none; color: var(--text);
}
.tile:hover { color: var(--text); border-color: var(--bronze-light); }
.tile__icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.tile__icon--green { background: var(--green-tint); color: var(--green); }
.tile__icon--bronze { background: var(--bronze-tint); color: var(--bronze-dark); }
.tile__name { font-size: 17px; font-weight: 700; }
.tile__count { font-size: 14px; color: var(--muted); }

/* pages/404.css */
.not-found { max-width: 680px; margin: 0 auto; padding: 72px var(--gutter) 96px; }
.not-found h1 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.15; margin-bottom: 16px; }
.not-found p { margin-bottom: 28px; font-size: 19px; line-height: 1.6; color: var(--text-soft); }

/* pages/article.css */
.article-page { padding: 56px var(--gutter) 96px; }
.article-page__top { display: flex; flex-direction: column; }
.art-head { max-width: 820px; margin: 0 auto 40px; text-align: center; }
.art-head__badge {
  display: inline-block; padding: 6px 14px; border-radius: 14px; background: var(--green-tint);
  color: var(--green); font-size: 14px; font-weight: 600; text-decoration: none;
}
.art-head__badge:hover { color: var(--green-deep); }
.art-head h1 { margin: 20px 0 18px; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.12; letter-spacing: -0.015em; }
.art-head h1 em { font-style: italic; font-weight: 500; color: var(--bronze); }
.art-head__meta { font-size: 15px; color: var(--muted); }
.art-head__meta a { color: inherit; text-decoration-color: var(--bronze-light); text-underline-offset: 3px; }
.art-head__meta a:hover { color: var(--bronze-hover); }
.art-hero { max-width: 980px; margin: 0 auto 48px; }
.art-hero img { display: block; width: 100%; height: auto; border-radius: 28px; }
.art-hero figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center; }

.related { max-width: 1120px; margin: 0 auto; padding-top: 40px; border-top: 1px solid var(--line-strong); }
.related__title { margin: 0 0 20px; font-family: var(--font-head); font-size: 30px; font-weight: 600; }
.related__title em { font-style: italic; font-weight: 500; color: var(--bronze); }
.related__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }

/* Полоса прогресса чтения: только телефон и только где есть scroll-driven анимации, без JS */
.read-progress { display: none; }
@supports (animation-timeline: scroll()) {
  @media (max-width: 720px) {
    .read-progress { display: block; position: sticky; top: 0; z-index: 20; height: 3px; background: var(--line); }
    .read-progress::before {
      content: ""; display: block; height: 100%; background: var(--bronze); transform-origin: 0 50%;
      transform: scaleX(0); animation: read-progress linear both; animation-timeline: scroll(root);
    }
  }
}
@keyframes read-progress { to { transform: scaleX(1); } }

@media (max-width: 720px) {
  .article-page { padding-top: 8px; padding-bottom: 64px; }
  /* телефон: картинка сверху, заголовок слева, бейдж рубрики заменяют чипсы */
  .article-page__top { display: flex; flex-direction: column; }
  .art-hero { order: -1; margin: 8px 0 20px; }
  .art-hero img { border-radius: 20px; }
  .art-hero figcaption { display: none; }
  .art-head { margin-bottom: 18px; text-align: left; }
  .art-head__badge { display: none; }
  .art-head h1 { margin: 0 0 12px; font-size: 30px; line-height: 1.18; letter-spacing: var(--head-ls); }
  .art-head h1 em { font-weight: inherit; }
  .art-head__meta { font-size: 14px; }
  .related { padding-top: 28px; }
  .related__title { font-size: 24px; }
}

/* pages/home.css */
.home { max-width: 1160px; margin: 0 auto; padding: 48px var(--gutter) 96px; }
.home-block { margin: 0 0 64px; }
.home-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; margin: 0 0 64px; }
.home-hero__text { flex: 1 1 460px; min-width: 0; }
.home-hero h1 { margin: 0 0 20px; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.1; }
.home-hero p { margin: 0 0 28px; font-size: 20px; line-height: 1.6; color: var(--text-soft); }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.home-hero__img { flex: 1 1 440px; min-width: 0; max-width: 100%; width: 560px; height: auto; border-radius: 28px; }
.home-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.home-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }

.featured {
  display: flex; flex-wrap: wrap; gap: 32px; align-items: center; margin: 0 0 64px;
  padding: clamp(20px, 3vw, 32px); background: var(--green); border-radius: 28px; color: #fff;
}
.featured__img { flex: 1 1 380px; min-width: 0; max-width: 100%; width: 480px; height: auto; border-radius: 20px; }
.featured__text { flex: 1 1 380px; min-width: 0; }
.featured__badge {
  display: inline-block; padding: 5px 10px; border-radius: 10px; background: var(--bronze-light);
  color: var(--text); font-size: 13px; font-weight: 700;
}
.featured h2 { margin: 14px 0; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; }
.featured p { margin: 0 0 20px; font-size: 18px; line-height: 1.6; color: var(--green-mist); }
.featured__link { display: inline-flex; align-items: center; gap: 8px; color: var(--bronze-pale); font-size: 17px; font-weight: 700; text-decoration: none; }
.featured__link:hover { color: #fff; }

.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.how__step { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.how__n { margin: 0 0 12px; font-family: var(--font-head); font-weight: var(--head-weight); font-size: 34px; line-height: 1; color: var(--bronze); }
.how__t { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.how__d { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-soft); }

@media (max-width: 720px) {
  .home { padding-top: 28px; padding-bottom: 64px; }
  .home-hero { gap: 28px; margin-bottom: 48px; }
  .home-hero__img { order: -1; }
  .home-hero p { font-size: 18px; }
  .home-block, .featured { margin-bottom: 48px; }
  .featured { border-radius: 22px; gap: 20px; }
}

/* pages/page.css */
.plain-page { padding: 56px var(--gutter) 96px; }
.plain-page > h1 { max-width: 680px; margin: 0 auto 28px; font-size: clamp(30px, 4.2vw, 44px); line-height: 1.15; }
@media (max-width: 720px) { .plain-page { padding-top: 28px; padding-bottom: 64px; } }

/* pages/rubric.css */
.rubric-page { max-width: 1160px; margin: 0 auto; padding: 48px var(--gutter) 96px; }
.rubric-page__head { margin: 0 0 32px; max-width: 760px; }
.rubric-page__head h1 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.12; }
.rubric-page__head p { margin-top: 14px; font-size: 19px; line-height: 1.6; color: var(--text-soft); }
.rubric-page__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
@media (max-width: 720px) { .rubric-page { padding-top: 24px; padding-bottom: 64px; } }
