:root {
  --color-primary: #1F3A6E;
  --color-accent: #0A41FF;
  --color-bg: #F4F6FB;
  --color-text: #24334C;
  --color-surface: #E7ECFA;
  --color-muted: #546177;
  --color-line: #C2CCDF;
  --font-heading: Onest;
  --font-text: Onest;
  --radius: 4px;
  --container: 1180px;
  --color-title: #1F3A6E;
  --color-button-text: #FFFFFF;
  --color-tool: #E1E8FF;
  --color-underlay: #B8C8FF;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3, p, figure {
  margin: 0;
}
h1, h2, h3 {
  color: var(--color-title);
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
}
h1 {
  font-size: 48px;
  letter-spacing: -0.045em;
}
h2 {
  font-size: 42px;
  letter-spacing: -0.035em;
}
h3 {
  font-size: 26px;
  letter-spacing: -0.025em;
}
p {
  max-width: 68ch;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
a:hover {
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
}
button, input {
  font: inherit;
}
button, label, a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 5px;
}
img {
  display: block;
  width: 100%;
  height: auto;
}
svg {
  display: block;
  flex-shrink: 0;
}
ul, ol {
  margin: 0;
  padding: 0;
}
[hidden] {
  display: none !important;
}
.container {
  width: min(var(--container), calc(100% - 64px));
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  padding: 12px 20px;
  border: 1px solid var(--color-line);
  background: var(--color-bg);
  color: var(--color-title);
  transform: translateY(-180%);
}
.skip-link:focus {
  transform: translateY(0);
}
#main:focus {
  outline: none;
}
.site-header {
  border-bottom: 1px solid var(--color-line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 112px;
}
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
  color: var(--color-title);
}
.logo-text {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.2;
}
.logo-text span {
  display: block;
  margin-top: 6px;
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.header-menu {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 22px;
}
.main-nav {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 32px;
  font-size: 14px;
  line-height: 1.5;
}
.main-nav a, .footer-nav a {
  text-decoration: none;
}
.main-nav a:hover, .footer-nav a:hover {
  text-decoration: underline;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius);
  color: var(--color-title);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}
.btn:hover {
  background: var(--color-surface);
  text-decoration: none;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-button-text);
}
.btn-primary:hover {
  background: #294D91;
  color: #FFFFFF;
}
.header-tool {
  flex-shrink: 0;
  padding-inline: 14px;
  font-size: 14px;
}
.menu-toggle, .menu-label {
  display: none;
}
.menu-icon {
  position: relative;
  display: block;
  width: 22px;
  height: 12px;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}
.menu-icon::after {
  position: absolute;
  top: 4px;
  left: 0;
  width: 22px;
  height: 1px;
  background: currentColor;
  content: "";
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding-block: 84px 100px;
}
.hero-copy, .hero-visual {
  min-width: 0;
}
.eyebrow {
  margin-bottom: 22px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-lead {
  margin-top: 26px;
  font-size: 19px;
}
.quick-start {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--color-line);
}
.small-heading {
  margin-bottom: 12px;
  color: var(--color-muted);
  font-size: 14px;
}
.quick-start ul {
  display: grid;
  gap: 12px;
  list-style: none;
}
.quick-start a {
  display: block;
  color: var(--color-title);
  font-size: 15px;
  line-height: 1.55;
}
.hero-visual {
  padding: 16px 10px 0;
}
.cover-frame {
  position: relative;
  isolation: isolate;
}
.cover-frame::before {
  position: absolute;
  z-index: -1;
  inset: -14px 3px;
  background: var(--color-underlay);
  transform: rotate(-4deg);
  content: "";
}
.cover-frame img {
  min-height: 320px;
  object-fit: cover;
  background: var(--color-surface);
}
figcaption {
  margin-top: 14px;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.6;
}
.cover-figure figcaption {
  margin-top: 28px;
}
.caption-mark {
  margin-right: 6px;
  color: var(--color-title);
}
.field-note {
  margin-top: 38px;
  padding-left: 22px;
  border-left: 1px solid var(--color-accent);
}
.note-label {
  color: var(--color-title);
  font-size: 13px;
  font-weight: 600;
}
.field-note p {
  margin-top: 8px;
  color: var(--color-muted);
  font-size: 16px;
}
.tool-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 44px 48px;
  border-block: 1px solid var(--color-accent);
  background: var(--color-tool);
}
.tool-intro h2 {
  margin-bottom: 22px;
}
.tool-details > p:first-child {
  font-weight: 600;
}
.tool-list {
  display: grid;
  gap: 8px;
  margin-block: 16px;
  padding-left: 20px;
  font-size: 16px;
}
.tool-list li::marker {
  color: var(--color-title);
}
.tool-caution {
  margin-bottom: 24px;
  color: var(--color-muted);
  font-size: 13px;
}
.sections-section, .fresh-section {
  margin-top: 116px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 46px;
}
.section-heading .eyebrow {
  margin-bottom: 15px;
}
.section-heading > p {
  max-width: 30ch;
  color: var(--color-muted);
  font-size: 16px;
}
.section-list {
  list-style: none;
  border-top: 1px solid var(--color-line);
}
.section-row {
  display: grid;
  grid-template-columns: 70px 1fr 1.15fr;
  gap: 32px;
  padding-block: 38px;
  border-bottom: 1px solid var(--color-line);
}
.section-number {
  color: var(--color-accent);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.06em;
}
.section-summary h3 {
  font-size: 30px;
}
.section-summary h3 a {
  text-decoration: none;
}
.section-summary p {
  max-width: 33ch;
  margin-top: 15px;
  color: var(--color-muted);
  font-size: 16px;
}
.article-links {
  display: grid;
  align-content: start;
  gap: 15px;
  list-style: none;
}
.article-links a {
  font-size: 16px;
  line-height: 1.5;
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
}
.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-block: 28px 32px;
  border-top: 1px solid var(--color-line);
}
.card-featured {
  padding-top: 0;
  border-top: 0;
}
.card figure {
  margin-bottom: 26px;
}
.card img {
  background: var(--color-surface);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 15px;
  color: var(--color-muted);
  font-size: 12px;
}
.card-meta a {
  color: var(--color-title);
  text-decoration: none;
}
.card h3 {
  margin-bottom: 24px;
  font-size: 25px;
  line-height: 1.35;
}
.card h3 a {
  text-decoration: none;
}
.card h3 a:hover {
  text-decoration: underline;
}
.card time {
  margin-top: auto;
  color: var(--color-muted);
  font-size: 12px;
}
.author-section {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-block: 84px 100px;
  padding-block: 32px;
  border-block: 1px solid var(--color-line);
}
.author-mark {
  color: var(--color-title);
}
.author-section h2 {
  margin-bottom: 12px;
  font-size: 24px;
}
.author-section p {
  color: var(--color-muted);
  font-size: 15px;
}
.text-link {
  flex-shrink: 0;
  margin-left: auto;
  color: var(--color-title);
  font-size: 15px;
}
.site-footer {
  padding-block: 54px 28px;
  border-top: 1px solid var(--color-line);
  background: var(--color-surface);
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
}
.footer-title {
  color: var(--color-title);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.035em;
}
.footer-brand > p + p {
  margin-top: 12px;
  color: var(--color-muted);
  font-size: 16px;
}
.domain {
  display: block;
  margin-top: 26px;
  color: var(--color-muted);
  font-size: 13px;
}
.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
}
.footer-column h2 {
  margin-bottom: 8px;
  font-size: 16px;
  letter-spacing: 0;
}
.footer-copy {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
  font-size: 12px;
}
.cookie-notice {
  position: fixed;
  z-index: 10;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(560px, calc(100% - 40px));
  padding: 18px 22px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-bg);
  font-size: 13px;
}
.btn-cookie {
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius);
  background: var(--color-primary);
  color: var(--color-button-text);
  font-size: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
  --color-accent: #7594FF;
  --color-primary: #7698D8;
    --color-bg: #101A2B;
    --color-text: #E0E7F4;
    --color-surface: #19273E;
    --color-muted: #AFBED6;
    --color-line: #435470;
    --color-title: #C0D0FF;
    --color-tool: #1C2D4B;
    --color-underlay: #3B5599;
  }
  .header-tool {
    border-color: var(--color-line);
  }
}
@media (max-width: 950px) {
  .header-inner { gap: 20px; }
  .header-menu { gap: 16px; }
  .main-nav { gap: 32px; font-size: 13px; }
  .hero { gap: 36px; }
  .tool-panel { gap: 36px; padding: 36px; }
  .section-row { grid-template-columns: 52px 1fr 1.15fr; gap: 24px; }
  .author-section { flex-wrap: wrap; }
}
@media (max-width: 950px) {
  .header-inner { position: relative; flex-wrap: wrap; justify-content: space-between; min-height: 88px; padding-block: 20px; }
  .menu-toggle { position: absolute; display: block; width: 1px; height: 1px; margin: 0; opacity: 0; }
  .menu-label { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px; color: var(--color-title); font-size: 14px; cursor: pointer; }
  .menu-toggle:focus-visible + .menu-label { outline: 3px solid var(--color-accent); outline-offset: 4px; }
  .menu-toggle:checked + .menu-label .menu-icon { border-bottom-color: transparent; }
  .menu-toggle:checked + .menu-label .menu-icon::after { transform: rotate(-30deg); }
  .header-menu { display: none; flex-basis: 100%; align-items: stretch; padding-top: 20px; border-top: 1px solid var(--color-line); }
  .menu-toggle:checked ~ .header-menu { display: flex; flex-direction: column; }
  .main-nav { flex-direction: column; gap: 32px; font-size: 16px; }
  .main-nav a {
  border-bottom: 2px solid transparent;
  border-bottom: 2px solid transparent; padding-block: 12px; }
  .header-tool { align-self: flex-start; }
  .hero { gap: 32px; padding-block: 60px 76px; }
  h1 { font-size: 40px; }
  h2 { font-size: 36px; }
  .hero-lead { font-size: 17px; }
  .cover-frame img { min-height: 270px; }
  .hero-visual { padding-inline: 8px; }
  .tool-panel { gap: 28px; padding: 30px; }
  .tool-intro h2 { font-size: 34px; }
  .tool-intro > p:last-child { font-size: 16px; }
  .section-row { grid-template-columns: 44px 1fr 1.15fr; gap: 20px; }
  .section-summary h3 { font-size: 25px; }
  .section-number { font-size: 34px; }
  .articles-grid { column-gap: 30px; }
  .card h3 { font-size: 23px; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 40px); }
  .logo-text { font-size: 24px; }
  .logo-text span { font-size: 10px; }
  .hero { grid-template-columns: 1fr; gap: 42px; padding-block: 46px 64px; }
  h1 { font-size: 38px; }
  h2 { font-size: 34px; }
  .eyebrow { font-size: 10px; letter-spacing: 0.08em; }
  .hero-lead { margin-top: 22px; }
  .quick-start { margin-top: 28px; }
  .hero-visual { padding-inline: 10px; }
  .cover-frame img { min-height: 0; }
  .field-note { margin-top: 24px; }
  .tool-panel { grid-template-columns: 1fr; gap: 24px; padding: 28px 20px; }
  .tool-panel .btn { width: 100%; gap: 10px; }
  .sections-section, .fresh-section { margin-top: 72px; }
  .section-heading { align-items: start; flex-direction: column; gap: 18px; margin-bottom: 30px; }
  .section-heading > p { max-width: 36ch; }
  .section-row { grid-template-columns: 36px minmax(0, 1fr); gap: 18px; padding-block: 28px; }
  .section-summary h3 { font-size: 27px; }
  .section-number { font-size: 30px; }
  .article-links { grid-column: 2; gap: 16px; }
  .article-links a { font-size: 15px; }
  .articles-grid { grid-template-columns: 1fr; gap: 0; }
  .card { padding-block: 26px; }
  .card-featured { padding-top: 0; padding-bottom: 36px; }
  .author-section { gap: 20px; margin-block: 48px 64px; }
  .author-section > div:nth-child(2) { flex-basis: 100%; }
  .text-link { margin-left: 0; }
  .site-footer { padding-top: 36px; }
  .footer-nav { grid-template-columns: 1fr; gap: 28px; }
  .footer-copy { flex-direction: column; gap: 12px; margin-top: 32px; }
  .cookie-notice { right: 12px; bottom: 12px; width: calc(100% - 24px); gap: 12px; padding: 14px; font-size: 12px; }
  .cookie-notice p { overflow-wrap: anywhere; }
  .btn-cookie { flex-shrink: 0; padding-inline: 10px; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .btn-cookie { transition: background-color 160ms ease; }
}
@media print {
  .menu-label, .header-menu, .cookie-notice, .skip-link { display: none; }
  body { background: white; color: black; }
  .container { width: 100%; }
  .hero { padding-block: 30px; }
  .sections-section, .fresh-section { margin-top: 40px; }
  .card, .section-row, figure { break-inside: avoid; }
}

/* ===== каркас главной ===== */
.lh { padding-bottom: 56px; }
.lh-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.lh-eyebrow { margin: 0 0 14px; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-primary); }
.lh-title { margin: 0 0 16px; font-family: var(--font-heading); font-weight: 700; font-size: clamp(28px, 3.2vw, 46px); line-height: 1.08; letter-spacing: -.02em; color: var(--color-text); text-wrap: balance; max-width: 23ch; }
.lh-lead { margin: 0 0 22px; font-size: clamp(15.5px, 1.15vw, 17.5px); line-height: 1.6; color: var(--muted); max-width: 56ch; }
.lh-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.lh-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: calc(var(--radius, 8px) * 1.2); background: var(--color-primary); color: var(--color-bg); font: inherit; font-weight: 650; font-size: 15.5px; text-decoration: none; border: 1px solid var(--color-primary); }
.lh-btn:hover, .lh-btn:focus-visible { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-bg); }
.lh-btn--ghost { background: transparent; color: var(--color-text); border-color: var(--line); }
.lh-btn--ghost:hover, .lh-btn--ghost:focus-visible { background: var(--surface); color: var(--color-text); border-color: var(--color-primary); }
.lh-figure { margin: 0; border-radius: calc(var(--radius, 8px) * 1.4); overflow: hidden; background: var(--surface); }
.lh-figure img { display: block; width: 100%; height: 100%; max-height: 320px; aspect-ratio: 16 / 10; object-fit: cover; }
.lh-figure figcaption { padding: 10px 14px 12px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }

/* ---- 1. разворот: текст слева, фото справа ---- */
.lh-hero--split .lh-hero-in { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); gap: clamp(22px, 3vw, 44px); align-items: center; padding: clamp(24px, 2.6vw, 38px) 0 26px; }
.lh-hero--split .lh-title { max-width: 18ch; }
.lh-hero--split .lh-figure img { max-height: 300px; aspect-ratio: 16 / 11; }

/* ---- 2. центр без фото ---- */
.lh-hero--centered .lh-hero-in { padding: clamp(30px, 3.6vw, 52px) 0 30px; text-align: center; }
.lh-hero--centered .lh-title { margin-inline: auto; max-width: 22ch; font-size: clamp(29px, 3.6vw, 48px); }
.lh-hero--centered .lh-lead { margin-inline: auto; }
.lh-hero--centered .lh-actions { justify-content: center; }

/* ---- 3. широкий баннер, текст поверх фото ---- */
.lh-hero--banner .lh-hero-in { position: relative; margin: 20px 0 30px; border-radius: calc(var(--radius, 8px) * 1.6); overflow: hidden; background: var(--color-primary); }
.lh-hero--banner img { display: block; width: 100%; aspect-ratio: 21 / 7; max-height: 300px; object-fit: cover; }
.lh-hero--banner .lh-hero-copy { position: absolute; inset: auto 0 0 0; padding: clamp(18px, 3vw, 34px); background-color: rgba(10, 14, 18, .62); background-image: linear-gradient(to top, rgba(10,14,18,.55) 0%, rgba(10,14,18,.25) 60%, rgba(10,14,18,0) 100%); color: #fff; }
.lh-hero--banner .lh-title { color: #fff; font-size: clamp(26px, 3.4vw, 46px); margin-bottom: 12px; max-width: 26ch; }
.lh-hero--banner .lh-lead { color: rgba(255,255,255,.92); margin-bottom: 16px; max-width: 50ch; font-size: 16.5px; }
.lh-hero--banner .lh-eyebrow { color: rgba(255,255,255,.9); }
.lh-hero--banner .lh-hero-copy .lh-btn, .lh-hero--banner .lh-actions .lh-btn { background: #fff; color: #16130f; border-color: #fff; }
.lh-hero--banner .lh-hero-copy .lh-btn--ghost, .lh-hero--banner .lh-actions .lh-btn--ghost { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.7); }

/* ---- 4. боковая колонка ---- */
.lh-hero--side .lh-hero-in { display: grid; grid-template-columns: 220px minmax(0, 1fr) 320px; gap: clamp(20px, 2.6vw, 38px); padding: clamp(22px, 2.4vw, 34px) 0 26px; align-items: start; }
.lh-side-nav { position: sticky; top: 84px; display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: calc(var(--radius, 8px) * 1.2); background: var(--surface); }
.lh-side-nav p { margin: 0 0 8px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lh-side-nav a { display: block; padding: 7px 8px; border-radius: 6px; font-size: 14.5px; text-decoration: none; color: var(--color-text); }
.lh-side-nav a:hover, .lh-side-nav a:focus-visible { background: var(--color-primary); color: var(--color-bg); }
.lh-hero--side .lh-figure img { max-height: 210px; aspect-ratio: 4 / 3; }

/* ---- 5. журнал ---- */
.lh-hero--mag .lh-hero-in { padding: clamp(22px, 2vw, 28px) 0 2px; border-bottom: 1px solid var(--line); }
.lh-hero--mag .lh-title { max-width: 30ch; font-size: clamp(28px, 3.2vw, 44px); letter-spacing: -.025em; margin-bottom: 12px; }
.lh-hero--mag .lh-lead { max-width: 62ch; font-size: 18.5px; color: var(--color-text); }
.lh-hero--mag .lh-figure { margin: 14px 0 0; border-radius: 0; }
.lh-hero--mag .lh-figure img { max-height: 176px; aspect-ratio: 21 / 5; }

/* ---- 6. индекс ---- */
.lh-hero--index .lh-hero-in { padding: clamp(24px, 2.6vw, 36px) 0 24px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(20px, 3vw, 44px); align-items: end; }
.lh-hero--index .lh-title { max-width: 20ch; }
.lh-toolcard { padding: 20px; border-radius: calc(var(--radius, 8px) * 1.2); background: var(--color-primary); color: var(--color-bg); }
.lh-toolcard p { margin: 0 0 6px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.lh-toolcard h2 { margin: 0 0 10px; font-family: var(--font-heading); font-size: 21px; line-height: 1.2; color: inherit; }
.lh-toolcard span { display: block; font-size: 14.5px; line-height: 1.5; opacity: .92; margin-bottom: 14px; }
.lh-toolcard .lh-btn { background: var(--color-bg); color: var(--color-primary); border-color: var(--color-bg); }

/* ---- полоса цифр ---- */
.lh-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0 0 44px; background: var(--line); border: 1px solid var(--line); border-radius: calc(var(--radius, 8px) * 1.2); overflow: hidden; }
.lh-stat { padding: 18px 20px; background: var(--color-bg); }
.lh-stat b { display: block; font-family: var(--font-heading); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.1; color: var(--color-primary); }
.lh-stat span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--muted); }

/* ---- блоки ---- */
.lh-block { margin: 0 0 52px; }
.lh-block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.lh-block-head h2 { margin: 0; font-family: var(--font-heading); font-size: clamp(21px, 2.2vw, 28px); line-height: 1.2; }
.lh-block-head a { font-size: 14px; color: var(--color-primary); text-decoration: none; }
.lh-block-head a:hover { text-decoration: underline; }

/* разделы: строки */
.lh-rows { display: grid; gap: 0; border-top: 1px solid var(--line); }
.lh-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.lh-row .lh-num { font-family: var(--font-heading); font-size: 15px; color: var(--color-primary); padding-top: 4px; }
.lh-row h3 { margin: 0 0 6px; font-family: var(--font-heading); font-size: 20px; line-height: 1.25; }
.lh-row h3 a { color: var(--color-text); text-decoration: none; }
.lh-row h3 a:hover { color: var(--color-primary); }
.lh-row p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.lh-row ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.lh-row ul a { font-size: 14.5px; color: color-mix(in srgb, var(--color-primary) 55%, var(--color-text)); text-decoration: none; }
.lh-row ul a:hover { text-decoration: underline; }

/* разделы: карточки */
.lh-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.lh-card { display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: calc(var(--radius, 8px) * 1.2); background: var(--surface); }
.lh-card h3 { margin: 0 0 8px; font-family: var(--font-heading); font-size: 19px; line-height: 1.25; }
.lh-card h3 a { color: var(--color-text); text-decoration: none; }
.lh-card h3 a:hover { color: var(--color-primary); }
.lh-card p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.lh-card ul { margin: auto 0 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.lh-card ul a { font-size: 14px; color: color-mix(in srgb, var(--color-primary) 55%, var(--color-text)); text-decoration: none; }
.lh-card ul a:hover { text-decoration: underline; }

/* разделы: таблица */
.lh-table { width: 100%; border-collapse: collapse; }
.lh-table th, .lh-table td { padding: 13px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.lh-table th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.lh-table td:first-child { width: 42%; }
.lh-table td:first-child a { font-family: var(--font-heading); font-size: 17px; color: var(--color-text); text-decoration: none; }
.lh-table td:first-child a:hover { color: var(--color-primary); }
.lh-table td:nth-child(2) { font-size: 14.5px; color: var(--muted); }
.lh-table td:last-child { text-align: right; white-space: nowrap; font-size: 14px; color: var(--muted); }

/* свежие материалы */
.lh-latest { display: grid; gap: 0; border-top: 1px solid var(--line); }
.lh-post { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 18px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.lh-post time, .lh-post .lh-post-sec { font-size: 13px; color: var(--muted); }
.lh-post h3 { margin: 0; font-family: var(--font-heading); font-size: 18px; line-height: 1.3; }
.lh-post h3 a { color: var(--color-text); text-decoration: none; }
.lh-post h3 a:hover { color: var(--color-primary); }
.lh-latest--cards { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; border: 0; }
.lh-latest--cards .lh-post { display: block; padding: 18px; border: 1px solid var(--line); border-radius: calc(var(--radius, 8px) * 1.2); background: var(--surface); }
.lh-latest--cards .lh-post .lh-post-sec { display: block; margin-bottom: 8px; }
.lh-latest--cards .lh-post h3 { font-size: 17px; }

/* быстрые ответы */
.lh-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.lh-quick article { padding: 18px 0 0; border-top: 2px solid var(--color-primary); }
.lh-quick h3 { margin: 0 0 8px; font-family: var(--font-heading); font-size: 18px; line-height: 1.28; }
.lh-quick h3 a { color: var(--color-text); text-decoration: none; }
.lh-quick h3 a:hover { color: var(--color-primary); }
.lh-quick p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }

/* калькулятор-полоса */
.lh-tool { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 22px 24px; margin: 0 0 46px; border: 1px solid var(--line); border-left: 4px solid var(--color-primary); border-radius: calc(var(--radius, 8px) * 1.1); background: var(--surface); }
.lh-tool h2 { margin: 0 0 6px; font-family: var(--font-heading); font-size: 20px; }
.lh-tool p { margin: 0; font-size: 14.8px; line-height: 1.5; color: var(--muted); max-width: 70ch; }

/* ---- архив раздела ---- */
.lh-archive-head { padding: 20px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.lh-archive-head h1 { margin: 0 0 10px; font-family: var(--font-heading); font-size: clamp(28px, 4vw, 46px); line-height: 1.1; max-width: 24ch; letter-spacing: -.015em; }
.lh-archive-head p { margin: 0; max-width: 64ch; color: var(--muted); font-size: 16.5px; line-height: 1.55; }
.lh-archive-count { margin-top: 12px !important; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; }

/* ===== адаптив ===== */
@media (max-width: 1000px) {
  .lh-hero--split .lh-hero-in, .lh-hero--index .lh-hero-in { grid-template-columns: minmax(0, 1fr); }
  .lh-hero--side .lh-hero-in { grid-template-columns: minmax(0, 1fr); }
  .lh-hero--side .lh-figure { order: 3; }
  .lh-hero--side .lh-side-nav { display: none; }
  .lh-hero--side .lh-figure img { max-height: 280px; }
  .lh-side-nav { position: static; order: 2; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .lh-side-nav p { grid-column: 1 / -1; }
  .lh-hero--side .lh-figure img { max-height: 300px; }
  .lh-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .lh-row { grid-template-columns: 40px minmax(0, 1fr); }
  .lh-row ul { grid-column: 2; margin-top: 8px; }
  .lh-stats { grid-template-columns: minmax(0, 1fr); }
  .lh-post { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .lh-post time { order: 2; }
  .lh-tool { grid-template-columns: minmax(0, 1fr); }
  .lh-figure img { max-height: 260px; }
  .lh-hero--banner img { aspect-ratio: 16 / 9; max-height: 240px; }
  .lh-hero--banner .lh-hero-copy { position: static; background: var(--color-primary); color: var(--color-bg); padding: 18px; }
  .lh-hero--banner .lh-title, .lh-hero--banner .lh-lead, .lh-hero--banner .lh-eyebrow { color: var(--color-bg); }
  .lh-hero--banner .lh-lead { color: var(--color-bg); opacity: .88; }
  .lh-hero--banner .lh-hero-copy .lh-btn { background: var(--color-bg); color: var(--color-primary); border-color: var(--color-bg); }
  .lh-hero--banner .lh-hero-copy .lh-btn--ghost { background: transparent; color: var(--color-bg); border-color: rgba(255,255,255,.55); }
  .lh-table thead { display: none; }
  .lh-table tr { display: grid; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .lh-table td { border: 0; padding: 2px 0; }
  .lh-table td:first-child { width: auto; }
  .lh-table td:last-child { text-align: left; }
  .lh-title { font-size: clamp(27px, 7.6vw, 38px); }
}

/* ---- контентный слой ---- */
:root { --muted: color-mix(in srgb, var(--color-text) 86%, var(--color-bg));
--line: var(--color-line, color-mix(in srgb, var(--color-text) 16%, transparent));
--surface: color-mix(in srgb, var(--color-text) 5%, var(--color-bg));
--tint: color-mix(in srgb, var(--color-primary) 8%, var(--color-bg));
--tint2: color-mix(in srgb, var(--color-accent) 16%, var(--color-bg));
}

.container { width: 100%; max-width: var(--container, 1180px); margin: 0 auto; padding: 0 20px; }
/* выдвижные меню и декоративные полосы не должны давать горизонтальный скролл */
html { overflow-x: clip; }
/* остатки чужих плашек согласия не должны перекрывать наши кнопки */
.cookie-banner, .cookie-consent, .cookie-notice, .cookie-popup, .consent-banner { display: none !important; }
/* кнопка в шапке: фон и текст из токенов темы, контраст не зависит от модели */
.header-tool, .nav-tool-link, .menu-cta, .header-cta,
header .btn, .site-header .btn, .header .btn, header a[class*="tool"] {
  background: var(--color-primary) !important;
  color: var(--color-bg) !important;
  border-color: var(--color-primary) !important;
}
.header-tool:hover, .nav-tool-link:hover, .menu-cta:hover, .header-cta:hover,
header .btn:hover, .site-header .btn:hover, .header .btn:hover, header a[class*="tool"]:hover {
  background: var(--color-accent) !important;
  border-color: var(--color-accent) !important;
  color: var(--color-bg) !important;
}
/* длинные слова не должны растягивать страницу на узком экране */
h1, h2, h3, h4, p, li, a, td, th, summary, figcaption, .breadcrumbs { overflow-wrap: break-word; }
@media (max-width: 420px) {
  .static-page h1, .post h1, .archive-head h1, .lh-archive-head h1 { font-size: clamp(23px, 7.4vw, 30px); hyphens: auto; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.breadcrumbs { margin: 22px 0 0; font-size: 14px; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.breadcrumbs a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.breadcrumbs a:hover, .breadcrumbs a:focus-visible { border-bottom-color: currentColor; }

.archive-head { padding: 26px 0 18px; }
.archive-head h1 { margin: 0 0 10px; font-family: var(--font-heading); font-size: clamp(28px, 4vw, 42px); line-height: 1.15; }
.archive-head p { margin: 0; max-width: 62ch; color: var(--muted); font-size: 17px; }
.archive-count { margin-top: 10px !important; font-size: 14px; letter-spacing: .02em; text-transform: uppercase; }

.post-list { display: grid; gap: 0; margin: 8px 0 48px; padding: 0; list-style: none; }
.post-item { display: block; padding: 18px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.post-item h2 { margin: 2px 0 6px; font-family: var(--font-heading); font-size: 21px; line-height: 1.3; }
.post-item:hover h2, .post-item:focus-visible h2 { color: var(--color-primary); }
.post-item-kicker { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.post-item-meta { margin: 0; font-size: 14px; color: var(--muted); }

.post { padding-bottom: 40px; }
/* контентные контейнеры задают фон и текст сами: иначе правила модели могут дать тёмный фон под тёмным текстом */
.post, .post-body, .static-page, .archive-head { background: transparent; color: var(--color-text); }
.post-layout > *, .toc, .post-body, .calc, .calc-form, .calc-out { min-width: 0; }
.post-body, .toc, .post-body p, .post-body li, .toc a { overflow-wrap: break-word; }
.toc ol { padding-inline-start: 18px; }
.post-head { padding: 18px 0 0; }
.post-kicker { margin: 0 0 8px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.post-kicker a { color: var(--color-primary); text-decoration: none; }
.post h1 { margin: 0 0 12px; font-family: var(--font-heading); font-size: clamp(27px, 3.5vw, 44px); line-height: 1.14; letter-spacing: -.015em; max-width: 26ch; text-wrap: balance; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 20px; font-size: 14px; color: var(--muted); }
.post-meta .dot { opacity: .55; }
.reading-time { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--color-text); }
.reading-time::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.6px solid currentColor; box-shadow: inset 0 0 0 2px var(--color-bg); }
.post-author { color: var(--muted); }

.post-cover { margin: 0 0 26px; }
.post-cover img, .post-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius, 12px); }
/* обложка не растягивается на пол-экрана: пропорция 16:9 и предел высоты */
.post-cover img { aspect-ratio: 16 / 9; max-height: 420px; object-fit: cover; }
.post-figure img { aspect-ratio: 16 / 9; max-height: 460px; object-fit: cover; }
@media (max-width: 760px) {
  .post-cover img, .post-figure img { max-height: 250px; }
}
.post-cover figcaption, .post-figure figcaption { margin-top: 8px; font-size: 13.5px; color: var(--muted); }

.post-body { font-size: 17.5px; line-height: 1.68; }
.post-body > * { max-width: 68ch; }
.post-body h2 { margin: 34px 0 12px; font-family: var(--font-heading); font-size: clamp(22px, 2.6vw, 29px); line-height: 1.25; }
.post-body h3 { margin: 24px 0 8px; font-family: var(--font-heading); font-size: 20px; line-height: 1.3; }
.post-body h2, .post-body h3, .faq, .post-body [id] { scroll-margin-top: 96px; }
.post-body p { margin: 0 0 14px; }
.post-body ul, .post-body ol { margin: 0 0 16px; padding-left: 22px; }
.post-body li { margin-bottom: 7px; }
.post-body a { color: var(--color-accent); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--color-accent) 48%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; font-weight: 500; }
.post-body a:hover, .post-body a:focus-visible { color: color-mix(in srgb, var(--color-accent) 78%, var(--color-text)); text-decoration-color: currentColor; text-decoration-thickness: 2px; }
.post-body a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.post-body strong { font-weight: 700; }
.lead { font-size: 19.5px; line-height: 1.6; color: var(--muted); margin-bottom: 20px !important; }

.table-wrap { margin: 20px 0 24px; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius, 12px); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.table-wrap caption { caption-side: top; text-align: left; padding-bottom: 8px; font-size: 14px; color: var(--muted); }
.table-wrap th, .table-wrap td { padding: 11px 14px; text-align: left; vertical-align: top; }
.table-wrap th { font-family: var(--font-heading); font-size: 14px; letter-spacing: .03em; text-transform: uppercase; }

.callout { margin: 22px 0; padding: 16px 18px; border-radius: var(--radius, 12px); background: var(--tint); border-left: 3px solid var(--color-accent); }
.callout p:last-child { margin-bottom: 0; }

.faq { margin: 26px 0 8px; }
.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-family: var(--font-heading); font-size: 18px; line-height: 1.4; }
.faq summary::marker { color: var(--color-accent); }
.faq details p { margin: 8px 0 0; color: var(--muted); }

.post-tool { margin: 32px 0; padding: 20px; border-radius: var(--radius, 12px); background: var(--tint); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.post-tool p { margin: 0; font-size: 16px; max-width: 52ch; }
.post-tool strong { display: block; font-family: var(--font-heading); font-size: 18px; margin-bottom: 4px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border: 0; border-radius: var(--radius); background: var(--color-primary); color: var(--color-bg); font: inherit; font-size: 15.5px; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover, .btn:focus-visible { background: color-mix(in srgb, var(--color-primary) 84%, var(--color-text)); }
.btn-ghost { background: transparent; color: var(--color-primary); box-shadow: inset 0 0 0 1.5px currentColor; }

:root {
  /* тёмный оттенок основного цвета: для плашек, шапок и подвалов, где текст белый */
  --color-deep: color-mix(in srgb, var(--color-primary) 58%, #0b0f14);
}

/* ссылки-текст: цвет подмешан к цвету текста, чтобы контраст держался на любом фоне.
   Кнопки и карточки исключены: у них своя заливка и свой цвет текста. */
main a:not(.btn):not(.logo):not(.lh-btn):not([class*="card"]):not([class*="item"]):not([class*="tool"]):not([class*="btn"]):not(.post-body a):not(.read-also a),
.breadcrumbs a, .toc a, .post-kicker a {
  color: color-mix(in srgb, var(--color-primary) 50%, var(--color-text));
}

/* основной текст читается всегда: акцентный цвет годится для заголовков, не для абзацев */
main p, main li, main dd, main dt { color: inherit; }
main p a, main li a { color: color-mix(in srgb, var(--color-primary) 50%, var(--color-text)); }
/* кнопки всегда читаемые: текст цвета фона на заливке основным цветом */
.lh-btn, a.lh-btn, main a.lh-btn, .lh-toolcard .lh-btn {
  color: var(--color-bg);
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.lh-btn:hover, .lh-btn:focus-visible, a.lh-btn:hover, main a.lh-btn:hover {
  color: var(--color-bg);
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.lh-btn--ghost, a.lh-btn--ghost, main a.lh-btn--ghost {
  color: var(--color-text);
  background: transparent;
  border-color: color-mix(in srgb, var(--color-text) 34%, transparent);
}
.lh-btn--ghost:hover, .lh-btn--ghost:focus-visible, a.lh-btn--ghost:hover {
  color: var(--color-bg);
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.read-also { margin: 30px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.read-also h2 { margin: 0 0 12px; font-family: var(--font-heading); font-size: 20px; }
.read-also ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.read-also-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.read-also-list a { color: var(--color-primary); text-decoration: none; border-bottom: 1px solid var(--line); }
.read-also-list a:hover, .read-also-list a:focus-visible { border-bottom-color: currentColor; }
.read-also a { color: var(--color-primary); text-decoration: none; border-bottom: 1px solid var(--line); }
.read-also a:hover, .read-also a:focus-visible { border-bottom-color: currentColor; }

/* «Читайте также»: карточки с фотографиями */
.read-also ul { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 12px; }
.read-also li { margin: 0; }
.read-also .thumb-link {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius, 12px) * .9);
  background: var(--color-surface);
  text-decoration: none;
  transition: border-color .15s, background-color .15s, transform .15s;
}
.read-also .thumb-link img {
  width: 128px;
  height: 86px;
  object-fit: cover;
  border-radius: calc(var(--radius, 12px) * .7);
  display: block;
}
.read-also .thumb-link span {
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.32;
}
.read-also .thumb-link:hover, .read-also .thumb-link:focus-visible {
  border-color: var(--color-primary);
  background: var(--tint);
  transform: translateY(-1px);
}
.read-also .thumb-link:hover span, .read-also .thumb-link:focus-visible span { color: var(--color-primary); }
@media (max-width: 900px) {
  .read-also .thumb-link { grid-template-columns: 108px minmax(0, 1fr); }
  .read-also .thumb-link img { width: 108px; height: 72px; }
}
@media (max-width: 760px) {
  .read-also ul { grid-template-columns: 1fr; }
  .read-also .thumb-link { grid-template-columns: 96px minmax(0, 1fr); }
  .read-also .thumb-link img { width: 96px; height: 64px; }
}

.calc { display: grid; gap: 22px; margin: 10px 0 28px; }
.calc-form { display: grid; gap: 14px; padding: 20px; border-radius: var(--radius, 12px); background: var(--surface); border: 1px solid var(--line); }
.calc-row { display: grid; gap: 6px; }
.calc-label { font-size: 14.5px; font-weight: 600; }
.calc-row input, .calc-row select { width: 100%; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--color-text); background: var(--color-bg); border: 1px solid var(--line); border-radius: 10px; }
.calc-row input:focus-visible, .calc-row select:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 1px; }
.calc-hint { font-size: 13px; color: var(--muted); }
.calc-out .calc-hint, .calc-form .calc-hint { color: var(--color-text); }
.calc-check { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.calc-check input { width: auto; }
.calc-out { padding: 20px; border-radius: var(--radius, 12px); border: 1px solid var(--line); background: var(--tint2); }
.calc-out h2 { margin: 0 0 12px; font-family: var(--font-heading); font-size: 20px; }
.calc-value { font-family: var(--font-heading); font-size: clamp(26px, 5vw, 36px); line-height: 1.15; color: var(--color-primary); }
.calc-row-out { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 15.5px; }
.calc-row-out:last-child { border-bottom: 0; }
.calc-row-out span:last-child { font-weight: 600; }
.calc-note { margin: 0 0 40px; font-size: 14px; color: var(--muted); max-width: 66ch; }

.static-page { padding: 10px 0 44px; }
.static-page h1 { margin: 6px 0 14px; font-family: var(--font-heading); font-size: clamp(27px, 4vw, 40px); line-height: 1.18; }
.static-page .post-body > * { max-width: 72ch; }

.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 20px; background: var(--color-text); color: var(--color-bg); font-size: 14.5px; }
.cookie-bar.show { display: flex; }
.cookie-bar .cookie-inner { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; width: 100%; max-width: var(--container, 1180px); margin: 0 auto; }
.cookie-bar p { margin: 0; max-width: 78ch; }
.cookie-bar a { color: inherit; }
.cookie-bar .btn { background: var(--color-bg); color: var(--color-text); flex: 0 0 auto; }

@media (max-width: 700px) {
  .post-body { font-size: 17px; }
  .lead { font-size: 18px; }
  .post-tool { padding: 16px; }
  .post-tool .btn { width: 100%; }
}

/* раскладки статьи: 1 боковое оглавление, 2 полоса-чипсы, 3 без оглавления */
.post--v1 .post-body { max-width: 68ch; }
.post--v2 .post-body { max-width: 74ch; }
.post--v3 .post-body { max-width: 74ch; }
.post--v3 .post-cover img { max-height: 400px; }
.toc--chips { border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; padding: 12px 0 14px; margin: 0 0 28px; border-radius: 0; position: static; }
.toc--chips .toc-title { margin: 0 0 10px; }
.toc--chips ol { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.toc--chips li { margin: 0; }
.toc--chips li a { display: inline-block; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--color-text); }
.toc--chips li a:hover, .toc--chips li a:focus-visible { background: var(--surface); border-color: var(--color-primary); text-decoration: none; }
.post-single { display: block; }
.post-single .post-body { max-width: 74ch; }
.post-single .post-body > * { max-width: none; }
@media (max-width: 900px) {
  .post--v3 .post-cover img { max-height: 260px; }
}

.post-layout { display: grid; grid-template-columns: 1fr; gap: 26px; }
.toc { margin: 0 0 22px; padding: 16px 18px; border-left: 2px solid var(--color-accent); background: var(--surface); border-radius: 0 var(--radius, 12px) var(--radius, 12px) 0; }
.toc-title { margin: 0 0 8px; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding-left: 18px; font-size: 15px; }
.toc li { margin-bottom: 5px; }
.toc a { color: inherit; text-decoration: none; }
.toc a:hover, .toc a:focus-visible { color: var(--color-primary); text-decoration: underline; }
.post-body .lead::first-letter { float: left; font-family: var(--font-heading); font-size: 3.1em; line-height: .86; padding: 4px 8px 0 0; color: var(--color-primary); }
.post-figure { margin: 24px 0; }
.table-wrap table { border-bottom: 1px solid var(--line); }
.table-wrap th { border-bottom: 1.5px solid var(--color-primary); color: var(--color-text); }
.table-wrap td { border-bottom: 1px solid var(--line); }
@media (min-width: 1000px) {
  .post-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
  .toc { position: sticky; top: 24px; margin: 0; border-left: 0; border-top: 2px solid var(--color-accent); border-radius: 0; background: transparent; padding: 14px 0 0; }
  .post-cover img { border-radius: 0; }
}


/* нейтральные правила для обёрток */
.lh-hero { display: block; }

/* подписи реальных статей */
.short-label { margin: 0 0 6px; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--color-primary); }
.post-body .lead--rich::first-letter { float: none; font-size: inherit; line-height: inherit; padding: 0; color: inherit; }
.callout--warn { border-left-color: #8f3d2b; background: color-mix(in srgb, #8f3d2b 10%, var(--color-bg)); }
.post-body ol.steps { padding-left: 22px; }

/* шапка-ссылка, плотнее ряды, тумбы карточек */
a.logo, a.logo:hover, a.logo:focus-visible { text-decoration: none; color: var(--color-title); }
a.logo:hover .logo-text { color: var(--color-primary); }
.header-inner { min-height: 72px; }
.lh { padding-bottom: 20px; }
.lh-block { margin-bottom: 24px; }
.lh-row { grid-template-columns: 42px minmax(180px, 260px) minmax(0, 1fr); gap: 8px 16px; padding: 10px 0; }
.lh-tool { margin-bottom: 20px; padding: 14px 16px; }
.lh-archive-head { padding: 10px 0 12px; margin-bottom: 12px; }
.lh-post { grid-template-columns: 112px minmax(0, 1fr); align-items: center; padding: 8px 0; gap: 12px; }
.lh-post-copy { min-width: 0; }
.lh-post-copy h3 { margin: 0 0 4px; }
.thumb, .thumb-link { text-decoration: none; color: inherit; }
.thumb img { width: 112px; height: 74px; object-fit: cover; border-radius: 8px; display: block; }
.thumb-link { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: center; }
.thumb-link img { width: 64px; height: 44px; object-fit: cover; border-radius: 6px; display: block; }
.thumb-link span { line-height: 1.3; }
.lh-latest--cards .lh-post { display: flex; flex-direction: column; align-items: stretch; padding: 0; overflow: hidden; }
.lh-latest--cards .thumb img { width: 100%; height: 132px; border-radius: 0; }
.lh-latest--cards .lh-post-copy { padding: 10px 14px 12px; }
.lh-latest--cards .lh-post .lh-post-sec { margin: 0 0 4px; }
.lh-latest--cards .lh-post h3 { margin: 0; }
@media (max-width: 760px) {
  .lh-row { grid-template-columns: 36px minmax(0, 1fr); }
  .lh-row ul { grid-column: 1 / -1; margin-top: 6px; }
  .lh-post { grid-template-columns: 84px minmax(0, 1fr); }
  .thumb img { width: 84px; height: 56px; }
  .lh-latest--cards .thumb img { width: 100%; height: 120px; }
}
/* ===== FIX-MENU ===== */

.site-footer .footer-nav, .site-footer .footer-grid, .site-footer .footer-inner, .site-footer .footer-top { width: 100%; }
.site-footer .footer-column { min-width: 0; }
.site-footer .footer-column a { overflow-wrap: break-word; }
.site-footer .footer-copy { grid-column: 1 / -1; width: 100%; }

@media (min-width: 901px) and (max-width: 1180px) {
  .site-header .main-nav { gap: 18px; font-size: 13px; }
  .site-header .header-inner { gap: 16px; }
}
