/* oneshopw.ru — «Домашний выбор»
   Один компактный файл, встраивается инлайном в каждую страницу.
   Без внешних шрифтов и библиотек: быстрый первый рендер, нет блокирующих запросов. */

:root {
  --ink: #14231f;
  --ink-soft: #415a54;
  --muted: #647970;
  --brand: #10614a;
  --brand-dark: #0b4535;
  --brand-light: #e8f3ee;
  --on-brand: #ffffff;
  --btn-bg: #ffffff;
  --btn-bg-hover: #eaf6f0;
  --btn-ink: #0b4535;
  --on-dark: #ffffff;
  --accent: #c9741a;
  --line: #d9e5df;
  --paper: #ffffff;
  --paper-2: #f6faf8;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 45, 36, .06), 0 8px 24px -12px rgba(16, 45, 36, .18);
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper-2);
}

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

a { color: var(--brand-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand); }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: var(--on-brand); padding: 12px 18px; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(6px);
}
.header-inner {
  display: flex; align-items: center; gap: 16px;
  min-height: 68px; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand-dark); }
.logo-mark { color: var(--brand); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 19px; letter-spacing: -.2px; }
.brand-text small { font-size: 12px; color: var(--muted); letter-spacing: .2px; }

.site-nav ul {
  display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap;
}
.site-nav a {
  display: inline-block; padding: 9px 12px; border-radius: 10px;
  color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 500;
}
.site-nav a:hover { background: var(--brand-light); color: var(--brand-dark); }
.site-nav a.is-active { background: var(--brand); color: var(--on-brand); }
.site-nav .nav-search { border: 1px solid var(--line); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--paper); cursor: pointer; position: relative;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  position: absolute; left: 50%; width: 20px; height: 2px; background: var(--ink);
  transform: translateX(-50%); content: ""; border-radius: 2px;
}
.nav-toggle-bars { top: 21px; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

/* ---------- footer note ---------- */
.footer-note { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12.5px; line-height: 1.55; }
.footer-note a { color: #9fc4b7; }

/* ---------- breadcrumbs ---------- */
.crumbs { margin: 18px 0 0; font-size: 13.5px; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #b7c8c2; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }

/* ---------- typography ---------- */
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -.4px; color: var(--ink); }
h1 { font-size: clamp(28px, 4.2vw, 42px); margin: 18px 0 14px; }
h2 { font-size: clamp(22px, 2.7vw, 29px); margin: 42px 0 14px; }
h3 { font-size: 20px; margin: 28px 0 10px; letter-spacing: -.2px; }
p { margin: 0 0 16px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 8px; }
strong { color: var(--ink); }
.muted { color: var(--muted); }
.lead { font-size: 19px; color: var(--ink-soft); max-width: 68ch; }
.meta { font-size: 13.5px; color: var(--muted); margin: 0 0 26px; }

main { padding-bottom: 56px; }
article.prose { max-width: 74ch; }
article.prose h1 { max-width: 30ch; }
article.prose table { font-size: 15px; }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(160deg, #0e3d31 0%, #10614a 58%, #16795c 100%);
  color: #fff; border-radius: 20px; padding: 40px; margin: 22px 0 34px;
  box-shadow: var(--shadow);
}
.hero h1 { color: var(--on-dark); margin-top: 0; max-width: 24ch; }
.hero p { color: #cfe9df; font-size: 18px; max-width: 60ch; }
.hero .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero .hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding: 0; list-style: none; }
.hero .hero-tags li {
  margin: 0; font-size: 13px; color: #d8f0e7;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18);
  padding: 4px 11px; border-radius: 99px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 12px 20px; border-radius: 11px;
  background: var(--btn-bg); color: var(--btn-ink); font-weight: 600; text-decoration: none;
  border: 1px solid transparent;
}
.btn:hover { background: var(--btn-bg-hover); color: var(--btn-ink); }
.btn-ghost { background: transparent; color: var(--on-dark); border-color: rgba(255, 255, 255, .45); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: var(--on-dark); }

/* ---------- cards / grids ---------- */
.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-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card h2, .card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0 0 12px; color: var(--ink-soft); font-size: 15.5px; }
.card .card-link { margin-top: auto; font-weight: 600; text-decoration: none; color: var(--brand); }
.card .card-link:hover { text-decoration: underline; }
.card .card-icon { margin-bottom: 12px; color: var(--brand); }
.card ul { margin: 0 0 12px; font-size: 15px; color: var(--ink-soft); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section-head h2 { margin-bottom: 6px; }
.section-head a { font-size: 15px; }

.tag { display: inline-block; font-size: 12.5px; color: var(--brand-dark); background: var(--brand-light);
  border-radius: 99px; padding: 3px 10px; margin: 0 6px 6px 0; }
.tag-accent { background: #fdf0e2; color: #8a5a10; }

/* ---------- article list ---------- */
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.post-list li {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; margin: 0;
}
.post-list h3 { margin: 0 0 6px; font-size: 18px; }
.post-list h3 a { text-decoration: none; }
.post-list h3 a:hover { text-decoration: underline; }
.post-list p { margin: 0; font-size: 15px; color: var(--ink-soft); }
.post-list time { font-size: 13px; color: var(--muted); }

/* ---------- prose blocks ---------- */
.note, .warn, .ok {
  border-radius: 12px; padding: 16px 18px; margin: 22px 0; font-size: 15.5px;
  border: 1px solid var(--line); background: var(--paper);
}
.note { background: var(--paper); border-left: 4px solid var(--brand); }
.warn { background: #fff8ec; border-left: 4px solid var(--accent); border-color: #f0dfc2; }
.ok { background: #eef8f2; border-left: 4px solid #2f8f63; border-color: #cfe9dc; }
.note p:last-child, .warn p:last-child, .ok p:last-child { margin-bottom: 0; }

.keys { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 26px 0; }
.keys h2 { margin: 0 0 12px; font-size: 20px; }
.keys ul { margin: 0; }

table { width: 100%; border-collapse: collapse; margin: 22px 0; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
caption { caption-side: bottom; font-size: 13px; color: var(--muted); padding-top: 8px; text-align: left; }
th, td { padding: 11px 13px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--brand-light); font-size: 14px; }
tr:last-child td { border-bottom: 0; }

.link-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.link-list li { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 0; }
.link-list a { text-decoration: none; font-weight: 600; }
.link-list a:hover { text-decoration: underline; }

.faq { display: grid; gap: 10px; margin: 18px 0 8px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; }
.faq details[open] { padding-bottom: 6px; }
.faq p { font-size: 15.5px; }

/* ---------- search ---------- */
.search-form { display: flex; gap: 10px; margin: 22px 0 8px; flex-wrap: wrap; }
.search-form input[type=search] {
  flex: 1 1 260px; min-width: 0; padding: 13px 16px; font-size: 16px;
  border: 1px solid var(--line); border-radius: 11px; background: var(--paper); color: var(--ink);
}
.search-form input[type=search]:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
#search-results { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
#search-results li { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 0; }
#search-results h3 { margin: 0 0 4px; font-size: 17px; }
#search-results p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }

/* ---------- footer ---------- */
.site-footer { background: #0e3d31; color: #cfe9df; margin-top: 20px; padding: 44px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.footer-brand { font-weight: 700; font-size: 18px; color: var(--on-dark); margin: 0 0 10px; }
.site-footer .muted { color: #9fc4b7; font-size: 14px; }
.site-footer p { font-size: 14.5px; }
.footer-title { font-weight: 600; color: var(--on-dark); margin: 0 0 10px; font-size: 15px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.footer-list a { color: #cfe9df; text-decoration: none; font-size: 14.5px; }
.footer-list a:hover { color: var(--on-dark); text-decoration: underline; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 30px; padding-top: 16px;
  font-size: 13px;
}

/* ---------- error pages ---------- */
.error-wrap { padding: 70px 20px 90px; max-width: 640px; }
.error-code { font-size: 76px; font-weight: 800; color: var(--brand); margin: 0; line-height: 1; letter-spacing: -3px; }
.error-wrap h1 { margin-top: 10px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 68px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px -16px rgba(16, 45, 36, .4);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: 10px 16px 16px; gap: 2px; }
  .site-nav a { display: block; padding: 13px 12px; font-size: 16px; }
  .hero { padding: 26px 22px; border-radius: 16px; }
  .grid-2, .grid-3, .grid-4, .grid-auto { grid-template-columns: 1fr; }
  h2 { margin-top: 34px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  table { font-size: 14px; }
  th, td { padding: 9px 10px; }
  .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

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

@media print {
  .site-header, .site-footer, .crumbs, .nav-toggle { display: none; }
  body { background: #fff; }
}

/* ======================= коммерческий слой ======================= */
.product-card { gap: 0; }
.product-head { margin-bottom: 6px; }
.product-brand {
  margin: 0 0 2px; font-size: 12px; letter-spacing: .6px; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.product-card h3 { font-size: 18px; margin-bottom: 6px; }
.product-card h3 a { text-decoration: none; }
.product-card h3 a:hover { text-decoration: underline; }
.product-type { font-size: 13.5px; color: var(--muted); margin: 0 0 12px; }
.product-summary { font-size: 15px; }

.spec-mini {
  list-style: none; padding: 0; margin: 0 0 12px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.spec-mini li {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 13.5px; color: var(--ink-soft); margin: 0 0 5px;
}
.spec-mini li:last-child { margin-bottom: 0; }
.spec-mini span { color: var(--muted); }
.spec-mini strong { color: var(--ink); font-weight: 600; text-align: right; }

.spec-table td.src { color: var(--muted); font-size: 12.5px; }
.spec-table th[scope="row"] { font-weight: 600; background: var(--paper); font-size: 14.5px; }
.row-note { font-weight: 400; font-size: 12px; color: var(--muted); margin-top: 4px; max-width: 34ch; }
.compare-table td { font-size: 14.5px; }

.verdict { display: grid; gap: 12px; margin: 18px 0 26px; }
.verdict-item {
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: 12px; padding: 14px 18px;
}
.verdict-if { margin: 0 0 4px; font-weight: 600; font-size: 15px; }
.verdict-then { margin: 0; font-size: 15px; color: var(--ink-soft); }

.scenario {
  background: var(--brand-light); border-radius: 12px; padding: 12px 16px;
  font-size: 15px; color: var(--brand-dark);
}

.offer-block {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin: 24px 0; box-shadow: var(--shadow);
}
.btn-offer {
  display: inline-block; background: var(--brand); color: var(--on-brand); font-weight: 600;
  padding: 13px 22px; border-radius: 11px; text-decoration: none; font-size: 16px;
}
.btn-offer:hover { background: var(--brand-dark); color: var(--on-brand); }
.ad-disclosure { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.erid { display: inline-block; margin-left: 4px; }
.ref-note { color: var(--muted); font-size: 12.5px; }
.offers-table .store { font-weight: 600; }
.offers-table .price { white-space: nowrap; }
.old-price { color: var(--muted); font-weight: 400; margin-right: 4px; }

.keys-list { list-style: none; padding: 0; }
.keys-list li {
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 15px; margin-bottom: 8px; font-size: 15px;
}
.small { font-size: 13px; }
.sources a { font-weight: 500; }

.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; padding: 0; list-style: none; }
.cat-nav li { margin: 0; }
.cat-nav a {
  display: inline-block; padding: 8px 14px; border-radius: 99px; background: var(--paper);
  border: 1px solid var(--line); text-decoration: none; font-size: 14px; font-weight: 500;
}
.cat-nav a:hover { background: var(--brand-light); border-color: var(--brand); }

/* --- баннер согласия на аналитику (вставляется скриптом аналитики) --- */
.consent-bar{position:fixed;left:0;right:0;bottom:0;z-index:60;display:flex;gap:16px;
  align-items:center;justify-content:space-between;flex-wrap:wrap;
  padding:14px 20px;background:#0e3d31;color:#eaf4f0;font-size:14px;line-height:1.45;
  box-shadow:0 -2px 12px rgba(0,0,0,.18)}
.consent-bar p{margin:0;max-width:72ch}
.consent-bar a{color:#bfe3d6;text-decoration:underline}
.consent-actions{display:flex;gap:10px;flex-shrink:0}
.consent-bar .btn-quiet{background:transparent;color:#eaf4f0;border:1px solid #5f8c7c}
@media (max-width:640px){.consent-bar{padding:12px 14px}}

/* =====================================================================
   дизайн v2 — герой с мозаикой, тонированные направления, чипы
   характеристик, липкое содержание, тёмная тема, печать
   ===================================================================== */
:root {
  --tint-1: #ecf6f1; --tint-1-ink: #12664c;
  --tint-2: #fdf3e6; --tint-2-ink: #a05f0c;
  --tint-3: #edf2fb; --tint-3-ink: #2b4f8f;
  --tint-4: #f4eefb; --tint-4-ink: #6a3f9e;
  --ring: 0 0 0 1px var(--line);
  --lift: 0 14px 34px -22px rgba(16, 45, 36, .45);
  --header-h: 68px;
  --brand-ink: #0b4535;
}

/* контраст вспомогательного текста — не ниже 4.5:1 на светлых подложках */
:root { --muted: #5b6f67; }

/* ---------- герой v2 ---------- */
.hero {
  padding: 0; overflow: hidden; position: relative;
  background: radial-gradient(120% 140% at 88% 8%, #1a8464 0%, #10614a 45%, #0c3b2f 100%);
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 34px; align-items: center; padding: 44px 40px;
}
.hero-copy h1 { max-width: 23ch; }
.hero-visual { display: flex; justify-content: center; }
.mosaic {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px; width: 100%; max-width: 320px;
}
.mosaic-tile {
  aspect-ratio: 1; border-radius: 18px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  color: #e8fbf3; backdrop-filter: blur(2px);
}
.mosaic-tile svg { width: 42%; height: 42%; }
.mosaic-tile:nth-child(2) { transform: translateY(16px); }
.mosaic-tile:nth-child(3) { transform: translateY(-6px); background: rgba(255, 255, 255, .06); }
.mosaic-tile:nth-child(4) { transform: translateY(10px); background: rgba(255, 255, 255, .06); }

/* ---------- направления ---------- */
.card { box-shadow: var(--ring); transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--ring), var(--lift); }
.card--dir { border: 0; position: relative; overflow: hidden; padding-top: 26px; }
.card--dir::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 4px;
  background: var(--tint-ink, var(--brand));
}
.card-icon--round {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  background: var(--tint, var(--brand-light)); color: var(--tint-ink, var(--brand));
  margin-bottom: 14px;
}
.card--dir .card-link { display: inline-flex; align-items: center; gap: 6px; }
.card--dir .card-link::after { content: "→"; transition: transform .18s ease; }
.card--dir .card-link:hover::after { transform: translateX(3px); }
.tint-1 { --tint: var(--tint-1); --tint-ink: var(--tint-1-ink); }
.tint-2 { --tint: var(--tint-2); --tint-ink: var(--tint-2-ink); }
.tint-3 { --tint: var(--tint-3); --tint-ink: var(--tint-3-ink); }
.tint-4 { --tint: var(--tint-4); --tint-ink: var(--tint-4-ink); }

/* ---------- список руководств с нумерацией ---------- */
.post-list { counter-reset: post; }
.post-list li { padding-left: 62px; position: relative; transition: transform .18s ease, box-shadow .18s ease; }
.post-list li::before {
  counter-increment: post; content: counter(post, decimal-leading-zero);
  position: absolute; left: 20px; top: 19px;
  font-size: 13px; font-weight: 700; letter-spacing: .6px; color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.post-list li:hover { transform: translateY(-2px); box-shadow: var(--ring), var(--lift); }
.post-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 7px; font-size: 12.5px; color: var(--muted); }
.post-meta .tag { margin: 0; }

/* ---------- чипы характеристик ---------- */
.chips {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px;
  padding: 0; margin: 0 0 14px;
}
.chips li {
  flex: 1 1 30%; min-width: 92px; margin: 0;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 8px 11px; display: flex; flex-direction: column; gap: 2px;
}
.chips .k { font-size: 10.5px; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.chips .v { font-size: 15px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

/* таблицы характеристик: цифры в колонке ---------- */
.spec-table td, .compare-table td, .offers-table .price { font-variant-numeric: tabular-nums; }

/* ---------- липкое содержание страницы ---------- */
.toc {
  position: sticky; top: var(--header-h); z-index: 20;
  margin: 0 -20px 20px; padding: 8px 20px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.toc ol {
  display: flex; gap: 6px; list-style: none; margin: 0; padding: 2px 0;
  overflow-x: auto; scrollbar-width: none;
}
.toc ol::-webkit-scrollbar { display: none; }
.toc a {
  display: inline-block; white-space: nowrap; padding: 7px 12px; border-radius: 99px;
  font-size: 13.5px; color: var(--ink-soft); text-decoration: none; border: 1px solid transparent;
}
.toc a:hover { background: var(--brand-light); color: var(--brand-ink); }
.toc a.is-current { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
h2[id], h3[id] { scroll-margin-top: calc(var(--header-h) + 62px); }

/* ---------- честное «предложений пока нет» ---------- */
.offer-empty {
  display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap;
  border: 1px dashed var(--line); border-radius: 12px; background: var(--paper);
  padding: 16px 18px; margin: 22px 0; font-size: 14.5px; color: var(--ink-soft);
}
.offer-empty p { margin: 0; }
.offer-empty strong { color: var(--ink); }
.badge-soon {
  font-size: 11px; letter-spacing: .5px; text-transform: uppercase; font-weight: 700;
  background: var(--tint-2); color: var(--tint-2-ink); border-radius: 99px;
  padding: 4px 10px; white-space: nowrap;
}

/* ---------- фокус и мелочи ---------- */
:where(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 8px;
}
::selection { background: #cbe9dd; color: #0b4535; }
.lead { font-size: clamp(17px, 1.4vw, 19px); }

/* ---------- тёмная тема ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e9f3ef; --ink-soft: #b8ccc4; --muted: #9db3aa;
    --brand: #2fa985; --brand-dark: #7fdbc0; --brand-ink: #bfe9da;
    --brand-light: #14342b; --line: #27443c; --on-brand: #06120e;
    --paper: #101e1a; --paper-2: #0b1512;
    --ring: 0 0 0 1px var(--line);
    --lift: 0 14px 34px -22px rgba(0, 0, 0, .8);
    --tint-1: #14342b; --tint-1-ink: #7fdbc0;
    --tint-2: #33280f; --tint-2-ink: #f0bd72;
    --tint-3: #182a44; --tint-3-ink: #9dc0f4;
    --tint-4: #291c3d; --tint-4-ink: #c4a6f0;
    --on-dark: #ffffff;
    --btn-bg: #e9f6f1; --btn-bg-hover: #ffffff; --btn-ink: #0b4535;
  }
  body { background: var(--paper-2); }
  .site-header { background: rgba(11, 21, 18, .94); }
  .nav-toggle { background: var(--paper); }
  .nav-toggle-bars { background: var(--ink); }

  .card, .post-list li, .note, .link-list li, .faq details, .keys, .keys-list li,
  .offer-block, .verdict-item, #search-results li, .offer-empty, .card--dir {
    background: var(--paper);
  }
  table, .spec-table th[scope="row"] { background: var(--paper); }
  th { background: #16312a; }
  .warn { background: #2b2213; border-color: #4a3a1c; }
  .ok { background: #122a22; border-color: #23513f; }
  .warn { border-color: #4a3a1c; }
  .ok { border-color: #23513f; }
  .tag-accent { background: #33280f; color: #f0bd72; }
  .hero { background: radial-gradient(120% 140% at 88% 8%, #1b7a5e 0%, #105943 45%, #0a2b23 100%); }
  .search-form input[type=search] { background: var(--paper); color: var(--ink); }
  .tag { background: var(--brand-light); color: var(--brand-dark); }
  .crumbs li + li::before { color: var(--line); }
  ::selection { background: #1f5c4a; color: #eafaf3; }
  .consent-bar { background: #0b1512; border-top: 1px solid var(--line); }
}

/* ---------- печать: чек-листы и карточки ---------- */
@media print {
  .toc, .consent-bar, .hero-actions, .offer-empty { display: none !important; }
  a[href^="/"] { text-decoration: none; color: #000; }
  .card, .post-list li, table, .faq details { break-inside: avoid; page-break-inside: avoid; }
  body { font-size: 12pt; }
  h2 { break-after: avoid; }
}

/* ---------- адаптив для новых блоков ---------- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding: 30px 24px; gap: 24px; }
  .hero-visual { display: none; }
}
@media (max-width: 560px) {
  .post-list li { padding-left: 50px; }
  .post-list li::before { left: 16px; top: 17px; font-size: 12px; }
  .toc { margin: 0 -20px 16px; }
  .chips li { flex: 1 1 44%; }
}

/* длина строки на текстовых страницах: абзацы и списки, но не таблицы */
.page--reading .wrap > p,
.page--reading .wrap > ul,
.page--reading .wrap > ol,
.page--reading .wrap > blockquote,
.page--reading .wrap > .note,
.page--reading .wrap > .warn,
.page--reading .wrap > .ok { max-width: 74ch; }
.page--reading .wrap > p.lead { max-width: 72ch; }

@media (prefers-color-scheme: dark) {
  @media (max-width: 760px) { .site-nav { background: var(--paper); } }
}

/* ---------- состояния кнопок: наведение, нажатие, тач ---------- */
.btn, .btn-offer, .cat-nav a, .toc a, .card-link, .site-nav a, .nav-toggle {
  touch-action: manipulation;            /* убирает 300 мс задержку и «залипание» */
  -webkit-tap-highlight-color: transparent;
}
.btn, .btn-offer { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.btn:active, .btn-offer:active, .cat-nav a:active { transform: translateY(1px); }
.card-link:active { opacity: .75; }
.site-nav a:not(.is-active):active { background: var(--brand-light); }

/* подсветка «текущего» всегда важнее наведения */
.site-nav a.is-active,
.site-nav a.is-active:hover,
.site-nav a.is-active:active { background: var(--brand); color: var(--on-brand); }
.toc a.is-current,
.toc a.is-current:hover,
.toc a.is-current:active,
.toc a.is-current:focus-visible { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.cat-nav a[aria-current="page"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }

/* содержание: выбранный раздел не должен уезжать за край при прокрутке ленты */
.toc ol { scroll-snap-type: x proximity; scroll-padding: 0 20px; }
.toc a { scroll-snap-align: center; }

/* на тач-устройствах наведение не «залипает» на карточках */
@media (hover: none) {
  .card:hover, .post-list li:hover { transform: none; box-shadow: var(--ring); }
  .btn:hover { background: var(--btn-bg); color: var(--btn-ink); }
  .site-nav a:not(.is-active):hover { background: transparent; color: var(--ink-soft); }
}

/* =====================================================================
   мобильная компактность: таблицы, цели нажатия, шапка, чипы
   ===================================================================== */

/* подсказка о горизонтальной прокрутке — только на узких экранах */
.scroll-hint { display: none; }

@media (max-width: 760px) {
  /* --- таблица характеристик превращается в компактные карточки строк --- */
  .spec-table thead { display: none; }
  .spec-table, .spec-table tbody, .spec-table tr { display: block; width: 100%; }
  .spec-table {
    display: flex; flex-direction: column;
    border: 0; border-radius: 0; overflow: visible;
    background: transparent; margin: 14px 0 10px; box-shadow: none;
  }
  .spec-table tbody { display: block; }
  .spec-table caption { order: 2; padding-top: 10px; }
  .spec-table tbody { order: 1; }
  .spec-table tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px;
    background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
    padding: 10px 13px; margin-bottom: 8px;
  }
  .spec-table th[scope="row"] {
    grid-column: 1 / -1; background: transparent; border: 0; padding: 0;
    font-size: 13px; font-weight: 600; color: var(--muted);
  }
  .spec-table td { border: 0; padding: 0; font-size: 15.5px; font-weight: 600; }
  .spec-table td.src {
    grid-column: 1 / -1; font-size: 12px; font-weight: 400; color: var(--muted);
  }

  /* --- таблицы сравнения: прокрутка + закреплённая первая колонка --- */
  .compare-table th[scope="row"] {
    position: sticky; left: 0; z-index: 2;
    background: var(--paper); box-shadow: 1px 0 0 var(--line);
  }
  .compare-table th[scope="col"] { position: sticky; top: 0; z-index: 3; }
  .table-scroll {
    box-shadow: inset -14px 0 12px -12px rgba(16, 45, 36, .35);
    scrollbar-width: thin;
  }
  .scroll-hint { display: block; font-size: 12.5px; color: var(--muted); margin: 0 0 6px; }

  /* --- цели нажатия не меньше 44 px --- */
  .card-link, .section-head a, .link-list a, .footer-list a,
  .crumbs a, .faq summary, .sources a {
    display: inline-flex; align-items: center; min-height: 44px;
  }
  .link-list li, .footer-list li { padding-top: 0; padding-bottom: 0; }
  .toc a { min-height: 44px; display: inline-flex; align-items: center; padding: 10px 14px; }
  .toc { padding: 6px 20px; }
  .brand { min-width: 0; min-height: 44px; padding: 4px 0; }
  .hero-actions .btn { width: 100%; }

  /* --- чипы компактнее, значения реже переносятся --- */
  .chips { gap: 7px; }
  .chips li { padding: 7px 10px; }
  .chips .v { font-size: 14px; }
  .chips .k { font-size: 10.5px; }

  /* --- меньше лишнего воздуха в списках и отступах --- */
  h2 { margin: 30px 0 12px; }
  .post-list li { padding: 14px 16px 14px 50px; }
  .post-list li::before { top: 15px; }
  .card { padding: 18px; }
  .keys { padding: 16px 18px; }
  table { font-size: 14.5px; }
}

@media (max-width: 360px) {
  .brand-text strong { font-size: 17px; }
  .brand-text small { font-size: 10.5px; }
  .brand { gap: 8px; }
  .chips li { flex: 1 1 44%; padding: 6px 9px; }
  h1 { font-size: clamp(26px, 8vw, 32px); }
}
