/* ============================================================
   Дизайн-система сайта. Палитра задаётся переменными:
   один и тот же код используется на обоих сайтах с разными цветами.
   ============================================================ */

:root {
  --ink: #16232a;
  --ink-soft: #34454e;
  --muted: #5d6b73;
  --line: #dee7ec;
  --line-soft: #edf2f5;
  --paper: #ffffff;
  --sand: #f4f7f9;
  --accent: #1c5266;
  --accent-dark: #133c4b;
  --accent-soft: #e6eff4;
  --snow: #2f6f9f;
  --snow-soft: #eaf2f8;
  --wind: #7a5a1f;
  --wind-soft: #f7f0e2;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 40, 28, .06);
  --shadow: 0 1px 2px rgba(16, 40, 28, .05), 0 10px 28px rgba(16, 40, 28, .06);
  --shadow-lg: 0 2px 4px rgba(16, 40, 28, .05), 0 18px 44px rgba(16, 40, 28, .09);
  --wrap: 1180px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font: 16.5px/1.62 -apple-system, BlinkMacSystemFont, "Segoe UI", "PT Sans", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; }

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

.wrap { width: min(var(--wrap), 100% - 40px); margin: 0 auto; }
@media (max-width: 640px) { .wrap { width: min(var(--wrap), 100% - 24px); } }

.skip {
  position: absolute; left: -9999px; top: 0; background: #fff; padding: 10px 14px;
  z-index: 20; border-radius: 0 0 10px 0; box-shadow: var(--shadow);
}
.skip:focus { left: 0; top: 0; }

/* ------------------------------------------------------------ шапка */
.topbar {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 8;
}
.topbar .wrap {
  display: flex; align-items: center; gap: 20px;
  min-height: 70px; flex-wrap: wrap; padding: 8px 0;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); flex: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 10px; flex: none;
  background: linear-gradient(140deg, var(--accent) 0%, #5c93a8 62%, #cfe2ea 100%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.5), var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 17.5px; letter-spacing: -.015em; }
.brand-text small {
  color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: .11em; margin-top: 2px;
}

/* навигация: на узких экранах — горизонтальная прокрутка «чипсами» */
.nav {
  display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto;
  align-items: center; justify-content: flex-end;
}
.nav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 10px;
  color: var(--ink-soft); font-size: 14.5px; font-weight: 500;
  transition: background .15s ease, color .15s ease;
  white-space: nowrap;
}
.nav a:hover { background: var(--accent-soft); color: var(--accent); text-decoration: none; }
.nav-ico {
  width: 16px; height: 16px; flex: 0 0 16px;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round; opacity: .7;
}

@media (max-width: 1240px) { .nav-ico { display: none; } .nav a { padding: 8px 10px; font-size: 14px; } }
@media (max-width: 820px) {
  .topbar .wrap { min-height: 58px; gap: 10px; }
  .brand-mark { width: 28px; height: 28px; border-radius: 9px; }
  .brand-text strong { font-size: 16px; }
  .brand-text small { display: none; }
  .nav {
    margin-left: 0; width: 100%; flex-wrap: nowrap; justify-content: flex-start;
    overflow-x: auto; scrollbar-width: none; padding: 2px 0 6px; gap: 6px;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a {
    background: var(--paper); box-shadow: inset 0 0 0 1px var(--line);
    padding: 8px 13px; border-radius: 999px; font-size: 14px;
  }
}

/* ------------------------------------------------------------ контент */
main { padding: 26px 0 64px; }

.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 16px; display: flex; gap: 0; flex-wrap: wrap; align-items: center; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); text-decoration: none; }
.crumbs .sep { padding: 0 7px; opacity: .55; }
.crumbs span[aria-current] { color: var(--ink-soft); }

h1 { font-size: clamp(27px, 3.5vw, 40px); line-height: 1.16; letter-spacing: -.022em; margin: 0 0 14px; font-weight: 800; }
h2 { font-size: clamp(20px, 2.3vw, 27px); line-height: 1.24; letter-spacing: -.015em; margin: 44px 0 14px; font-weight: 700; }
h3 { font-size: 18.5px; line-height: 1.3; margin: 26px 0 10px; font-weight: 700; }
p { margin: 0 0 13px; }

.lead { font-size: 18.5px; line-height: 1.58; color: var(--ink-soft); max-width: 68ch; }
.muted { color: var(--muted); }
.intro {
  font-size: 17px; line-height: 1.66; color: var(--ink-soft);
  border-left: 3px solid var(--accent); padding: 2px 0 2px 16px; margin: 8px 0 22px;
}

.prose { max-width: 74ch; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose code {
  background: #eef3f6; border-radius: 6px; padding: 1px 6px; font-size: .92em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.article { max-width: 76ch; }
.article h2 { margin-top: 36px; }

/* двухколоночная раскладка со «шпаргалкой» справа */
.shell { display: grid; grid-template-columns: minmax(0, 1fr) 312px; gap: 34px; align-items: start; }
.main-col { min-width: 0; }
.aside { position: sticky; top: 92px; display: grid; gap: 14px; }
@media (max-width: 1000px) {
  .shell { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .aside { position: static; margin: 8px 0 26px; }
}

/* ------------------------------------------------------------ первый экран */
.hero-panel {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: 22px;
  background:
    radial-gradient(120% 90% at 88% -10%, var(--accent-soft) 0%, rgba(255,255,255,0) 58%),
    radial-gradient(90% 80% at 4% 108%, #edf3f6 0%, rgba(255,255,255,0) 60%),
    var(--paper);
  padding: 40px 40px 34px;
  box-shadow: var(--shadow);
}
@media (max-width: 760px) { .hero-panel { padding: 26px 20px 22px; border-radius: 18px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  border-radius: 999px; padding: 6px 13px; margin-bottom: 16px;
}
.hero-panel h1 { margin-bottom: 14px; }
.hero-panel .lead { max-width: 54ch; }

.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; border: 0;
  background: var(--accent); color: #fff; font-weight: 650; font-size: 15px;
  box-shadow: 0 6px 16px rgba(28, 82, 102, .22);
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  cursor: pointer;
}
.btn:hover { background: var(--accent-dark); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-ghost {
  background: var(--paper); color: var(--accent); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
}
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-dark); }

/* полоса показателей внутри первого экрана */
.hero-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; background: var(--line); border-radius: 14px; overflow: hidden;
  margin-top: 30px;
}
.hero-stats > div { background: var(--paper); padding: 16px 18px; }
.hero-stats .stat-label { font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.hero-stats .stat-value { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-top: 3px; }
.hero-stats .stat-hint { font-size: 12px; color: var(--muted); margin-top: 2px; }
@media (max-width: 900px) { .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .hero-stats { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ показатели */
.stats {
  display: grid; gap: 14px; margin: 26px 0 10px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.stat {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow-sm);
}
.stat.snow { background: var(--snow-soft); border-color: #cfe1ee; }
.stat.wind { background: var(--wind-soft); border-color: #ecdfc6; }
.stat.warm { background: #fdf4ea; border-color: #f0ddc7; }
.stat-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }
.stat-value { font-size: 30px; font-weight: 800; line-height: 1.12; margin-top: 5px; letter-spacing: -.025em; }
.stat-unit { font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.stat-hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }

/* компактные факты: строка карточек под заголовком */
.facts {
  display: grid; gap: 12px; margin: 22px 0 8px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.fact {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; box-shadow: var(--shadow-sm);
}
.fact-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }
.fact-value { font-size: 23px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
.fact-value small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.fact-note { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* ------------------------------------------------------------ блоки и карточки */
.block { margin-top: 46px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.section-head h2 { margin: 0; }
.section-head a { font-size: 14.5px; font-weight: 600; }

.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 20px 18px; box-shadow: var(--shadow-sm); color: var(--ink);
  transition: transform .14s ease, box-shadow .16s ease, border-color .16s ease;
}
.card:hover {
  text-decoration: none; transform: translateY(-2px);
  box-shadow: var(--shadow); border-color: #c3d6de;
}
.card-icon {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 2px;
}
.card-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card-title { font-weight: 700; font-size: 17.5px; letter-spacing: -.012em; }
.card-text { color: var(--muted); font-size: 14.5px; }
.card-more { color: var(--accent); font-size: 14px; font-weight: 650; margin-top: auto; padding-top: 6px; }

/* ссылки списком */
.linklist { list-style: none; padding: 0; margin: 0; }
.linklist li { padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.linklist li:last-child { border-bottom: 0; }
.linklist a { font-weight: 550; }
.linklist .muted { display: block; font-size: 14px; margin-top: 2px; }
.linklist.big li { padding: 15px 0; }

/* сетка ссылок */
.linkgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 340px)); justify-content: start; margin: 16px 0; }
.linkgrid a {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 13px;
  padding: 13px 15px; color: var(--ink); font-weight: 600; font-size: 15px;
  box-shadow: var(--shadow-sm); transition: border-color .15s ease, transform .15s ease;
}
.linkgrid a:hover { text-decoration: none; border-color: #c3d6de; transform: translateY(-1px); color: var(--accent); }
.linkgrid a span { font-weight: 400; font-size: 13.5px; color: var(--muted); }

/* ------------------------------------------------------------ таблицы */
.table-wrap {
  overflow: auto; max-height: 620px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); margin: 16px 0;
}
table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 14.5px; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
thead th {
  position: sticky; top: 0; z-index: 1;
  background: #f5f9fb; font-weight: 650; font-size: 12.5px; letter-spacing: .02em;
  color: var(--ink-soft); border-bottom: 1px solid var(--line); white-space: nowrap;
}
tbody tr:nth-child(even) { background: #fbfdfc; }
tbody tr:hover { background: var(--accent-soft); }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; }
@media (max-width: 640px) { th, td { padding: 9px 11px; } }

.sitemap-links { font-size: 14.5px; line-height: 2; color: var(--muted); }
.sitemap-links a { white-space: nowrap; }

/* ------------------------------------------------------------ пояснения */
.note {
  border-radius: 14px; padding: 15px 18px; margin: 18px 0; font-size: 14.8px;
  background: var(--accent-soft); border: 1px solid #cbe3d4; color: var(--ink-soft);
}
.note-warn { background: var(--wind-soft); border-color: #ecdfc6; }

/* ------------------------------------------------------------ калькулятор */
.calc {
  display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  padding: 24px; box-shadow: var(--shadow); margin: 22px 0;
}
@media (max-width: 780px) { .calc { grid-template-columns: 1fr; padding: 18px; } }
.calc-form { display: grid; gap: 13px; align-content: start; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.field span { color: var(--muted); font-weight: 500; }
.field input, .field select {
  font: inherit; font-size: 15.5px; padding: 11px 13px; border-radius: 11px;
  border: 1px solid var(--line); background: #fbfdfb; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:hover, .field select:hover { border-color: #c3d6de; }
.field input:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(28, 82, 102, .12);
}
.calc-out {
  border-left: 1px dashed var(--line); padding-left: 22px;
  background: #fbfdfc; border-radius: 12px; padding: 4px 4px 4px 22px;
}
@media (max-width: 780px) {
  .calc-out { border-left: 0; border-top: 1px dashed var(--line); padding: 18px 0 0; background: none; }
}
.calc-placeholder { color: var(--muted); margin: 0; }
.result-row {
  display: flex; justify-content: space-between; gap: 14px; padding: 9px 0;
  border-bottom: 1px solid var(--line-soft); font-size: 14.8px;
}
.result-row:last-child { border-bottom: 0; }
.result-key { color: var(--muted); }
.result-val { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.result-val small { font-weight: 400; color: var(--muted); }
.verdict { margin-top: 14px; padding: 12px 14px; border-radius: 11px; font-size: 14.6px; }
.verdict.ok { background: #e8f2f6; border: 1px solid #c6dde6; }
.verdict.bad { background: #fdeceb; border: 1px solid #f4cdca; }
.verdict.mid { background: var(--wind-soft); border: 1px solid #ecdfc6; }

/* ------------------------------------------------------------ шпаргалка справа */
.side-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px; box-shadow: var(--shadow-sm);
}
.side-card h2, .side-card h3 {
  margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
}
.side-card .btn { width: 100%; justify-content: center; margin-top: 4px; }
.side-facts { display: grid; gap: 10px; }
.side-facts > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; align-items: baseline; }
.side-facts dt { color: var(--muted); }
.side-facts dd { margin: 0; font-weight: 700; text-align: right; }
.side-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14.5px; }
.side-links a { display: block; }

/* ------------------------------------------------------------ смысл для построек */
.impl { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.impl-item {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; box-shadow: var(--shadow-sm);
}
.impl-item h3 { margin: 0 0 6px; font-size: 16.5px; color: var(--accent); }
.impl-item p { margin: 0; font-size: 14.6px; color: var(--ink-soft); }

/* ------------------------------------------------------------ картинки и графики */
.figure { margin: 20px 0 28px; }
.figure img {
  display: block; width: 100%; max-width: 720px; height: auto;
  border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm);
}
.chart { margin: 14px 0 30px; }
.chart svg { display: block; width: 100%; height: auto; }
.chart figcaption { margin-top: 8px; font-size: 13.5px; color: var(--muted); }

/* ------------------------------------------------------------ оглавление статьи */
.toc {
  margin: 10px 0 28px; padding: 18px 20px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--paper); box-shadow: var(--shadow-sm);
}
.toc strong { display: block; margin-bottom: 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; }
.toc a { color: var(--ink-soft); }
.toc a:hover { color: var(--accent); text-decoration: none; }

/* ------------------------------------------------------------ подвал */
.footer {
  background: var(--paper); border-top: 1px solid var(--line);
  padding: 42px 0 20px; margin-top: 56px;
}
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid strong {
  display: block; margin-bottom: 10px; font-size: 12px;
  text-transform: uppercase; letter-spacing: .09em; color: var(--muted);
}
.footer p { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.footer .brand-line { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.plain { list-style: none; padding: 0; margin: 0; font-size: 14.5px; display: grid; gap: 7px; }
.plain a { color: var(--ink-soft); }
.plain a:hover { color: var(--accent); text-decoration: none; }
.disclaimer { border-top: 1px solid var(--line-soft); padding-top: 18px; margin-top: 30px; font-size: 13px; color: var(--muted); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line-soft); margin-top: 18px; padding-top: 16px;
  font-size: 13px; color: var(--muted);
}
.copy { font-size: 13px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .card, .btn, .linkgrid a { transition: none; }
  .card:hover, .btn:hover, .linkgrid a:hover { transform: none; }
}

/* первый экран: текст слева, схема справа */
.hero-top { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 34px; align-items: center; }
.hero-copy { min-width: 0; }
.hero-visual img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); display: block; }
@media (max-width: 900px) { .hero-top { grid-template-columns: 1fr; gap: 22px; } .hero-visual img { max-width: 460px; } }

/* длина строки: абзацы не должны растягиваться на весь экран */
main > .wrap > p, .main-col > p, .article p, .prose p { max-width: 76ch; }


/* ------------------------------------------------------------ поиск */
.search-btn {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink-soft); font: inherit; font-size: 14.5px; font-weight: 500;
  cursor: pointer; box-shadow: var(--shadow-sm);
}
.search-btn:hover { border-color: #c3d6de; color: var(--accent); }
.search-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.search-btn kbd {
  font: inherit; font-size: 11.5px; color: var(--muted); background: var(--sand);
  border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px;
}
@media (max-width: 820px) { .search-btn span, .search-btn kbd { display: none; } .search-btn { padding: 9px 11px; } }

.search-modal {
  position: fixed; inset: 0; z-index: 30; display: grid; place-items: start center;
  background: rgba(16, 33, 28, .38); backdrop-filter: blur(3px);
  padding: 8vh 16px 16px; overflow: auto;
}
.search-modal[hidden] { display: none; }
.search-box {
  width: min(720px, 100%); background: var(--paper); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 18px; border: 1px solid var(--line);
}
.search-form { display: flex; gap: 8px; align-items: center; }
.search-form input {
  flex: 1; min-width: 0; font: inherit; font-size: 16.5px; padding: 12px 15px;
  border-radius: 11px; border: 1px solid var(--line); background: #fbfdfc; color: var(--ink);
}
.search-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-close {
  border: 0; background: none; font-size: 26px; line-height: 1; color: var(--muted);
  cursor: pointer; padding: 4px 8px; border-radius: 8px;
}
.search-close:hover { background: var(--sand); color: var(--ink); }
.search-results { margin-top: 12px; max-height: 58vh; overflow: auto; }
.search-hint, .search-empty { color: var(--muted); font-size: 14.5px; margin: 8px 2px; }
.search-list { list-style: none; margin: 0; padding: 0; }
.search-list li { border-bottom: 1px solid var(--line-soft); padding: 10px 4px; }
.search-list li:last-child { border-bottom: 0; }
.search-list a { font-weight: 600; font-size: 15.5px; }
.search-list span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.search-all { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; }
body.search-open { overflow: hidden; }

/* страница поиска */
.search-page { max-width: 760px; }
.search-page .search-form { margin: 18px 0 8px; }
.search-page .search-results { max-height: none; }

/* ------------------------------------------------------------ хлебные крошки */
.crumbs {
  display: flex; align-items: center; flex-wrap: wrap; gap: 2px;
  font-size: 13.5px; color: var(--muted); margin-bottom: 16px;
}
.crumbs a { color: var(--muted); padding: 4px 8px; border-radius: 8px; }
.crumbs a:hover { color: var(--accent); background: var(--accent-soft); text-decoration: none; }
.crumb-sep { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .45; }
.crumb-current { color: var(--ink-soft); font-weight: 600; padding: 4px 8px; background: var(--paper); border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); }



/* ------------------------------------------------------------ подсказки в поиске */
.search-chips-wrap { margin-top: 12px; }
.search-chips-title {
  display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); font-weight: 700; margin-bottom: 7px;
}
.search-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.search-chip {
  font: inherit; font-size: 14px; padding: 7px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft);
  transition: border-color .14s ease, color .14s ease, background .14s ease;
}
.search-chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* ------------------------------------------------------------ переключатель темы */
.theme-btn {
  display: inline-grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 11px; cursor: pointer;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.theme-btn:hover { color: var(--accent); border-color: #c3d6de; }
.theme-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .ico-sun { display: none; }
:root[data-theme="dark"] .theme-btn .ico-sun { display: block; }
:root[data-theme="dark"] .theme-btn .ico-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .ico-sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .ico-moon { display: none; }
}

/* ------------------------------------------------------------ тёмная тема */
:root[data-theme="dark"] {
  --ink: #e8f0ec;
  --ink-soft: #c8d8d2;
  --muted: #94a8a2;
  --line: #2b3b38;
  --line-soft: #23302e;
  --paper: #17211f;
  --sand: #0f1817;
  --accent: #57c295;
  --accent-dark: #7ad9b1;
  --accent-soft: #1b2f29;
  --snow: #7fb6dd;
  --snow-soft: #182b36;
  --wind: #d9b072;
  --wind-soft: #2a2418;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .45);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px rgba(0, 0, 0, .35);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .5), 0 20px 48px rgba(0, 0, 0, .45);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e8f0ec;
    --ink-soft: #c8d8d2;
    --muted: #94a8a2;
    --line: #2b3b38;
    --line-soft: #23302e;
    --paper: #17211f;
    --sand: #0f1817;
    --accent: #57c295;
    --accent-dark: #7ad9b1;
    --accent-soft: #1b2f29;
    --snow: #7fb6dd;
    --snow-soft: #182b36;
    --wind: #d9b072;
    --wind-soft: #2a2418;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .45);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px rgba(0, 0, 0, .35);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .5), 0 20px 48px rgba(0, 0, 0, .45);
  }
}

/* элементы, у которых цвет был прописан жёстко */
:root[data-theme="dark"] .topbar { background: rgba(23, 33, 31, .92); }
:root[data-theme="dark"] .hero-panel {
  background:
    radial-gradient(120% 90% at 88% -10%, var(--accent-soft) 0%, rgba(23, 33, 31, 0) 58%),
    radial-gradient(90% 80% at 4% 108%, #16211f 0%, rgba(23, 33, 31, 0) 60%),
    var(--paper);
}
:root[data-theme="dark"] thead th { background: #1c2826; }
:root[data-theme="dark"] tbody tr:nth-child(even) { background: #1a2523; }
:root[data-theme="dark"] tbody tr:hover { background: var(--accent-soft); }
:root[data-theme="dark"] .field input,
:root[data-theme="dark"] .field select,
:root[data-theme="dark"] .search-form input { background: #141d1c; }
:root[data-theme="dark"] .calc-out { background: #172220; }
:root[data-theme="dark"] .verdict.ok { background: #16302a; border-color: #27564a; }
:root[data-theme="dark"] .verdict.bad { background: #33201f; border-color: #5c3634; }
:root[data-theme="dark"] .verdict.mid { background: var(--wind-soft); }
:root[data-theme="dark"] .stat.snow { border-color: #26404f; }
:root[data-theme="dark"] .stat.wind { border-color: #4a3f26; }
:root[data-theme="dark"] .stat.warm { background: #2a2318; border-color: #4a3f26; }
:root[data-theme="dark"] .figure img,
:root[data-theme="dark"] .hero-visual img { background: #fff; }
:root[data-theme="dark"] .note { border-color: #2c4a3f; }
:root[data-theme="dark"] .note-warn { border-color: #4a3f26; }
:root[data-theme="dark"] .search-box { background: var(--paper); }
:root[data-theme="dark"] .crumbs a:hover { background: var(--accent-soft); }
:root[data-theme="dark"] .search-list a { color: var(--accent-dark); }



/* ------------------------------------------------------------ частые вопросы */
.faq { margin-top: 12px; }
.faq-item {
  border-top: 1px solid var(--line-soft); padding: 16px 0 14px;
}
.faq-item:first-of-type { border-top: 0; padding-top: 4px; }
.faq-item h3 {
  margin: 0 0 6px; font-size: 17px; line-height: 1.35; font-weight: 700;
  letter-spacing: -.01em;
}
.faq-item p { margin: 0; color: var(--ink-soft); font-size: 15px; max-width: 72ch; }
:root[data-theme="dark"] .faq-item { border-top-color: var(--line); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .faq-item { border-top-color: var(--line); }
}


/* блок «Смотрите также»: карточки с подсказками */
.links-block { margin-top: 30px; }
.linkgrid a strong { font-weight: 650; font-size: 15.5px; color: var(--ink); display: block; }
.linkgrid a span { display: block; margin-top: 3px; }
.linkgrid a:hover strong { color: var(--accent); }
