/* Главная и выдача поиска. Главная — в общем языке сайта (ui.css): цвет по смыслу, значки в тонированных квадратах, мягкие карточки.
   Цвета и тени — токены из ui.css (--c-*, --sh), у тёмной темы свои значения токенов. */
body.is-results { background: #f5f5f7; -webkit-font-smoothing: antialiased; letter-spacing: -.01em; }
body.is-home { -webkit-font-smoothing: antialiased; letter-spacing: -.01em; }
html.theme-dark body.is-results { background: #0b0b0d; }
.card-look { background: #fff; border-radius: 24px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 30px rgba(0, 0, 0, .05); }

/* ---------- общее для главной и страниц новостей/советов ---------- */
.home-sec { margin-top: 56px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.sec-head h2 { margin: 0; font-size: 22px; letter-spacing: -.5px; }
.sec-head a { font-size: 14px; color: var(--muted); }
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* ---------- журнал: статьи с фото (главная, новости, советы) ---------- */
.mag { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; }
.mag-side { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.art { display: flex; flex-direction: column; overflow: hidden; color: var(--ink); background: #fff; border-radius: 22px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 30px rgba(0, 0, 0, .05); transition: transform .25s, box-shadow .25s; }
.art:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 16px 44px rgba(0, 0, 0, .1); }
.art .ph { position: relative; display: block; overflow: hidden; background: linear-gradient(135deg, #e8edf5, #f3eefc); }
.art .ph img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.art:hover .ph img { transform: scale(1.04); }
.art .ph-none { display: none; }
.art-t { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.art-t small { font-size: 12.5px; color: var(--faint); }
.art-t small b { color: var(--muted); font-weight: 600; }
.art-t strong { font-size: 15.5px; line-height: 1.38; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.art-t em { font-style: normal; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.art-lead .ph { aspect-ratio: 16 / 10; flex: 1 1 auto; }
.art-lead .art-t { padding: 22px 26px 26px; }
.art-lead .art-t strong { font-size: 22px; line-height: 1.25; letter-spacing: -.5px; -webkit-line-clamp: 3; }
.art-mid .ph { aspect-ratio: 16 / 10; }
.art-row { flex-direction: row; align-items: stretch; }
.art-row .ph { flex: 0 0 120px; }
.art-row .art-t { padding: 14px 16px; }
.art-row .art-t strong { font-size: 14.5px; }
html.theme-dark .art { background: rgba(255, 255, 255, .05); box-shadow: none; }
@media (max-width: 1000px) { .mag { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .news { grid-template-columns: 1fr; } .home-sec { margin-top: 40px; } }
@media (max-width: 640px) {
  .mag-side { grid-template-columns: 1fr; }
  .art-mid { flex-direction: row; } .art-mid .ph { flex: 0 0 120px; aspect-ratio: auto; } .art-mid .art-t strong { font-size: 14.5px; }
  .art-row .ph { flex-basis: 100px; }
}

/* =====================================================================
   ГЛАВНАЯ
   ===================================================================== */
.home { max-width: 1100px; margin: 0 auto; padding: 22px 16px 24px; text-align: left; color: var(--c-ink); }
/* в тёмной теме значки и подписи чуть светлее, чтобы читались на тёмных плитках */
html.theme-dark .home { --c-office: #7f9fff; --c-games: #a08bff; --c-good: #4cc77a; --c-work: #3cc4b3; --c-ai: #f0a830; }
.home .ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* --- герой с поиском: мягкий градиент в цветах логотипа (без overflow:hidden — иначе обрежутся подсказки поиска) --- */
.hero { position: relative; z-index: 3; padding: 64px 40px 40px; text-align: center; border-radius: 32px; box-shadow: var(--sh);
  background:
    radial-gradient(60% 90% at 0% 0%, rgba(47, 107, 255, .13), transparent 70%),
    radial-gradient(55% 90% at 100% 10%, rgba(124, 92, 255, .14), transparent 70%),
    radial-gradient(70% 70% at 50% 120%, rgba(15, 159, 143, .08), transparent 70%),
    var(--c-card); }
.hero h1 { position: relative; margin: 0; font-size: 46px; line-height: 1.08; letter-spacing: -.02em; color: var(--c-ink); }
.hero h1 span { background: linear-gradient(90deg, #2f6bff, #7c5cff); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.hero-sub { position: relative; max-width: 560px; margin: 16px auto 30px; font-size: 18px; line-height: 1.5; color: var(--c-mut); }
.hero-deco { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 17px; background: var(--c-card); box-shadow: var(--sh); pointer-events: none; }
.hero-deco .ic { width: 26px; height: 26px; stroke-width: 1.6; }
.hero-deco--1 { left: 8%; top: 150px; color: var(--c-games); transform: rotate(-8deg); }
.hero-deco--2 { right: 8%; top: 138px; color: var(--c-office); transform: rotate(7deg); }
.hero-deco--3 { left: 4%; bottom: 34px; width: 44px; height: 44px; border-radius: 14px; color: var(--c-office); transform: rotate(6deg); }
.hero-deco--4 { right: 4%; bottom: 42px; width: 44px; height: 44px; border-radius: 14px; color: var(--c-games); transform: rotate(-6deg); }
.hero-deco--3 .ic, .hero-deco--4 .ic { width: 22px; height: 22px; }
html.theme-dark .hero-deco { background: rgba(255, 255, 255, .07); }
@media (prefers-reduced-motion: no-preference) {
  .hero-deco { animation: heroFloat 6s ease-in-out infinite; }
  .hero-deco--2 { animation-delay: -1.5s; } .hero-deco--3 { animation-delay: -3s; } .hero-deco--4 { animation-delay: -4.5s; }
}
@keyframes heroFloat { 50% { translate: 0 -6px; } }

.home .search--big { position: relative; max-width: 620px; margin: 0 auto; }
.home .search--big input { width: 100%; height: 60px; padding: 0 124px 0 54px; font-size: 17px; color: var(--c-ink); border: 0; border-radius: 30px; background: var(--c-card);
  box-shadow: 0 0 0 1px rgba(47, 107, 255, .14), 0 10px 34px rgba(47, 107, 255, .14); transition: box-shadow .2s; }
.home .search--big input:focus { outline: none; box-shadow: 0 0 0 2px rgba(47, 107, 255, .45), 0 12px 38px rgba(47, 107, 255, .18); }
.home .search--big .s-ico { position: absolute; left: 21px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: var(--c-office); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.home .search--big button { position: absolute; right: 7px; top: 7px; height: 46px; padding: 0 24px; border: 0; border-radius: 23px; font-size: 15px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #2f6bff, #5b5cff); box-shadow: 0 6px 16px rgba(47, 107, 255, .3); cursor: pointer; }
.home .search--big button:hover { filter: brightness(1.06); }
html.theme-dark .home .search--big input { background: #16181d; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
html.theme-dark .home .search--big input:focus { box-shadow: 0 0 0 2px rgba(122, 167, 255, .55); }

.home .chips { position: relative; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 22px auto 0; max-width: 860px; }
.chips-t { margin-right: 4px; color: var(--c-mut); font-size: 13.5px; }
.home .chips a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px 7px 11px; border: 0; border-radius: 999px; background: var(--c-card); color: var(--c-ink);
  font-size: 14px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .07); transition: background .15s, color .15s; }
.home .chips a .ic { width: 15px; height: 15px; color: var(--c-office); }
.home .chips a:hover { text-decoration: none; background: var(--c-office-bg); color: var(--c-office); }
html.theme-dark .home .chips a { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
html.theme-dark .home .chips a .ic { color: #8fb0ff; }

/* --- три инструмента --- */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.tool { --fg: var(--c-office); --bgc: var(--c-office-bg);
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px 24px 22px; color: var(--c-ink);
  background: var(--c-card); border-radius: 26px; box-shadow: var(--sh); transition: transform .2s, box-shadow .2s; }
.tool--dream { --fg: #e5487f; --bgc: #fdeef4; }
.tool--check { --fg: var(--c-good); --bgc: var(--c-good-bg); }
html.theme-dark .tool--dream { --fg: #f07aa3; --bgc: rgba(229, 72, 127, .14); }
.tool:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 1px 2px rgba(17, 20, 30, .04), 0 16px 40px rgba(17, 20, 30, .1); }
.tool-ic { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 12px; border-radius: 17px; background: var(--bgc); color: var(--fg); }
.tool-ic .ic { width: 28px; height: 28px; stroke-width: 1.7; }
.tool b { font-size: 18px; letter-spacing: -.3px; }
.tool > span { font-size: 14.5px; line-height: 1.45; color: var(--c-mut); }
.tool-go { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: auto; padding: 7px 14px; border-radius: 999px;
  background: var(--bgc); color: var(--fg); font-style: normal; font-size: 14px; font-weight: 600; }
.tool > span + .tool-go { margin-top: 12px; }
.tool-go i { font-style: normal; transition: transform .2s; }
.tool:hover .tool-go i { transform: translateX(3px); }

/* --- закреплённый совет: заметная плашка --- */
.pin-adv { display: flex; align-items: center; gap: 16px; margin: 18px 0 0; padding: 18px 22px; border-radius: 24px; color: #fff; text-decoration: none;
  background: radial-gradient(80% 140% at 100% 0, rgba(124, 92, 255, .55), transparent 60%), linear-gradient(135deg, #2f6bff, #4b4fe0);
  box-shadow: 0 10px 30px rgba(47, 107, 255, .25); transition: transform .2s, box-shadow .2s; }
.pin-adv:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 14px 36px rgba(47, 107, 255, .32); }
.pin-ic { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 15px; background: rgba(255, 255, 255, .18); }
.pin-ic .ic { width: 24px; height: 24px; }
.pin-tx { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.pin-tx small { font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.pin-tx b { font-size: 18px; line-height: 1.35; }
.pin-go { flex: none; padding: 9px 16px; border-radius: 999px; background: #fff; color: #2f4fe0; font-weight: 600; font-size: 14px; white-space: nowrap; }
html.theme-dark .pin-adv { box-shadow: none; }

/* --- заголовки разделов --- */
.home .sec-head { align-items: center; gap: 12px; }
.home .sec-head h2 { display: flex; align-items: center; gap: 12px; color: var(--c-ink); }
.sh-ic { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 12px; background: var(--c-office-bg); color: var(--c-office); }
.home .sec-head > a { flex: none; padding: 7px 14px; border-radius: 999px; background: var(--c-card); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .07); color: var(--c-ink); font-size: 13.5px; font-weight: 500; }
.home .sec-head > a:hover { text-decoration: none; background: var(--c-office-bg); color: var(--c-office); }
html.theme-dark .home .sec-head > a { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.home .home-sec--tight { margin-top: 16px; }

/* --- статьи на главной --- */
.home .art { color: var(--c-ink); background: var(--c-card); box-shadow: var(--sh); }
.home .art:hover { box-shadow: 0 1px 2px rgba(17, 20, 30, .04), 0 16px 40px rgba(17, 20, 30, .1); }
.home .art .ph { background: linear-gradient(135deg, var(--c-office-bg), var(--c-games-bg)); }
.home .art-t small b { color: var(--c-office); }
html.theme-dark .home .art-t small b { color: #8fb0ff; }

/* --- карточки «Полезного» --- */
.widgets { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 16px; }
.wg { --fg: var(--c-office); --bgc: var(--c-office-bg);
  display: flex; flex-direction: column; min-width: 0; padding: 22px 24px 24px; background: var(--c-card); border-radius: 24px; box-shadow: var(--sh); }
.wg--green { --fg: var(--c-good); --bgc: var(--c-good-bg); }
.wg-head { display: flex; align-items: center; gap: 10px; }
.wg-ic { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 13px; background: var(--bgc); color: var(--fg); }
.wg-ic .ic { width: 20px; height: 20px; }
.wg-head small { color: var(--c-mut); font-size: 12.5px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; }
.wg h3 { margin: 14px 0 14px; font-size: 16.5px; line-height: 1.3; letter-spacing: -.3px; color: var(--c-ink); }
.wg select { width: 100%; height: 46px; padding: 0 38px 0 14px; border: 0; border-radius: 14px; background-color: var(--c-soft); color: var(--c-ink); font: 500 15px var(--text); cursor: pointer;
  -webkit-appearance: none; appearance: none; background-repeat: no-repeat; background-position: right 14px center; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236e6e73' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.wg select:hover { background-color: var(--c-office-bg); }
.wg select:focus { outline: none; box-shadow: inset 0 0 0 2px rgba(47, 107, 255, .45); }
.wg select + select { margin-top: 8px; }
html.theme-dark .wg select { background-color: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
html.theme-dark .wg select option { background: #1a1c20; color: #f2f3f5; }

.psu-out { margin: 16px 0 14px; padding: 14px 16px; border-radius: 16px; background: var(--c-office-bg); }
.psu-out b { display: block; font-size: 34px; letter-spacing: -1px; line-height: 1.05; color: var(--c-office); }
.psu-out span { color: var(--c-mut); font-size: 13.5px; }
html.theme-dark .psu-out b { color: #8fb0ff; }
.wg-link, .wg-links a { font-size: 14px; font-weight: 600; color: var(--c-office); }
.wg-link { margin-top: auto; }
html.theme-dark .wg-link, html.theme-dark .wg-links a { color: #8fb0ff; }
.wg-links { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.wg-note { margin: auto 0 0; padding-top: 14px; color: var(--c-mut); font-size: 12.5px; }

/* программы и «выгоднее всего» — плитки-ссылки на мягком фоне */
.apps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.apps a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 13px; border-radius: 13px; background: var(--c-soft); color: var(--c-ink); font-size: 14px; transition: background .15s; }
.apps a:hover { text-decoration: none; background: var(--c-office-bg); }
.apps a > span { color: var(--c-mut); font-size: 12.5px; text-align: right; }
.best a { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 10px; row-gap: 1px; align-items: baseline; }
.best .bt { grid-column: 1 / -1; text-align: left; color: var(--c-mut); font-size: 12px; }
.best b { font-size: 14.5px; min-width: 0; }
.best a > span:last-child { color: var(--c-good); font-weight: 700; font-size: 14px; white-space: nowrap; }
.best a:hover { background: var(--c-good-bg); }
html.theme-dark .best a > span:last-child { color: #7fd49b; }

/* совет дня — тёплая карточка */
.wg-tip { --fg: var(--c-ai); --bgc: var(--c-card); background: var(--c-ai-bg); box-shadow: none; }
.wg-tip .wg-ic { box-shadow: var(--sh); }
.wg-tip .wg-head small { color: #a35f00; }
.wg-tip p { margin: 14px 0 20px; font-size: 17px; line-height: 1.5; letter-spacing: -.2px; font-weight: 500; color: var(--c-ink); }
.wg-tip .wg-links a { color: #a35f00; }
.wg-tip .wg-links a:hover { text-decoration: none; color: var(--c-ink); }
html.theme-dark .wg-tip .wg-head small, html.theme-dark .wg-tip .wg-links a { color: #f3c46b; }
html.theme-dark .wg-tip .wg-ic { background: rgba(255, 255, 255, .07); box-shadow: none; }

/* сборка под бюджет: выбранная задача — цветом своей задачи */
.seg-goal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-bottom: 12px; }
.seg-goal button { --fg: var(--c-office); --bgc: var(--c-office-bg);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 10px; border: 0; border-radius: 12px; background: var(--c-soft); color: var(--c-mut);
  font: 500 13px var(--text); cursor: pointer; transition: background .15s, color .15s; }
.seg-goal button .ic { width: 15px; height: 15px; }
.seg-goal button[data-g="games"] { --fg: var(--c-games); --bgc: var(--c-games-bg); }
.seg-goal button[data-g="work"] { --fg: var(--c-work); --bgc: var(--c-work-bg); }
.seg-goal button[data-g="ai"] { --fg: var(--c-ai); --bgc: var(--c-ai-bg); }
.seg-goal button:hover { color: var(--c-ink); }
.seg-goal button.on { background: var(--bgc); color: var(--fg); font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--fg); }
.bd-sums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bd-sums a { display: grid; place-items: center; height: 46px; border-radius: 14px; background: var(--c-soft); color: var(--c-ink); font-weight: 700; font-size: 15px; transition: background .15s, color .15s; }
.bd-sums a:hover { text-decoration: none; background: var(--c-office-bg); color: var(--c-office); }
html.theme-dark .bd-sums a:hover { color: #8fb0ff; }

/* пара процессор + видеокарта: ответ цветом */
.pr-out { margin-top: 14px; padding: 13px 15px; border-radius: 14px; background: var(--c-soft); color: var(--c-mut); font-size: 14px; line-height: 1.45; }
.pr-out.ok { background: var(--c-good-bg); color: #13803b; }
.pr-out.warn { background: #fff4e0; color: #8a5a00; }
.pr-out.bad { background: var(--c-bad-bg); color: #b3261e; }
html.theme-dark .pr-out.ok { color: #7fd49b; }
html.theme-dark .pr-out.warn { background: rgba(224, 138, 0, .14); color: #f3c46b; }
html.theme-dark .pr-out.bad { color: #ff9a9a; }

/* --- термины --- */
.terms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; align-items: start; }
.term { background: var(--c-card); border-radius: 18px; box-shadow: var(--sh); }
.term summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px 14px 18px; font-weight: 600; font-size: 15.5px; list-style: none; border-radius: 18px; }
.term summary::-webkit-details-marker { display: none; }
.term summary::after { content: '+'; display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--c-office-bg); color: var(--c-office); font-weight: 500; font-size: 18px; line-height: 1; }
.term[open] summary::after { content: '−'; }
.term summary:hover { color: var(--c-office); }
.term p { margin: 0; padding: 0 18px 16px; color: var(--c-mut); font-size: 14.5px; line-height: 1.5; }
html.theme-dark .term summary:hover { color: #8fb0ff; }
html.theme-dark .term summary::after { color: #8fb0ff; }

/* --- цены на популярное --- */
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 16px; color: var(--c-ink); background: var(--c-card); border-radius: 22px; box-shadow: var(--sh); transition: transform .2s, box-shadow .2s; }
.tile:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 1px 2px rgba(17, 20, 30, .04), 0 14px 34px rgba(17, 20, 30, .1); }
.tile-top { display: flex; align-items: center; gap: 8px; }
.tile-ic { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 11px; background: var(--c-office-bg); color: var(--c-office); }
.tile-ic .ic { width: 17px; height: 17px; }
.tile small { color: var(--c-mut); font-size: 12px; }
.tile b { margin: 4px 0; font-size: 16.5px; letter-spacing: -.2px; }
.tp { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 9px; border-radius: 10px; background: var(--c-soft); font-size: 13px; font-weight: 600; white-space: nowrap; }
.tile .tp--new { margin-top: auto; }
.tp em { font-style: normal; font-weight: 500; color: var(--c-mut); }
.tp--used { background: var(--c-good-bg); }
.tp--used em { color: var(--c-good); }
html.theme-dark .tp--used em { color: #7fd49b; }

@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1000px) {
  .widgets { grid-template-columns: 1fr 1fr; }
  .widgets > .wg:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .hero-deco { display: none; }
}
@media (max-width: 900px) {
  .home { padding-top: 14px; }
  .hero { padding: 40px 22px 30px; border-radius: 28px; }
  .hero h1 { font-size: 30px; letter-spacing: -.01em; }
  .hero-sub { font-size: 16px; margin: 12px auto 22px; }
  .tools { grid-template-columns: 1fr; gap: 12px; }
  .tool { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; row-gap: 2px; align-items: center; padding: 18px; border-radius: 22px; }
  .tool-ic { grid-row: 1 / span 2; width: 48px; height: 48px; margin: 0; border-radius: 15px; }
  .tool-ic .ic { width: 24px; height: 24px; }
  .tool b { font-size: 16.5px; } .tool > span { grid-column: 2; font-size: 13.5px; }
  .tool-go, .tool > span + .tool-go { grid-column: 2; justify-self: start; margin-top: 8px; padding: 6px 12px; font-size: 13px; }
  .home .search--big input { height: 54px; padding: 0 100px 0 46px; font-size: 16px; }
  .home .search--big .s-ico { left: 17px; }
  .home .search--big button { height: 42px; padding: 0 18px; top: 6px; right: 6px; }
}
@media (max-width: 700px) {
  .widgets { grid-template-columns: 1fr; }
  .terms { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 640px) {
  .hero { padding: 32px 18px 24px; border-radius: 26px; }
  .chips-t { flex-basis: 100%; margin: 0 0 2px; text-align: center; }
  .pin-adv { flex-wrap: wrap; gap: 12px; padding: 16px 18px; border-radius: 22px; }
  .pin-ic { width: 40px; height: 40px; border-radius: 13px; }
  .pin-tx { flex-basis: calc(100% - 52px); }
  .pin-tx b { font-size: 16px; }
  .pin-go { margin-left: 52px; padding: 7px 14px; font-size: 13px; }
  .home .sec-head h2 { font-size: 19px; gap: 10px; }
  .sh-ic { width: 32px; height: 32px; border-radius: 11px; }
  .home .sec-head > a { padding: 6px 12px; font-size: 13px; }
  .home .art-lead .art-t { padding: 18px 18px 20px; }
  .home .art-lead .art-t strong { font-size: 19px; }
  .wg { padding: 18px 18px 20px; border-radius: 22px; }
  .tile { padding: 14px; border-radius: 20px; }
  .tile b { font-size: 15px; }
  .tp { padding: 5px 7px; font-size: 12.5px; }
}
@media (max-width: 400px) { .home .sec-head { flex-wrap: wrap; } }

/* ---------- выдача ---------- */
body.is-results .tabs { max-width: 1000px; margin: 22px auto 0; padding: 0 16px; border: 0; gap: 6px; }
body.is-results .tabs a { padding: 8px 16px; border: 0; border-radius: 18px; font-size: 14px; color: var(--muted); }
body.is-results .tabs a.on { background: var(--ink); color: #fff; font-weight: 600; }
body.is-results .tabs a:hover:not(.on) { background: rgba(0, 0, 0, .05); color: var(--ink); }
body.is-results .results { max-width: 1000px; padding: 20px 16px 40px; }
body.is-results .notice { background: #fff; border-radius: 18px; padding: 16px 20px; }
body.is-results .answer { padding: 30px 32px; border: 0; border-radius: 28px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 30px rgba(0, 0, 0, .06); }
body.is-results .answer h1 { font-size: 32px; letter-spacing: -1.2px; line-height: 1.1; }
body.is-results .answer .meta { font-size: 14px; }
body.is-results .stats { gap: 14px; margin: 22px 0 18px; }
body.is-results .stat { padding: 18px 20px; border-radius: 18px; background: #f5f5f7; }
body.is-results .stat b { font-size: 30px; letter-spacing: -.6px; }
body.is-results .verdict { font-size: 15px; line-height: 1.5; }
body.is-results .pill { border-radius: 999px; padding: 2px 10px; }
body.is-results .add-build { display: inline-flex; align-items: center; min-height: 40px; margin: 16px 8px 0 0; padding: 0 18px; border-radius: 20px;
  background: #0071e3; color: #fff; font-size: 14px; }
body.is-results .add-build + .add-build { background: rgba(0, 0, 0, .05); color: var(--ink); }
body.is-results .add-build:hover { text-decoration: none; opacity: .9; }
body.is-results .block { margin: 22px 0 0; padding: 26px 30px; background: #fff; border-radius: 26px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 30px rgba(0, 0, 0, .05); }
body.is-results .block h2 { font-size: 19px; letter-spacing: -.4px; margin: 0 0 14px; }
body.is-results .block.two { gap: 36px; }
body.is-results .sub { color: var(--muted); }
body.is-results .offers { border: 0; border-radius: 0; }
body.is-results .offer { padding: 14px 0; border-top: 1px solid rgba(0, 0, 0, .06); }
body.is-results .offer:first-child { border-top: 0; }
body.is-results .offer:hover { background: transparent; }
body.is-results .offer:hover .offer-title { color: #0071e3; }
body.is-results .shops, body.is-results .useful { gap: 10px; }
body.is-results .shops a, body.is-results .useful a, body.is-results .similar a { border: 0; border-radius: 16px; background: #f5f5f7; padding: 14px 16px; }
body.is-results .shops a:hover, body.is-results .useful a:hover, body.is-results .similar a:hover { background: #eef2f8; }
body.is-results .similar a { padding: 18px; }
body.is-results .specs td { border-bottom-color: rgba(0, 0, 0, .06); padding: 9px 0; }
body.is-results .psu-check { background: #f5f5f7; border-radius: 14px; }
body.is-results .hit { padding: 14px 0; border-bottom: 1px solid rgba(0, 0, 0, .06); }
body.is-results .hit:last-of-type { border-bottom: 0; }
body.is-results .hit a { color: var(--ink); font-weight: 600; font-size: 16px; }
body.is-results .hit a:hover { color: #0071e3; text-decoration: none; }
body.is-results .linkrow a { border: 0; border-radius: 18px; background: rgba(0, 0, 0, .05); color: var(--ink); padding: 7px 15px; }
body.is-results .linkrow a:hover { background: rgba(0, 0, 0, .09); }
body.is-results .soon { border-radius: 14px; background: #f5f5f7; }
body.is-results .foot { color: var(--faint); }
body.is-results .hit-img { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: start; }
body.is-results .hit-ph { display: block; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 14px; background: #eef1f6; margin: 0 !important; }
body.is-results .hit-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }

html.theme-dark body.is-results .answer, html.theme-dark body.is-results .block, html.theme-dark body.is-results .notice { background: rgba(255, 255, 255, .05); box-shadow: none; }
html.theme-dark body.is-results .stat, html.theme-dark body.is-results .shops a, html.theme-dark body.is-results .useful a, html.theme-dark body.is-results .similar a,
html.theme-dark body.is-results .psu-check, html.theme-dark body.is-results .soon { background: rgba(255, 255, 255, .06); }
html.theme-dark body.is-results .tabs a.on { background: #f5f5f7; color: #111; }

@media (max-width: 900px) {
  body.is-results .answer { padding: 22px 20px; border-radius: 22px; }
  body.is-results .answer h1 { font-size: 28px; }
  body.is-results .block { padding: 20px; border-radius: 22px; }
  body.is-results .tabs { overflow-x: auto; scrollbar-width: none; }
}
@media (max-width: 640px) { body.is-results .hit-img { grid-template-columns: 96px 1fr; gap: 12px; } }

/* ---------- брендирование главной: фон 1920×1080, полоса сверху 200 px, поля по бокам ---------- */
.brand, .brand-mob-wrap { display: none; }
@media (min-width: 1280px) {
  body.has-brand { background: var(--brand-color, #101318); }
  body.has-brand .brand { display: block; position: absolute; top: 57px; left: 0; right: 0; height: 1080px; z-index: 0;
    background: var(--brand-color, #101318) var(--brand-bg) center top / 1920px 1080px no-repeat; }
  body.has-brand .brand-click { position: absolute; inset: 0; display: block; cursor: pointer; }
  body.has-brand .brand-label { position: absolute; top: 12px; right: max(16px, calc(50% - 550px)); padding: 3px 10px; border-radius: 10px;
    background: rgba(0, 0, 0, .45); color: rgba(255, 255, 255, .85); font-size: 11px; pointer-events: none; }
  body.has-brand .home { position: relative; z-index: 1; margin-top: 200px; padding: 28px; border-radius: 28px 28px 0 0; background: #f5f6f9; max-width: 1100px; }
  body.has-brand .ftr { position: relative; z-index: 1; max-width: 1100px; margin-top: 0; padding-left: 28px; padding-right: 28px; background: #f5f6f9; border-radius: 0 0 28px 28px; margin-bottom: 40px; }
  html.theme-dark body.has-brand .home, html.theme-dark body.has-brand .ftr { background: #0b0c0f; }
}
@media (max-width: 1279px) {
  body.has-brand .brand-mob-wrap { display: block; max-width: 600px; margin: 14px auto 0; padding: 0 16px; }
  .brand-mob img { display: block; width: 100%; height: auto; border-radius: 14px; }
  .brand-mob-wrap small { display: block; margin-top: 4px; color: var(--faint); font-size: 11px; }
}
/* «Пойдёт ли игра» на главной — те же пилюли, что на страницах товара */
.home-sec .pd-links { display: flex; flex-wrap: wrap; gap: 8px; }
.home-sec .pd-links a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; background: var(--c-card); box-shadow: var(--sh); color: var(--c-ink); font-size: 14px; }
.home-sec .pd-links a:hover { text-decoration: none; color: var(--c-games); }
.home-sec .pd-links .ic { width: 16px; height: 16px; color: var(--c-games); }

/* Ремонт на главной: свой цвет значков */
.tiles--remont .tile-ic { background: #ffedd5; color: #c2410c; }
html.theme-dark .tiles--remont .tile-ic { background: rgba(253, 186, 116, .12); color: #fdba74; }
/* «Сегодня на рынке» */
.sec-note { font-size: 13px; color: var(--c-mut); }
.mkt { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.mkt-t { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 22px; background: var(--c-card); box-shadow: var(--sh); color: var(--c-ink); transition: transform .2s; }
.mkt-t:hover { text-decoration: none; transform: translateY(-3px); }
.mkt-t small { color: var(--c-mut); font-size: 12px; }
.mkt-t b { margin-top: 4px; font-size: 17px; letter-spacing: -.2px; }
.mkt-p { font-weight: 700; color: var(--c-good, #1a7f3c); }
.mkt-t em { font-style: normal; font-size: 12.5px; color: var(--c-mut); }
.mkt-moves { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; }
.mkt-moves > span { color: var(--c-mut); }
.mkt-moves a { padding: 5px 12px; border-radius: 999px; font-weight: 600; }
.mv-down { background: #e8f7ec; color: #1a7f3c; } .mv-up { background: #fdeeea; color: #b3261e; }
html.theme-dark .mv-down { background: #15301e; color: #8fe0a8; } html.theme-dark .mv-up { background: #3a1d18; color: #ffb3a6; }
.art-take { display: block; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--c-good-bg, #eaf7ee); color: var(--c-ink); font-size: 13.5px; line-height: 1.45; }
.art-take b { font-weight: 650; }

/* --- четыре двери: по ситуации человека, ссылки — первые инструменты разделов шапки --- */
.tools.doors { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.doors .door { --fg: var(--c-office); --bgc: var(--c-office-bg); padding: 22px 20px 20px; gap: 0; }
.doors .door--sobrat { --fg: var(--c-games); --bgc: var(--c-games-bg); }
.doors .door--bu { --fg: var(--c-good); --bgc: var(--c-good-bg); }
.doors .door--moy { --fg: var(--c-ai); --bgc: var(--c-ai-bg); }
.doors .door:hover { transform: none; box-shadow: var(--sh); }
.door-h { display: flex; flex-direction: column; gap: 6px; color: var(--c-ink) !important; }
.door-h:hover { text-decoration: none; }
.door-h:hover b { color: var(--fg); }
.door-h .tool-ic { margin-bottom: 8px; }
.door-h span { font-size: 14px; line-height: 1.45; color: var(--c-mut); }
.door-l { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.door-l a { padding: 6px 12px; border-radius: 999px; background: var(--bgc); color: var(--fg) !important; font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.door-l a:hover { text-decoration: none; filter: brightness(.95); }
@media (max-width: 1100px) { .tools.doors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .tools.doors { grid-template-columns: 1fr; }
  .doors .door { display: flex; flex-direction: column; align-items: stretch; padding: 18px; }
  .door-h { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; row-gap: 2px; align-items: center; }
  .door-h .tool-ic { grid-row: 1 / span 2; justify-self: start; width: 48px; height: 48px; margin: 0; border-radius: 15px; }
  .door-h .tool-ic .ic { width: 24px; height: 24px; }
  .door-h b { font-size: 16.5px; } .door-h span { grid-column: 2; font-size: 13.5px; }
  .door-l { margin-top: 12px; }
}

/* --- «Рынок сегодня»: популярные модели одной строкой под плитками --- */
.mkt-pop { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-top: 14px; padding: 14px; border-radius: 22px; background: var(--c-card); box-shadow: var(--sh); }
.mkt-pop-t { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c-mut); padding: 2px 6px 4px; }
.mkt-pop a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 14px; color: var(--c-ink); }
.mkt-pop a:hover { background: var(--c-soft); text-decoration: none; }
.mkt-pop b { font-size: 15px; }
.mkt-pop span { font-size: 13px; color: var(--c-mut); }
.mkt-pop .mkt-pop-u { color: var(--c-good, #1a7f3c); }
.mkt-pop .mkt-pop-t a { display: inline; padding: 0; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--c-office); }
.mkt-pop .mkt-pop-t a:hover { background: none; text-decoration: underline; }
/* 31.10.2026: две главные двери — «Собрать компьютер» и «Проверить скидку» */
.big2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 0 0 18px; }
.b2 { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 26px 22px; border-radius: 28px; color: #fff; overflow: hidden; }
.b2--build { background: radial-gradient(120% 140% at 100% 0, #8c9bff 0, transparent 45%), linear-gradient(135deg, #3b4ce0 0, #17183a 80%); }
.b2--deal { background: radial-gradient(120% 140% at 100% 0, #ffb36b 0, transparent 45%), linear-gradient(135deg, #e5487f 0, #4a1530 80%); }
.b2-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: rgba(255, 255, 255, .16); }
.b2-ic .ic { width: 24px; height: 24px; color: #fff; stroke: #fff; }
.b2 h2 { margin: 4px 0 0; font-family: var(--display); font-size: 26px; letter-spacing: -.02em; }
.b2 h2 a { color: #fff !important; text-decoration: none; }
.b2 p { margin: 0; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .88); max-width: 46ch; }
.b2-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.b2-chips a { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff !important; font-weight: 600; font-size: 14px; text-decoration: none; }
.b2-chips a:hover { background: rgba(255, 255, 255, .26); }
.b2-form { display: flex; gap: 8px; margin-top: 4px; }
.b2-form input { flex: 1 1 auto; min-width: 0; height: 46px; padding: 0 16px; border: 0; border-radius: 23px; background: #fff; color: #1d1d1f; font-size: 15px; }
.b2-form button { flex: none; height: 46px; padding: 0 20px; border: 0; border-radius: 23px; background: #1d1d1f; color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; }
.b2-go { margin-top: auto; padding-top: 6px; color: #fff !important; font-weight: 600; font-size: 14.5px; opacity: .92; }
@media (max-width: 860px) { .big2 { grid-template-columns: 1fr; } .b2 { padding: 22px 20px 20px; border-radius: 24px; } .b2 h2 { font-size: 23px; } }
@media (max-width: 420px) { .b2-form { flex-direction: column; } .b2-form button { width: 100%; } }
@media (max-width: 420px) { .search--big input::placeholder { font-size: 14px; } }
/* две большие двери — с воздухом сверху, как снизу; четыре малые — заголовки, подписи и плашки на одних линиях */
.big2 { margin: 18px 0; }
.doors .door-h b { white-space: nowrap; }
.doors .door-h span { min-height: calc(14px * 1.45 * 2); }
@media (max-width: 640px) { .doors .door-h span { min-height: 0; } .doors .door-h b { white-space: normal; } }
@media (max-width: 640px) { .door-br { display: none; } }
/* 01.11.2026: «Рынок сегодня» и «Готовые сборки» — каждый на своей цветной подложке, чтобы не сливались */
.home-panel { margin-top: 40px; padding: 26px 26px 28px; border-radius: 30px; }
.home-panel--market { background: linear-gradient(160deg, #e9f7ef 0, #f3faf6 60%, #f6f8fb 100%); }
.home-panel--builds { background: linear-gradient(160deg, #eeeaff 0, #f4f1ff 60%, #f6f8fb 100%); }
.home-panel .sec-head { margin-bottom: 18px; }
.home-panel--market .sh-ic { color: #1a9e55; } .home-panel--builds .sh-ic { color: #6c4ce0; }
html.theme-dark .home-panel--market { background: linear-gradient(160deg, rgba(46, 160, 90, .14) 0, rgba(46, 160, 90, .05) 70%); }
html.theme-dark .home-panel--builds { background: linear-gradient(160deg, rgba(124, 92, 255, .16) 0, rgba(124, 92, 255, .05) 70%); }
@media (max-width: 640px) { .home-panel { margin-top: 28px; padding: 18px 14px 20px; border-radius: 24px; } }
/* 01.11.2026: модели нет — похожее, подборка под задачи, скидки */
body.is-results .nf h2 { margin-bottom: 6px; }
body.is-results .nf-near { margin: 0 0 14px; font-size: 15.5px; }
body.is-results .nf-near a { font-weight: 600; }
body.is-results .nf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
body.is-results .nf-card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 16px; background: #f5f5f7; color: var(--ink); }
body.is-results .nf-card:hover { background: #eef2f8; text-decoration: none; }
body.is-results .nf-card small { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
body.is-results .nf-card b { font-size: 16.5px; }
body.is-results .nf-plus { font-size: 14px; line-height: 1.4; color: var(--muted); }
body.is-results .nf-price { margin-top: auto; padding-top: 4px; font-weight: 700; font-size: 15px; }
body.is-results .nf-price s { font-weight: 400; color: var(--muted); margin-left: 4px; }
body.is-results .nf-deal { align-self: flex-start; font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #ffe7e3; color: #c4321c; }
body.is-results .nf-card--deal { box-shadow: inset 0 0 0 2px #ffcfc6; }
body.is-results .nf-more { margin: 12px 0 0; font-weight: 600; }
html.theme-dark body.is-results .nf-card { background: rgba(255, 255, 255, .06); }
html.theme-dark body.is-results .nf-deal { background: rgba(240, 90, 60, .2); color: #ff9c87; }
html.theme-dark body.is-results .nf-card--deal { box-shadow: inset 0 0 0 2px rgba(240, 90, 60, .35); }
@media (max-width: 560px) { body.is-results .nf-grid { grid-template-columns: 1fr; } }
body.is-results .nf-vs { font-size: 13.5px; font-weight: 700; color: #1a7f45; }
html.theme-dark body.is-results .nf-vs { color: #7ddc9f; }
body.is-results .nf-ref { margin: 4px 0 18px; padding: 14px 16px; border-radius: 16px; background: #f5f5f7; }
body.is-results .nf-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
body.is-results .nf-facts span { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #fff; }
body.is-results .nf-ref p { margin: 0 0 8px; font-size: 15px; line-height: 1.5; }
body.is-results .nf-games { font-weight: 600; }
html.theme-dark body.is-results .nf-ref { background: rgba(255, 255, 255, .06); }
html.theme-dark body.is-results .nf-facts span { background: rgba(255, 255, 255, .08); }
/* 01.11.2026: телефон или приставка в поиске — цены по версиям и настоящая скидка */
body.is-results .gad-k { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
body.is-results .gad h2 { margin: 2px 0 12px; }
body.is-results .gad-deal { display: flex; flex-direction: column; gap: 3px; margin-bottom: 14px; padding: 12px 16px; border-radius: 14px; background: #ffe9e4; color: #8e2412; }
body.is-results .gad-deal:hover { text-decoration: none; filter: brightness(.98); }
body.is-results .gad-deal b { font-size: 16px; color: #c4321c; }
body.is-results .gad-deal span { font-size: 14.5px; line-height: 1.4; }
body.is-results .gad-vers { list-style: none; margin: 6px 0 12px; padding: 0; display: grid; gap: 6px; }
body.is-results .gad-vers li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: baseline; padding: 10px 14px; border-radius: 12px; background: #f5f5f7; }
body.is-results .gad-vers span { font-weight: 600; }
body.is-results .gad-vers b { white-space: nowrap; }
body.is-results .gad-vers small { color: var(--muted); white-space: nowrap; }
body.is-results .gad-tip { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
html.theme-dark body.is-results .gad-vers li { background: rgba(255, 255, 255, .06); }
html.theme-dark body.is-results .gad-deal { background: rgba(240, 90, 60, .16); color: #ffc2b5; } html.theme-dark body.is-results .gad-deal b { color: #ff9c87; }
@media (max-width: 480px) { body.is-results .gad-vers li { grid-template-columns: minmax(0, 1fr) auto; } body.is-results .gad-vers small { grid-column: 1 / -1; } }
/* режим журнала: «Как выбрать» на главной */
.jr-sv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.jr-sv a { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 20px; background: var(--card, #fff); box-shadow: var(--sh); color: var(--ink); }
.jr-sv a:hover { text-decoration: none; transform: translateY(-2px); }
.jr-sv small { font-size: 12px; font-weight: 600; color: var(--muted); }
.jr-sv b { font-size: 16px; line-height: 1.3; }
.jr-sv em { font-style: normal; font-size: 14px; line-height: 1.4; color: var(--muted); }
html.theme-dark .jr-sv a { background: rgba(255, 255, 255, .05); box-shadow: none; }
@media (max-width: 860px) { .jr-sv { grid-template-columns: 1fr 1fr; } } @media (max-width: 520px) { .jr-sv { grid-template-columns: 1fr; } }
