/* ============ База: утилитарный минимализм + современные детали ============ */
:root {
  --brand: #0b5cad;
  --brand-dark: #08417a;
  --brand-soft: #eaf2fa;
  --ink: #1c2228;
  --ink-soft: #5a6570;
  --bg: #f6f7f8;
  --card: #ffffff;
  --line: #dfe4e8;
  --radius: 10px;
  --radius-lg: 14px;
  --wrap: 1080px;
  --header-h: 62px;
  --shadow-sm: 0 1px 2px rgba(28, 34, 40, 0.05), 0 1px 3px rgba(28, 34, 40, 0.07);
  --shadow-md: 0 2px 6px rgba(28, 34, 40, 0.06), 0 10px 28px rgba(28, 34, 40, 0.10);
  font-size: 16px;
  accent-color: var(--brand);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}
::selection {
  background: color-mix(in srgb, var(--brand) 22%, transparent);
}

h1, h2, h3 { line-height: 1.22; letter-spacing: -0.01em; }
h1 {
  font-size: clamp(1.35rem, 1.05rem + 1.3vw, 1.9rem);
  margin: 0.45em 0;
  text-wrap: balance;
}
h2 { font-size: clamp(1.08rem, 1rem + 0.5vw, 1.32rem); margin: 1.5em 0 0.5em; }
p { margin: 0.5em 0; }

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

/* ============ Темы портфеля ============ */
.theme-tire { --bg: #ffffff; } /* основная палитра — в блоке «ТЕМА TIRE» внизу */
.theme-pdd  { --brand: #0b5cad; --brand-dark: #08417a; --brand-soft: #eaf2fa; --bg: #f4f7fb; }
.theme-kids { --brand: #4e7d5b; --brand-dark: #3b6146; --brand-soft: #eef5ef; --bg: #f8f7f3; }

/* ============ Шапка (эффект стекла) ============ */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--card) 84%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line));
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: var(--card); }
}
.header-inner {
  display: flex; flex-wrap: wrap; gap: 10px;
  align-items: center; justify-content: space-between;
  min-height: var(--header-h);
  padding-top: 8px; padding-bottom: 8px;
}
.logo {
  font-weight: 700; font-size: 1.12rem; color: var(--brand);
  letter-spacing: -0.01em;
}
.logo:hover { color: var(--brand-dark); text-decoration: none; }

/* Поиск: pill-форма с градиентной кнопкой */
.search-form {
  display: flex; flex: 1 1 260px; max-width: 430px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search-form:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent);
}
.search-form input {
  flex: 1; min-width: 0; padding: 8px 14px; font-size: 1rem;
  border: 0; border-radius: 999px;
  background: transparent; color: var(--ink);
}
.search-form input:focus { outline: none; }
.search-form button {
  padding: 8px 18px; font-size: 0.95rem; cursor: pointer;
  border: 0; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  transition: filter 0.15s ease, transform 0.1s ease;
}
.search-form button:hover { filter: brightness(1.08); }
.search-form button:active { transform: scale(0.97); }

/* ============ Хлебные крошки ============ */
.breadcrumbs {
  font-size: 0.85rem; color: var(--ink-soft);
  padding: 12px 0 2px; overflow-wrap: anywhere;
}
.breadcrumbs .sep { margin: 0 6px; color: var(--line); }
.breadcrumbs span[aria-current] { color: var(--ink); }

/* ============ Лид и контент ============ */
main { padding-bottom: 44px; }
.lead { font-size: 1.06rem; color: var(--ink-soft); max-width: 72ch; }
.seo-text { max-width: 76ch; }
.seo-text p { margin: 0.7em 0; }
.note {
  font-size: 0.9rem; color: var(--ink-soft);
  background: var(--brand-soft); border-left: 3px solid var(--brand);
  padding: 10px 14px; border-radius: 0 var(--radius) var(--radius) 0;
}
.disclaimer {
  font-size: 0.88rem; color: #7a5b16;
  background: #fdf6e3; border: 1px solid #ecd9a0;
  border-radius: var(--radius); padding: 10px 14px; margin: 12px 0;
}
.source { font-size: 0.85rem; color: var(--ink-soft); margin-top: 26px; }

/* ============ Карточки категорий ============ */
.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px; margin: 20px 0;
}
.cat-card {
  display: block; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 16px 18px; color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.cat-card:hover,
.cat-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  color: var(--ink);
  text-decoration: none;
}
.cat-card h2 { margin: 0 0 5px; font-size: 1.06rem; color: var(--brand); }
.cat-card p { margin: 0; font-size: 0.88rem; color: var(--ink-soft); }

/* ============ Таблицы данных ============ */
.data-table {
  width: 100%; margin: 18px 0; border-collapse: collapse;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  overflow: clip; /* сохраняет скругление, не ломает sticky-шапку */
  font-size: 0.95rem;
}
@supports not (overflow: clip) { .data-table { overflow: hidden; } }
.data-table th, .data-table td {
  padding: 11px 13px; text-align: left;
  border-bottom: 1px solid var(--line);
}
.data-table thead th {
  background: color-mix(in srgb, var(--brand-soft) 88%, transparent);
  color: var(--ink);
  font-weight: 600; white-space: nowrap;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.data-table tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--brand-soft) 35%, transparent);
}
.data-table tbody tr { transition: background 0.12s ease; }
.data-table tbody tr:hover { background: color-mix(in srgb, var(--brand-soft) 65%, transparent); }
.data-table tbody tr:last-child td { border-bottom: 0; }

/* Липкая шапка таблицы под шапкой сайта (только десктоп) */
@media (min-width: 641px) {
  .data-table thead th { position: sticky; top: calc(var(--header-h) + 6px); z-index: 5; }
}

/* ============ Миниатюры в таблицах (знаки ПДД) ============ */
.row-thumb-td { width: 56px; }
.th-thumb { width: 56px; }
.row-thumb {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 0.15s ease, transform 0.12s ease;
}
.row-thumb img {
  width: 32px; height: 32px;
  display: block;
}
.row-thumb:hover {
  border-color: var(--brand);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ============ Рекламные слоты (плейсхолдеры до подключения РСЯ) ============ */
.ad {
  display: flex; align-items: center; justify-content: center;
  margin: 20px 0; min-height: 90px;
  border: 1px dashed color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: var(--radius-lg);
  color: color-mix(in srgb, var(--ink-soft) 75%, transparent);
  font-size: 0.85rem; background: color-mix(in srgb, var(--card) 60%, transparent);
}
.ad-sticky {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  min-height: 60px; margin: 0; border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0;
  background: var(--card);
}

/* ============ FAQ ============ */
.faq details {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); margin: 10px 0; padding: 0 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease;
}
.faq details[open] { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.faq summary {
  cursor: pointer; font-weight: 600; padding: 13px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  list-style: none;
  transition: color 0.15s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand); }
.faq summary::after {
  content: "+";
  flex: none; font-size: 1.25rem; font-weight: 500; line-height: 1;
  color: var(--brand);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { color: var(--brand); }
.faq details p {
  padding-bottom: 14px; color: var(--ink-soft);
  animation: faq-slide 0.22s ease;
}
@keyframes faq-slide {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* ============ Поиск ============ */
.search-results { list-style: none; margin: 14px 0; padding: 0; }
.search-results li {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 12px 16px; margin: 10px 0;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease;
}
.search-results li:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.search-results a { font-weight: 600; }
.search-cat { display: block; font-size: 0.82rem; color: var(--ink-soft); }

/* ============ Прочее ============ */
.related { margin-top: 28px; }
.related ul { padding-left: 20px; }
.item-image {
  display: block; margin: 16px auto; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 10px;
  box-shadow: var(--shadow-sm);
}
.copy-link {
  padding: 9px 18px; font-size: 0.9rem; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--brand);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}
.copy-link:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.site-footer {
  border-top: 1px solid var(--line); background: var(--card);
  padding: 18px 0 70px; font-size: 0.85rem; color: var(--ink-soft);
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 8px; }
.footer-copy { margin: 0; }

/* ============ Группы на главной и список А-Я ============ */
.all-brands-link { font-weight: 600; }
.group-h {
  margin: 1.8em 0 0.2em; font-size: 1.15rem; color: var(--brand);
  padding-bottom: 4px; border-bottom: 2px solid color-mix(in srgb, var(--brand) 25%, var(--line));
}
.group-text { margin: 0.2em 0 0.6em; font-size: 0.9rem; color: var(--ink-soft); max-width: 70ch; }
.cat-card h3 { margin: 0 0 5px; font-size: 1.02rem; color: var(--brand); }
.letter-h {
  position: sticky; top: calc(var(--header-h) + 4px); z-index: 6;
  margin: 1.2em 0 0.4em; font-size: 1.1rem; color: var(--brand);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 4px 0;
}
.brands-list {
  list-style: none; margin: 0 0 8px; padding: 0;
  columns: 3; column-gap: 28px;
}
.brands-list li {
  break-inside: avoid; padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  display: flex; justify-content: space-between; gap: 10px; align-items: baseline;
}
.brands-list a { font-weight: 500; }
.brands-count { font-size: 0.8rem; color: var(--ink-soft); white-space: nowrap; }
@media (max-width: 860px) { .brands-list { columns: 2; } }
@media (max-width: 560px) { .brands-list { columns: 1; } }

/* ============ Мобайл: длинные таблицы -> карточки ============ */
@media (max-width: 640px) {
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td {
    display: block; width: 100%; border: 0;
  }
  .data-table {
    background: transparent; border: 0; border-radius: 0;
    box-shadow: none; overflow: visible;
  }
  .data-table tr {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius-lg); margin: 10px 0; padding: 4px 0;
    box-shadow: var(--shadow-sm);
  }
  .data-table td {
    border-bottom: 1px dashed var(--line); padding: 9px 13px;
  }
  .data-table td:last-child { border-bottom: 0; }
  .data-table td::before {
    content: attr(data-label);
    display: block; font-size: 0.72rem; text-transform: uppercase;
    letter-spacing: 0.5px; color: var(--ink-soft); margin-bottom: 3px;
  }
  /* Миниатюра: без лейбла, компактно в потоке карточки */
  .data-table td[data-thumb] { padding: 10px 13px 0; }
  .data-table td[data-thumb]::before { content: none; }
  .row-thumb { width: 44px; height: 44px; }
  .row-thumb img { width: 34px; height: 34px; }
  .data-table tbody tr:nth-child(even), .data-table tbody tr:hover { background: var(--card); }
  .ad-sticky { display: flex; }
}

/* ================================================================
   ТЕМА TIRE «GRADIENT SAAS»: белый, пастельные градиенты, стекло.
   Всё scoped в .theme-tire — pdd/kids не затронуты.
   ================================================================ */
.theme-tire {
  --brand: #6366f1; --brand-dark: #4f46e5; --brand-soft: #eef2ff;
  --grad: linear-gradient(120deg, #6366f1, #ec4899);
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --bg: #ffffff;
}

/* Шапка: белое стекло, градиентный маркер логотипа */
.theme-tire .site-header {
  background: color-mix(in srgb, #ffffff 80%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #eef0f4;
}
.theme-tire .logo { color: #312e81; display: inline-flex; align-items: center; gap: 9px; }
.theme-tire .logo::before {
  content: ""; width: 13px; height: 13px; border-radius: 4px;
  background: var(--grad); flex: none;
}
.theme-tire .logo:hover { color: var(--brand-dark); }

/* Герой на главной: пастельная градиентная подложка */
.theme-tire .hero {
  position: relative; overflow: hidden; background: #fff;
  border: 1px solid #f0f0f5; border-radius: 24px;
  padding: clamp(20px, 4vw, 34px); margin: 18px 0 26px;
}
.theme-tire .hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 65%; height: 190%;
  background: radial-gradient(closest-side, #e0e7ff, transparent 70%),
              radial-gradient(closest-side at 30% 60%, #fce7f3, transparent 70%);
  filter: blur(10px); pointer-events: none;
}
.theme-tire .hero > * { position: relative; }
.theme-tire h1 { letter-spacing: -0.025em; }

/* Заголовки групп: спокойные серые капсом + градиентный разделитель */
.theme-tire .group-h {
  color: #9ca3af; font-size: 0.92rem; text-transform: uppercase;
  letter-spacing: 0.09em; margin: 30px 0 4px; padding: 0; border-bottom: 0;
}
.theme-tire .group-h::after {
  content: ""; display: block; height: 2px; margin-top: 7px; border-radius: 2px;
  background: linear-gradient(90deg, #6366f1, #ec4899 45%, transparent 90%);
  opacity: 0.5;
}
.theme-tire .group-text { margin-top: 10px; }

/* Карточки марок: градиентная кромка при hover */
.theme-tire .cat-card {
  position: relative; overflow: hidden; border-color: #eef0f4; border-radius: 16px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.theme-tire .cat-card::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  background: var(--grad); opacity: 0; transition: opacity .18s ease;
}
.theme-tire .cat-card:hover { border-color: #d9dcf5; box-shadow: 0 10px 30px rgba(99,102,241,.10); }
.theme-tire .cat-card:hover::after { opacity: 1; }
.theme-tire .cat-card h3 { color: #1f2937; }
.theme-tire .prange-badge {
  display: inline-block; font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  color: #7c3aed; background: linear-gradient(120deg, #eef2ff, #fdf2f8);
  border-radius: 999px; padding: 3px 10px; margin-left: 4px; vertical-align: 1px;
}

/* Таблицы: мягкие скругления, лёгкий thead */
.theme-tire .data-table { border-radius: 16px; border-color: #eef0f4; }
.theme-tire .data-table thead th {
  background: #fafafd; color: #9ca3af;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
}
.theme-tire .data-table td { border-color: #f3f4f8; font-variant-numeric: tabular-nums; }
.theme-tire .brands-count { font-family: var(--mono); }

/* Манометры: стекло + градиентные цифры */
.gauges { display: flex; gap: 18px; flex-wrap: wrap; margin: 18px 0 6px; }
.gauge {
  margin: 0; flex: 1 1 200px; max-width: 260px; text-align: center;
  background: rgba(255,255,255,.75); border: 1px solid rgba(226,232,240,.9);
  border-radius: 18px; padding: 14px 12px 12px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 30px rgba(99,102,241,.08);
}
.gauge svg { width: 100%; height: auto; display: block; }
.gauge figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 5px; }
.g-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: #8a8fa0; }
.g-value {
  font-family: var(--mono); font-size: 1.6rem; font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.g-value small {
  background: none; color: #9ca3af; -webkit-text-fill-color: #9ca3af;
  font-size: 0.8rem; font-weight: 400;
}
.g-loaded { font-family: var(--mono); font-size: 0.8rem; color: #db2777; }
.g-scale { fill: none; stroke: #edeef4; stroke-width: 8; }
.g-zone { fill: none; stroke: #f9a8d4; stroke-width: 8; stroke-linecap: round; }
.g-tick { stroke: #fff; stroke-width: 1.5; }
.g-needle { stroke: #6366f1; stroke-width: 4; stroke-linecap: round; }
.g-hub { fill: #6366f1; }
@media (max-width: 560px) { .gauges { gap: 12px; } .gauge { flex-basis: 44%; } }

/* ================================================================
   ТЕМА SIZES: тот же современный язык, градиент фиолетовый→синий.
   Scoped в .theme-sizes.
   ================================================================ */
.theme-sizes {
  --brand: #7c3aed; --brand-dark: #6d28d9; --brand-soft: #f3efff;
  --grad: linear-gradient(120deg, #7c3aed, #2563eb);
  --bg: #ffffff;
}
.theme-sizes .site-header {
  background: color-mix(in srgb, #ffffff 80%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #eef0f4;
}
.theme-sizes .logo { color: #3b2f6e; display: inline-flex; align-items: center; gap: 9px; }
.theme-sizes .logo::before {
  content: ""; width: 13px; height: 13px; border-radius: 4px;
  background: var(--grad); flex: none;
}
.theme-sizes .logo:hover { color: var(--brand-dark); }
.theme-sizes .hero {
  position: relative; overflow: hidden; background: #fff;
  border: 1px solid #f0f0f5; border-radius: 24px;
  padding: clamp(20px, 4vw, 34px); margin: 18px 0 26px;
}
.theme-sizes .hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 65%; height: 190%;
  background: radial-gradient(closest-side, #ede9fe, transparent 70%),
              radial-gradient(closest-side at 30% 60%, #dbeafe, transparent 70%);
  filter: blur(10px); pointer-events: none;
}
.theme-sizes .hero > * { position: relative; }
.theme-sizes h1 { letter-spacing: -0.025em; }
.theme-sizes .group-h {
  color: #9ca3af; font-size: 0.92rem; text-transform: uppercase;
  letter-spacing: 0.09em; margin: 30px 0 4px; padding: 0; border-bottom: 0;
}
.theme-sizes .group-h::after {
  content: ""; display: block; height: 2px; margin-top: 7px; border-radius: 2px;
  background: linear-gradient(90deg, #7c3aed, #2563eb 45%, transparent 90%);
  opacity: 0.5;
}
.theme-sizes .group-text { margin-top: 10px; }
.theme-sizes .cat-card {
  position: relative; overflow: hidden; border-color: #eef0f4; border-radius: 16px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.theme-sizes .cat-card::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  background: var(--grad); opacity: 0; transition: opacity .18s ease;
}
.theme-sizes .cat-card:hover { border-color: #ddd6f5; box-shadow: 0 10px 30px rgba(124,58,237,.10); }
.theme-sizes .cat-card:hover::after { opacity: 1; }
.theme-sizes .cat-card h3 { color: #1f2937; }
.theme-sizes .data-table { border-radius: 16px; border-color: #eef0f4; }
.theme-sizes .data-table thead th {
  background: #fbfaff; color: #9ca3af;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
}
.theme-sizes .data-table td { border-color: #f3f4f8; font-variant-numeric: tabular-nums; }

/* ================================================================
   ТЕМА COOK: современный язык, тёплый градиент оранжевый→розовый.
   Scoped в .theme-cook.
   ================================================================ */
.theme-cook {
  --brand: #ea580c; --brand-dark: #c2410c; --brand-soft: #fff3ea;
  --grad: linear-gradient(120deg, #ea580c, #db2777);
  --bg: #ffffff;
}
.theme-cook .site-header {
  background: color-mix(in srgb, #ffffff 80%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #eef0f4;
}
.theme-cook .logo { color: #7c2d12; display: inline-flex; align-items: center; gap: 9px; }
.theme-cook .logo::before {
  content: ""; width: 13px; height: 13px; border-radius: 4px;
  background: var(--grad); flex: none;
}
.theme-cook .logo:hover { color: var(--brand-dark); }
.theme-cook .hero {
  position: relative; overflow: hidden; background: #fff;
  border: 1px solid #f0f0f5; border-radius: 24px;
  padding: clamp(20px, 4vw, 34px); margin: 18px 0 26px;
}
.theme-cook .hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 65%; height: 190%;
  background: radial-gradient(closest-side, #ffedd5, transparent 70%),
              radial-gradient(closest-side at 30% 60%, #fce7f3, transparent 70%);
  filter: blur(10px); pointer-events: none;
}
.theme-cook .hero > * { position: relative; }
.theme-cook h1 { letter-spacing: -0.025em; }
.theme-cook .cat-card {
  position: relative; overflow: hidden; border-color: #eef0f4; border-radius: 16px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.theme-cook .cat-card::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  background: var(--grad); opacity: 0; transition: opacity .18s ease;
}
.theme-cook .cat-card:hover { border-color: #f5ddd0; box-shadow: 0 10px 30px rgba(234,88,12,.10); }
.theme-cook .cat-card:hover::after { opacity: 1; }
.theme-cook .cat-card h3 { color: #1f2937; }
.theme-cook .data-table { border-radius: 16px; border-color: #eef0f4; }
.theme-cook .data-table thead th {
  background: #fffcfa; color: #b3a89f;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
}
.theme-cook .data-table td { border-color: #f7f2ee; font-variant-numeric: tabular-nums; }

/* ================================================================
   ТЕМА MOON: современный язык, небесный градиент синий→циан.
   Scoped в .theme-moon.
   ================================================================ */
.theme-moon {
  --brand: #2563eb; --brand-dark: #1d4ed8; --brand-soft: #eff6ff;
  --grad: linear-gradient(120deg, #2563eb, #06b6d4);
  --bg: #ffffff;
}
.theme-moon .site-header {
  background: color-mix(in srgb, #ffffff 80%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #eef0f4;
}
.theme-moon .logo { color: #172554; display: inline-flex; align-items: center; gap: 9px; }
.theme-moon .logo::before {
  content: ""; width: 13px; height: 13px; border-radius: 50%;
  background: var(--grad); flex: none;
}
.theme-moon .logo:hover { color: var(--brand-dark); }
.theme-moon .hero {
  position: relative; overflow: hidden; background: #fff;
  border: 1px solid #f0f0f5; border-radius: 24px;
  padding: clamp(20px, 4vw, 34px); margin: 18px 0 26px;
}
.theme-moon .hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 65%; height: 190%;
  background: radial-gradient(closest-side, #dbeafe, transparent 70%),
              radial-gradient(closest-side at 30% 60%, #cffafe, transparent 70%);
  filter: blur(10px); pointer-events: none;
}
.theme-moon .hero > * { position: relative; }
.theme-moon h1 { letter-spacing: -0.025em; }
.theme-moon .group-h {
  color: #9ca3af; font-size: 0.92rem; text-transform: uppercase;
  letter-spacing: 0.09em; margin: 30px 0 4px; padding: 0; border-bottom: 0;
}
.theme-moon .group-h::after {
  content: ""; display: block; height: 2px; margin-top: 7px; border-radius: 2px;
  background: linear-gradient(90deg, #2563eb, #06b6d4 45%, transparent 90%);
  opacity: 0.5;
}
.theme-moon .group-text { margin-top: 10px; }
.theme-moon .cat-card {
  position: relative; overflow: hidden; border-color: #eef0f4; border-radius: 16px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.theme-moon .cat-card::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  background: var(--grad); opacity: 0; transition: opacity .18s ease;
}
.theme-moon .cat-card:hover { border-color: #d0dcf5; box-shadow: 0 10px 30px rgba(37,99,235,.10); }
.theme-moon .cat-card:hover::after { opacity: 1; }
.theme-moon .cat-card h3 { color: #1f2937; }
.theme-moon .data-table { border-radius: 16px; border-color: #eef0f4; }
.theme-moon .data-table thead th {
  background: #fafcff; color: #9ca3af;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
}
.theme-moon .data-table td { border-color: #f2f5fa; font-variant-numeric: tabular-nums; }
