/* ==========================================================================
   2Geeks — основные стили. Один файл, без фреймворков.
   Порядок: токены → база → раскладка → шапка → карточки → главная → статья → подвал.
   ========================================================================== */

/* Токены ------------------------------------------------------------------ */
:root {
  --bg: #f5f6f9;
  --surface: #ffffff;
  --surface-2: #eceef4;
  --line: #dde1ea;
  --text: #121826;
  --text-2: #3b4458;
  --text-3: #6b7488;
  --accent: #2b50e8;
  --accent-soft: #e6ebfd;
  --accent-text: #ffffff;
  --buy: #e8871e;
  --buy-text: #1b1206;
  --focus: #2b50e8;

  --k-sravneniya: #2b50e8;
  --k-chto-kupit: #b8650f;
  --k-obzory: #7a3fd1;
  --k-ai: #0f8a8a;
  --k-sovety: #1f8a5b;
  --k-novosti: #6b7488;
  --k-gaydy: #1f8a5b;
  --k-programmy: #c0336b;
  --geek-1: #1f8a5b;
  --geek-2: #7a3fd1;
  --choice: #b8650f;
  --choice-soft: #fdf1e2;

  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Unbounded", "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --gutter: 16px;
  --container: 1200px;
  --narrow: 720px;
  --wide: 1000px;
  --header-h: 64px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1420;
    --surface: #182033;
    --surface-2: #1f2840;
    --line: #27304a;
    --text: #e9ecf5;
    --text-2: #b9c0d3;
    --text-3: #8b94ab;
    --accent: #7d96ff;
    --accent-soft: #1f2a55;
    --accent-text: #0f1420;
    --buy: #f2a24a;
    --focus: #9fb1ff;
    --k-sravneniya: #9fb1ff;
    --k-chto-kupit: #f2a24a;
    --k-obzory: #c29bff;
    --k-ai: #4fd1c5;
    --k-sovety: #4cc38a;
    --k-novosti: #a3abc0;
  --k-gaydy: #4cc38a;
  --k-programmy: #f27aa6;
  --geek-1: #4cc38a;
  --geek-2: #c29bff;
  --choice: #f2a24a;
  --choice-soft: #3a2a14;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0f1420;
  --surface: #182033;
  --surface-2: #1f2840;
  --line: #27304a;
  --text: #e9ecf5;
  --text-2: #b9c0d3;
  --text-3: #8b94ab;
  --accent: #7d96ff;
  --accent-soft: #1f2a55;
  --accent-text: #0f1420;
  --buy: #f2a24a;
  --focus: #9fb1ff;
  --k-sravneniya: #9fb1ff;
  --k-chto-kupit: #f2a24a;
  --k-obzory: #c29bff;
  --k-ai: #4fd1c5;
  --k-sovety: #4cc38a;
  --k-novosti: #a3abc0;
  --k-gaydy: #4cc38a;
  --k-programmy: #f27aa6;
  --geek-1: #4cc38a;
  --geek-2: #c29bff;
  --choice: #f2a24a;
  --choice-soft: #3a2a14;
  color-scheme: dark;
}

@media (min-width: 700px) {
  :root { --gutter: 24px; }
}

/* База -------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 { margin: 0; line-height: 1.2; text-wrap: balance; }
p { margin: 0; }

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

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--accent); color: var(--accent-text);
  padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: var(--accent-text); }

.icon { flex: none; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 15px/1 var(--font-body);
  padding: 12px 18px;
  border: 0; border-radius: 10px;
  background: var(--accent); color: var(--accent-text);
  cursor: pointer; white-space: nowrap;
}
.btn:hover { color: var(--accent-text); filter: brightness(1.08); }
.btn-buy { background: var(--buy); color: var(--buy-text); }
.btn-buy:hover { color: var(--buy-text); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  border: 0; border-radius: 10px;
  background: transparent; color: var(--text-2);
  cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

/* Раскладка --------------------------------------------------------------- */
.container, .container-narrow, .container-wide {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container { max-width: calc(var(--container) + 2 * var(--gutter)); }
.container-narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }
.container-wide { max-width: calc(var(--wide) + 2 * var(--gutter)); }

.site-main { display: grid; gap: 48px; padding-block: 24px 72px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 24px 20px;
}

.feed { display: grid; gap: 4px; }

/* Шапка ------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.header-inner {
  display: flex; align-items: center; gap: 28px;
  min-height: var(--header-h);
}

.logo, .custom-logo-link {
  font: 700 19px/1 var(--font-display);
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
}
.logo b { color: var(--accent); font-weight: 700; }
.custom-logo { max-height: 36px; width: auto; }

.primary-nav .menu {
  display: flex; gap: 4px;
  margin: 0; padding: 0; list-style: none;
}
.primary-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 500;
  color: var(--text-2);
}
.primary-nav a:hover { background: var(--surface-2); color: var(--text); }
.primary-nav .current-menu-item > a,
.primary-nav .current-category-ancestor > a { color: var(--text); background: var(--surface-2); }

.header-actions { display: flex; gap: 2px; margin-left: auto; }

.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

.menu-btn { display: none; }

.search-panel { border-top: 1px solid var(--line); padding-block: 16px; }

.search-form { display: flex; gap: 8px; max-width: 640px; }
.search-input {
  flex: 1; min-width: 0;
  font: 400 16px/1.2 var(--font-body);
  padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--text);
}
.search-input:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }

@media (max-width: 900px) {
  .menu-btn { display: inline-grid; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
    display: none;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav .menu { flex-direction: column; }
  .primary-nav a { padding: 12px; font-size: 17px; }
}

/* Метки рубрик ------------------------------------------------------------ */
.label {
  --k: var(--accent);
  display: inline-block;
  font: 600 12px/1 var(--font-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--k);
}
.label:hover { color: var(--k); text-decoration: underline; text-underline-offset: 3px; }
.label-sravneniya { --k: var(--k-sravneniya); }
.label-chto-kupit { --k: var(--k-chto-kupit); }
.label-obzory { --k: var(--k-obzory); }
.label-ai { --k: var(--k-ai); }
.label-sovety { --k: var(--k-sovety); }
.label-gaydy { --k: var(--k-gaydy); }
.label-programmy { --k: var(--k-programmy); }
.label-novosti, .label-default { --k: var(--k-novosti); }
.label-quiet { font-size: 11px; }

.meta { display: inline-flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--text-3); }

/* Карточки ---------------------------------------------------------------- */
.card { display: grid; gap: 12px; align-content: start; }
.card-media, .hero-media, .row-media {
  display: block; overflow: hidden;
  background: var(--surface-2);
  border-radius: var(--radius);
}
.card-media { aspect-ratio: 16 / 9; }
.card-media img, .hero-media img, .row-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.card:hover .card-media img, .hero-card:hover .hero-media img { transform: scale(1.03); }
.card-body { display: grid; gap: 6px; }
.card-labels { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.card-title { font-size: 18px; font-weight: 600; line-height: 1.3; }

.thumb-empty {
  display: grid; place-items: center;
  width: 100%; height: 100%;
  color: var(--text-3);
}

.row-card {
  display: grid; grid-template-columns: 144px 1fr; gap: 14px; align-items: center;
  padding: 10px; margin-inline: -10px;
  border-radius: var(--radius);
}
.row-card:hover { background: var(--surface); }
/* 16:9, как у обложек: иначе у фирменных обложек обрезается текст по краям */
.row-media { aspect-ratio: 16 / 9; border-radius: 10px; }
.row-body { display: grid; gap: 6px; }
.row-title { font-size: 16px; font-weight: 600; line-height: 1.35; }
.row-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13px; color: var(--text-3); }

@media (min-width: 700px) {
  .row-card { grid-template-columns: 240px 1fr; gap: 20px; }
  .row-title { font-size: 18px; }
}

/* Главная ----------------------------------------------------------------- */
.home-top {
  display: grid; gap: 28px;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  align-items: start;
}
@media (max-width: 900px) { .home-top { grid-template-columns: 1fr; } }

.hero-card { display: grid; gap: 16px; }
.hero-media { aspect-ratio: 16 / 9; border-radius: 18px; }
.hero-body { display: grid; gap: 10px; }
.hero-title {
  font: 600 clamp(24px, 3.4vw, 38px)/1.15 var(--font-display);
  letter-spacing: -0.01em;
}
.hero-excerpt { color: var(--text-2); font-size: 17px; max-width: 60ch; }

.section-kicker {
  font: 600 12px/1 var(--font-body);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-3);
}

.fresh {
  display: grid; gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.fresh-list { margin: 0; padding: 0; list-style: none; counter-reset: fresh; display: grid; }
.fresh-list li {
  counter-increment: fresh;
  display: grid; grid-template-columns: 28px 1fr; column-gap: 6px; row-gap: 4px;
  padding-block: 12px;
  border-top: 1px solid var(--line);
}
.fresh-list li:first-child { border-top: 0; padding-top: 0; }
.fresh-list li::before {
  content: counter(fresh);
  grid-row: span 2;
  font: 700 18px/1.2 var(--font-display);
  color: var(--accent);
}
.fresh-list a { font-weight: 600; line-height: 1.35; }
.fresh-meta { font-size: 13px; color: var(--text-3); }

.compare-band {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 20px 24px;
  border-radius: 18px;
  background: var(--accent-soft);
  color: var(--text);
}
.compare-band:hover { color: var(--text); }
.compare-band:hover .btn { filter: brightness(1.08); }
.compare-icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--accent); color: var(--accent-text);
}
.compare-text { display: grid; gap: 2px; flex: 1; min-width: 200px; }
.compare-text strong { font: 600 19px/1.25 var(--font-display); }
.compare-text span { color: var(--text-2); font-size: 15px; }

.home-section { display: grid; gap: 20px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.section-title { font: 600 clamp(20px, 2.4vw, 26px)/1.2 var(--font-display); }
.section-more { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 500; color: var(--accent); }
.section-more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Заголовки страниц и архивов --------------------------------------------- */
.page-head { display: grid; gap: 12px; }
.page-title { font: 600 clamp(26px, 4vw, 40px)/1.15 var(--font-display); letter-spacing: -0.01em; }
.page-lede { color: var(--text-2); max-width: 65ch; }
.page-lede p + p { margin-top: .6em; }

.breadcrumbs ol, .rank-math-breadcrumb p {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 0; padding: 0; list-style: none;
  font-size: 14px; color: var(--text-3);
}
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; }
.breadcrumbs a:hover, .rank-math-breadcrumb a:hover { color: var(--accent); }

.empty { display: grid; gap: 16px; justify-items: start; padding-block: 24px; color: var(--text-2); }

/* Статья ------------------------------------------------------------------ */
.article { display: grid; gap: 28px; }
.article-head { display: grid; gap: 14px; }
.article-title {
  font: 600 clamp(28px, 4.4vw, 44px)/1.12 var(--font-display);
  letter-spacing: -0.015em;
}
.article-lede { font-size: 20px; line-height: 1.5; color: var(--text-2); }
.article-meta {
  display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center;
  font-size: 14px; color: var(--text-3);
}
.article-meta .author { color: var(--text); font-weight: 600; }
.authors { display: inline-flex; flex-wrap: wrap; gap: 6px 14px; }
.authors .author { display: inline-flex; align-items: center; gap: 6px; }
.authors .author:hover span:not(.geek-avatar) { color: var(--accent); }
.author-role { font-weight: 400; color: var(--text-3); }
.read-time { display: inline-flex; align-items: center; gap: 5px; }

.article-cover { margin-block: 0; }
.article-cover img { width: 100%; border-radius: 18px; aspect-ratio: 16 / 9; object-fit: cover; }
.article-cover figcaption { margin-top: 8px; font-size: 13px; color: var(--text-3); }

/* Текст статьи */
.entry-content { font-size: 18px; line-height: 1.7; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font: 600 clamp(22px, 2.8vw, 28px)/1.25 var(--font-display); margin-top: 1.8em; }
.entry-content h3 { font-size: 21px; font-weight: 600; margin-top: 1.5em; }
.entry-content h2 + *, .entry-content h3 + * { margin-top: .6em; }
.entry-content a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content a:hover { text-decoration-thickness: 2px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: .35em; }
.entry-content strong { font-weight: 650; }
.entry-content blockquote {
  margin-inline: 0; padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent);
  color: var(--text-2); font-size: 20px;
}
.entry-content figure { margin-inline: 0; }
.entry-content img { border-radius: 12px; }
.entry-content figcaption, .entry-content .wp-element-caption { margin-top: 8px; font-size: 14px; color: var(--text-3); text-align: left; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
.entry-content code { font-family: var(--font-mono); font-size: .88em; background: var(--surface-2); padding: 2px 6px; border-radius: 5px; }

.entry-content table, .entry-content .wp-block-table table {
  width: 100%; border-collapse: collapse; font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content thead th { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); border-bottom-width: 2px; }
.entry-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: var(--surface); }

.alignwide { max-width: var(--wide); margin-inline: calc((var(--narrow) - var(--wide)) / 2); }
@media (max-width: 1060px) { .alignwide { margin-inline: 0; } }

/* YouTube-заглушка */
.yt {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: #000;
  cursor: pointer;
}
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .9; border-radius: 0; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play {
  position: absolute; left: 50%; top: 50%;
  translate: -50% -50%;
  display: grid; place-items: center;
  width: 72px; height: 52px;
  border: 0; border-radius: 14px;
  background: #e2261c; color: #fff;
  cursor: pointer;
  transition: transform .15s ease;
}
.yt:hover .yt-play { transform: scale(1.08); }

/* Низ статьи */
.article-foot { display: grid; gap: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tags a {
  display: inline-block; padding: 6px 12px;
  border-radius: 999px; border: 1px solid var(--line);
  font-size: 14px; color: var(--text-2);
}
.tags a:hover { border-color: var(--accent); color: var(--accent); }

.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--text-2);
  font: 500 14px/1 var(--font-body);
  cursor: pointer;
}
.share-btn:hover { color: var(--accent); border-color: var(--accent); }

.page-links { font-weight: 600; }

/* Пагинация */
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers {
  display: inline-grid; place-items: center;
  min-width: 42px; height: 42px; padding-inline: 12px;
  border-radius: 10px; border: 1px solid var(--line);
  font-weight: 500; font-variant-numeric: tabular-nums;
}
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.pagination .dots { border: 0; }

/* Комментарии */
.comments { display: grid; gap: 20px; }
.comment-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.comment-list .children { list-style: none; padding-left: 24px; margin-top: 16px; display: grid; gap: 16px; }
.comment-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.comment-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--text-3); margin-bottom: 8px; }
.comment-author .avatar { border-radius: 50%; display: inline-block; vertical-align: middle; margin-right: 8px; }
.comment-respond {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(18px, 3vw, 28px);
}
.comment-reply-title { margin: 0 0 4px; font: 600 clamp(20px, 2.4vw, 26px)/1.2 var(--font-display); }
.comment-reply-title small { margin-left: 12px; font: 500 14px/1 var(--font-body); }
.comment-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; }
.comment-form > * { grid-column: 1 / -1; margin: 0; }
.comment-form > .comment-form-author, .comment-form > .comment-form-email, .comment-form > .comment-form-url { grid-column: auto; }
.comment-notes, .logged-in-as { color: var(--text-3); font-size: 14px; margin-bottom: 4px; }
.comment-form label { display: block; font-size: 14px; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
.comment-form .required { color: var(--accent); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; font: inherit; font-size: 16px;
  padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--text);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.comment-form textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.comment-form input:hover, .comment-form textarea:hover { border-color: var(--text-3); }
.comment-form input:focus, .comment-form textarea:focus {
  outline: none; border-color: var(--accent); background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 10px; }
.comment-form-cookies-consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); }
.comment-form-cookies-consent label { margin: 0; font-weight: 400; color: var(--text-3); line-height: 1.4; }
.comment-form .form-submit { display: flex; }
@media (max-width: 720px) {
  .comment-form { grid-template-columns: 1fr; }
}

/* Блок «Где купить» ------------------------------------------------------- */
.wtb {
  display: grid; gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  font-size: 16px; line-height: 1.4;
}
.entry-content .wtb { margin-block: 1.6em; }
.wtb-head { display: grid; gap: 2px; }
.wtb-title { font: 600 18px/1.25 var(--font-display); }
.wtb-product { color: var(--text-3); font-size: 14px; }
.wtb-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.entry-content .wtb-list li + li { margin-top: 0; }
.wtb-item { display: grid; gap: 4px; }
.entry-content .wtb-link, .wtb-link {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 4px 16px;
  padding: 12px 12px 12px 16px;
  border-radius: 12px;
  background: var(--bg);
  color: var(--text); text-decoration: none;
}
.wtb-link:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--buy); }
.wtb-shop { font-weight: 600; }
.wtb-note { grid-column: 1; grid-row: 2; font-size: 13px; color: var(--text-3); }
.wtb-price { grid-column: 2; grid-row: 1 / span 2; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wtb-btn { grid-column: 3; grid-row: 1 / span 2; padding: 10px 14px; font-size: 14px; }
.wtb-foot { font-size: 12px; color: var(--text-3); }
@media (max-width: 520px) {
  .entry-content .wtb-link, .wtb-link { grid-template-columns: 1fr auto; }
  .wtb-price { grid-column: 2; grid-row: 1; }
  .wtb-note { grid-column: 1 / -1; grid-row: 2; }
  .wtb-btn { grid-column: 1 / -1; grid-row: 3; justify-content: center; margin-top: 6px; }
}

/* Блок «Карточка сервиса» ------------------------------------------------- */
.svc {
  display: grid; gap: 12px;
  padding: 20px 22px;
  border-radius: 16px;
  background: linear-gradient(150deg, var(--accent-soft), var(--surface) 70%);
  border: 1px solid var(--line);
  font-size: 16px; line-height: 1.5;
}
.entry-content .svc { margin-block: 1.6em; }
.svc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.svc-name { font: 600 20px/1.2 var(--font-display); }
.svc-badge {
  font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  background: var(--surface); color: var(--k-ai);
  border: 1px solid var(--line);
}
.svc-desc { color: var(--text-2); }
.entry-content .svc-features, .svc-features { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.svc-features li { position: relative; padding-left: 24px; }
.entry-content .svc-features li + li { margin-top: 0; }
.svc-features li::before {
  content: ""; position: absolute; left: 2px; top: .45em;
  width: 12px; height: 7px;
  border-left: 2px solid var(--k-ai); border-bottom: 2px solid var(--k-ai);
  transform: rotate(-45deg);
}
.svc-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; }
.svc-price { font-weight: 600; }
.entry-content .svc-btn { color: var(--accent-text); text-decoration: none; }

/* Гики: значки, страница гика ------------------------------------------- */
.geek-avatar {
  --g: var(--accent);
  display: inline-grid; place-items: center; flex: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--g); color: var(--surface);
  font: 700 11px/1 var(--font-display);
}
.geek-ekonomist { --g: var(--geek-1); }
.geek-entuziast { --g: var(--geek-2); }
.geek-avatar.is-large { width: 72px; height: 72px; font-size: 24px; }
.geek-intro { display: flex; align-items: center; gap: 18px; }
.geek-role { color: var(--text-2); margin-top: 6px; }

/* Значок «Выбор 2Geeks» */
.choice-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px 5px 9px; border-radius: 999px;
  background: var(--choice); color: var(--surface);
  font: 600 13px/1 var(--font-body);
  white-space: nowrap;
}
.choice-badge.is-small { padding: 3px 8px 3px 6px; font-size: 11px; gap: 4px; letter-spacing: .02em; }
.choice-badge.is-small .icon { width: 13px; height: 13px; }

/* Блок «Вердикт гиков» --------------------------------------------------- */
.verdict {
  display: grid; gap: 16px;
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 16px; line-height: 1.55;
}
.verdict.is-choice { border-color: var(--choice); background: linear-gradient(150deg, var(--choice-soft), var(--surface) 60%); }
.entry-content .verdict { margin-block: 1.8em; }
.verdict-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.verdict-title { font: 600 18px/1.25 var(--font-display); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.verdict-subject { font: 500 15px/1.3 var(--font-body); color: var(--text-3); }
.verdict-list { display: grid; gap: 14px; }
.verdict-item { display: grid; gap: 6px; }
.verdict-item + .verdict-item { padding-top: 14px; border-top: 1px solid var(--line); }
.verdict-who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.verdict-name { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-weight: 600; }
.entry-content .verdict-name a { color: var(--text); text-decoration: none; }
.entry-content .verdict-name a:hover { color: var(--accent); }
.verdict-role { font-weight: 400; font-size: 14px; color: var(--text-3); }
.verdict-stance {
  --s: var(--text-3);
  margin-left: auto;
  padding: 3px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: var(--s); box-shadow: inset 0 0 0 1px var(--s);
}
.stance-yes .verdict-stance { --s: var(--k-gaydy); }
.stance-maybe .verdict-stance { --s: var(--choice); }
.stance-no .verdict-stance { --s: #d1435b; }
.verdict-text { color: var(--text-2); }
.verdict-summary { padding-top: 12px; border-top: 1px solid var(--line); }

/* Блок «Скачать» --------------------------------------------------------- */
.dl {
  display: grid; gap: 12px;
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 16px; line-height: 1.5;
}
.entry-content .dl { margin-block: 1.6em; }
.dl-head { display: flex; align-items: center; gap: 14px; }
.dl-icon {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--k-programmy); color: var(--surface);
}
.dl-name { font: 600 19px/1.2 var(--font-display); }
.dl-facts { font-size: 14px; color: var(--text-3); }
.dl-desc { color: var(--text-2); }
.entry-content .dl-list, .dl-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.entry-content .dl-list li + li { margin-top: 0; }
.entry-content .dl-link, .dl-link {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px;
  padding: 10px 10px 10px 14px; border-radius: 12px;
  background: var(--surface-2); color: var(--text); text-decoration: none;
}
.dl-link:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--k-programmy); }
.dl-platform { font-weight: 600; }
.dl-note { grid-column: 1; grid-row: 2; font-size: 13px; color: var(--text-3); }
.dl-btn { grid-column: 2; grid-row: 1 / span 2; padding: 9px 14px; font-size: 14px; }
.dl-foot { font-size: 12px; color: var(--text-3); }

/* Хабы по устройствам ---------------------------------------------------- */
.hubs-list { display: flex; gap: 8px; margin: 0; padding: 0 0 4px; list-style: none; overflow-x: auto; scrollbar-width: none; }
.hubs-list::-webkit-scrollbar { display: none; }
.hub-chip {
  display: inline-block; white-space: nowrap;
  padding: 8px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 15px; font-weight: 500; color: var(--text);
}
.hub-chip:hover { border-color: var(--accent); color: var(--accent); }
.hub-chip[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }

/* Пометка рекламы и рекламные места --------------------------------------- */
.ad-mark { display: block; font-size: 11px; line-height: 1.4; color: var(--text-3); padding-inline: 4px; }
.ad-slot { min-height: 120px; overflow: hidden; }
.entry-content .ad-slot { margin-block: 1.6em; }
.grid > .ad-slot { grid-column: 1 / -1; }
.site-main > .ad-slot {
  width: 100%;
  max-width: calc(var(--narrow) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Подвал ------------------------------------------------------------------ */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-block: 48px 32px;
  font-size: 15px;
}
.footer-grid {
  display: grid; gap: 32px;
  grid-template-columns: 2fr 1fr 1fr;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
.footer-about { display: grid; gap: 12px; align-content: start; color: var(--text-2); max-width: 44ch; }
.footer-title { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.footer-col .menu { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.footer-col a { color: var(--text-2); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--text-3);
}

.footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.link-button { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.link-button:hover, .footer-bottom a:hover { color: var(--text-2); }

.socials { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.socials a { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.socials a:hover { border-color: var(--accent); color: var(--accent); }

/* FAQ из блока «Подробности» */
.entry-content .wp-block-details { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; background: var(--surface); }
.entry-content .wp-block-details + .wp-block-details { margin-top: 10px; }
.entry-content .wp-block-details summary { font-weight: 600; cursor: pointer; }
.entry-content .wp-block-details[open] summary { margin-bottom: 8px; }

/* Движение ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
