:root {
  --bg: #ffffff;
  --panel: #f6f7f9;
  --card: #ffffff;
  --ink: #1d1f23;
  --muted: #646a73;
  --faint: #8b919a;
  --line: #e3e6ea;
  --accent: #1f5fd1;
  --accent-ink: #ffffff;
  --brand: #e2531d;
  --ok-bg: #e6f4ea; --ok: #1e7a3c;
  --warn-bg: #fdf1dc; --warn: #8a5a00;
  --radius: 10px;
}
/* тёмная — только если человек сам выбрал её кнопкой ☾ */
html.theme-dark {
    --bg: #15171a; --panel: #1d2024; --card: #1a1c20; --ink: #e8eaed; --muted: #a3a9b2; --faint: #7d838c;
    --line: #2d3137; --accent: #7aa7ff; --accent-ink: #0f1420; --brand: #ff7a45;
    --ok-bg: #173323; --ok: #7fd49b; --warn-bg: #3a2c10; --warn: #f0c060;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--text); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.logo { font-size: 44px; font-weight: 700; letter-spacing: -1.5px; margin: 0 0 22px; color: var(--ink); }
.logo span { color: var(--brand); }
.logo--small { font-size: 21px; letter-spacing: -0.5px; margin: 0; white-space: nowrap; }
.logo--small:hover { text-decoration: none; }

/* Поле поиска */
.search { position: relative; display: flex; gap: 8px; width: 100%; }
.search input { flex: 1; min-width: 0; height: 44px; padding: 0 18px; font-size: 17px; color: var(--ink); background: var(--card);
  border: 1.5px solid var(--line); border-radius: 24px; outline: none; }
.search input:focus { border-color: var(--accent); }
.search button { height: 44px; padding: 0 22px; font-size: 16px; font-weight: 600; border: 0; border-radius: 24px;
  background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.search--big input, .search--big button { height: 52px; }
.search--big input { font-size: 19px; padding: 0 22px; }
.suggest { position: absolute; z-index: 5; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.08); text-align: left; }
.suggest li { padding: 8px 14px; border-radius: 8px; cursor: pointer; }
.suggest li.on, .suggest li:hover { background: var(--panel); }
.suggest li { display: flex; justify-content: space-between; gap: 12px; }
.suggest li small { color: var(--faint); font-size: 12px; padding-top: 3px; }
.suggest li.sg-t { cursor: default; padding: 6px 14px 4px; font-size: 12px; font-weight: 600; color: var(--faint); background: none; }

/* Главная */
.home { max-width: 640px; margin: 0 auto; padding: 16vh 16px 40px; text-align: center; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px 0 0; }
.chips a { padding: 5px 13px; font-size: 14px; color: var(--muted); border: 1px solid var(--line); border-radius: 16px; }
.chips a:hover { color: var(--ink); border-color: var(--faint); text-decoration: none; }
.tagline { margin: 22px 0 0; color: var(--muted); font-size: 15px; }
.home-news { margin: 56px 0 0; text-align: left; }
.home-news h2 { font-size: 14px; font-weight: 600; color: var(--muted); margin: 0 0 8px; }
.news-line { display: flex; justify-content: space-between; gap: 16px; padding: 9px 2px; border-top: 1px solid var(--line); color: var(--ink); font-size: 15px; }
.news-line small { color: var(--faint); white-space: nowrap; font-size: 13px; padding-top: 2px; }
.news-line:hover span { color: var(--accent); }
.news-line:hover { text-decoration: none; }

/* Шапка выдачи */
.top { display: flex; align-items: center; gap: 22px; max-width: 900px; margin: 0 auto; padding: 18px 16px 10px; }
.tabs { display: flex; gap: 22px; max-width: 900px; margin: 0 auto; padding: 0 16px 0 calc(16px + 0px); border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { padding: 10px 0; color: var(--muted); font-size: 15px; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.tabs a:hover { color: var(--ink); text-decoration: none; }

.results { max-width: 900px; margin: 0 auto; padding: 18px 16px 40px; }
.notice { padding: 14px 18px; background: var(--panel); border-radius: var(--radius); margin-bottom: 18px; }
.notice a { margin-left: 6px; }

/* Карточка-ответ */
.answer { padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 26px; }
.answer-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.answer h1 { font-size: 24px; margin: 0; letter-spacing: -0.3px; }
.meta { color: var(--muted); font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 16px 0; }
.stat { padding: 12px 14px; background: var(--panel); border-radius: var(--radius); }
.stat small { display: block; color: var(--muted); font-size: 13px; }
.stat b { display: block; font-size: 24px; letter-spacing: -0.3px; margin: 2px 0; }
.stat b.down { color: var(--ok); }
.stat b.up { color: var(--warn); }
.verdict { margin: 0; font-size: 15px; }
.pill { display: inline-block; padding: 1px 9px; margin-right: 8px; border-radius: 6px; font-size: 13px; font-weight: 600; }
.pill--ok { background: var(--ok-bg); color: var(--ok); }
.builder-cta { display: inline-block; margin-top: 18px; padding: 10px 20px; font-weight: 600; border: 1.5px solid var(--accent); border-radius: 22px; }
.builder-cta:hover { background: var(--accent); color: var(--accent-ink); text-decoration: none; }
.top-link { white-space: nowrap; font-weight: 600; font-size: 15px; }
.add-build { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 15px; }
.sources { margin: 10px 0 0; color: var(--faint); font-size: 13px; }
.demo { margin: 10px 0 0; padding: 7px 12px; background: var(--warn-bg); color: var(--warn); border-radius: 8px; font-size: 13px; }

/* Блоки выдачи */
.block { margin: 0 0 28px; }
.block h2 { font-size: 18px; margin: 0 0 10px; letter-spacing: -0.2px; }
.block.two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; }
.sub { color: var(--muted); font-size: 13px; margin: 14px 0 4px; }
.shops, .useful, .similar { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.shops a, .useful a, .similar a { display: block; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
.shops a:hover, .useful a:hover, .similar a:hover { border-color: var(--accent); text-decoration: none; }
.shops b, .useful b, .similar b { display: block; font-size: 15px; }
.shops small, .useful small, .similar small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.35; }
.similar { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.sub--top { margin: -4px 0 10px; }
.pm { list-style: none; margin: 10px 0 0; padding: 8px 0 0; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.45; }
.pm li { display: flex; gap: 6px; margin: 0 0 3px; color: var(--muted); }
.pm i { font-style: normal; font-weight: 700; width: 12px; flex: none; text-align: center; }
.pm-plus i { color: var(--ok); }
.pm-minus i { color: #c0392b; }
.pm-same i { color: var(--faint); }
.muted { color: var(--faint); font-size: 13px; }
.offers { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.offer { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 11px 14px; color: var(--ink); border-top: 1px solid var(--line); }
.offer:first-child { border-top: 0; }
.offer:hover { background: var(--panel); text-decoration: none; }
.offer-title { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offer-src { color: var(--muted); font-size: 13px; white-space: nowrap; }
.offer-price { font-size: 16px; white-space: nowrap; }
@media (max-width: 640px) {
  .offer { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; }
  .offer-title { grid-column: 1 / -1; white-space: normal; }
}
.specs.compat td:first-child { width: 24%; }
.psu-check { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 14px; background: var(--panel); border-radius: var(--radius); font-size: 15px; }
.psu-check input { width: 90px; height: 34px; padding: 0 10px; font-size: 15px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.psu-result { font-weight: 600; }
.psu-result.ok { color: var(--ok); }
.psu-result.bad { color: #c0392b; }
.psu-result.warn { color: var(--warn); }
@media (max-width: 640px) { .specs.compat td:first-child { width: 38%; } }
.notes, .check { margin: 0; padding-left: 20px; }
.notes li, .check li { margin: 0 0 7px; }
.specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs td { padding: 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs td:first-child { color: var(--muted); width: 42%; padding-right: 10px; }
.hit { padding: 10px 0; border-bottom: 1px solid var(--line); }
.hit small { color: var(--faint); font-size: 13px; }
.hit a { display: block; font-size: 17px; line-height: 1.35; margin: 2px 0; }
.hit p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.linkrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.linkrow a { padding: 6px 13px; border: 1px solid var(--line); border-radius: 16px; font-size: 14px; }
.linkrow a:hover { border-color: var(--accent); text-decoration: none; }
.soon { margin: 12px 0 0; padding: 10px 14px; background: var(--panel); border-radius: var(--radius); color: var(--muted); font-size: 14px; }

.foot { max-width: 900px; margin: 0 auto; padding: 20px 16px 30px; color: var(--faint); font-size: 12px; text-align: center; }

@media (max-width: 640px) {
  .logo:not(.logo--small) { font-size: 34px; }
  .answer { padding: 16px; }
  .answer h1 { font-size: 21px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 10px; }
  .stat b { font-size: 17px; }
  .stat small { font-size: 12px; }
  .top { flex-direction: column; align-items: stretch; gap: 10px; }
  .search button { padding: 0 16px; }
  .block.two { grid-template-columns: 1fr; gap: 20px; }
  .home { padding-top: 10vh; }
  .news-line { flex-direction: column; gap: 0; }
}
/* пометка рекламы у партнёрских ссылок */
.ad-label { display: block !important; margin-top: 3px; font-size: 11px !important; line-height: 1.3; color: var(--faint) !important; font-weight: 400; white-space: normal; }
/* рассрочка Сплит */
.offer-pay { display: flex; flex-direction: column; align-items: flex-end; }
.split { color: #7a3fd1 !important; font-size: 12px !important; font-weight: 600; white-space: nowrap; }
html.theme-dark .split { color: #c39bff !important; }

/* =====================================================================
   Общая шапка и подвал — одни на все страницы (partials.php)
   ===================================================================== */
.hdr { position: sticky; top: 0; z-index: 30; background: rgba(245, 245, 247, .82); backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, .07); }
html.theme-dark .hdr { background: rgba(10, 10, 12, .78); border-bottom-color: rgba(255, 255, 255, .08); }
.hdr-in { display: flex; align-items: center; gap: 24px; max-width: 1240px; min-height: 56px; margin: 0 auto; padding: 8px 16px; }
.hdr-logo { flex: none; font-size: 18px; font-weight: 700; letter-spacing: -.4px; color: var(--ink); white-space: nowrap; }
.hdr-logo span { color: var(--brand); }
.hdr-logo:hover { text-decoration: none; }
.hdr-search { flex: 1 1 auto; max-width: 560px; }
.hdr-search input { height: 38px; padding: 0 16px; font-size: 15px; border-radius: 19px; }
.hdr-search button { height: 38px; padding: 0 18px; font-size: 14px; border-radius: 19px; }
.hdr-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.hdr-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 20px; font-size: 14px; font-weight: 500;
  color: var(--muted); white-space: nowrap; }
.hdr-nav a:hover { color: var(--ink); text-decoration: none; }
.hdr-nav a.on { color: var(--ink); font-weight: 600; background: rgba(0, 0, 0, .05); }
html.theme-dark .hdr-nav a.on { background: rgba(255, 255, 255, .08); }
.hdr-theme { flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; font-size: 16px; color: var(--muted);
  background: transparent; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
.hdr-theme .t-sun { display: none; }
html.theme-light .hdr-theme .t-sun { display: inline; }
html.theme-light .hdr-theme .t-moon { display: none; }
/* телефон: 1-я строка — логотип и тема, 2-я — поиск, 3-я — разделы (прокручиваются, не переносятся) */
@media (max-width: 860px) {
  .hdr { position: static; }
  .hdr-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'logo theme' 'search search' 'nav nav'; gap: 10px 12px; padding: 10px 16px 6px; }
  .hdr-logo { grid-area: logo; align-self: center; }
  .hdr-theme { grid-area: theme; }
  .hdr-search { grid-area: search; max-width: none; }
  .hdr-nav { grid-area: nav; margin: 0 -16px; padding: 0 12px; overflow-x: auto; scrollbar-width: none; gap: 2px; }
  .hdr-nav::-webkit-scrollbar { display: none; }
  .hdr-nav a { min-height: 44px; }
}
body.is-embed .hdr, body.is-embed .ftr { display: none; }
/* средний экран: пять разделов и поиск в строку не влезают — разделы второй строкой под поиском */
@media (min-width: 861px) and (max-width: 1020px) {
  .hdr-in:has(.hdr-search) { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: 'logo search theme' 'nav nav nav'; gap: 6px 24px; padding-bottom: 4px; }
  .hdr-in:has(.hdr-search) .hdr-logo { grid-area: logo; }
  .hdr-in:has(.hdr-search) .hdr-search { grid-area: search; max-width: 640px; }
  .hdr-in:has(.hdr-search) .hdr-theme { grid-area: theme; }
  .hdr-in:has(.hdr-search) .hdr-nav { grid-area: nav; margin: 0 0 0 -12px; }
}
/* шапка без поиска (главная) на узком ноутбуке: разделы под логотипом */
@media (min-width: 861px) and (max-width: 1080px) {
  .hdr-in:not(:has(.hdr-search)) { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'logo theme' 'nav nav'; gap: 6px 24px; padding-bottom: 4px; }
  .hdr-in:not(:has(.hdr-search)) .hdr-logo { grid-area: logo; align-self: center; }
  .hdr-in:not(:has(.hdr-search)) .hdr-theme { grid-area: theme; }
  .hdr-in:not(:has(.hdr-search)) .hdr-nav { grid-area: nav; margin: 0 0 0 -12px; }
}

.ftr { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; max-width: 1240px; margin: 40px auto 0; padding: 24px 16px 32px;
  border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }
.ftr a { color: var(--muted); }
@media (max-width: 980px) { body.is-builder .ftr { padding-bottom: 110px; } }

/* правила набора: ровные заголовки, без коротких «хвостов» в абзацах */
h1, h2, h3, .vd b, .bld-head h1 { text-wrap: balance; }
p, li, small, .ck-lines li, summary { text-wrap: pretty; }
/* короткие подписи кнопок и ссылок-ярлыков не разрываем */
.hdr-nav a, .chips a, .seg button, .gm-ctl button, .bg-goals button, .hdr-search button { white-space: nowrap; }
/* шапка без поиска (главная): логотип, разделы, тема */
@media (max-width: 860px) { .hdr-in:not(:has(.hdr-search)) { grid-template-areas: 'logo theme' 'nav nav'; } }
/* главная: две кнопки рядом */
.home-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.home-cta .builder-cta { margin: 0; }
/* документы: условия, политика, ответы подписки */
.doc { max-width: 720px; margin: 0 auto; padding: 40px 16px 20px; font-size: 16px; line-height: 1.6; }
.doc h1 { font-size: 32px; letter-spacing: -.5px; line-height: 1.15; margin: 0 0 20px; }
.doc h2 { font-size: 20px; letter-spacing: -.2px; margin: 32px 0 10px; }
.doc p, .doc ul { margin: 0 0 14px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc--short { padding-top: 12vh; text-align: center; }
/* разделы в шапке — свой цвет на всех страницах, не цвет обычной ссылки */
.hdr .hdr-nav a { color: var(--muted); }
.hdr .hdr-nav a:hover, .hdr .hdr-nav a.on { color: var(--ink); }
@media (max-width: 860px) {
  .hdr .hdr-nav { margin: 0 -8px; padding: 0; justify-content: space-between; overflow-x: auto; overscroll-behavior-x: contain; }
  .hdr .hdr-nav a { flex: 1 0 auto; justify-content: center; padding: 0 6px; font-size: 13.5px; }
}
/* телефон: пять разделов не влезают — строка листается пальцем, справа затухание: видно, что дальше есть ещё */
@media (max-width: 560px) {
  .hdr .hdr-nav { justify-content: flex-start; padding-right: 28px; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
  .hdr .hdr-nav a { flex: 0 0 auto; }
}
@media (max-width: 340px) { .hdr .hdr-nav a { font-size: 12.5px; padding: 0 4px; } }
.hdr .hdr-logo { color: var(--ink); }
.hdr .hdr-logo span { color: var(--brand); }
/* акцент в заголовках — тот же градиент, что на главной */
h1 .grad { background: linear-gradient(90deg, #0071e3, #a855f7); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
/* логотип «ПроЖелезо»: «Про» — акцент градиентом (отсылка к Pro) */
.hdr .hdr-logo { letter-spacing: -.5px; }
.hdr .hdr-logo span { background: linear-gradient(90deg, #0071e3, #a855f7); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* =====================================================================
   Заголовки — Unbounded, как у «Гиковки». Шрифт широкий: кегль меньше, без сильного сжатия букв
   ===================================================================== */
:root { --display: 'Unbounded', 'Arial Black', sans-serif; }
h1, h2, h3, .hdr-logo, .sec-head h2, .tool b, .wg h3, .art-lead .art-t strong, .na h1, .na-body h3, .mdl h1, .mdl-sec h2, .bld-head h1,
.answer h1, .block h2, .ck-step h2, .doc h1, .doc h2 { font-family: var(--display); letter-spacing: -.015em; }
h1, .hero h1, .bld-head h1, .mdl h1, .na h1, .answer h1 { font-weight: 700; }
h2, h3, .tool b, .wg h3, .sec-head h2 { font-weight: 500; }
.hdr .hdr-logo { font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
/* текст и интерфейс — Inter, как у «Гиковки» */
:root { --text: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; }
body, button, input, select, textarea { font-family: var(--text); }
body { font-feature-settings: 'cv11', 'ss01'; }

/* 28.10.2026: подвал — разделы по колонкам, ниже выходные данные и ИП */
.ftr.ftr2 { display: block; max-width: 1240px; margin: 56px auto 0; padding: 36px 24px 40px; border-top: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; color: var(--faint); font-size: 14px; }
.ftr2 .ftr-cols { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 28px 32px; }
.ftr2 .ftr-about p { margin: 10px 0 0; max-width: 300px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.ftr2 .ftr-col { display: flex; flex-direction: column; gap: 8px; }
.ftr2 .ftr-col b { margin-bottom: 4px; font: 600 11.5px var(--text); letter-spacing: .07em; text-transform: uppercase; color: var(--ink); }
.ftr.ftr2 .ftr-col a { color: var(--muted) !important; font-size: 14px; line-height: 1.35; width: fit-content; }
.ftr.ftr2 .ftr-col a:hover { color: var(--accent) !important; text-decoration: none; }
.ftr2 .ftr-legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 4px; font-size: 12.5px; line-height: 1.5; }
.ftr2 .ftr-legal p { margin: 0; flex-basis: auto; }
.ftr2 .ftr-imprint b { color: var(--ink); font-weight: 600; }
.ftr2 .ftr-age { display: inline-block; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; font-size: 11.5px; line-height: 18px; }
/* реквизиты слева, примечание о ценах — справа */
.ftr2 .ftr-legal { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); align-items: start; gap: 6px 40px; }
.ftr2 .ftr-req { display: grid; gap: 4px; }
.ftr2 .ftr-note { justify-self: end; max-width: 520px; }
@media (max-width: 760px) { .ftr2 .ftr-legal { grid-template-columns: 1fr; } .ftr2 .ftr-note { justify-self: start; margin-top: 8px !important; } }
.ftr2 span { flex-basis: auto; color: inherit; font-size: inherit; }
@media (max-width: 980px) {
  .ftr2 .ftr-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr2 .ftr-about { grid-column: 1 / -1; }
  body.is-builder .ftr.ftr2 { padding-bottom: 110px; }
}
@media (max-width: 480px) { .ftr.ftr2 { padding: 28px 16px 36px; } .ftr2 .ftr-cols { gap: 24px 20px; } }
.ftr.ftr2 .ftr-col .ftr-sub { margin-top: 14px; }
/* Ответ на вопрос словами в результатах поиска */
.ov { margin: 0 0 18px; padding: 22px 26px; border-radius: 22px; background: var(--c-card, #fff); box-shadow: var(--sh); }
.ov-k { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--c-mut, var(--muted)); }
.ov-k .ic { width: 15px; height: 15px; }
.ov h2 { margin: 8px 0 8px; font-size: 22px; letter-spacing: -.3px; }
.ov p { margin: 0; font-size: 16px; line-height: 1.5; }
.ov-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ov-links a { padding: 8px 14px; border-radius: 999px; background: var(--c-soft, #f1f3f7); color: var(--c-ink, var(--ink)); font-size: 14px; }
.ov-links a:first-child { background: var(--c-office-bg, #e8eefc); color: var(--c-office, #2a53c8); font-weight: 600; }
.ov-links a:hover { text-decoration: none; filter: brightness(.96); }

/* =====================================================================
   Разделы в шапке: пять кнопок, у каждой — меню с инструментами (partials.php, SITE_SECTIONS)
   ===================================================================== */
.hdr-nav .nv-b { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 12px; border: 0; border-radius: 20px; background: transparent;
  font: 500 14px var(--text); color: var(--muted); cursor: pointer; white-space: nowrap; flex: none; }
.hdr-nav .nv-b:hover, .hdr-nav .nv-b[aria-expanded="true"] { color: var(--ink); background: rgba(0, 0, 0, .05); }
.hdr-nav .nv-b.on { color: var(--ink); font-weight: 600; background: #fff; box-shadow: var(--sh); }
html.theme-dark .hdr-nav .nv-b:hover, html.theme-dark .hdr-nav .nv-b[aria-expanded="true"] { background: rgba(255, 255, 255, .07); }
html.theme-dark .hdr-nav .nv-b.on { background: rgba(255, 255, 255, .1); box-shadow: none; }
.nv-ch { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.nv-b[aria-expanded="true"] .nv-ch { transform: rotate(180deg); }
.nv-pop { position: absolute; left: 0; right: 0; top: 100%; z-index: 40; padding: 0 16px; }
.nv-pop[hidden] { display: none; }
.nv-in { width: fit-content; max-width: min(880px, 100%); margin: 8px max(0px, calc((100% - 1240px) / 2)) 0 auto; padding: 18px 18px 16px; border-radius: 22px; background: var(--c-card); box-shadow: 0 18px 50px rgba(17, 20, 30, .16); box-sizing: border-box; }
html.theme-dark .nv-in { background: #17181c; box-shadow: 0 18px 50px rgba(0, 0, 0, .6); }
.nv-t { display: block; margin: 0 0 8px 10px; font: 600 11.5px var(--text); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.nv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 250px)); gap: 4px 8px; }
.nv-grid[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 250px)); }
.nv-grid[data-n="4"] { grid-template-columns: repeat(2, minmax(0, 250px)); }
.nv-i { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; color: var(--ink) !important; }
.nv-i:hover { background: var(--c-soft); text-decoration: none; }
.nv-ic { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--c-office-bg); color: var(--c-office); font-style: normal; }
.nv-i b { display: block; font-size: 14.5px; font-weight: 600; }
.nv-i small { display: block; margin-top: 1px; font-size: 12.5px; color: var(--muted); }
.nv-more { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding: 12px 10px 0; border-top: 1px solid var(--line); }
.nv-more a { padding: 5px 12px; border-radius: 999px; background: var(--c-soft); font-size: 13px; color: var(--ink) !important; }
.nv-more a:hover { background: var(--c-office-bg); text-decoration: none; }
@media (max-width: 860px) {
  .hdr { position: relative; }
  .hdr .hdr-nav { justify-content: flex-start; }
  .hdr-nav .nv-b { min-height: 42px; padding: 0 10px; font-size: 14px; }
  .nv-pop { padding: 0 8px; }
  .nv-in { width: auto; max-width: none; margin: 4px 0 0; padding: 12px 8px 10px; border-radius: 18px; }
  .nv-grid, .nv-grid[data-n] { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 560px) { .hdr .hdr-nav { -webkit-mask-image: none; mask-image: none; padding-right: 0; } .hdr-nav .nv-b { padding: 0 9px; } .nv-ch { display: none; } }
@media (max-width: 420px) { .hdr-nav .nv-b { padding: 0 7px; font-size: 13px; letter-spacing: -.1px; } }
@media (max-width: 350px) { .hdr-nav .nv-b { padding: 0 5px; font-size: 12.5px; } }

/* вкладки проверок б/у (Видеокарта · Компьютер · Ноутбук): на телефоне — во всю ширину поровну, без значков */
@media (max-width: 480px) {
  .chk .ck-tabs { display: flex; max-width: 100%; box-sizing: border-box; }
  .chk .ck-tabs a { flex: 1 1 0; min-width: 0; justify-content: center; padding: 0 6px; font-size: 13.5px; }
  .chk .ck-tabs .ic { display: none; }
}

/* Списки и числовые поля — одинаковые на всём сайте: вместо системной стрелки браузера — тонкий шеврон,
   у чисел — без стрелочек-счётчиков. !important — потому что стили страниц задают фон сокращённой записью и стирали бы стрелку */
select:not([multiple]):not([size]) {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  padding-right: 38px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.75 6 6.25l4.5-4.5' fill='none' stroke='%236e6e73' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 14px center !important; background-size: 12px 8px !important;
}
select:not([multiple]):not([size]):hover {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.75 6 6.25l4.5-4.5' fill='none' stroke='%231d1d1f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}
html.theme-dark select:not([multiple]):not([size]) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.75 6 6.25l4.5-4.5' fill='none' stroke='%23a1a1a6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}
html.theme-dark select:not([multiple]):not([size]):hover {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.75 6 6.25l4.5-4.5' fill='none' stroke='%23f5f5f7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}
select::-ms-expand { display: none; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- печать: чистый лист без шапки, меню и кнопок ---------- */
#printSheet { display: none; }
.print-btn .ic { width: 16px; height: 16px; }
@media print {
  @page { margin: 14mm 12mm; }
  html, body { background: #fff !important; color: #111 !important; }
  .hdr, .ftr, .zh-tabs, .pd-toc, .pd-cta, .btn, button, form, iframe, .share, .ad-label, .no-print { display: none !important; }
  .pd-hero { background: none !important; box-shadow: none !important; padding: 0 0 8px !important; border-radius: 0 !important; min-height: 0 !important; }
  .pd-hero, .pd-hero * { color: #111 !important; }
  .pd-hero .pd-kind, .pd-hero .pd-chips span { background: none !important; border: 1px solid #bbb !important; }
  .pd-art--draw svg { filter: none !important; max-height: 140px; }
  .art-glint { display: none; }
  *, *::before, *::after { box-shadow: none !important; text-shadow: none !important; backdrop-filter: none !important; }
  .pd-sec, .ck-card, .ucard { border: 1px solid #ddd; border-radius: 10px !important; padding: 14px 16px !important; margin-top: 10px !important; }
  h2, h3 { break-after: avoid; }
  li, tr, .pp-tile, .rp-verdict, .rp-meta, .pd-alert, .an { break-inside: avoid; }
  a { color: #111 !important; text-decoration: none !important; }
  details > *:not(summary) { display: block; }
  html.print-sheet body > *:not(#printSheet) { display: none !important; }
  html.print-sheet #printSheet { display: block !important; }
}
/* лист для печати, который собирает скрипт (список деталей, памятка для встречи) */
#printSheet { font: 13px/1.45 -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #111; }
#printSheet h1 { font-size: 20px; margin: 0 0 2px; }
#printSheet .ps-sub { color: #555; margin: 0 0 14px; }
#printSheet h2 { font-size: 15px; margin: 16px 0 6px; }
#printSheet table { width: 100%; border-collapse: collapse; }
#printSheet td, #printSheet th { text-align: left; padding: 6px 8px; border-bottom: 1px solid #ddd; vertical-align: top; }
#printSheet th { font-size: 12px; color: #555; font-weight: 600; }
#printSheet td:last-child, #printSheet th:last-child { text-align: right; white-space: nowrap; }
#printSheet tfoot td { font-weight: 700; border-bottom: 0; }
#printSheet ol, #printSheet ul { margin: 0; padding-left: 20px; }
#printSheet li { margin: 3px 0; }
#printSheet .ps-fill td:last-child { width: 38%; border-bottom: 1px solid #999; }
#printSheet .ps-foot { margin-top: 16px; color: #555; font-size: 11.5px; }
.ck-print { margin: 12px 0 2px; }
#ocr2 { margin: 12px 0 18px; }
/* широкие таблицы прокручиваются внутри себя, страница не уезжает вбок (на страницах без product.css тоже) */
.pd-scroll { overflow-x: auto; max-width: 100%; }

/* ---------- блоки страниц: свой цвет у каждого по порядку, чтобы длинные страницы не сливались в белое ---------- */
.pd-sec, .apl-sec, .mdl-sec, .ck-card { --s: #3b4ce0; }
:is(.pd-sec, .apl-sec, .mdl-sec, .ck-card):nth-of-type(5n+2) { --s: #12925f; }
:is(.pd-sec, .apl-sec, .mdl-sec, .ck-card):nth-of-type(5n+3) { --s: #7a4cf0; }
:is(.pd-sec, .apl-sec, .mdl-sec, .ck-card):nth-of-type(5n+4) { --s: #e07a1f; }
:is(.pd-sec, .apl-sec, .mdl-sec, .ck-card):nth-of-type(5n+5) { --s: #0e8fa8; }
html.theme-dark :is(.pd-sec, .apl-sec, .mdl-sec, .ck-card) { --s: #8c9bff; }
html.theme-dark :is(.pd-sec, .apl-sec, .mdl-sec, .ck-card):nth-of-type(5n+2) { --s: #4cc77a; }
html.theme-dark :is(.pd-sec, .apl-sec, .mdl-sec, .ck-card):nth-of-type(5n+3) { --s: #a58bff; }
html.theme-dark :is(.pd-sec, .apl-sec, .mdl-sec, .ck-card):nth-of-type(5n+4) { --s: #ffa45c; }
html.theme-dark :is(.pd-sec, .apl-sec, .mdl-sec, .ck-card):nth-of-type(5n+5) { --s: #4fd1e8; }
main :is(.pd-sec, .apl-sec, .mdl-sec, .ck-card) { background-image: linear-gradient(180deg, color-mix(in srgb, var(--s) 14%, transparent) 0, color-mix(in srgb, var(--s) 4%, transparent) 200px, color-mix(in srgb, var(--s) 2%, transparent) 100%); }
/* серые строки внутри блока — в тон его цвета */
main :is(.pd-sec, .apl-sec, .mdl-sec) :is(.pd-offer, .pd-how li, .pd-shops a, .an, .rz-card, .sv-t, .pw-row, .ml-row) { background-color: color-mix(in srgb, var(--s) 7%, var(--c-card)); }
:is(.pd-sec, .mdl-sec) > h2 { position: relative; padding-left: 16px; }
:is(.pd-sec, .mdl-sec) > h2::before { content: ''; position: absolute; left: 0; top: .14em; bottom: .14em; width: 5px; border-radius: 3px; background: var(--s); }
:is(.pd-sec, .apl-sec, .mdl-sec) th { color: color-mix(in srgb, var(--s) 70%, var(--c-mut)); }
@media print { :is(.pd-sec, .apl-sec, .mdl-sec) { background-image: none; } }
.apl-sec > h2 > .apl-ic { background: color-mix(in srgb, var(--s) 14%, transparent); color: var(--s); }
.ck-card .ck-step > span, .ck-card .ck-num { background: var(--s); color: #fff; }
/* 31.10.2026: логотип — контурный чип перед словом (вариант 2г, media/brand/logo.svg) */
.hdr-logo { display: inline-flex; align-items: center; }
.hdr-mark { flex: none; width: 1.08em; height: 1.08em; margin: .06em .3em 0 0; }
/* 31.10.2026: «Скидки» — яркая кнопка в меню, первой */
.hdr .hdr-nav a.nv-hot, .hdr-nav a.nv-hot { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin-right: 6px; padding: 0 14px 0 11px; border-radius: 18px;
  font-size: 14px; font-weight: 700; color: #fff !important; background: linear-gradient(135deg, #ff5a36, #e5487f); box-shadow: 0 4px 14px rgba(229, 72, 127, .28);
  text-decoration: none !important; white-space: nowrap; transition: transform .2s, box-shadow .2s; }
.hdr-nav a.nv-hot svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.hdr .hdr-nav a.nv-hot:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(229, 72, 127, .38); }
.hdr .hdr-nav a.nv-hot.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #e5487f; }
html.theme-dark .hdr .hdr-nav a.nv-hot.on { box-shadow: 0 0 0 2px #15171c, 0 0 0 4px #e5487f; }
@media (max-width: 760px) { .hdr .hdr-nav .nv-hot { flex: 0 0 auto; min-height: 34px; padding: 0 11px 0 9px; font-size: 13.5px; } }
/* строка поиска не сжимается в обрывок подсказки из-за кнопки «Скидки» */
@media (min-width: 981px) { .hdr-search { min-width: 250px; } .hdr-search input { padding: 0 14px; } }
/* 31.10.2026: живая строка под шапкой — одна цифра дня, плавно сменяется */
.live { max-width: 1040px; margin: 18px auto 0; padding: 0 16px; }
.live-in { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 16px; border-radius: 20px; background: var(--c-card, #fff); overflow: hidden; }
html.theme-dark .live-in { background: rgba(255, 255, 255, .05); box-shadow: none; }
.live-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #ff5a36; box-shadow: 0 0 0 0 rgba(255, 90, 54, .5); animation: livePulse 2.4s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(255, 90, 54, .45); } 70% { box-shadow: 0 0 0 8px rgba(255, 90, 54, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 90, 54, 0); } }
.live-list { position: relative; flex: 1 1 auto; min-width: 0; height: 40px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); }
.live-track { display: flex; align-items: center; height: 40px; width: max-content; animation: liveRun 60s linear infinite; }
.live:hover .live-track, .live:focus-within .live-track { animation-play-state: paused; }
@keyframes liveRun { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.live-i { display: inline-flex; align-items: center; gap: 8px; padding: 0 22px 0 0; margin-right: 22px; font-size: 14px; white-space: nowrap; color: var(--c-ink, #1d1d1f) !important; text-decoration: none !important; border-right: 1px solid rgba(0, 0, 0, .08); }
.live-i b { font-weight: 700; color: #e5487f; }
.live-i--drop b { color: #1a9e55; } .live-i--news b { color: #1f5fd1; } .live-i--sale b { color: #e39a1c; }
.live-i span { color: var(--c-ink); }
a.live-i:hover span { text-decoration: underline; }
@media (max-width: 640px) { .live { padding: 0 12px; margin-top: 8px; } .live-in { padding: 0 12px; gap: 10px; } .live-i { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } .live-track { animation: none; } .live-list { overflow-x: auto; -webkit-mask-image: none; mask-image: none; scrollbar-width: none; } .live-track [aria-hidden] { display: none; } }
.live-i--fx b { color: #6b6b75; } .live-i--value b { color: #7a4cf0; }
.live-bolt { flex: none; display: grid; place-items: center; width: 22px; height: 22px; }
.live-bolt svg { width: 18px; height: 18px; fill: #ff5a36; stroke: none; animation: liveBolt 2.4s ease-in-out infinite; }
@keyframes liveBolt { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.88); } }
@media (prefers-reduced-motion: reduce) { .live-bolt svg { animation: none; } }

/* Подпись «Изображение: ИИ» на картинках нейросети (ii-lib.php, выключатель в админке) */
.ii-m { position: absolute; right: 10px; top: 10px; z-index: 3; padding: 3px 8px; border-radius: 8px; background: rgba(0,0,0,.55); color: #fff; font: 500 11px/1.25 system-ui, sans-serif; letter-spacing: .2px; pointer-events: none; white-space: nowrap; }
.ii-m--s { right: 6px; top: 6px; padding: 2px 5px; font-size: 10px; border-radius: 6px; }
.ii-w { position: relative; display: inline-block; flex: none; line-height: 0; }
.ii-w--b { display: block; line-height: normal; }
:where(.ph, .nf, .rd-hero, .nw-card) { position: relative; }
.ph { container-type: inline-size; }   /* узкая миниатюра — вместо полной подписи короткое «ИИ» */
@container (max-width: 180px) { .ii-d { display: none; } .ii-m { right: 6px; top: 6px; padding: 2px 5px; font-size: 10px; border-radius: 6px; } }
