/* =====================================================================
   dozup.kz — стили сайта (дизайн «Панель»)
   Тёмная тема по умолчанию, светлая — через data-theme="light" (или настройку системы).
   Шрифт Onest (лежит в cssdoza/fonts, лицензия SIL OFL — файл OFL.txt там же).
   ===================================================================== */
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/onest-cyrillic-ext.woff2) format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/onest-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/onest-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/onest-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/onest-math.woff2) format("woff2"); unicode-range: U+2016-2017, U+2190, U+2192, U+2194-21AE, U+2200-22FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/onest-symbols.woff2) format("woff2"); unicode-range: U+2300-23FF, U+25A0-27BF; }
/* Oswald (сжатый жирный) — только для баннера kzdon в шапке; лицензия OFL — fonts/OFL-Oswald.txt */
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/oswald-cyrillic-600.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/oswald-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ===== Цвета ===== */
:root { --edge: transparent;
  --bg: #121214; --card: #1c1c1f; --inset: #26262b; --line: #323238; --text: #f1f0f5; --muted: #a09eab;
  --accent: #6d28d9; --accent-text: #a78bfa; --ok: #36c37a; --warn: #f2b53c; --on-ok: #10141a; --fail: #ef5a5a;
  --tip-bg: #2f2f34; --hero: #2a1b4a; --part: #d9d7e2;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #e6e4eb; --card: #f3f2f6; --inset: #ece5fb; --line: #c9c2d6; --text: #1c1727; --muted: #574f69;
  --accent: #5b21b6; --accent-text: #5b21b6; --ok: #147539; --warn: #94600f; --on-ok: #fff; --fail: #d64545;
  --tip-bg: #1c1727; --hero: #ddd0f7; --part: #2c2638;
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #e6e4eb; --card: #f3f2f6; --inset: #ece5fb; --line: #c9c2d6; --text: #1c1727; --muted: #574f69;
    --accent: #5b21b6; --accent-text: #5b21b6; --ok: #147539; --warn: #94600f; --on-ok: #fff; --fail: #d64545;
    --tip-bg: #1c1727; --hero: #ddd0f7; --part: #2c2638;
    color-scheme: light;
  }
}

/* ===== Ширина страницы =====
   --pw — ширина содержимого (до 1140 px). На широком экране по бокам стоят рекламные места (--sw — их ширина):
   содержимое сужается ровно настолько, чтобы они поместились. Шапка, блоки и боковые места выровнены по этой ширине. */
:root { --pw: min(1140px, calc(100vw - 32px)); --page: calc(var(--pw) + 32px); --sw: 160px; --sgap: 12px; --sedge: 8px; }
@media (min-width: 1360px) {
  /* боковые места прижаты к краям окна (--sedge от края), между ними и содержимым не меньше --sgap */
  :root { --sgap: 28px; --sw: clamp(160px, calc((100vw - 1180px) / 2 - 24px), 188px); /* 2026-12-01: уже на 25% (было до 250), не меньше 160 — «небоскрёб» 160×600 */ --pw: min(1140px, calc(100vw - 2 * (var(--sedge) + var(--sw) + var(--sgap)) - 16px)); }
}

/* ===== Основа ===== */
* { box-sizing: border-box; }
:root { accent-color: var(--accent); }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.45; -webkit-font-smoothing: antialiased; }
/* реклама Яндекса иногда шире своего места — страница не должна из-за неё сдвигаться вбок (clip не ломает липкую шапку) */
html, body { overflow-x: clip; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--muted); font-weight: 500; font-size: 13px; }
.hint { color: var(--muted); font-size: 12px; margin: 12px 0 0; }

.top { max-width: var(--page); margin: 0 auto; padding: 22px 16px 12px; }
.title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.title-row h1 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.5px; line-height: 1.15; }
.title-row h1.rot { display: inline-grid; }
.title-row h1.rot > span { grid-area: 1 / 1; white-space: nowrap; opacity: 0; transform: translateY(8px); transition: opacity .6s ease, transform .6s ease; }
.title-row h1.rot > span.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .title-row h1.rot > span { transition: none; transform: none; } }
.top .lead { margin: 6px 0 0; max-width: 860px; color: var(--muted); font-size: 14px; font-weight: 400; line-height: 1.45; } /* короткое описание под заголовком (для поиска и людей) */
main { max-width: var(--page); margin: 0 auto; padding: 0 16px 40px; display: grid; gap: 16px; }
main > *, .layout > *, .leftcol > *, .rightcol > * { min-width: 0; }

.card { background: var(--card); border: 1px solid var(--edge); border-radius: 16px; padding: 18px; min-width: 0; }
.card h2, .vhead h2 { margin: 0 0 14px; font-size: 19px; font-weight: 700; display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; letter-spacing: -.2px; }
.card h2 .muted, .vhead h2 .muted { font-size: 12.5px; font-weight: 400; letter-spacing: 0; }
.card h3 { margin: 0 0 10px; font-size: 15px; font-weight: 700; }
.sh { margin: 20px 0 10px !important; }

/* Поля */
label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; min-width: 0; }
label > span:first-child { display: flex; align-items: center; gap: 6px; min-height: 18px; line-height: 18px; }
label.check { display: flex; align-items: center; gap: 8px; color: var(--muted); }
label.check input { width: 18px; height: 18px; margin: 0; flex: none; }
select, input[type=number] { width: 100%; min-width: 0; height: 46px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--edge); background: var(--inset); color: var(--text); font-size: 15px; font-weight: 500; }
/* Свой вид списков и поля FPS на всех системах (iPhone иначе рисует их по-своему) */
select, input[type=number] { -webkit-appearance: none; appearance: none; font-family: inherit; line-height: 1.3; margin: 0; }
select { padding-right: 30px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 11px) 50%; background-size: 6px 6px; background-repeat: no-repeat; } /* 6px: при высоте 44 стрелка ложится ровно на пиксели */
select:focus, input[type=number]:focus { outline: none; border-color: var(--accent-text); }
select option, select optgroup { background: var(--card); color: var(--text); }

/* Кнопки */
button.primary { min-height: 46px; padding: 10px 18px; border: 0; border-radius: 12px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }
button.primary:hover { filter: brightness(1.1); }
button.ghost { min-height: 38px; padding: 8px 12px; border: 1px solid var(--edge); border-radius: 10px; background: var(--inset); color: var(--text); font-size: 14px; font-weight: 500; cursor: pointer; }
button.ghost:hover { border-color: var(--accent-text); }
button.link { border: 0; background: none; color: var(--accent-text); cursor: pointer; font-size: 14px; font-weight: 500; padding: 0; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }

/* Подсказки «?» */
.tip { display: inline-grid; place-items: center; flex: none; width: 16px; height: 16px; line-height: 1; border-radius: 50%; border: 1px solid var(--muted); color: var(--muted);
  font-size: 10px; font-style: normal; font-weight: 700; cursor: help; position: relative; vertical-align: middle; }
.tip:hover::after, .tip:focus::after { content: attr(data-text); position: absolute; left: 50%; top: 22px; transform: translateX(-50%); z-index: 10;
  width: min(280px, 80vw); padding: 10px 12px; border-radius: 8px; background: var(--tip-bg); color: #fff; font-size: 13px; font-weight: 500; line-height: 1.4; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.tip:focus { outline: 2px solid var(--accent-text); outline-offset: 1px; }

/* ===== Простой / расширенный режим ===== */
.simple-only { display: none !important; }
body.simple .simple-only { display: revert !important; }
body.simple section.simple-only, body.simple div.simple-only { display: block !important; }
body.simple .adv-only { display: none !important; }
body.work .game-only { display: none !important; }

/* ===== Панель: слева параметры, справа сборки ===== */
.layout { display: grid; gap: 16px; }
.leftcol, .rightcol { display: flex; flex-direction: column; gap: 16px; }
/* одна колонка (планшет): «Эта сборка в других играх» — после результата, а не перед сборками */
@media (max-width: 999px) {
  .leftcol, .rightcol { display: contents; }
  #othersCard { order: 1; }
}
@media (min-width: 1000px) {
  .layout { grid-template-columns: clamp(300px, 30%, 340px) minmax(0, 1fr); align-items: stretch; }
  /* колонки заканчиваются на одной высоте: растёт последний блок слева и блок сборок справа */
  body.simple #othersCard { flex: 1 0 auto; }
  body:not(.simple) #step1 { flex: 1 0 auto; }
  #step1 { display: flex; flex-direction: column; }
  #step1 .pick-row { margin-top: auto; }
  /* расширенный режим: свободное место делится поровну над и под галочкой Wi‑Fi */
  body:not(.simple) #fields { flex: 1 0 auto; grid-template-rows: repeat(var(--rows, 3), auto) 1fr; }
  body:not(.simple) #fields > label.f-wifi { align-self: center; }
  .vsec { flex: 1 0 auto; display: flex; flex-direction: column; }
  .vsec .slider { flex: 1 0 auto; display: flex; flex-direction: column; }
  .vsec .variants { flex: 1 0 auto; }
}

/* Шаг 1: игры / работа */
#step1 h2 { margin-bottom: 12px; }
.kind { display: flex; padding: 3px; margin: 0 0 12px; border-radius: 12px; background: var(--inset); border: 1px solid var(--edge); }
.kind button { flex: 1 1 0; min-width: 0; border: 0; background: none; padding: 7px 4px; border-radius: 9px; color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.2; cursor: pointer; text-wrap: balance; }
.kind button:hover { color: var(--text); }
.kind button.on { background: var(--accent); color: #fff; cursor: default; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles.two > .gt:nth-child(5):last-child { grid-column: 1 / -1; } /* 5-я плитка (игра из ссылки/сохранённой сборки) — на всю ширину */
/* Плитки игр и задач: только название, нейтральный фон; выбранная — фиолетовая */
.gt { position: relative; min-width: 0; height: 52px; padding: 6px 2px; overflow: hidden; border-radius: 12px; border: 1px solid var(--edge); background: var(--inset);
  display: flex; align-items: center; justify-content: center; color: var(--text); cursor: pointer; transition: border-color .15s, background .15s, transform .12s; }
.gt:hover { border-color: var(--accent-text); }
.gt:active { transform: scale(.97); }
.gt .nm { font-size: 12.5px; font-weight: 500; line-height: 1.15; text-align: center; max-width: 100%; overflow-wrap: normal; word-break: normal; }
.tiles.two .gt { height: 52px; }
.tiles.two .gt .nm { font-size: 13.5px; }
.gt.on { background: var(--accent); border-color: var(--accent); color: #fff; cursor: default; }
.gt.on .nm { font-weight: 600; }
/* узкая панель (ноутбук, маленький телефон): 3 плитки в ряд, чтобы названия не мельчали */
/* расширенный режим: вместо плиток — выпадающий список (как «Разрешение» и «Графика») */
.tiles.as-select { display: block; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; align-items: end; }
.grid:not(:has(> label:not([hidden]))) { margin-top: 0; }
body.simple .grid > label, .grid > label.wf-wide { grid-column: 1 / -1; }
.pick-row { display: grid; gap: 10px; padding-top: 14px; }
.pick-row .mode-tog { width: 100%; }
.pick-row #pick { width: 100%; min-height: 48px; }
/* Галочка «Wi‑Fi на плате» — просто галочка с подписью, без рамки и фона, на всю строку */
.grid > label.f-wifi { grid-column: 1 / -1; color: var(--text); font-size: 14px; cursor: pointer; user-select: none; }
.grid > label.f-wifi input { accent-color: var(--accent); cursor: pointer; }
.grid > label.f-wifi > span { min-height: 0; line-height: 1.25; }
.mypc-btn { width: 100%; min-height: 44px; font-size: 14px; }
/* маленькие значки в кнопках (SVG вместо эмодзи) */
svg.bi { width: 1.05em; height: 1.05em; flex: none; vertical-align: -0.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.promo-brand svg.bi { width: 1em; height: 1em; }

/* Переключатель «Простой подбор | Расширенный»: зелёная плашка, по краю бежит фиолетовая линия (без свечения) */
@property --mt-ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.mode-tog { position: relative; display: inline-flex; align-items: stretch; padding: 4px; min-height: 48px;
  border-radius: 12px; border: 2px solid transparent;
  background: linear-gradient(var(--inset), var(--inset)) padding-box,
    conic-gradient(from var(--mt-ang), transparent 0 58%, var(--accent-text) 74%, var(--accent) 82%, transparent 94%) border-box;
  animation: mt-run 4s linear infinite; }
@keyframes mt-run { to { --mt-ang: 360deg; } }
.mode-tog .mt-knob { position: absolute; top: 4px; bottom: 4px; left: 4px; width: 50%; border-radius: 8px; background: var(--ok);
  transition: transform .32s cubic-bezier(.2,.7,.2,1), width .32s cubic-bezier(.2,.7,.2,1); }
.mode-tog button { position: relative; z-index: 1; flex: 1 1 0; min-width: 0; margin: 0; border: 0; background: none; border-radius: 8px; padding: 0 8px;
  -webkit-appearance: none; appearance: none; font-size: 14.5px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap;
  transition: color .25s; -webkit-tap-highlight-color: transparent; }
.mode-tog button:hover { color: var(--text); }
.mode-tog button.on { color: var(--on-ok); cursor: default; }
.mode-tog button:focus-visible { outline: 2px solid var(--ok); outline-offset: 1px; }
@media (prefers-reduced-motion: reduce) { .mode-tog { animation: none; } .mode-tog .mt-knob { transition: none; } }
/* значки SVG в переключателе (2026-12-03, просьба пользователя, вариант 2) */
.mode-tog button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 4px; }
.mode-tog button > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mode-tog .mt-ic { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
@media (min-width: 561px) { .mode-tog button { gap: 4px; font-size: 13px; } .mode-tog .mt-ic { width: 13px; height: 13px; } } /* на ПК панель узкая — чуть мельче, чтобы влезли значок и «Простой подбор» */
@media (max-width: 560px) { .mode-tog button { gap: 5px; } .mode-tog .mt-ic { width: 14px; height: 14px; } }
@media (max-width: 360px) { .mode-tog button { gap: 4px; } .mode-tog .mt-ic { width: 13px; height: 13px; } }

/* Список «Эта сборка в других играх» */
.olist { display: grid; gap: 8px; }
.orow { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--inset); border: 1px solid var(--edge); font-size: 13.5px; font-weight: 400; }
.orow span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.orow b { font-size: 15px; font-weight: 600; white-space: nowrap; }

/* ===== Подходящие сборки ===== */
.vhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.vhead h2 { margin: 0; }
/* «Какой процессор показать? Оба / AMD / Intel» и «Другие варианты» — справа от заголовка, в одну строку.
   Ширину блока сборок меряем container-запросом: мало места — подпись короче («Процессор:»), совсем мало — строкой ниже */
.vsec { container: vs / inline-size; }
.vq { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.vq > b { font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.vq .vq-short { display: none; }
.vq.one > b, .vq.one .seg { display: none; }   /* одна платформа (выбрана в «Intel/AMD») — только «Другие варианты» */
/* «Другие варианты» есть и в простом режиме (просьба пользователя), поэтому строку не прячем */
.more-btn .mt-short { display: none; }
@container vs (max-width: 939px) { .vq .vq-long { display: none; } .vq .vq-short { display: inline; } }
@container vs (max-width: 780px) { .more-btn .mt-long { display: none; } .more-btn .mt-short { display: inline; } }
@container vs (max-width: 600px) {
  /* телефон: «Процессор: Оба / AMD / Intel» и короткая кнопка «Другие» в одной строке (просьба пользователя 01.12) */
  .vq { flex-wrap: wrap; margin-left: 0; width: 100%; gap: 6px; } /* wrap — только если совсем не влезает */
  .vq .more-btn { margin-left: auto; padding: 8px 10px; display: inline-flex; align-items: center; gap: 5px; }
  .vq.one .more-btn { margin-left: 0; width: 100%; justify-content: center; }
}
@container vs (max-width: 360px) { .vq { gap: 5px; } .vq .seg button { padding: 6px 8px; } .vq .more-btn { padding: 8px 8px; } } /* узкий телефон — чуть плотнее, чтобы влезло в строку */
@container vs (max-width: 300px) { .vq > b { display: none; } } /* совсем узко — без подписи «Процессор:» */
.vbadge { display: block; width: fit-content; margin-top: 5px; padding: 2px 7px; border-radius: 6px; font-size: 11px; font-weight: 600; letter-spacing: .3px; background: var(--inset); border: 1px solid var(--edge); color: var(--text); }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--inset); border: 1px solid var(--edge); }
.seg:empty { display: none; }
.seg button { border: 0; background: none; padding: 6px 11px; border-radius: 9px; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--accent); color: #fff; cursor: default; }
.more-btn { font-size: 13px; font-weight: 500; white-space: nowrap; touch-action: manipulation; }
.more-btn svg.bi { transform: translateY(1px); } /* значок по центру букв */
.alt-msg { display: none; margin: -4px 0 10px; font-size: 13.5px; font-weight: 500; color: var(--ok); }
@media (max-width: 700px) { .alt-msg:not(:empty) { display: block; } } /* на телефоне — сразу под кнопкой «Другие варианты» */
.slider { position: relative; }
.sl-btn { display: none; }
.variants { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.variant { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--edge);
  color: var(--text); text-align: left; cursor: pointer; transition: border-color .15s; }
.variant:hover { border-color: var(--muted); }
.variant.active { border-color: var(--accent-text); box-shadow: 0 0 0 1px var(--accent-text); cursor: default; }
.variant:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.vt { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.vt b { font-size: 15px; font-weight: 700; line-height: 1.25; }
.vt small { font-size: 11px; color: var(--muted); text-align: right; line-height: 1.3; font-weight: 400; max-width: 52%; }
.vf { display: flex; align-items: baseline; gap: 4px 8px; flex-wrap: wrap; }
.vfps { font-size: 28px; font-weight: 700; letter-spacing: -1px; line-height: 1; white-space: nowrap; }
.vfps small { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 4px; letter-spacing: 0; }
.vwork { font-size: 18px; font-weight: 700; line-height: 1.2; color: var(--accent-text); }
.vc { font-size: 12px; font-weight: 600; flex-basis: 100%; } /* всегда отдельной строкой — одинаково во всех карточках */
.vspec { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.vparts { margin: 0; padding-left: 16px; display: grid; gap: 3px; font-size: 12.5px; color: var(--part); font-weight: 400; line-height: 1.35; }
.vparts li { overflow-wrap: anywhere; }
.vparts li::marker { color: var(--muted); }
/* Простой режим: карточка сборки проще — без «впритык/запас», Intel/AMD и совместимости; 5 деталей + «ещё» */
body.simple .vt small, body.simple .vbadge, body.simple .vc { display: none !important; }
body.simple .vparts .vp-psu { order: 1; }
body.simple .vparts .vx { order: 2; display: none; }
body.simple .variant.vopen .vparts .vx { display: list-item; }
.vmore { align-self: flex-start; margin: -4px 0 0 16px; padding: 2px 0; background: none; border: 0; color: var(--accent-text); font: inherit; font-size: 12.5px; font-weight: 400; line-height: 1.35; cursor: pointer; }
.vmore:hover { text-decoration: underline; }
.vmore:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: 4px; }
.vpr { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--edge); padding-top: 8px; font-weight: 700; font-size: 15px; }
.vpr small { color: var(--muted); font-weight: 400; font-size: 12px; }
.dots { display: none; }
.warnings { margin: 10px 0 0; padding-left: 18px; color: var(--warn); font-size: 13.5px; }
.warnings:empty { display: none; }

/* ===== Итог: совместимость, FPS, кнопки ===== */
.ring { width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; font-weight: 700; flex: none; position: relative;
  background: conic-gradient(var(--c, var(--accent)) calc(var(--p, 0) * 1%), var(--line) 0); }
.ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--card); }
.ring span { position: relative; }
.hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 20px; align-items: center; background: linear-gradient(120deg, var(--hero), var(--card) 62%); }
.hero-ring { width: 96px; height: 96px; font-size: 20px; }
.hero-ring::before { inset: 9px; background: color-mix(in srgb, var(--hero) 45%, var(--card)); }
.hero-lvl { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); }
.hero-big { font-size: 52px; font-weight: 700; letter-spacing: -2px; line-height: 1.05; margin: 2px 0; overflow-wrap: anywhere; }
.hero-big.work { font-size: 34px; letter-spacing: -.5px; color: var(--accent-text); }
.hero-sub { font-size: 15px; color: var(--muted); font-weight: 500; }
.hero-sub b { font-weight: 600; }
.hero-sub .goal { white-space: nowrap; }
.actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.act { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 8px 12px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--edge); background: var(--inset); color: var(--text); font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: border-color .12s, transform .12s; }
body:not(.simple) .act { flex: 1 1 auto; padding: 8px 10px; gap: 6px; font-size: 13px; }
body:not(.simple) .actions { gap: 6px; }
.act svg { width: 17px; height: 17px; flex: none; fill: none; stroke: var(--accent-text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.act:hover { border-color: var(--accent-text); transform: translateY(-1px); }
.act:active { transform: none; }
.act-shop { background: var(--accent); border-color: var(--accent); color: #fff; }
body:not(.simple) .act-shop { flex-grow: 1.6; }
.act-shop svg { stroke: #fff; }
.act-shop:hover { border-color: var(--accent); filter: brightness(1.1); }
.toast { grid-column: 1 / -1; min-height: 20px; margin-top: -6px; font-size: 14px; color: var(--ok); font-weight: 500; }
.toast:empty { display: none; }

/* Плитки «Электричество / Нагрев / Стоимость» и советы */
.dt { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dtile { min-width: 0; padding: 12px 14px; border-radius: 12px; background: var(--inset); border: 1px solid var(--edge); display: grid; gap: 2px; align-content: start; }
.dtile .l { font-size: 12px; color: var(--muted); font-weight: 400; }
.dtile .v { font-size: 22px; font-weight: 700; margin-top: 2px; line-height: 1.2; overflow-wrap: anywhere; }
.dtile .s { font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 2px; }
#buildCard .dtile .v { font-size: 20px; }
.stips { margin: 14px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13.5px; font-weight: 400; }
.stips:empty { display: none; }
.stips li::marker { color: var(--accent-text); }
#buildCard .stips { margin-top: 0; }

/* ===== Выбранная сборка (расширенный) ===== */
.parts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 14px; }
.build-row { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-top: 14px; }
.build-row .ghost { font-size: 13.5px; }

/* ===== Результат (расширенный) ===== */
.rtop { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: stretch; }
.others-in h3 { font-size: 14px !important; }
.bars { display: grid; gap: 14px; align-content: space-between; min-width: 0; }
.bar { display: grid; grid-template-columns: minmax(0, 1fr) 52px; gap: 6px 12px; align-items: center; font-size: 13px; }
.bar > span { grid-column: 1 / -1; color: var(--muted); font-weight: 400; display: flex; align-items: center; gap: 6px; }
.bar > i { height: 8px; background: var(--inset); border: 0; border-radius: 4px; overflow: hidden; }
.bar b { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--ok); transition: width .3s; }
.bar em { font-style: normal; text-align: right; font-weight: 600; }
.fps { margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fps .tile { min-width: 0; background: var(--inset); border: 1px solid var(--edge); border-radius: 12px; padding: 12px 14px; }
.fps .tile.active { border-color: var(--accent-text); box-shadow: 0 0 0 1px var(--accent-text); }
.fps .tile small { color: var(--muted); display: block; font-size: 12px; font-weight: 400; }
.fps .tile strong { display: block; font-size: 24px; font-weight: 700; white-space: nowrap; }
.fps .tile .lim { display: block; font-style: normal; font-size: 12px; color: var(--warn); margin-top: 2px; font-weight: 500; }
.fps .hint { grid-column: 1 / -1; margin: 0; }
body.work .fps { grid-template-columns: minmax(0, 460px); }
body.work .fps .tile strong { white-space: normal; overflow-wrap: anywhere; font-size: 18px; line-height: 1.25; }
.notes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.notes li { padding: 9px 12px 9px 34px; border-radius: 10px; background: var(--inset); position: relative; font-size: 13.5px; font-weight: 400; }
.notes li::before { position: absolute; left: 13px; font-weight: 800; }
.notes li.ok::before { content: "✓"; color: var(--ok); }
.notes li.warn::before { content: "!"; color: var(--warn); }
.notes li.fail::before { content: "✕"; color: var(--fail); }
.notes li.info::before { content: "i"; color: var(--muted); font-style: italic; }
.notes li.fail { outline: 1px solid var(--fail); }
.notes-toggle { display: none; margin-top: 10px; }

/* Апгрейд */
.up-steps { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.up-steps li { background: var(--inset); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.up-steps .why { color: var(--muted); font-size: 13px; display: block; }
.up-steps .from { text-decoration: line-through; color: var(--muted); }

/* Сравнение */
.table-wrap { overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 460px; }
.cmp th, .cmp td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp th { color: var(--muted); font-weight: 400; width: 22%; }
.cmp td.better { color: var(--ok); font-weight: 600; }

/* Сохранённые */
.saved { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.saved li { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--inset); border: 1px solid var(--edge); border-radius: 12px; padding: 10px 12px; font-size: 14px; flex-wrap: wrap; }
.saved li .btns { display: flex; gap: 6px; }
.saved .empty { background: none; border: 0; color: var(--muted); padding: 0; }
.saved .price { display: inline-block; margin: 3px 0 1px; color: var(--accent-text); font-weight: 600; }
.saved-note { font-size: 12px; margin: 8px 0 0; }
.saved-note:empty { display: none; }

/* Магазины-партнёры: слайдер карточек (ПК — 4 целиком + краешек 5-й; телефон — 2×2 + краешек) */
.ps-nav { margin-left: auto; display: inline-flex; gap: 6px; align-self: center; }
.ps-arrow { width: 34px; height: 34px; display: grid; place-items: center; padding: 0 0 2px; border: 1px solid var(--edge); border-radius: 10px; background: var(--inset); color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; }
.ps-arrow:hover:not(:disabled) { border-color: var(--accent-text); color: var(--accent-text); }
.ps-arrow:disabled { opacity: .35; cursor: default; }
.ps-arrow:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.partners { --pgap: 12px; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * var(--pgap)) / 4.3); gap: var(--pgap);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.partners::-webkit-scrollbar { display: none; }
.pcard { scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; padding: 12px; border-radius: 14px; background: var(--inset); border: 1px solid var(--edge); text-align: center; }
.pc-logo { width: 100%; height: 76px; margin-bottom: 6px; display: grid; place-items: center; border-radius: 10px; background: var(--card); border: 1px solid var(--edge); overflow: hidden; }
.pc-logo img { max-width: 88%; max-height: 64px; object-fit: contain; }
.pc-ph { display: grid; justify-items: center; gap: 3px; color: var(--muted); font-size: 11.5px; }
.pc-name { font-weight: 600; font-size: 14px; color: var(--text); line-height: 1.25; }
.pc-city { color: var(--muted); font-size: 12.5px; }
a.pc-buy { margin-top: 8px; width: 100%; min-height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 6px 10px; border-radius: 10px; background: var(--ok); color: var(--on-ok); font-size: 14px; font-weight: 600; text-decoration: none; line-height: 1.15; }
a.pc-buy:hover { filter: brightness(1.08); color: var(--on-ok); }
a.pc-buy:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.logo-text { font-weight: 600; font-size: 13.5px; }
/* «Проверено» — первые 3 карточки (платные места, порядок случайный — partners.js SHOWN): золотая рамка, лёгкий золотой оттенок сверху и плашка «Проверено»; без свечения (2026-12-04) */
.pcard { position: relative; }
.pcard.pc-top-card { --top: #e0a92e; border: 1.5px solid var(--top); background: linear-gradient(180deg, color-mix(in srgb, var(--top) 16%, var(--inset)) 0%, var(--inset) 55%); }
:root[data-theme="light"] .pcard.pc-top-card { --top: #b7860f; }
.pc-top { position: absolute; top: -1px; left: 50%; transform: translate(-50%, -50%); z-index: 1; padding: 2px 10px; border-radius: 999px; background: var(--top); color: #15110a; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; line-height: 1.5; white-space: nowrap; }
:root[data-theme="light"] .pc-top { color: #fff; }
.partners:has(.pcard.pc-top-card) { padding-top: 10px; }
/* ПК (от 1000px): все 10 магазинов видны — 2 ряда по 5, карточки меньше, без прокрутки и стрелок (2026-12-04) */
@media (min-width: 1000px) {
  #partnersCard .ps-nav { display: none; }
  .partners { --pgap: 10px; grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; scroll-snap-type: none; }
  .partners .pcard { padding: 9px; gap: 2px; border-radius: 12px; }
  .partners .pc-logo { height: 54px; margin-bottom: 4px; border-radius: 8px; }
  .partners .pc-logo img { max-height: 44px; }
  .partners .pc-ph { font-size: 10.5px; gap: 2px; }
  .partners .pc-ph svg { width: 20px; height: 20px; }
  .partners .pc-name { font-size: 12.5px; }
  .partners .pc-city { font-size: 11.5px; }
  .partners a.pc-buy { margin-top: 6px; min-height: 32px; padding: 5px 6px; border-radius: 9px; font-size: 12.5px; }
}

footer { text-align: center; color: var(--muted); font-size: 12px; padding: 20px 16px; }
footer a { color: var(--muted); }

/* ===== Окна (заявка в магазин, вход, «Мой ПК») ===== */
.shop-dialog { width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 1px solid var(--edge); border-radius: 16px; background: var(--card); color: var(--text); }
.shop-dialog::backdrop { background: rgba(0, 0, 0, .55); }
.shop-dialog form { display: grid; gap: 12px; padding: 18px; }
.dlg-head { display: flex; justify-content: space-between; align-items: center; }
.dlg-head h2 { margin: 0; font-size: 18px; }
.dlg-close { border: 0; background: none; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.shop-dialog p { margin: 0; }
.shop-dialog input[type=text], .shop-dialog textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--edge); background: var(--inset); color: var(--text); font: inherit; font-size: 15px; resize: vertical; }
.shop-dialog form > label:not(.check) { display: grid; gap: 6px; font-size: 14px; }
.shop-stores { display: grid; gap: 6px; font-size: 14px; }
.shop-stores-head { display: flex; align-items: center; gap: 10px; }
.shop-stores-head .ps-arrow { width: 30px; height: 30px; font-size: 18px; }
/* выбор магазина в окне заявки — те же карточки, что в блоке «Магазины-партнёры», только меньше; листаются вбок */
.pick-partners { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 24px) / 3.4); gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px; }
.pick-partners::-webkit-scrollbar { display: none; }
.pick-partner { display: block; cursor: pointer; scroll-snap-align: start; min-width: 0; }
.pick-partner input { position: absolute; opacity: 0; }
.pick-partner > span { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 8px; border-radius: 12px; border: 1px solid var(--edge); background: var(--inset); text-align: center; color: var(--text); }
.pc-logo.pc-logo-sm { height: 48px; margin-bottom: 4px; }
.pc-logo.pc-logo-sm img { max-height: 40px; }
.pick-partner .pc-city { font-size: 13px; color: var(--text); font-weight: 500; }
.pick-partner input:checked + span { border-color: var(--accent-text); box-shadow: 0 0 0 1px var(--accent-text); }
.pick-partner input:focus-visible + span { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.shop-status a { color: var(--accent-text); font-weight: 600; }
.shop-status .wa-step { display: block; margin-top: 8px; color: var(--text); font-weight: 500; }
.shop-status a.wa-btn { margin-top: 8px; width: 100%; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; background: var(--ok); color: var(--on-ok); font-size: 15px; font-weight: 600; text-decoration: none; }
.shop-status a.wa-btn:hover { filter: brightness(1.08); }
.shop-build summary { cursor: pointer; color: var(--accent-text); font-size: 14px; }
.shop-build pre { white-space: pre-wrap; font: inherit; font-size: 13px; color: var(--muted); background: var(--inset); padding: 10px; border-radius: 8px; margin: 8px 0 0; }
.hidden-field { position: absolute; left: -9999px; }
.shop-status { font-size: 14px; min-height: 20px; }
/* Предупреждение о цене в окне «Отправить в магазин»: красная плашка размером с кнопку «Отправить» */
.shop-dialog p.shop-warn { min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--fail) 55%, transparent); background: color-mix(in srgb, var(--fail) 14%, transparent); color: var(--fail); font-size: 14px; font-weight: 500; line-height: 1.4; }
.shop-warn svg { flex: none; }
.shop-warn span { color: inherit; }
@media (max-width: 560px) { .shop-dialog p.shop-warn { font-size: 13px; padding: 10px 12px; gap: 9px; } }
.shop-status.ok { color: var(--ok); } .shop-status.err { color: var(--fail); } .shop-status.warn { color: var(--warn); }
/* Окно «Стать партнёром» (partners.js, кнопка на пустых карточках «Магазины-партнёры») */
.join-dialog .join-intro { font-size: 14px; line-height: 1.45; }
.join-kinds-wrap { display: grid; gap: 6px; font-size: 14px; }
.join-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.join-kind { display: block; cursor: pointer; min-width: 0; }
.join-kind input { position: absolute; opacity: 0; }
.join-kind > span { height: 100%; min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--edge); background: var(--inset); color: var(--muted); }
.join-kind b { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.25; }
.join-kind svg { flex: none; width: 20px; height: 20px; }
@media (hover: hover) { .join-kind:hover > span { border-color: var(--accent-text); } }
.join-kind input:checked + span { background: var(--g-acc, var(--accent)); background-size: 300% 300%; border-color: transparent; color: #fff; animation: dzFlow 7s ease-in-out infinite alternate; }
.join-kind input:checked + span b { color: #fff; }
.join-kind input:focus-visible + span { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.join-note { font-size: 12px; text-align: center; }
.join-dialog .shop-status:empty { display: none; }
.join-note a { color: inherit; }
@media (max-width: 560px) { .join-kind > span { min-height: 64px; flex-direction: column; justify-content: center; text-align: center; gap: 6px; padding: 10px 8px; } .join-kind b { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .join-kind input:checked + span { animation: none; background-position: 50% 50%; } }
.mypc-dialog .dlg-body { display: grid; gap: 12px; padding: 18px; }
#loginDialog .dlg-body { display: grid; gap: 14px; padding: 18px 20px 20px; }
#loginDialog .dlg-body #loginSaved { justify-self: start; }
.google-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 18px; border: 1px solid #dadce0; border-radius: 10px; background: #fff; color: #1f1f1f; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; }
.google-btn:hover { border-color: var(--accent); }
.google-btn svg { width: 20px; height: 20px; flex: none; }
.login-note a { color: var(--muted); }
/* Вход по почте и паролю (jsdoza/authform.js): белая кнопка как у Google/Telegram, под ней форма */
.pw-box { display: grid; gap: 12px; }
.pw-box [hidden] { display: none !important; }
.shop-dialog form.pw-form, .pw-form { display: grid; gap: 12px; padding: 0; }
.pw-form p { margin: 0; }
.pw-title { font-size: 15px; }
.pw-form label { display: grid; gap: 6px; font-size: 14px; }
.pw-form input { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--edge); background: var(--inset); color: var(--text); font: inherit; font-size: 15px; }
.pw-form input:focus { outline: none; border-color: var(--accent-text); }
.pw-pass { position: relative; display: block; }
.pw-pass input { padding-right: 46px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.pw-eye:hover { color: var(--text); }
.pw-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.pw-link { padding: 0; border: 0; background: none; color: var(--accent-text); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.pw-link:hover { text-decoration: underline; }
.pw-status:empty { display: none; }
.mypc-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.mypc-dialog .hint { margin: 0; }
.mypc-out { display: grid; gap: 10px; }
.mypc-now { display: grid; gap: 6px; padding: 12px; border-radius: 12px; background: var(--inset); border: 1px solid var(--edge); font-weight: 500; }
.mypc-now b { font-size: 17px; }
.mypc-now small { font-size: 12px; }
.mypc-ok { color: var(--ok); font-weight: 500; }
.mypc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mypc-list li { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--inset); border: 1px solid var(--edge); }
.mypc-list li.best { border-color: var(--accent-text); }
.mp-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mp-top .tag { font-size: 12px; font-weight: 700; color: #fff; background: var(--accent); padding: 2px 8px; border-radius: 999px; }
.mp-swap { font-size: 14px; }
.mp-swap .from { color: var(--muted); text-decoration: line-through; }
.mp-nums { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; }
.mp-fps { color: var(--ok); font-weight: 600; }
.mp-cost { color: var(--muted); }
.mp-apply { justify-self: start; margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--card); border: 1px solid var(--edge); border-radius: 999px; padding: 5px 12px; font-size: 13px; color: var(--muted); }
.chip b { color: var(--text); margin-left: 4px; }

/* ===== Шапка: логотип, баннер, язык столбиком, «Войти» над темой ===== */
.site-head { background: var(--card); border-bottom: 1px solid var(--edge); }
.hbar { max-width: var(--page); margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; color: var(--text); text-decoration: none; flex: none; }
.brand-logo { display: block; height: 52px; width: auto; }
.brand-m { display: none; }
.logo-light { display: none; }
:root[data-theme="light"] .logo-dark { display: none; }
:root[data-theme="light"] .logo-light { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .logo-dark { display: none; }
  :root:not([data-theme="dark"]) .logo-light { display: block; }
}
.lang { display: inline-flex; border: 1px solid var(--edge); border-radius: 8px; overflow: hidden; background: var(--inset); }
.lang button { border: 0; background: none; color: var(--muted); padding: 8px 11px; font-size: 13px; font-weight: 600; cursor: pointer; }
.lang button + button { border-left: 1px solid var(--edge); }
.lang button.on { background: var(--accent); color: #fff; }
.htools { display: flex; align-items: center; gap: 8px; flex: none; margin-left: auto; }
.htools .th-txt { display: none; }
/* Язык и валюта: две квадратные кнопки одна над другой, у каждой выпадающее меню (jsdoza/currency.js) */
.hsel { display: flex; gap: 6px; }
.dd { position: relative; display: flex; }
button.dd-btn { width: 40px; height: 40px; min-height: 0; padding: 0; display: inline-grid; place-items: center; font-size: 14px; font-weight: 600; line-height: 1; }
.dd-btn span { white-space: nowrap; }
.dd-btn.long { font-size: 11.5px; }
.dd.open .dd-btn { border-color: var(--accent); color: var(--accent-text); }
.dd-menu { display: none; position: absolute; top: 0; right: calc(100% + 6px); z-index: 60; min-width: 190px; white-space: nowrap; padding: 6px; flex-direction: column; gap: 2px; background: var(--card); border: 1px solid var(--edge); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.dd.open .dd-menu { display: flex; }
.dd-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.dd-menu button b { min-width: 30px; font-weight: 600; color: var(--muted); }
.dd-menu button:hover { background: var(--inset); }
.dd-menu button.on { background: var(--accent); color: #fff; }
.dd-menu button.on b { color: #fff; }
.icon-btn { min-width: 38px; min-height: 36px; padding: 6px 9px; display: inline-grid; place-items: center; }
.icon-btn svg, .login-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.login-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-weight: 500; }
.login-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.burger { display: none; }
/* Баннер — между логотипом и кнопками; .hslot держит место, даже если блокировщик скрыл баннер */
.hslot { flex: 1 1 auto; min-width: 0; display: flex; align-self: stretch; }
.hbanner { flex: 1 1 auto; width: 100%; min-width: 0; display: block; }
.hbanner > * { width: 100%; }
.slot-ph { height: 90px; display: grid; place-items: center; border: 1px solid var(--edge); border-radius: 10px; color: var(--muted); font-size: 13px; text-align: center; padding: 0 12px; }
@media (min-width: 561px) {
  .htools { display: grid; grid-template-rows: auto auto; gap: 6px 8px; align-items: stretch; }
  .htools .hsel { grid-column: 1; grid-row: 1 / 3; flex-direction: column; }
  /* «Войти» сверху, тема снизу; одинаковые размер и высота (ширина по самому длинному — казахскому) */
  .htools .login-btn, #themeBtn { grid-column: 2; display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px; height: 40px; min-height: 40px; width: var(--hbtn-w, 186px); padding: 0 14px; font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap; }
  .login-btn { grid-row: 1; }
  #themeBtn { grid-row: 2; }
  .htools .login-btn svg { width: 17px; height: 17px; }
  .htools #themeBtn .th-txt { display: inline; }
  .hslot { min-height: 86px; }
  .hbanner { align-self: stretch; display: flex; }
  .hbanner > * { height: 100%; min-height: 0; }
  .site-head .slot-ph { height: auto; }
  .brand-logo { height: 72px; width: auto; }
  .hbar .brand { align-self: center; }
}
@media (max-width: 900px) and (min-width: 561px) {
  .site-head .promo-text small, .site-head .promo-brand { display: none; }
  .htools #themeBtn .th-txt, .login-btn span { display: none; }
  .htools { --hbtn-w: 44px; }
  .htools .login-btn, #themeBtn { justify-content: center; padding: 0; }
}
/* Телефон: логотип, язык, ☰. В меню — тема и «Войти». Баннер — ниже, на всю ширину */
@media (max-width: 560px) {
  .hbar { padding: 8px 12px 10px; gap: 8px; flex-wrap: wrap; }
  .brand { flex: 1 1 0; min-width: 0; margin-right: auto; }
  .brand .brand-logo { display: none !important; }
  .brand .brand-m { width: 100%; max-width: 169px; height: auto; }
  .brand-m.m-dark { display: block; }
  :root[data-theme="light"] .brand-m.m-dark { display: none; }
  :root[data-theme="light"] .brand-m.m-light { display: block; }
  .htools { display: contents; }
  /* телефон: язык и валюта рядом, перед ☰; меню открывается вниз */
  .htools .hsel { order: 2; }
  button.dd-btn { width: 38px; height: 38px; font-size: 13px; }
  .hbar { position: relative; }
  .dd { position: static; }
  .dd-menu { top: 54px; right: 12px; }
  .burger { order: 3; display: inline-grid; min-height: 34px; }
  .hslot { order: 7; flex: 1 1 100%; }
  #themeBtn, .login-btn { display: none; order: 6; flex: 1 1 40%; justify-content: center; min-height: 40px; }
  body.menu-open #themeBtn, body.menu-open .login-btn { display: inline-flex; align-items: center; gap: 6px; }
  body.menu-open #themeBtn .th-txt { display: inline; }
  /* открытое меню: тема и «Войти» с новой строки — логотип, языки и ☰ остаются на месте */
  body.menu-open .hbar::after { content: ""; order: 5; flex: 0 0 100%; height: 0; }
  .site-head .slot-ph { height: 60px; }
}
@media (max-width: 560px) and (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .brand-m.m-dark { display: none; }
  :root:not([data-theme="dark"]) .brand-m.m-light { display: block; }
}

/* Счётчик посетителей — маленький значок справа от заголовка */
.visits { display: inline-flex; align-items: baseline; gap: 5px; height: 26px; padding: 0 10px 0 9px; border: 1px solid var(--edge); border-radius: 999px; background: var(--inset); color: var(--muted); font-size: 12.5px; line-height: 26px; white-space: nowrap; }
/* зелёная «живая» точка: мягкое расходящееся кольцо, без свечения */
.visits .v-dot { position: relative; align-self: center; flex: none; width: 8px; height: 8px; margin-right: 2px; border-radius: 50%; background: var(--ok); }
.visits .v-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ok); animation: vDot 2.2s ease-out infinite; }
@keyframes vDot { 0% { transform: scale(1); opacity: .5; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .visits .v-dot::after { animation: none; opacity: 0; } }
.visits b { color: var(--text); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: inherit; }
.visits .v24 { font-size: 11.5px; color: var(--muted); line-height: inherit; }
/* Где стоит счётчик: телефон/планшет — справа в строке заголовка; на телефоне только точка и число */
.title-row .visits { margin-left: auto; }
@media (max-width: 560px) { .visits .v24 { display: none; } .visits { padding: 0 9px; } .visits .v-dot { transform: translateY(1px); } }
@media (max-width: 374px) { .title-row { gap: 6px; flex-wrap: nowrap; } .top .title-row h1 { font-size: 19px; } .title-row .visits { padding: 0 7px; } } /* узкий телефон — счётчик в той же строке */
@media (max-width: 340px) { .top .title-row h1 { font-size: 17px; } }
/* ПК: справа над «Другие варианты», оформлен как эта кнопка */
@media (min-width: 1000px) {
  .top { position: relative; }
  .top .lead { max-width: min(860px, calc(100% - 170px)); }
  .top .visits { position: absolute; right: 16px; bottom: 7.75px; height: 28px; line-height: 28px; padding: 0 12px 0 11px; gap: 11px; /* отступы как на макете пользователя 02.12 */
    border-radius: 10px; color: var(--muted); font-size: 14px; }
  .top .visits b { font-size: 14px; font-weight: 600; }
  .top .visits b { position: relative; top: -2px; }   /* цифры ровно по середине плашки */
  .top .visits .v24 { font-size: 13px; position: relative; top: -4px; margin-left: -5px; } /* середина строчных букв = середина плашки */
  .top .visits .v-dot { transform: translateY(-1px); margin-right: 0; }
}

/* ===== Верхний баннер: свои промо (Lis-Skins, магазины-партнёры) ===== */
.promo, .promo-img { position: relative; display: flex; align-items: center; gap: 18px; width: 100%; min-height: 90px; padding: 12px 22px; border-radius: 12px; text-decoration: none; overflow: hidden; }
.promo-img { padding: 0; min-height: 0; justify-content: center; }
.promo-img img { display: block; width: 100%; max-height: 90px; object-fit: contain; border-radius: 12px; }
.promo-brand { flex: none; font-weight: 800; font-size: 26px; letter-spacing: .5px; }
.promo-text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.promo-text b { font-size: 18px; line-height: 1.2; }
.promo-text small { font-size: 13px; opacity: .75; }
.promo-btn { flex: none; padding: 10px 18px; border-radius: 10px; font-weight: 700; font-size: 15px; white-space: nowrap; }
.promo-label { position: absolute; top: 4px; right: 8px; font-size: 10px; opacity: .6; letter-spacing: .3px; }
.promo-img .promo-label { background: rgba(0, 0, 0, .45); color: #fff; padding: 1px 5px; border-radius: 4px; opacity: .8; }
.promo-lis { background: linear-gradient(100deg, #0d1220 0%, #141b30 60%, #1d1730 100%); color: #f3f4f8; border: 1px solid #2a3150; }
.promo-lis .promo-brand { color: #fff; }
.promo-lis .promo-brand i { font-style: normal; color: #ff7a1a; }
.promo-lis .promo-btn { background: #ff7a1a; color: #14110d; }
.promo-lis:hover .promo-btn { background: #ff8f3d; }
.promo-par { background: var(--card); color: var(--text); border: 1px solid var(--edge); }
.promo-par .promo-btn { background: var(--accent); color: #fff; }
.site-head .promo { min-height: 58px; padding: 8px 14px; gap: 12px; }
@media (min-width: 561px) {
  .site-head .promo { min-height: 0; padding: 6px 20px; }
  .site-head .promo-brand { font-size: 22px; }
  .site-head .promo-text b { font-size: 16px; }
  .site-head .promo-text small { font-size: 13px; }
  .site-head .promo-btn { padding: 9px 14px; font-size: 14px; }
  .site-head .promo-img img { max-height: 86px; }
}
@media (max-width: 560px) {
  .site-head .promo { min-height: 60px; gap: 10px; padding: 16px 10px 10px 12px; }
  .site-head .promo-brand { font-size: 15px; }
  .site-head .promo-text b { font-size: 13px; }
  .promo-text small, .promo-par .promo-brand { display: none; }
  .promo-btn { padding: 8px 10px; font-size: 12.5px; }
  .promo-label { top: 2px; right: 8px; }
  .site-head .promo-img img { max-height: 100px; }
}
@media (max-width: 360px) { .promo-lis .promo-brand { display: none; } }

/* ===== Анимированные баннеры (Lis-Skins, kzdon): слайды плавно сменяют друг друга, полоска внизу показывает время слайда ===== */
.slides { display: grid; flex: 1; min-width: 0; }
.slides > .slide { grid-area: 1 / 1; display: grid; align-content: center; gap: 2px; min-width: 0; opacity: 0; animation: sl3 12s ease-in-out infinite both; }
.slides > .slide:nth-child(2) { animation-delay: 4s; }
.slides > .slide:nth-child(3) { animation-delay: 8s; }
.slides.two > .slide { animation-name: sl2; animation-duration: 10s; }
.slides.two > .slide:nth-child(2) { animation-delay: 5s; }
.slide small { font-size: 13px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slide b { font-size: 18px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; }
@keyframes sl3 { 0% { opacity: 0; transform: translateY(6px); } 5%, 30% { opacity: 1; transform: none; } 35%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes sl2 { 0% { opacity: 0; transform: translateY(6px); } 6%, 44% { opacity: 1; transform: none; } 50%, 100% { opacity: 0; transform: translateY(-6px); } }
.slide-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); animation: slbar 4s linear infinite; pointer-events: none; }
.slides.two ~ .slide-bar { animation-duration: 5s; }
@keyframes slbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.promo-btn { transition: background-color .3s, transform .3s; }
.promo:hover .promo-btn { transform: translateX(2px); }
/* Lis-Skins: фон медленно «переливается» */
.promo-lis { background-size: 220% 100%; animation: lisbg 14s ease-in-out infinite alternate; }
@keyframes lisbg { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.promo-lis .slide-bar { background: #ff7a1a; opacity: .8; }
/* kzdon: тёмный фон, жёлтый акцент, сжатый шрифт — как на kzdon.kz */
.promo-kz { background: #101115 repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 2px, transparent 2px 7px); color: #fff; border: 1px solid #23252d; box-shadow: inset 3px 0 0 #f5c542; font-family: "Oswald", "Arial Narrow", sans-serif; }
/* kzdon: всё на одном полотне — бренд, промокод, скидка, кнопка; акценты мягко «пульсируют» (масштаб, без свечения) */
.promo-kz { gap: 16px; justify-content: space-between; }
.promo-kz small { display: block; color: #c4c6cc; text-transform: uppercase; letter-spacing: .6px; font-size: 13px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.promo-kz b { display: inline-block; font-weight: 600; letter-spacing: 1px; line-height: 1.05; }
.kz-brand { flex: none; min-width: 0; display: grid; gap: 4px; }
.kz-brand b { font-size: 34px; color: #fff; }
.kz-item { flex: none; display: grid; gap: 4px; justify-items: start; }
.kz-item b { font-size: 28px; }
.promo-kz .kz-y { color: #f5c542; }
.promo-kz .kz-code { color: #f5c542; }
.pulse { animation: kzpulse 2.4s ease-in-out infinite; transform-origin: 50% 50%; }
.pulse.p2 { animation-delay: .8s; }
.pulse.p3 { animation-delay: 1.6s; }
@keyframes kzpulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
.promo-kz .promo-btn { background: #f5c542; color: #111; font-family: "Onest", system-ui, sans-serif; }
.promo-kz:hover .promo-btn { background: #ffd35c; }
.promo-kz .slide-bar { background: #f5c542; }
.promo-kz .promo-label { color: #9a9ca3; opacity: 1; font-family: "Onest", system-ui, sans-serif; }
@media (min-width: 561px) {
  .site-head .slide b { font-size: 16px; }
}
@media (max-width: 560px) {
  .site-head .slide small { font-size: 11.5px; }
  .site-head .slide b { font-size: 13px; }
  .site-head .promo-kz, .site-head .promo-lis { min-height: 94px; }
  .site-head .promo-kz { padding: 12px 10px 10px 14px; }
  .site-head .promo-kz { gap: 12px; }
  .site-head .promo-kz .promo-btn { display: none; }
  .site-head .promo-kz small { font-size: 10.5px; letter-spacing: .3px; }
  .site-head .kz-brand b { font-size: 24px; }
  .site-head .kz-item b { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .slides > .slide, .promo-lis, .pulse { animation: none; }
  .slides > .slide:first-child { opacity: 1; }
  .slide-bar { display: none; }
}

/* ===== Боковые рекламные места: у краёв окна браузера (просьба пользователя), верх — на уровне первой карточки (--side-top ставит ads.js) ===== */
.sidecol { display: none; }
@media (min-width: 1360px) {
  /* top меняет ads.js при прокрутке: сначала на уровне первой карточки, потом прилипает к верху — под закреплённой шапкой */
  /* 2026-12-01: по высоте от низа шапки до низа окна (просьба пользователя) */
  .sidecol { display: block; position: fixed; top: calc(var(--head-h, 86px) + 12px); bottom: 12px; width: var(--sw); z-index: 1;
    height: auto; min-height: 300px; overflow: hidden; border-radius: 12px; }
  .sidecol-l { left: var(--sedge); }
  .sidecol-r { right: var(--sedge); }
  .sidecol .sidebox { display: block; width: 100%; height: 100%; }
  .sidecol.filled { border-color: transparent; }
  .sidebox a { display: block; height: 100%; }
  .sidebox img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
  /* без рамки и фона: видна только сама реклама; нет объявления — пусто */
  .sidebox .slot-ph { display: none; }
}

/* ===== ПК: шапка (логотип + верхний баннер) всегда видна при прокрутке ===== */
@media (min-width: 1024px) {
  .site-head { position: sticky; top: 0; z-index: 30; }
  /* переход к блоку по кнопке/ссылке — блок не прячется под шапкой */
  html { scroll-padding-top: calc(var(--head-h, 108px) + 12px); }
}
/* Всего 3 рекламных места: на широком экране (есть боковые) — верх + лево + право, нижних нет;
   на узком экране и телефоне — верх + 2 нижних */
@media (min-width: 1360px) {
  .bslots { display: none !important; }
}

/* Два нижних рекламных места под «Сохранёнными сборками» */
.bslots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bslot { min-height: 90px; border: 1px solid var(--edge); border-radius: 16px; overflow: hidden; display: grid; }
.bslot .slot-ph { height: auto; min-height: 88px; border: 0; }
.bslot.filled { border-color: transparent; }
/* без рамки и фона: видна только сама реклама; нет объявления — места нет */
.bslot { border: 0; min-height: 0; }
.bslot:not(.filled) { display: none; }
.bslots:not(:has(.bslot.filled)) { display: none; }
/* Яндекс ещё не дал объявление (или блокировщик) — место свёрнуто, но контейнер жив: придёт объявление — развернётся */
.bslot.ya-wait { height: 0; min-height: 0; overflow: hidden; }
.bslots:not(:has(.bslot.filled:not(.ya-wait))) { margin-top: 0; margin-bottom: 0; }
.bslot a { display: block; }
.bslot img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }

/* «← На главную» на страницах политики и профиля */
.back-link { display: inline-flex; align-items: center; justify-self: start; gap: 6px; margin: 0 0 12px; padding: 8px 12px; border: 1px solid var(--edge); border-radius: 10px; background: var(--inset); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; }
.back-link:hover { border-color: var(--accent-text); }
.pf .back-link { margin: 0; }
.doc a.back-link { color: var(--text); }

/* ===== Планшет и узкий компьютер (одна колонка) ===== */
@media (max-width: 999px) {
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tiles.two { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid.half > label.f-wifi { grid-column: span 2; min-height: 46px; } /* рядом с «Видеокарта» и «ОЗУ», по центру их списков */
  .pick-row { grid-template-columns: 1fr 1fr; }
  .pick-row .mode-tog { grid-column: 1 / -1; }
  .pick-row .mypc-btn { min-height: 48px; }
  .parts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partners { grid-auto-columns: calc((100% - 2 * var(--pgap)) / 3.3); }
}
@media (max-width: 760px) {
  .rtop { grid-template-columns: 1fr; }
  .notes { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.half > label.f-wifi { grid-column: 1 / -1; min-height: 0; }
}
/* Сборки слайдером: выбранная по центру, по краям видны соседние (~30% их ширины; было 84% → 60%, просьба 2026-12-04) */
@media (max-width: 700px) {
  .variants { --vw: 60%; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 0 6px;
    scrollbar-width: none; overscroll-behavior-x: contain; align-items: stretch; }
  .variants::-webkit-scrollbar { display: none; }
  .variants::before, .variants::after { content: ""; flex: 0 0 calc((100% - var(--vw)) / 2 - 10px); }
  .variants > .variant { flex: 0 0 var(--vw); scroll-snap-align: center; }
  .dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
  .dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: var(--line); cursor: pointer; transition: width .2s, background .2s; }
  .dots button.on { width: 20px; background: var(--accent-text); }
  .vhead { gap: 8px; }
}

/* ===== Телефон ===== */
@media (max-width: 560px) {
  select, input[type=number] { font-size: 16px; } /* меньше 16px — iPhone увеличивает страницу при нажатии */
  .top { padding: 14px 16px 8px; }
  .title-row h1 { font-size: 21px; }
  .top .lead { font-size: 13px; margin-top: 4px; }
  main { gap: 14px; }
  .layout, .leftcol, .rightcol { gap: 14px; }
  .card { padding: 14px; border-radius: 14px; }
  .card h2, .vhead h2 { font-size: 18px; margin-bottom: 12px; }
  .vhead h2 .muted, .card h2 .muted { flex-basis: 100%; }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gt { height: 48px; }
  .gt .nm { font-size: 12px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pick-row { grid-template-columns: 1fr; }
  .mode-tog button { font-size: 14px; padding: 0 4px; }
  #othersCard { display: none !important; }
  .vt small { max-width: 52%; }
  .hero { grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; }
  .hero-ring { width: 76px; height: 76px; font-size: 17px; }
  .hero-ring::before { inset: 7px; }
  .hero-big { font-size: 38px; letter-spacing: -1px; }
  .hero-big.work { font-size: 24px; }
  .hero-sub { font-size: 13.5px; }
  .actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .act { flex-direction: column; gap: 4px; min-height: 54px; padding: 8px 4px; font-size: 12px; white-space: normal; text-align: center; line-height: 1.15; }
  .act-shop { grid-column: 1 / -1; flex-direction: row; gap: 8px; min-height: 48px; font-size: 14.5px; }
  .dt { gap: 8px; }
  #simpleCard .dtile { padding: 9px; }
  #simpleCard .dtile .l, #simpleCard .dtile .s { font-size: 11px; }
  #simpleCard .dtile .v { font-size: 15px; }
  #buildCard .dt { grid-template-columns: 1fr; }
  .stips { font-size: 13px; }
  .parts { grid-template-columns: 1fr; gap: 10px; } /* на телефоне названия деталей длинные — по одной в строку */
  .build-row .ghost { width: 100%; }
  .bar { font-size: 12px; }
  .fps { gap: 6px; }
  .fps .tile { padding: 8px; }
  .fps .tile small { font-size: 10.5px; }
  .fps .rnum { display: none; }
  .fps .tile strong { font-size: 16px; }
  .fps .tile .lim { font-size: 10.5px; line-height: 1.2; }
  .notes:not(.all) li.ok { display: none; }
  .notes-toggle { display: inline-block; min-height: 40px; padding: 8px 0; margin-top: 4px; } /* удобно попасть пальцем */
  label.check { min-height: 40px; } /* галочки «Wi‑Fi» и «Только совместимые»: нажимается вся строка */
  .partners { --pgap: 10px; grid-template-rows: auto auto; grid-auto-columns: calc((100% - var(--pgap)) / 2.25); }
  .pcard { padding: 10px; }
  .pc-logo { height: 56px; margin-bottom: 4px; }
  .pc-logo img { max-height: 46px; }
  .pc-name { font-size: 13px; }
  .pc-city { font-size: 12px; }
  a.pc-buy { min-height: 36px; font-size: 13px; padding: 6px 6px; }
  /* телефон (до 560px): видно 6 магазинов (3 столбика по 2) + половинка 7-го и 8-го — понятно, что можно листать (2026-12-04) */
  @media (max-width: 560px) {
    .partners { --pgap: 8px; grid-auto-columns: calc((100% - 3 * var(--pgap)) / 3.5); }
    .partners .pcard { padding: 7px; gap: 2px; border-radius: 11px; }
    .partners .pc-logo { height: 42px; margin-bottom: 3px; border-radius: 8px; }
    .partners .pc-logo img { max-height: 34px; }
    .partners .pc-ph { font-size: 9.5px; gap: 1px; }
    .partners .pc-ph svg { width: 17px; height: 17px; }
    .partners .pc-name { font-size: 11px; line-height: 1.2; }
    .partners .pc-city { font-size: 10.5px; line-height: 1.2; }
    .partners a.pc-buy { margin-top: 5px; min-height: 32px; padding: 4px 3px; border-radius: 8px; font-size: 11px; line-height: 1.15; }
    .partners .pc-top { font-size: 9px; padding: 1px 7px; letter-spacing: .02em; }
  }
  .bslots { grid-template-columns: 1fr; gap: 12px; }
  .bslot { min-height: 0; }
  .bslot .slot-ph { min-height: 98px; }
}
@media (max-width: 360px) {
  .mode-tog button { font-size: 12.5px; padding: 0 2px; }
  .gt .nm { font-size: 12px; } /* при 3 плитках в ряд места хватает */
  .act { font-size: 11px; }
}

.pv { display: none; } /* название детали текстом — только при печати */
/* ===== Печать / PDF: итог, детали сборки и результат на белом фоне ===== */
@media print {
  :root, :root[data-theme] { --edge: #ccc; --bg: #fff; --card: #fff; --inset: #f4f4f4; --text: #000; --muted: #555; --line: #ccc; --hero: #fff; --part: #000; color-scheme: light; }
  .no-print, .sidecol, .site-head, .bslots { display: none !important; }
  .layout { display: block; }
  .card { border: 0; padding: 0 0 14px; break-inside: avoid; background: #fff; }
  .hero { background: #fff; }
  body.simple #buildCard, body.simple #result { display: block !important; }
  body.simple #simpleCard { display: none !important; }
  .parts select { display: none; }
  .parts .pv { display: block; font-size: 13px; font-weight: 600; line-height: 1.35; }
  h2, h3 { break-after: avoid; }
  .parts { grid-template-columns: 1fr 1fr; }
  footer { font-size: 10px; }
  .visits, .tip, #othersCard { display: none !important; }
  #buildCard, #result { break-inside: auto; } /* большие блоки можно переносить — иначе первая страница пустая */
  .parts, .dt, .rtop, .fps, .notes li, .hero { break-inside: avoid; }
  /* кольцо и полоски — это фон; без этой строки браузер не печатает их по умолчанию */
  .ring, .bar > i, .bar b, .dtile, .fps .tile, .notes li { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Яндекс в верхнем баннере — ровно размер баннера kzdon / Lis-Skins */
.hbanner .ya-top { width: 100%; border-radius: 12px; overflow: hidden; }

/* Пока сервер считает (дольше 0,25 с) — сборки и итог чуть бледнеют */
#variants, #heroCard, #result { transition: opacity .2s; }
body.calc-wait #variants, body.calc-wait #heroCard, body.calc-wait #result { opacity: .55; }

/* ===== Кнопка «Наверх» (footer.js, все страницы): квадратная, справа внизу; плавно появляется, стрелка подпрыгивает при наведении ===== */
.to-top { position: fixed; right: 16px; bottom: 18px; z-index: 40; width: 44px; height: 44px; padding: 0; display: flex; align-items: center; justify-content: center; overflow: hidden;
  border: 1px solid var(--edge); border-radius: 12px; background: var(--card); color: var(--text); cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.9);
  transition: opacity .35s ease, transform .45s cubic-bezier(.2, .9, .3, 1.2), visibility .35s, border-color .2s, color .2s, background-color .2s; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s cubic-bezier(.2, .9, .3, 1.2); }
.to-top:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.to-top:active { transform: scale(.92); }
@media (hover: hover) { .to-top:hover { border-color: var(--accent); background: var(--accent); color: #fff; } .to-top:hover svg { transform: translateY(-3px); } }
/* нажали — стрелка улетает вверх и возвращается снизу */
.to-top.go svg { animation: toTopFly .6s ease; }
@keyframes toTopFly { 0% { transform: translateY(0); } 45% { transform: translateY(-26px); opacity: 0; } 46% { transform: translateY(26px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .to-top, .to-top svg { transition: opacity .2s, visibility .2s; } .to-top.go svg { animation: none; } }
/* телефон — чуть меньше и аккуратнее */
@media (max-width: 560px) { .to-top { right: 12px; bottom: 14px; width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 3px 10px rgba(0, 0, 0, .2); } .to-top svg { width: 17px; height: 17px; } }
/* широкий экран (есть боковая реклама): кнопка в просвете справа от основной колонки, как отмечено на скриншоте пользователя;
   правая рекламная колонка заканчивается выше кнопки, чтобы они не перекрывались */
@media (min-width: 1360px) {
  /* 2026-12-01: правый баннер до низа, как левый; кнопка в просвете, а если просвет узкий — чуть левее, не заходит на баннер */
  .to-top { right: auto; left: min(calc(50% + var(--pw) / 2 + 10px), calc(100vw - var(--sedge) - var(--sw) - 52px)); bottom: 18px; width: 42px; height: 42px; }
}
@media print { .to-top { display: none !important; } }

/* ===== Цветные кнопки: диагональный градиент + медленный перелив (2026-12-01, просьба пользователя) =====
   Без обводки и без свечения. :root в селекторе — чтобы перебить articles.css/info.css/obs.css, которые грузятся позже. */
:root {
  --g-acc: linear-gradient(135deg, color-mix(in srgb, var(--accent) 70%, #000) 0%, var(--accent) 30%, color-mix(in srgb, var(--accent) 76%, #fff) 55%, var(--accent) 75%, color-mix(in srgb, var(--accent) 70%, #000) 100%);
  --g-ok: linear-gradient(135deg, color-mix(in srgb, var(--ok) 74%, #000) 0%, var(--ok) 30%, color-mix(in srgb, var(--ok) 80%, #fff) 55%, var(--ok) 75%, color-mix(in srgb, var(--ok) 74%, #000) 100%);
}
@keyframes dzFlow { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
/* фиолетовые */
:root button.primary, :root .act-shop, :root .art-btn, :root .obs-btn:not(.open), :root a.pf-link.pf-primary, :root .nf a.btn,
:root .gt.on, :root .kind button.on, :root .seg button.on, :root .dz-period button.on, :root .dz-menu button.on,
:root .lang button.on, :root .dd-menu button.on {
  background: var(--g-acc); background-size: 300% 300%; border-color: transparent; animation: dzFlow 7s ease-in-out infinite alternate; }
/* зелёные */
:root a.pc-buy, :root .shop-status a.wa-btn, :root .site-foot a.sf-support, :root .dzi-dl, :root .obs-btn.done, :root .mode-tog .mt-knob {
  background: var(--g-ok); background-size: 300% 300%; border-color: transparent; animation: dzFlow 7s ease-in-out infinite alternate; }
/* наведение: чуть-чуть увеличиваем, плавно (вместо прежней «яркости») */
:root button.primary, :root .act-shop, :root .art-btn, :root .obs-btn:not(.open), :root a.pf-link.pf-primary, :root .nf a.btn,
:root a.pc-buy, :root .shop-status a.wa-btn, :root .site-foot a.sf-support, :root .dzi-dl {
  transition: transform .25s ease, filter .25s ease; }
@media (hover: hover) {
  :root button.primary:not(:disabled):hover, :root .act-shop:hover, :root .art-btn:hover, :root .obs-btn:not(.open):hover, :root a.pf-link.pf-primary:hover, :root .nf a.btn:hover,
  :root a.pc-buy:hover, :root .shop-status a.wa-btn:hover, :root .site-foot a.sf-support:hover, :root .dzi-dl:hover {
    transform: scale(1.03); filter: none; border-color: transparent; }
}
:root button.primary:not(:disabled):active, :root .act-shop:active, :root .art-btn:active, :root .obs-btn:not(.open):active, :root a.pf-link.pf-primary:active, :root .nf a.btn:active,
:root a.pc-buy:active, :root .shop-status a.wa-btn:active, :root .site-foot a.sf-support:active, :root .dzi-dl:active { transform: scale(1.01); }
/* кнопка «Наверх» при наведении — тот же фиолетовый градиент, без анимации фона */
@media (hover: hover) { :root .to-top:hover { background: var(--g-acc); background-size: 300% 300%; background-position: 50% 50%; border-color: transparent; } }
@media (prefers-reduced-motion: reduce) {
  :root button.primary, :root .act-shop, :root .art-btn, :root .obs-btn:not(.open), :root a.pf-link.pf-primary, :root .nf a.btn,
  :root .gt.on, :root .kind button.on, :root .seg button.on, :root .dz-period button.on, :root .dz-menu button.on, :root .lang button.on, :root .dd-menu button.on,
  :root a.pc-buy, :root .shop-status a.wa-btn, :root .site-foot a.sf-support, :root .dzi-dl, :root .obs-btn.done, :root .mode-tog .mt-knob {
    animation: none; background-position: 50% 50%; transition: none; }
  :root button.primary:hover, :root .act-shop:hover, :root .art-btn:hover, :root .obs-btn:not(.open):hover, :root a.pf-link.pf-primary:hover, :root .nf a.btn:hover,
  :root a.pc-buy:hover, :root .shop-status a.wa-btn:hover, :root .site-foot a.sf-support:hover, :root .dzi-dl:hover { transform: none; }
}

/* ===== Матовое стекло (2026-12-01, просьба пользователя) =====
   Блоки чуть прозрачные и размывают то, что за ними: живой фон (jsdoza/fon.js) еле проступает.
   Сделать блоки снова сплошными: --glass-a: 100%. Без свечения. */
:root { --glass-a: 76%; --inset-a: 84%; --glass-blur: 18px; }
@media (max-width: 699px) { :root { --glass-a: 82%; --glass-blur: 12px; } }  /* телефон: чуть плотнее и легче */
:root {
  --glass: color-mix(in srgb, var(--card) var(--glass-a), transparent);
}
:root .card, :root .variant, :root .site-head, :root .obs-item, :root .obs-how ol, :root .pf-tile, :root .chip, :root .promo-par {
  background-color: var(--glass);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.15); backdrop-filter: blur(var(--glass-blur)) saturate(1.15);
}
:root .card:not(.hero), :root .variant, :root .site-head, :root .obs-item, :root .obs-how ol, :root .pf-tile, :root .chip, :root .promo-par { background-image: none; }
:root .hero { background-image: linear-gradient(120deg, color-mix(in srgb, var(--hero) var(--glass-a), transparent), var(--glass) 62%); }
/* плитки внутри блоков тоже чуть прозрачные (без своего размытия — его уже даёт блок) */
:root .gt, :root .orow, :root .vbadge, :root .seg, :root .kind, :root .dtile, :root .fps .tile, :root .saved li, :root .pcard, :root .ps-arrow,
:root button.ghost, :root select, :root input[type=number], :root .back-link, :root .art-item, :root .art-cta, :root .art-example, :root .contact-box,
:root #articlesCard .art-links a, :root .sf-social a, :root .visits {
  background-color: color-mix(in srgb, var(--inset) var(--inset-a), transparent);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --glass-a: 94%; --inset-a: 100%; }
}
@media print { :root { --glass-a: 100%; --inset-a: 100%; } :root .card, :root .variant { backdrop-filter: none; -webkit-backdrop-filter: none; } }
/* светлая тема: серые кнопки и плитки чуть темнее и плотнее, чтобы выделялись на стеклянных блоках (2026-12-01, просьба пользователя) */
:root[data-theme="light"] { --inset: #e0d7f3; --inset-a: 94%; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --inset: #e0d7f3; --inset-a: 94%; } }
/* ВИДЕО НА ФОНЕ БЛОКА FPS (#heroCard, 2026-12-01, просьба пользователя): клип CS2 img/fon/cs2.mp4, сверху тот же фиолетовый градиент с медленным переливом.
   Вставляет jsdoza/herovid.js. Телефон / экономия трафика / reduced-motion → один кадр cs2.jpg. Выключить: VIDEO_ON = false в herovid.js */
.hero.hv { position: relative; overflow: hidden; isolation: isolate; }
.hero.hv > .hv-media, .hero.hv > .hv-tint { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; }
.hero.hv > .hv-media { z-index: -2; width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.66) saturate(.95) blur(1px); transform: scale(1.02); opacity: 1; }
@media (max-width: 699px) { .hero.hv > .hv-media { filter: brightness(.6) saturate(.95) blur(1px); } }  /* телефон: кадр в тёмной ещё чуть темнее */
.hero.hv > .hv-tint { z-index: -1;
  background: linear-gradient(120deg, color-mix(in srgb, var(--hero) 76%, transparent) 0%, color-mix(in srgb, var(--card) 50%, transparent) 40%, color-mix(in srgb, var(--hero) 38%, transparent) 70%, color-mix(in srgb, var(--card) 48%, transparent) 100%);
  background-size: 260% 260%; animation: hvFlow 12s ease-in-out infinite alternate; }
:root .hero.hv { background-image: none; }
/* мелкий серый текст на ярком видео — чуть контрастнее (без свечения/тени) */
.hero.hv .hero-lvl, .hero.hv .hero-sub { color: color-mix(in srgb, var(--text) 80%, var(--muted)); }
:root[data-theme="light"] .hero.hv > .hv-media { opacity: .85; filter: brightness(1.05) saturate(.9) blur(1px); }
:root[data-theme="light"] .hero.hv > .hv-tint {
  background-image: linear-gradient(120deg, color-mix(in srgb, var(--hero) 74%, transparent) 0%, color-mix(in srgb, var(--card) 50%, transparent) 40%, color-mix(in srgb, var(--hero) 38%, transparent) 70%, color-mix(in srgb, var(--card) 50%, transparent) 100%); }
@keyframes hvFlow { from { background-position: 0% 40%; } to { background-position: 100% 60%; } }
@media (prefers-reduced-motion: reduce) { .hero.hv > .hv-tint { animation: none; } }
@media print { .hero.hv > .hv-media, .hero.hv > .hv-tint { display: none; } }

/* ОКНО ДОНАТА «Поддержать проект» (jsdoza/donate.js, все страницы; те же правила есть в info/info.css) */
.dzi-dlg { width: min(460px, calc(100vw - 24px)); }
.dzi-dlg-in { display: grid; gap: 12px; padding: 18px; }
.dzi-dlg .dlg-head { gap: 12px; align-items: flex-start; }
.dzi-dlg .dlg-head h2 { line-height: 1.3; }
.dzi-dlg-top, .dzi-pay img { display: block; width: 100%; height: auto; border-radius: 10px; }
.dzi-pay { display: grid; gap: 8px; }
.dzi-pay a { display: block; border-radius: 10px; transition: transform .15s; }
.dzi-pay a:hover { transform: translateY(-2px); }
.dzi-kaspi { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--edge); background: var(--inset); }
.dzi-kaspi span { grid-column: 1; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.dzi-kaspi b { grid-column: 1; font-size: 17px; letter-spacing: .5px; font-variant-numeric: tabular-nums; }
.dzi-kaspi button { grid-column: 2; grid-row: 1 / span 2; min-height: 36px; font-size: 13.5px; }
/* Кошелёк: длинный адрес в одну строку, конец скрыт «…», «Копировать» берёт весь адрес */
.dzi-kaspi { grid-template-columns: minmax(0, 1fr) auto; }
.dzi-wallet b { font-size: 15px; letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* Телефон: окно доната поменьше (уже и плотнее) */
@media (max-width: 560px) {
  #donateDialog.dzi-dlg { width: min(330px, calc(100vw - 48px)); }
  #donateDialog .dzi-dlg-in { gap: 8px; padding: 14px; }
  #donateDialog .dlg-head h2 { font-size: 17px; }
  #donateDialog .dzi-pay { gap: 6px; }
  #donateDialog .dzi-pay img { border-radius: 8px; }
  #donateDialog .dzi-kaspi { padding: 8px 10px; }
  #donateDialog .dzi-kaspi span { font-size: 11.5px; }
  #donateDialog .dzi-kaspi b { font-size: 15px; letter-spacing: .3px; white-space: nowrap; }
  #donateDialog .dzi-wallet b { font-size: 13.5px; }
  #donateDialog .dzi-kaspi button { min-height: 32px; font-size: 12.5px; padding: 6px 10px; }
}

/* Телефон, простой и расширенный режим: «Эта сборка в других играх» — кнопка-аккордеон (просьба пользователя 02.12) */
#othersAcc { display: none !important; }
@media (max-width: 560px) {
  #othersAcc { display: block !important; padding: 0; overflow: hidden; }
  .oacc-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 16px; background: transparent; border: 0; border-radius: 14px; color: var(--text); font: inherit; font-size: 15px; font-weight: 600; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .oacc-chev { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s ease; }
  #othersAcc.open .oacc-chev { transform: rotate(180deg); }
  .oacc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
  #othersAcc.open .oacc-body { grid-template-rows: 1fr; }
  .oacc-in { min-height: 0; overflow: hidden; }
  .oacc-in .olist { padding: 0 14px 14px; }
}
@media (prefers-reduced-motion: reduce) { .oacc-chev, .oacc-body { transition: none; } }
@media print { #othersAcc { display: none !important; } }

/* Счётчик и кнопка «Другие»: точное выравнивание по центру «на глаз» (02.12, просьба пользователя).
   text-box обрезает у текста пустые поля шрифта: цифры центрируются по высоте заглавных, «за сегодня» — по высоте строчных.
   Старые браузеры без text-box — остаются сдвиги выше. */
@supports (text-box: trim-both cap alphabetic) {
  .visits { align-items: center; }
  .visits b { text-box: trim-both cap alphabetic; line-height: 1; top: 0 !important; }
  .visits .v24 { text-box: trim-both ex alphabetic; line-height: 1; top: 1px !important; } /* «за сегодня» — по высоте строчных букв (04.12) */
  .visits .v-dot { transform: none !important; }
  .more-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
  .more-btn > span { text-box: trim-both cap alphabetic; line-height: 1; }
  .more-btn svg.bi { transform: none; vertical-align: 0; }
}

/* ===== Кнопка темы: еле заметная диагональная «молния», пробегает по кнопке раз в ~5 с (просьба пользователя 2026-12-02).
   Тёмная тема (кнопка «Светлая тема») — светлая полоска со светлым свечением; светлая тема — наоборот, тёмная.
   Отключить: удалить этот блок. ===== */
#themeBtn { position: relative; overflow: hidden; isolation: isolate; }
#themeBtn > * { position: relative; z-index: 1; }
#themeBtn::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  top: -60%; bottom: -60%; left: 0; width: 3px; border-radius: 3px;
  background: #fff;
  box-shadow: 0 0 4px 2px rgba(255, 255, 255, .95), 0 0 12px 6px rgba(255, 255, 255, .7), 0 0 26px 12px rgba(210, 200, 255, .45);
  transform: translateX(-30px) rotate(24deg); opacity: 0;
  animation: dzThemeBolt 5s ease-in-out 1.2s infinite;
}
:root[data-theme="light"] #themeBtn::after {
  background: #120e24;
  box-shadow: 0 0 4px 2px rgba(18, 14, 36, .85), 0 0 12px 6px rgba(18, 14, 36, .55), 0 0 26px 12px rgba(40, 30, 80, .35);
}
@keyframes dzThemeBolt {
  0%   { transform: translateX(-30px) rotate(24deg); opacity: 0; }
  4%   { opacity: 1; }
  22%  { opacity: 1; }
  26%  { transform: translateX(calc(var(--hbtn-w, 220px) + 20px)) rotate(24deg); opacity: 0; }
  100% { transform: translateX(calc(var(--hbtn-w, 220px) + 20px)) rotate(24deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { #themeBtn::after { animation: none; display: none; } }

/* ===== Плашка согласия с правилами внизу (jsdoza/consent.js, 2026-12-03) =====
   Стекло как у блоков, без свечения; фиолетовая только кнопка «Принять». По центру над содержимым,
   не заходит на боковую рекламу. На экранах уже 1360 кнопки «Наверх» и чата поднимаются над плашкой. */
.dz-ok { position: fixed; z-index: 43; left: 50%; bottom: 14px; width: min(var(--pw), 820px); box-sizing: border-box;
  display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 16px; border: 1px solid var(--edge, var(--line)); border-radius: 14px;
  background-color: color-mix(in srgb, var(--card) 90%, transparent); -webkit-backdrop-filter: blur(var(--glass-blur, 16px)) saturate(1.15); backdrop-filter: blur(var(--glass-blur, 16px)) saturate(1.15);
  color: var(--text); box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
  opacity: 0; transform: translate(-50%, 16px); transition: opacity .3s ease, transform .35s ease; }
.dz-ok.show { opacity: 1; transform: translate(-50%, 0); }
.dz-ok-ic { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dz-ok-txt { flex: 1; min-width: 0; margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.dz-ok-txt a { color: var(--text); font-weight: 500; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--text) 40%, transparent); text-underline-offset: 2px; }
.dz-ok-txt a:hover { text-decoration-color: currentColor; }
.dz-ok-btn { flex: none; min-height: 40px; padding: 8px 20px; border: 0; border-radius: 10px; color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  background: var(--g-acc, var(--accent)); background-size: 300% 300%; animation: dzFlow 7s ease-in-out infinite alternate; transition: transform .25s ease; }
@media (hover: hover) { .dz-ok-btn:hover { transform: scale(1.03); } }
.dz-ok-btn:active { transform: scale(1.01); }
.dz-ok-btn:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
:root[data-theme="light"] .dz-ok { box-shadow: 0 6px 20px rgba(40, 20, 80, .14); }
/* низ страницы (подвал) не прячется под плашкой */
body.dzok-on { padding-bottom: calc(var(--dzok-h, 70px) + 24px); }
@media (max-width: 1359px) {
  :root body.dzok-on .to-top { bottom: calc(var(--dzok-h, 70px) + 28px); }
  :root body.dzok-on .dzc-btn { bottom: calc(var(--dzok-h, 70px) + 28px); }
  :root body.dzok-on.dzc-up .dzc-btn { bottom: calc(var(--dzok-h, 70px) + 82px); }
}
/* телефон: на всю ширину с полями 8px, текст мельче, кнопка справа */
@media (max-width: 560px) {
  .dz-ok { left: 8px; right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); width: auto; gap: 10px; padding: 10px 10px 10px 12px; border-radius: 12px; transform: translateY(16px); }
  .dz-ok.show { transform: none; }
  .dz-ok-ic { display: none; }
  .dz-ok-txt { font-size: 12px; line-height: 1.4; }
  .dz-ok-btn { min-height: 38px; padding: 7px 14px; font-size: 13.5px; }
  :root body.dzok-on .to-top, :root body.dzok-on .dzc-btn { bottom: calc(var(--dzok-h, 70px) + 18px); }
  :root body.dzok-on.dzc-up .dzc-btn { bottom: calc(var(--dzok-h, 70px) + 66px); }
}
@media (prefers-reduced-motion: reduce) { .dz-ok { transition: opacity .2s; } .dz-ok-btn { animation: none; } }
@media print { .dz-ok { display: none !important; } }

/* ===== Adsterra Native Banner в шапке (ads.js → adsterra): карточки в одну строку, по высоте шапки ===== */
.hbanner .ast-top { position: relative; width: 100%; height: 100%; min-height: 86px; overflow: hidden; border-radius: 12px; display: flex; align-items: center; color: var(--text); font-size: 13px; }
.hbanner .ast-in { width: 100%; transform-origin: left center; }
/* ряд карточек */
.hbanner .ast-top [class*="__stand"], .hbanner .ast-top [class*="__row"] { display: flex !important; flex-wrap: nowrap !important; gap: 10px !important; width: 100% !important; margin: 0 !important; }
/* карточка: картинка слева, заголовок справа */
.hbanner .ast-top a { display: flex !important; flex-direction: row !important; align-items: center !important; gap: 10px !important; flex: 1 1 0 !important; min-width: 0 !important; width: auto !important; max-width: none !important; margin: 0 !important; padding: 6px !important; border-radius: 10px; background: var(--inset); color: var(--text) !important; text-decoration: none !important; }
.hbanner .ast-top a:hover { background: var(--line); }
.hbanner .ast-top [class*="__img"] { flex: none !important; width: 66px !important; height: 66px !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; border-radius: 8px; overflow: hidden; background-size: cover !important; background-position: center !important; }
.hbanner .ast-top img { width: 66px !important; height: 66px !important; object-fit: cover; border-radius: 8px; display: block; position: static !important; }
.hbanner .ast-top [class*="__title"], .hbanner .ast-top [class*="__descr"] { margin: 0 !important; padding: 0 !important; font-size: 13px !important; line-height: 1.3 !important; font-weight: 500; color: var(--text) !important; display: -webkit-box !important; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-align: left !important; overflow-wrap: anywhere; hyphens: auto; min-width: 0; }
.hbanner .ast-top [class*="__text"], .hbanner .ast-top [class*="__desc"]:not([class*="__descr"]) { display: none !important; }
.hbanner .ast-top .ast-hide { display: none !important; }
/* узкое место в шапке (ПК до ~1700 px): картинка поменьше, чтобы заголовку хватало места */
@media (min-width: 561px) and (max-width: 1700px) {
  .hbanner .ast-top a { gap: 8px !important; }
  .hbanner .ast-top [class*="__img"], .hbanner .ast-top img { width: 52px !important; height: 52px !important; }
  .hbanner .ast-top [class*="__title"], .hbanner .ast-top [class*="__descr"] { font-size: 12px !important; }
}
@media (max-width: 560px) {
  .hbanner .ast-top { height: 94px; min-height: 94px; }
  .hbanner .ast-top a { gap: 8px !important; padding: 5px !important; }
  .hbanner .ast-top [class*="__img"], .hbanner .ast-top img { width: 58px !important; height: 58px !important; }
  .hbanner .ast-top [class*="__title"], .hbanner .ast-top [class*="__descr"] { font-size: 12px !important; }
}
/* Adsterra Banner 728×90 / 320×50: по центру места, уменьшается под ширину */
.hbanner .ast-top.ast-bn { justify-content: center; align-items: center; background: none; }
.hbanner .ast-bn iframe { border: 0; display: block; flex: none; transform-origin: center center; }
/* Adsterra 160×600 в боковых местах: по центру колонки, сверху; на низком экране уменьшается */
.sidecol .sidebox.ast-side { display: flex; justify-content: center; align-items: flex-start; overflow: hidden; }
.sidebox.ast-side iframe { transform-origin: top center; }
@media (min-width: 561px) { .hbanner .ast-top.ast-bn { height: 86px; max-height: 86px; } }
@media (max-width: 560px) { .hbanner .ast-top.ast-bn { height: auto; min-height: 50px; } }

/* ===== Ползунок «Желаемый FPS» (#fpsR) — шкала по частотам мониторов, рядом поле для точного числа ===== */
.grid > .f-fps { grid-column: 1 / -1; display: grid; gap: 10px; min-width: 0; margin-bottom: 4px; }
.fps-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fps-head > label { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; }
.fps-head input#fps { width: 84px; height: 38px; padding: 0 10px; text-align: center; font-size: 16px; font-weight: 500; border-radius: 10px; -moz-appearance: textfield; }
.fps-head input#fps::-webkit-inner-spin-button, .fps-head input#fps::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.fps-sl { padding: 0 11px; }
#fpsR { --fill: 0%; display: block; width: calc(100% + 22px); margin: 0 -11px; height: 30px; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; touch-action: pan-y; }
#fpsR:focus { outline: none; }
#fpsR::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) var(--fill), var(--line) var(--fill)); }
#fpsR::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line); }
#fpsR::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--accent); }
#fpsR::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); box-sizing: border-box; }
#fpsR::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); box-sizing: border-box; }
#fpsR:active::-webkit-slider-thumb { transform: scale(1.12); }
#fpsR:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.fps-ticks { position: relative; height: 18px; margin-top: 2px; }
.fps-ticks button { position: absolute; left: var(--p); top: 0; transform: translateX(-50%); padding: 0 2px; border: 0; background: none; color: var(--muted); font: 500 12px/18px inherit; font-family: inherit; cursor: pointer; }
.fps-ticks button.on { color: var(--accent-text); font-weight: 600; }
.fps-ticks button:hover { color: var(--text); }
/* Расширенный режим, игры: FPS сверху на всю строку, дальше пары списков, галочка Wi‑Fi рядом с «ОЗУ» (2026-12-04) */
#fields.games > label.f-wifi { grid-column: auto; align-self: end; min-height: 46px; display: flex; align-items: center; white-space: nowrap; }
@media (min-width: 1000px) {
  body:not(.simple) #fields.games { grid-template-rows: none; align-content: start; }
  body:not(.simple) #fields.games > label.f-wifi { align-self: end; }
}
@media (max-width: 999px) and (min-width: 761px) { #fields.games > label.f-wifi { grid-column: span 3; } }
/* Пометка «б/у» у старых деталей в карточках сборок (подбор при низком FPS, 04.12.2026) */
.vused { display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: 5px; font-size: 10.5px; font-weight: 600; line-height: 16px; vertical-align: 1px; color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); white-space: nowrap; }
.vusednote { margin-top: 6px; font-size: 11.5px; line-height: 1.35; color: var(--muted); }
