/* =========================================================================
   AI-Pedia — концепция «Картотека»
   Дизайн-система и стили прототипа

   0. Токены (обязательная база брифа + производные токены)
   1. Base и типографика
   2. Layout
   3. Компоненты
   4. Каталог (index)
   5. Статья сервиса (single)
   6. 404
   7. Responsive
   ========================================================================= */

/* 3.6.5: шрифт Nunito хранится на сайте – без запросов к Google (их серверы получали бы IP посетителей). */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../fonts/nunito-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../fonts/nunito-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+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- 0. Токены: обязательная база ---------- */
:root {
  --bg: #faf7f2;
  --bg-soft: #f4f1fa;
  --card: #ffffff;
  --card-hover: #ffffff;
  --text: #2e2b38;
  --text-soft: #7a7788;
  --line: #ede8f2;

  --blue: #5b8def;   --blue-soft: #dce9fc;
  --pink: #ef7fb8;   --pink-soft: #fbe0ee;
  --mint: #4fbf8f;   --mint-soft: #e0f4e8;
  --peach: #f0a05a;  --peach-soft: #fdebd7;
  --lilac: #9b7ee8;  --lilac-soft: #ede7fb;
  --teal: #4fb8c9;   --teal-soft: #dff3f5;

  --grad-main: linear-gradient(135deg, #7ba7f5, #ef8fc2);
  --grad-xp: linear-gradient(90deg, #7ba7f5, #b78ef0, #ef8fc2);

  --shadow-sm: 0 2px 10px rgba(90, 74, 140, 0.07);
  --shadow-md: 0 8px 28px rgba(90, 74, 140, 0.12);
  --shadow-lg: 0 16px 48px rgba(90, 74, 140, 0.16);

  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;

  --header-h: 72px;

  --text-2: var(--text-soft);
  --text-3: #b0acc0;
  --card-2: var(--bg-soft);
  --bar: #eae5f2;
  --shadow-1: var(--shadow-sm);
  --shadow-2: var(--shadow-md);
  --shadow-glow: 0 8px 30px rgba(150, 120, 230, 0.35);
  --ease: cubic-bezier(.22, .9, .28, 1);
}

[data-theme="dark"] {
  --bg: #16141d;
  --bg-soft: #1c1a26;
  --card: #232030;
  --card-hover: #282538;
  --text: #edebf6;
  --text-soft: #9c98ae;
  --line: #332f44;

  --blue: #7ba7f5;  --pink: #f19bc9;  --mint: #6fd3a9;
  --peach: #f2b279; --lilac: #b7a4ec; --teal: #7fcbd8;

  --blue-soft: #27314d;  --pink-soft: #3d2740;  --mint-soft: #20382e;
  --peach-soft: #3d2f20; --lilac-soft: #2f2949; --teal-soft: #1f363e;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);

  --text-3: #635f7a;
  --card-2: var(--bg-soft);
  --bar: #353052;
  --shadow-1: var(--shadow-sm);
  --shadow-2: var(--shadow-md);
  --shadow-glow: 0 8px 32px rgba(150, 120, 230, 0.28);
}

/* ---------- 0.1 Производные токены ----------
   Палитра брифа используется для заливок, точек и фонов.
   Для ТЕКСТА и кнопок нужны более глубокие «чернильные» оттенки,
   иначе мелкий текст не проходит WCAG AA на белом. */
:root {
  --accent: #3f6fd9;          /* основной интерактивный цвет (из --blue), 4.7:1 на белом */
  --accent-hover: #3460c4;
  --on-accent: #ffffff;
  --meta: #686576;            /* вторичный текст ≤ 14px (4.6:1), --text-soft — для ≥ 15px */
  --line-strong: #dcd5e6;

  --blue-ink: #3f6fd9;
  --pink-ink: #bf3f7c;
  --mint-ink: #23805a;
  --peach-ink: #a95a16;
  --lilac-ink: #6b4dcc;
  --teal-ink: #217d8c;

  --focus-ring: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent);

  /* layout */
  --container: 1344px;
  --pad: clamp(16px, 4vw, 40px);
  --gutter: 24px;

  /* type scale (≈ 1.25, «Elements of Typographic Style») */
  --fs-display: clamp(38px, 4.6vw, 58px);
  --fs-h1: clamp(34px, 3.6vw, 48px);
  --fs-h2: clamp(25px, 2.3vw, 32px);
  --fs-h3: clamp(19px, 1.6vw, 22px);
  --fs-lead: clamp(18px, 1.35vw, 20px);
  --fs-body: 17px;
  --fs-2: 15px;
  --fs-ui: 14px;
  --fs-label: 13px;

  /* spacing (шаг 4) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-7: 32px; --s-8: 40px; --s-9: 56px; --s-10: 72px; --s-11: 96px;

  --tab-h: 30px;
}

[data-theme="dark"] {
  --accent: #7ba7f5;
  --accent-hover: #96b9f8;
  --on-accent: #16141d;
  --meta: var(--text-soft);
  --line-strong: #463f5c;
  --blue-ink: var(--blue);
  --pink-ink: var(--pink);
  --mint-ink: var(--mint);
  --peach-ink: var(--peach);
  --lilac-ink: var(--lilac);
  --teal-ink: var(--teal);
  color-scheme: dark;
}

/* ---------- 1. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 80px);
  scroll-behavior: smooth;
}
html.is-locked { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-body)/1.65 "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color .3s var(--ease), color .3s var(--ease);
  overflow-x: clip; /* страховка от выступающих декоративных псевдоэлементов; sticky не ломает */
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.18; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 10px; }

[hidden] { display: none !important; }

.sr-only {
  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 {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 700;
  transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }

.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 24px; height: 24px; }

/* Типографика */
.display { font-size: var(--fs-display); font-weight: 800; line-height: 1.04; letter-spacing: -0.035em; }
.h1 { font-size: var(--fs-h1); line-height: 1.08; letter-spacing: -0.03em; }
.h2 { font-size: var(--fs-h2); line-height: 1.18; }
.h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -0.01em; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--text-soft); }
.meta { font-size: var(--fs-ui); font-weight: 600; color: var(--meta); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- 2. Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { margin-top: var(--s-10); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-6); flex-wrap: wrap; }
.sec-head p { color: var(--text-soft); font-size: var(--fs-2); margin-top: 6px; }

/* ---------- 3. Компоненты ---------- */

/* 3.1 Header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; gap: var(--s-6); }
.site-header__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }

.logo { display: inline-flex; align-items: center; flex: none; }
.logo__image { width: 156px; height: auto; max-height: 38px; object-fit: contain; }

.nav { display: flex; gap: 4px; }
.nav a {
  position: relative; padding: 8px 12px; border-radius: 10px;
  font-size: 15px; font-weight: 700; color: var(--text-soft);
  transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--text); background: var(--bg-soft); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--text);
}

.hsearch {
  flex: 1; max-width: 440px; height: 44px;
  display: flex; align-items: center; gap: 10px; padding: 0 8px 0 14px;
  border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--line);
  color: var(--meta); font-size: 15px; font-weight: 600; text-align: left;
  transition: border-color .2s, box-shadow .2s;
}
.hsearch:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.hsearch__text { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
kbd {
  display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px;
  border-radius: 7px; border: 1px solid var(--line); background: var(--bg-soft);
  font: 700 13px/1 "Nunito", sans-serif; color: var(--meta);
}

.icon-btn {
  position: relative; width: 44px; height: 44px; flex: none;
  display: inline-grid; place-items: center; border-radius: var(--r-sm);
  color: var(--text); transition: background-color .2s, color .2s;
}
.icon-btn:hover { background: var(--bg-soft); }
.icon-btn__badge {
  position: absolute; top: 5px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--accent); color: var(--on-accent);
  font-size: 11px; font-weight: 800; line-height: 18px; text-align: center;
}
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.hsearch-mobile, .menu-btn { display: none; }

/* 3.2 Кнопки */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 18px; border-radius: var(--r-sm); border: 1px solid transparent;
  font-size: 15px; font-weight: 700; line-height: 1; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s, box-shadow .2s var(--ease), transform .2s var(--ease), color .2s;
}
.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--primary:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.btn--secondary { background: var(--card); border-color: var(--line); color: var(--text); }
.btn--secondary:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn--ghost { color: var(--text); }
.btn--ghost:hover { background: var(--bg-soft); }
.btn--lg { --h: 54px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.btn--sm { --h: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn--block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn[aria-pressed="true"] { background: var(--blue-soft); border-color: transparent; color: var(--blue-ink); }
.btn.is-loading { color: transparent !important; position: relative; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid var(--text-3); border-top-color: var(--text); animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.link-btn { font-size: 14px; font-weight: 700; color: var(--accent); padding: 6px 4px; border-radius: 8px; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: var(--accent); }
.link-more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* 3.3 Поля */
.field { display: grid; gap: 6px; }
.field__label { font-size: 14px; font-weight: 700; }
.field__hint { font-size: 13px; color: var(--meta); font-weight: 600; }
.field__error { font-size: 14px; font-weight: 700; color: var(--pink-ink); display: none; }
.field.has-error .field__error { display: block; }
.input, .textarea {
  width: 100%; height: 48px; padding: 0 16px;
  border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--card);
  font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.input::placeholder, .textarea::placeholder { color: var(--text-soft); }
.input:hover, .textarea:hover { border-color: var(--line-strong); }
.input:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--blue-soft); }
.field.has-error .input, .field.has-error .textarea { border-color: var(--pink-ink); }
.textarea { height: auto; min-height: 120px; padding: 12px 16px; line-height: 1.55; resize: vertical; }

/* 3.4 Большой поиск */
.search {
  position: relative; display: flex; align-items: center;
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .25s var(--ease);
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 5px var(--blue-soft), var(--shadow-md); }
.search > .icon { margin-left: 20px; color: var(--meta); }
.search__input {
  flex: 1; min-width: 0; height: 66px; padding: 0 14px;
  border: 0; background: none; font-size: 18px; font-weight: 600;
}
.search__input::placeholder { color: var(--text-soft); font-weight: 400; }
.search__input:focus { outline: none; box-shadow: none; }
.search__input::-webkit-search-cancel-button { display: none; }
.search .btn { margin-right: 8px; }
.search__clear { margin-right: 4px; }

/* 3.5 Точки, лого-плитки, бейджи */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--text-3)); flex: none; }

.lt { /* logo tile: плейсхолдер логотипа 1:1 */
  width: 44px; height: 44px; flex: none; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--cs, var(--bg-soft)); color: var(--ci, var(--text));
  font-size: 18px; font-weight: 900; letter-spacing: -0.03em;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, #999) 18%, transparent);
}
.lt--sm { width: 32px; height: 32px; border-radius: 9px; font-size: 14px; }
.lt--lg { width: 80px; height: 80px; border-radius: 22px; font-size: 34px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px;
  border-radius: 8px; background: var(--bg-soft); color: var(--text);
  font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap;
}
.badge--free { background: var(--mint-soft); color: var(--mint-ink); }
.badge--freemium { background: var(--blue-soft); color: var(--blue-ink); }
.badge--paid { background: var(--peach-soft); color: var(--peach-ink); }
.badge--new { background: var(--lilac-soft); color: var(--lilac-ink); }
.badge--pick { background: var(--card); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.badge--pick::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad-main); }
.badge--mod { background: var(--peach-soft); color: var(--peach-ink); }
.badge--staff { background: var(--text); color: var(--bg); }

/* 3.6 Spec-строки с отточием — главный фирменный приём «Картотеки» */
.spec { margin: 0; display: grid; gap: 8px; }
.spec__row { display: flex; align-items: center; gap: 10px; min-height: 28px; }
.spec__row dt {
  flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--meta); white-space: nowrap;
}
.spec__row dt::after {
  content: ""; flex: 1; min-width: 12px;
  border-bottom: 2px dotted var(--line-strong); transform: translateY(-4px);
}
.spec__row dd {
  margin: 0; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px;
  font-size: 14px; font-weight: 700; text-align: right;
}
.spec__note { font-weight: 700; color: var(--text); }
.spec--lg { gap: 10px; }
.spec--lg .spec__row dt, .spec--lg .spec__row dd { font-size: 15px; }
.spec--lg .spec__row { min-height: 32px; }

.plats { gap: 2px !important; }
.plat {
  position: relative; z-index: 2; width: 28px; height: 28px; display: inline-grid; place-items: center;
  border-radius: 8px; color: var(--text-soft); transition: background-color .2s, color .2s;
}
.plat:hover { background: var(--bg-soft); color: var(--text); }
.plat--more { width: auto; padding: 0 6px; font-size: 13px; font-weight: 800; color: var(--meta); }
.plat-list { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.plat-list span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 9px; background: var(--bg-soft); font-size: 14px; font-weight: 700; }

/* 3.7 Карточка с язычком (tabbed surface) */
.tabbed {
  position: relative; margin-top: var(--tab-h);
  background: var(--card); border: 1px solid var(--line); border-radius: 4px var(--r-lg) var(--r-lg) var(--r-lg);
  filter: drop-shadow(0 2px 8px rgba(90, 74, 140, 0.06));
}
[data-theme="dark"] .tabbed { filter: none; }
.tabbed__tab, .card__tab {
  position: absolute; left: -1px; bottom: 100%;
  height: var(--tab-h); max-width: calc(100% - 40px);
  display: inline-flex; align-items: center; gap: 8px; padding: 0 14px 0 12px;
  background: var(--card); border: 1px solid var(--line); border-bottom: 0;
  border-radius: 12px 12px 0 0;
  font-size: 13px; font-weight: 800; color: var(--ci, var(--text)); white-space: nowrap;
}
.tabbed__tab > span, .card__tab > span { overflow: hidden; text-overflow: ellipsis; }
.tabbed__tab::after, .card__tab::after { /* сглаживание стыка с телом карточки */
  content: ""; position: absolute; right: -9px; bottom: 0; width: 9px; height: 9px;
  background: radial-gradient(circle at 100% 0, transparent 8px, var(--line) 8px, var(--line) 9px, var(--card) 9px);
}

/* 3.8 Карточка сервиса */
.card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  margin-top: var(--tab-h);
  background: var(--card); border: 1px solid var(--line);
  border-radius: 4px var(--r-lg) var(--r-lg) var(--r-lg);
  filter: drop-shadow(0 2px 8px rgba(90, 74, 140, 0.06));
  transition: transform .35s var(--ease), filter .35s var(--ease), border-color .25s;
}
[data-theme="dark"] .card { filter: none; }
.card:hover {
  transform: translateY(-4px);
  filter: drop-shadow(0 14px 22px rgba(90, 74, 140, 0.14));
  border-color: color-mix(in srgb, var(--c) 40%, var(--line));
}
.card:hover .card__tab { border-color: color-mix(in srgb, var(--c) 40%, var(--line)); }
[data-theme="dark"] .card:hover { background: var(--card-hover); filter: none; }
[data-theme="dark"] .card:hover .card__tab { background: var(--card-hover); }
.card:has(.card__link:focus-visible) { outline: 3px solid var(--accent); outline-offset: 4px; }

.card__media {
  position: relative; margin: 10px 10px 0; aspect-ratio: 16 / 10;
  border-radius: 16px; overflow: hidden; background: var(--cs);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.card__media .shot__win { transition: transform .5s var(--ease); }
.card:hover .card__media .shot__win { transform: translateY(-3%); }
.card__no {
  position: absolute; left: 10px; top: 10px; height: 26px; padding: 0 9px; border-radius: 8px;
  display: inline-flex; align-items: center; background: var(--card);
  font-size: 13px; font-weight: 800; color: var(--meta); font-variant-numeric: tabular-nums;
}
.card__flags { position: absolute; right: 10px; top: 10px; display: flex; gap: 6px; }

.card__body { display: flex; flex-direction: column; gap: 12px; padding: 14px 18px 16px; flex: 1; }
.card__head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.card__titles { flex: 1; min-width: 0; }
.card__title {
  font-size: 19px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card__link:focus-visible { box-shadow: none; }
.card__maker { font-size: 14px; font-weight: 600; color: var(--meta); margin-top: 2px; }
.card__save { position: relative; z-index: 2; color: var(--text-soft); margin-right: -8px; }
.card__save[aria-pressed="true"] { color: var(--accent); }
.card__save[aria-pressed="true"] .icon { fill: currentColor; }
.card__desc {
  font-size: 15px; line-height: 1.5; color: var(--text-soft);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 3em;
}
.card__body .spec { margin-top: auto; padding-top: 4px; }
.card__foot {
  display: flex; align-items: center; gap: 16px; padding: 12px 18px;
  border-top: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--meta);
}
.card__foot > span { display: inline-flex; align-items: center; gap: 6px; }
.card__go { margin-left: auto; color: var(--text); opacity: 0; transform: translateX(-4px); transition: opacity .25s, transform .3s var(--ease); }
.card:hover .card__go { opacity: 1; transform: none; }

/* компактная версия — «Похожие сервисы», 404 */
.card--compact .card__desc { -webkit-line-clamp: 2; }
.card--compact .card__foot { display: none; }
.card--compact .spec__row:nth-child(2) { display: none; }
.card--compact .card__body { padding-bottom: 16px; }

/* 3.9 Плейсхолдеры скриншотов (сохраняют пропорции 16:10, масштабируются через cqw) */
.shot { position: absolute; inset: 0; container-type: size; overflow: hidden; background: var(--cs, var(--bg-soft)); }
.shot__win {
  position: absolute; left: 7%; right: 7%; top: 10%; bottom: 0;
  display: flex; overflow: hidden;
  background: var(--card); border-radius: 2.6cqw 2.6cqw 0 0;
  box-shadow: 0 1.5cqw 5cqw rgba(90, 74, 140, .16);
}
.shot--full .shot__win { left: 0; right: 0; top: 0; border-radius: 0; box-shadow: none; }
.ln { display: block; height: 1.5cqw; min-height: 3px; border-radius: 1cqw; background: var(--line); flex: none; }
.s-side { width: 24%; flex: none; background: var(--bg-soft); padding: 4cqw 3cqw; display: flex; flex-direction: column; gap: 2.2cqw; }
.s-main { flex: 1; min-width: 0; padding: 4cqw 5cqw; display: flex; flex-direction: column; gap: 3cqw; }
.bub { width: 72%; padding: 2.4cqw 3cqw; border-radius: 2.4cqw; background: var(--bg-soft); display: flex; flex-direction: column; gap: 1.5cqw; }
.bub--me { align-self: flex-end; width: 48%; background: var(--cs); }
.bub--me .ln { background: color-mix(in srgb, var(--c) 45%, transparent); }
.s-input { margin-top: auto; height: 7cqw; border: .35cqw solid var(--line); border-radius: 3.5cqw; display: flex; align-items: center; justify-content: space-between; padding: 0 1.4cqw 0 3cqw; }
.s-input i { width: 4.2cqw; height: 4.2cqw; border-radius: 50%; background: var(--c); }
.s-gal { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 7cqw 1fr 1fr; gap: 2cqw; padding: 3.5cqw; }
.s-gal .s-prompt { grid-column: 1 / -1; border-radius: 2cqw; background: var(--bg-soft); display: flex; align-items: center; gap: 2cqw; padding: 0 2.5cqw; }
.s-gal .s-prompt .ln { flex: 1; }
.s-gal .s-prompt b { width: 10cqw; height: 4cqw; border-radius: 1.4cqw; background: var(--c); }
.s-gal > i { border-radius: 1.8cqw; background: linear-gradient(var(--a, 135deg), var(--cs), color-mix(in srgb, var(--c) 60%, var(--card))); }
.s-gal > i:nth-of-type(2) { --a: 200deg; }
.s-gal > i:nth-of-type(3) { --a: 60deg; opacity: .8; }
.s-gal > i:nth-of-type(4) { --a: 300deg; opacity: .7; }
.s-gal > i:nth-of-type(5) { --a: 20deg; }
.s-gal > i:nth-of-type(6) { --a: 250deg; opacity: .85; }
.s-vid { flex: 1; display: flex; flex-direction: column; gap: 2.4cqw; padding: 3cqw; }
.s-frame { flex: 1; border-radius: 2cqw; display: grid; place-items: center; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 55%, #2e2b38), #2e2b38 80%); }
.s-frame i { width: 9cqw; height: 9cqw; border-radius: 50%; background: rgba(255,255,255,.9); clip-path: polygon(38% 28%, 72% 50%, 38% 72%); }
.s-tl { display: flex; gap: 1cqw; height: 6cqw; }
.s-tl i { border-radius: 1cqw; background: var(--cs); }
.s-tl i:nth-child(2) { background: color-mix(in srgb, var(--c) 60%, transparent); }
.s-aud { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4cqw; padding: 5cqw 6cqw; }
.s-wave { display: flex; align-items: center; gap: .9cqw; height: 22cqw; }
.s-wave i { flex: 1; border-radius: 1cqw; background: var(--c); opacity: .85; }
.s-wave i:nth-child(n+22) { background: var(--line); opacity: 1; }
.s-code { flex: 1; background: #25222f; padding: 4cqw 5cqw; display: flex; flex-direction: column; gap: 2.1cqw; }
.s-code .ln { background: #464157; }
.s-code .ln.k { background: var(--c); }
.s-code .ln.g { background: #6fd3a9; }
.s-code .s-side { background: #1d1a26; }
.s-doc { flex: 1; padding: 5cqw 8cqw; display: flex; flex-direction: column; gap: 2.4cqw; }
.s-doc .ln.h { height: 3.2cqw; background: var(--text); opacity: .75; }
.s-doc .s-img { height: 24cqw; border-radius: 2cqw; background: linear-gradient(135deg, var(--cs), color-mix(in srgb, var(--c) 45%, var(--card))); }
.s-doc .s-cols { display: flex; gap: 3cqw; }
.s-doc .s-cols > div { flex: 1; display: flex; flex-direction: column; gap: 1.8cqw; }

/* 3.10 Chips, pills, фильтр-кнопки */
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap;
  transition: border-color .2s, background-color .2s, color .2s;
}
.chip:hover { border-color: var(--line-strong); }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip__n { font-size: 13px; color: var(--meta); font-weight: 700; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 8px 0 12px;
  border-radius: 10px; background: var(--blue-soft); color: var(--blue-ink);
  font-size: 14px; font-weight: 700; transition: background-color .2s;
}
.pill:hover { background: color-mix(in srgb, var(--blue-soft) 70%, var(--blue) 30%); }

.fbtn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 14px;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--card);
  font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap;
  transition: border-color .2s, background-color .2s;
}
.fbtn:hover { border-color: var(--line-strong); }
.fbtn[aria-expanded="true"] { border-color: var(--text); }
.fbtn.has-value { background: var(--blue-soft); border-color: transparent; color: var(--blue-ink); }
.fbtn .icon--sm:last-child { transition: transform .25s var(--ease); }
.fbtn[aria-expanded="true"] .icon--sm:last-child { transform: rotate(180deg); }
.fbtn__n {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 800; line-height: 20px; text-align: center;
}
.fbtn--ghost { border-color: transparent; background: transparent; }

/* 3.11 Dropdown */
.dd { position: relative; }
.dd__panel {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 45; min-width: 280px;
  padding: 8px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
}
.dd--right .dd__panel { left: auto; right: 0; }
.dd.is-open .dd__panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.dd__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 8px 4px; margin-top: 6px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--meta); }

.opt {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px;
  border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; user-select: none;
  transition: background-color .15s;
}
.opt:hover { background: var(--bg-soft); }
.opt__count { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--meta); font-variant-numeric: tabular-nums; }
.opt.is-disabled { opacity: .45; cursor: not-allowed; }
.opt.is-disabled:hover { background: none; }
.check {
  width: 22px; height: 22px; flex: none; border-radius: 7px; border: 1.8px solid var(--text-3);
  display: grid; place-items: center; color: var(--on-accent); background: var(--card);
  transition: background-color .15s, border-color .15s;
}
.check .icon { width: 14px; height: 14px; stroke-width: 3; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .2s var(--ease); }
.check--radio { border-radius: 50%; }
input:checked + .check { background: var(--accent); border-color: var(--accent); }
input:checked + .check .icon { opacity: 1; transform: none; }
input:checked + .check--radio { background: var(--card); border-width: 7px; }
input:focus-visible + .check { box-shadow: var(--focus-ring); }

/* 3.12 Sheet: bottom sheet на mobile, модальное окно на desktop */
.sheet {
  position: fixed; inset: 0; z-index: 100;
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; visibility: hidden;
  transition: visibility 0s linear .35s;
}
.sheet.is-open { visibility: visible; transition-delay: 0s; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(22, 20, 29, .42); opacity: 0; transition: opacity .3s var(--ease); }
.sheet.is-open .sheet__backdrop { opacity: 1; }
.sheet__panel {
  position: relative; display: flex; flex-direction: column; max-height: 88vh; outline: none;
  background: var(--card); border-radius: 24px 24px 0 0; box-shadow: var(--shadow-lg);
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(100%); transition: transform .38s var(--ease);
}
.sheet.is-open .sheet__panel { transform: none; }
.sheet__grip { width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 10px auto 2px; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px 12px 24px; }
.sheet__title { font-size: 20px; font-weight: 800; }
.sheet__body { overflow-y: auto; padding: 4px 24px 20px; overscroll-behavior: contain; }
.sheet__foot { display: flex; gap: 12px; padding: 14px 24px 18px; border-top: 1px solid var(--line); }
.sheet__foot .btn { flex: 1; }

.fgroup { border: 0; margin: 0 0 20px; padding: 0; }
.fgroup legend { font-size: 16px; font-weight: 800; margin-bottom: 6px; padding: 0; }
.fgroup .opt { padding: 0 4px; min-height: 48px; }

/* 3.13 Палитра поиска */
.palette__field { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 22px; border-bottom: 1px solid var(--line); }
.palette__field > .icon { color: var(--meta); }
.palette__input { flex: 1; min-width: 0; height: 48px; border: 0; background: none; font-size: 18px; font-weight: 600; }
.palette__input:focus { outline: none; box-shadow: none; }
.palette__list { overflow-y: auto; padding: 8px 10px 12px; max-height: min(60vh, 520px); }
.palette__group { padding: 12px 12px 6px; font-size: 13px; font-weight: 800; color: var(--meta); }
.pres { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 12px; border-radius: 12px; }
.pres[aria-selected="true"], .pres:hover { background: var(--bg-soft); }
.pres__name { font-size: 16px; font-weight: 800; }
.pres__sub { font-size: 14px; font-weight: 600; color: var(--meta); }
.pres__end { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--meta); }
.pres__hint { padding: 24px 12px; color: var(--text-soft); font-size: 15px; }
.palette__foot { display: flex; gap: 20px; padding: 12px 22px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--meta); }
.palette__foot span { display: inline-flex; align-items: center; gap: 6px; }

/* 3.14 Tooltip */
[data-tip] { position: relative; }
[data-tip]::after {
  display: none;
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; z-index: 30;
  transform: translate(-50%, 4px); padding: 7px 10px; border-radius: 8px;
  background: var(--text); color: var(--bg); font-size: 13px; font-weight: 700; line-height: 1.2; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .18s var(--ease), transform .22s var(--ease);
}
@media (hover: hover) and (min-width: 760px) { [data-tip]::after { display: block; } }
[data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); transition-delay: .15s; }

/* 3.15 Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 120;
  display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px;
  background: var(--text); color: var(--bg); font-size: 15px; font-weight: 700; box-shadow: var(--shadow-lg);
  transform: translate(-50%, 140%); opacity: 0; transition: transform .35s var(--ease), opacity .25s;
}
.toast.is-show { transform: translate(-50%, 0); opacity: 1; }
.toast .icon { color: var(--mint); }

/* 3.16 Skeleton */
.sk { display: block; background: var(--bar); border-radius: 8px; position: relative; overflow: hidden; }
.sk::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  animation: sk 1.3s ease-in-out infinite;
}
[data-theme="dark"] .sk::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06), transparent); }
@keyframes sk { to { transform: translateX(100%); } }
.card--sk { pointer-events: none; }
.card--sk:hover { transform: none; }
.card--sk .card__tab { width: 150px; }
.card--sk .card__media { background: var(--bar); }
.card--sk .lt { background: var(--bar); box-shadow: none; }

/* 3.17 Рекламный слот
   - по умолчанию схлопнут (height: 0), без обязательной «дыры»;
   - раскрывается только при data-state="filled";
   - data-state="empty" — сеть не отдала рекламу → display: none. */
.ad { display: block; height: 0; overflow: hidden; }
.ad[data-state="empty"] { display: none; }
.ad[data-state="filled"] {
  height: auto; overflow: visible;
  margin-block: var(--s-8);
  padding: 10px; border-radius: var(--r-md);
  background: var(--bg-soft);
  border: 1px dashed var(--line-strong);
}
.ad__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 6px 8px; font-size: 13px; font-weight: 700; color: var(--meta); }
.ad__label { display: inline-flex; align-items: center; gap: 6px; }
.ad__label::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--text-3); }
.ad__owner { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad__frame { display: grid; place-items: center; border-radius: 12px; overflow: hidden; background: var(--card); min-height: var(--ad-h, 90px); }
.ad--leader { --ad-h: 110px; }
.ad--infeed { --ad-h: 250px; }
.ad--inarticle { --ad-h: 250px; }
.ad--rail { --ad-h: 600px; }
.grid > .ad[data-state="filled"] { grid-column: 1 / -1; margin: var(--tab-h) 0 0; }

.ad__stub {
  width: 100%; height: 100%; min-height: inherit; display: grid; place-content: center; gap: 4px; padding: 20px;
  text-align: center; color: var(--meta); font-size: 14px; font-weight: 600;
  background: repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--line) 60%, transparent) 14px 15px);
}
.ad__stub strong { color: var(--text); font-size: 15px; }

.promo { width: 100%; display: flex; align-items: center; gap: 20px; padding: 18px 22px; }
.promo__logo { width: 56px; height: 56px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--text); color: var(--bg); font-weight: 900; font-size: 22px; }
.promo__text { flex: 1; min-width: 0; }
.promo__title, .promo__desc { display: block; }
.promo__title { font-size: 17px; font-weight: 800; }
.promo__desc { font-size: 15px; color: var(--text-soft); margin-top: 2px; }
.promo--digest { gap: 24px; }
.promo--digest form { display: flex; gap: 8px; flex: 0 1 420px; }
.promo--digest .input { height: 44px; }

/* 3.18 Pager и загрузка */
.more { display: grid; justify-items: center; gap: 14px; margin: var(--s-9) auto 0; text-align: center; }
.more__text { font-size: 15px; font-weight: 700; color: var(--meta); }
.progress { width: 240px; height: 6px; border-radius: 3px; background: var(--bar); overflow: hidden; }
.progress__fill { height: 100%; border-radius: inherit; background: var(--grad-xp); transition: width .6s var(--ease); }
.pager { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.pager a, .pager span, .pager button {
  min-width: 40px; height: 40px; padding: 0 6px; display: inline-grid; place-items: center;
  border-radius: 10px; font-size: 15px; font-weight: 700; color: var(--text-soft);
}
.pager a:hover, .pager button:hover:not(:disabled) { background: var(--bg-soft); color: var(--text); }
.pager .is-in { color: var(--text); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.pager [aria-current="page"] { background: var(--text); color: var(--bg); box-shadow: none; }
.pager button:disabled { opacity: .35; cursor: not-allowed; }
.more__error {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px 14px 18px; border-radius: var(--r-md);
  background: var(--pink-soft); color: var(--text); font-size: 15px; font-weight: 600; text-align: left;
}
.more__error .icon { color: var(--pink-ink); }

/* 3.19 Breadcrumbs */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--meta); }
.crumbs a { padding: 4px 6px; border-radius: 8px; }
.crumbs a:hover { color: var(--text); background: var(--bg-soft); }
.crumbs .icon { width: 14px; height: 14px; color: var(--text-3); }
.crumbs [aria-current] { color: var(--text); padding: 4px 6px; }

/* 3.20 Footer */
.site-footer { margin-top: var(--s-11); border-top: 1px solid var(--line); padding: var(--s-9) 0 var(--s-7); }
.site-footer__grid { display: grid; grid-template-columns: 1.55fr repeat(2, 1fr); gap: var(--s-8); }
.site-footer__brand p { margin-top: 14px; max-width: 34ch; color: var(--text-soft); font-size: 15px; }
.site-footer h3 { font-size: 15px; font-weight: 800; margin-bottom: 12px; letter-spacing: 0; }
.site-footer ul { list-style: none; display: grid; gap: 6px; }
.site-footer li a { font-size: 15px; color: var(--text-soft); font-weight: 600; }
.site-footer li a:hover { color: var(--text); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid var(--line); font-size: 14px; color: var(--meta); font-weight: 600; }

/* 3.21 Demo-панель состояний (только прототип) */
.demo { position: fixed; left: 16px; bottom: 16px; z-index: 70; }
.demo__panel {
  position: absolute; left: 0; bottom: 52px; width: 260px; padding: 14px; display: none; gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lg);
}
.demo.is-open .demo__panel { display: grid; }
.demo__panel p { font-size: 13px; font-weight: 700; color: var(--meta); margin-bottom: 4px; }
.demo__panel .btn { justify-content: flex-start; }

/* ---------- 4. Каталог ---------- */

/* 4.1 Masthead */
.masthead { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: var(--s-9); align-items: end; padding-top: var(--s-8); }
.masthead__edition { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: 14px; font-weight: 700; color: var(--meta); }
.masthead__edition span { display: inline-flex; align-items: center; gap: 8px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px var(--mint-soft); }
.masthead h1 { margin: 18px 0 16px; max-width: 16ch; text-wrap: balance; }
.masthead__lead { max-width: 38em; margin-bottom: var(--s-7); }
.masthead__search { max-width: 760px; }

.tasks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: var(--s-4); }
.tasks__label { font-size: 14px; font-weight: 700; color: var(--meta); margin-right: 4px; }
.task {
  height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--bg-soft); color: var(--text); font-size: 14px; font-weight: 700;
  transition: background-color .2s, color .2s;
}
.task:hover { background: var(--blue-soft); color: var(--blue-ink); }

.ledger { display: flex; flex-wrap: wrap; margin-top: var(--s-8); }
.ledger__item { padding: 0 var(--s-7) 0 0; margin-right: var(--s-7); border-right: 1px solid var(--line); }
.ledger__item:last-child { border: 0; margin: 0; padding: 0; }
.ledger__num { display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ledger__label { font-size: 14px; font-weight: 600; color: var(--meta); }

.daycard { overflow: visible; }
.daycard__media { position: relative; aspect-ratio: 16 / 9; margin: 10px 10px 0; border-radius: 16px; overflow: hidden; }
.daycard__body { padding: 16px 20px 20px; display: grid; gap: 12px; }
.daycard__head { display: flex; align-items: center; gap: 12px; }
.daycard__title { font-size: 22px; letter-spacing: -0.02em; }
.dict { font-size: 14px; font-weight: 600; color: var(--meta); }
.dict__pron { color: var(--ci, var(--accent)); font-weight: 700; }
.daycard__text { font-size: 15px; color: var(--text-soft); line-height: 1.55; }

/* 4.2 Навигация по разделам: язычки картотеки */
.catalog { margin-top: var(--s-10); }
.catnav { position: relative; z-index: 2; display: flex; align-items: flex-end; gap: 8px; margin-bottom: -1px; }
.catnav__rail {
  flex: 1; min-width: 0; display: flex; align-items: flex-end; gap: 2px;
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent);
          mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent);
  padding-right: 48px;
}
.catnav__rail::-webkit-scrollbar { display: none; }
.ctab {
  position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 16px; scroll-snap-align: start;
  border: 1px solid transparent; border-bottom: 0; border-radius: 14px 14px 0 0;
  font-size: 15px; font-weight: 700; color: var(--text-soft); white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.ctab:hover { color: var(--text); background: color-mix(in srgb, var(--bg-soft) 80%, transparent); }
.ctab[aria-pressed="true"] { background: var(--card); border-color: var(--line); color: var(--text); }
.ctab[aria-pressed="true"]::before {
  content: ""; position: absolute; left: 16px; right: 16px; top: -1px; height: 3px; border-radius: 0 0 3px 3px;
  background: var(--c, var(--text));
}
.ctab__n { font-size: 13px; font-weight: 700; color: var(--meta); font-variant-numeric: tabular-nums; }
.ctab--all { flex: none; color: var(--text); border-radius: var(--r-sm); height: 40px; margin-bottom: 6px; border: 1px solid var(--line); background: var(--card); }
.ctab--all:hover { background: var(--card); border-color: var(--line-strong); }

/* 4.3 Toolbar: «ящик» под выбранным язычком */
.toolbar {
  position: sticky; top: calc(var(--header-h) - 1px); z-index: 40;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 0 var(--r-md) var(--r-md) var(--r-md);
  padding: 14px 16px 14px 20px;
  transition: border-radius .2s, box-shadow .25s var(--ease);
}
.toolbar.is-stuck { border-radius: 0 0 var(--r-md) var(--r-md); box-shadow: var(--shadow-md); }
.toolbar__row { display: flex; align-items: center; gap: 10px; }
.toolbar__title { display: flex; align-items: baseline; gap: 10px; margin-right: auto; min-width: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.toolbar__title > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toolbar__count { font-size: 14px; font-weight: 700; color: var(--meta); white-space: nowrap; }
.toolbar__controls { display: flex; align-items: center; gap: 8px; }
.toolbar__sep { width: 1px; height: 24px; background: var(--line); margin: 0 4px; }
.fbtn--mobile { display: none; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.active-filters[hidden] { display: none; }

/* 4.4 Сетка каталога */
.grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-7) var(--gutter); margin-top: var(--s-4);
  transition: opacity .2s;
}
.grid[aria-busy="true"] { opacity: .98; }
.grid.is-dim { opacity: .5; }

/* 4.5 Пустой результат */
.empty {
  grid-column: 1 / -1; margin-top: var(--tab-h);
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s-8); align-items: center;
  padding: var(--s-8); border-radius: var(--r-lg); background: var(--bg-soft);
}
.empty__art { position: relative; height: 170px; }
.empty__card {
  position: absolute; inset: 24px 16px 0 10px; border-radius: 4px 16px 16px 16px;
  background: var(--card); border: 1px solid var(--line); padding: 20px 18px; display: grid; align-content: start; gap: 12px;
  transform: rotate(-3deg);
}
.empty__card::before {
  content: "?"; position: absolute; left: -1px; bottom: 100%; height: 24px; padding: 0 14px;
  display: grid; place-items: center; font-size: 14px; font-weight: 900; color: var(--accent);
  background: var(--card); border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0;
}
.empty__card .ln { height: 9px; border-radius: 5px; }
.empty__body h3 { margin-bottom: 8px; }
.empty__body > p { color: var(--text-soft); max-width: 56ch; }
.empty__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s-5); }
.empty__label { margin-top: var(--s-6); margin-bottom: 10px; font-size: 14px; font-weight: 700; color: var(--meta); }
.empty__chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* 4.6 Индекс разделов */
.sheet--wide .cidx { columns: 3 220px; column-gap: var(--s-8); }
.cidx__group { break-inside: avoid; margin-bottom: 18px; }
.cidx__letter { display: block; font-size: 22px; font-weight: 900; color: var(--text-3); line-height: 1; margin: 0 0 6px 10px; }
.cidx ul { list-style: none; }
.cidx__item { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border-radius: 10px; font-size: 15px; font-weight: 700; text-align: left; }
.cidx__item:hover { background: var(--bg-soft); }
.cidx__item[aria-pressed="true"] { background: var(--cs); color: var(--ci); }
.cidx__n { margin-left: auto; font-size: 13px; color: var(--meta); font-variant-numeric: tabular-nums; }
.cidx__filter { margin-bottom: 18px; }
.cidx__empty { color: var(--text-soft); padding: 12px 10px; }

/* 4.7 О каталоге */
.about { display: grid; grid-template-columns: 300px repeat(3, minmax(0, 1fr)); gap: var(--s-8); padding-top: var(--s-8); border-top: 1px solid var(--line); }
.about h2 { font-size: 24px; }
.about h3 { font-size: 17px; margin-bottom: 8px; letter-spacing: -0.01em; }
.about p { font-size: 15px; color: var(--text-soft); line-height: 1.6; }

/* 4.8 Мобильная плавающая панель фильтров */
.mbar {
  position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 50;
  display: none; gap: 2px; padding: 5px;
  background: var(--text); color: var(--bg); border-radius: 999px; box-shadow: var(--shadow-lg);
  transform: translate(-50%, 160%); transition: transform .38s var(--ease);
}
.mbar.is-visible { transform: translate(-50%, 0); }
.mbar button { height: 48px; padding: 0 18px; display: flex; align-items: center; gap: 8px; border-radius: 999px; font-size: 15px; font-weight: 700; color: inherit; white-space: nowrap; }
.mbar button:active { background: rgba(255,255,255,.12); }
.mbar__sep { width: 1px; margin: 12px 0; background: currentColor; opacity: .2; }

/* ---------- 5. Статья сервиса ---------- */
.entry-head { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: var(--s-9); align-items: start; margin-top: var(--s-6); }
.entry-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.entry-kicker .cat-link { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 9px; background: var(--cs); color: var(--ci); font-size: 14px; font-weight: 800; }
.entry-kicker .entry-no { font-size: 14px; font-weight: 800; color: var(--meta); font-variant-numeric: tabular-nums; margin-left: 4px; }
.entry-title { display: flex; align-items: center; gap: var(--s-5); margin-top: var(--s-6); }
.entry-title .dict { font-size: 16px; margin-top: 6px; }
.entry-lead { margin-top: var(--s-6); max-width: 40em; font-size: var(--fs-lead); line-height: 1.55; color: var(--text); }
.entry-jobs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-6); }
.entry-jobs a { height: 34px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 10px; background: var(--bg-soft); font-size: 14px; font-weight: 700; transition: background-color .2s; }
.entry-jobs a:hover { background: var(--blue-soft); color: var(--blue-ink); }
.entry-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: var(--s-6); font-size: 14px; font-weight: 700; color: var(--meta); }
.entry-facts span { display: inline-flex; align-items: center; gap: 6px; }

.passport { padding: 22px 24px 24px; }
.passport .spec { margin-bottom: 22px; }
.passport__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.passport__note { display: flex; gap: 8px; margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--meta); line-height: 1.45; }
.passport__note .icon { width: 16px; height: 16px; margin-top: 1px; }
.cta-main { box-shadow: var(--shadow-md); }

/* 5.1 Сцена скриншота: «плавающий холст» на тонированной подложке */
.stage { margin-top: var(--s-9); }
.stage__plate { position: relative; border-radius: 32px; background: var(--cs); padding: 56px 64px 0; overflow: hidden; }
.browser { position: relative; max-width: 1060px; margin: 0 auto; border-radius: 16px 16px 0 0; background: var(--card); box-shadow: var(--shadow-lg); overflow: hidden; }
.browser__bar { height: 46px; display: flex; align-items: center; gap: 14px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.browser__dots { display: flex; gap: 6px; }
.browser__dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.browser__url { flex: 1; max-width: 340px; height: 30px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 9px; background: var(--bg-soft); font-size: 13px; font-weight: 700; color: var(--meta); }
.browser__url .icon { width: 14px; height: 14px; }
.browser__screen { position: relative; aspect-ratio: 16 / 10; }
.browser__screen .shot { transition: opacity .25s var(--ease); }
.browser__zoom { position: absolute; right: 14px; bottom: 14px; z-index: 2; background: var(--card); box-shadow: var(--shadow-md); }

.stage__foot { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-7); margin-top: var(--s-4); }
.stage__caption { max-width: 46ch; font-size: 14px; font-weight: 600; color: var(--meta); line-height: 1.5; padding-top: 8px; }
.stage__caption b { color: var(--text); font-weight: 800; }
.stage__nav { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 4px; }
.sthumb { flex: none; width: 150px; display: grid; gap: 8px; padding: 6px 6px 8px; border-radius: 14px; text-align: left; font-size: 14px; font-weight: 700; color: var(--text-soft); border: 1.5px solid transparent; transition: border-color .2s, background-color .2s, color .2s; }
.sthumb:hover { color: var(--text); background: var(--card); }
.sthumb[aria-selected="true"] { border-color: var(--accent); color: var(--text); background: var(--card); }
.sthumb__img { position: relative; aspect-ratio: 16 / 10; border-radius: 9px; overflow: hidden; }
.sthumb__img .shot__win { left: 4%; right: 4%; top: 8%; }

/* 5.2 Тело статьи */
.entry-body { display: grid; grid-template-columns: minmax(0, 720px) 300px; justify-content: space-between; gap: var(--s-9); margin-top: var(--s-10); }
.rail { position: relative; }
.rail__sticky { position: sticky; top: calc(var(--header-h) + 84px); display: grid; gap: var(--s-6); }
.toc { padding: 4px 0; }
.toc__title { font-size: 14px; font-weight: 800; color: var(--meta); margin: 0 0 10px 16px; }
.toc ol { list-style: none; border-left: 2px solid var(--line); }
.toc a { display: block; margin-left: -2px; padding: 7px 14px; border-left: 2px solid transparent; font-size: 15px; font-weight: 700; color: var(--text-soft); transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--text); }
.toc a.is-active { color: var(--text); border-left-color: var(--c, var(--accent)); }
.rail .ad[data-state="filled"] { margin: 0; }
.toc-mobile { display: none; margin-bottom: var(--s-7); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); }
.toc-mobile summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 18px; font-weight: 800; cursor: pointer; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile[open] summary .icon { transform: rotate(180deg); }
.toc-mobile ol { list-style: none; padding: 0 10px 12px; }
.toc-mobile a { display: block; padding: 10px 8px; border-radius: 10px; font-weight: 700; color: var(--text-soft); }

/* 5.3 Prose */
.prose { font-size: var(--fs-body); line-height: 1.7; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: var(--fs-h2); margin-top: var(--s-10); margin-bottom: -.1em; }
.prose h3 { font-size: var(--fs-h3); margin-top: var(--s-7); }
.prose h2 + p, .prose h3 + p { margin-top: .6em; }
.prose a:not(.btn) { color: var(--accent); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.prose a:not(.btn):hover { text-decoration-color: currentColor; }
.prose ul, .prose ol { padding-left: 0; list-style: none; }
.prose ul li, .prose ol li { position: relative; padding-left: 28px; }
.prose ul li + li, .prose ol li + li { margin-top: .45em; }
.prose ul li::before { content: ""; position: absolute; left: 6px; top: .78em; width: 10px; height: 2px; border-radius: 2px; background: var(--c, var(--accent)); }
.prose ol { counter-reset: li; }
.prose ol li::before { counter-increment: li; content: counter(li); position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 6px; background: var(--bg-soft); display: grid; place-items: center; font-size: 13px; font-weight: 800; line-height: 1; }
.prose blockquote { margin: var(--s-7) 0; padding: 4px 0 4px 24px; border-left: 3px solid; border-image: var(--grad-main) 1; }
.prose blockquote p { font-size: 20px; font-weight: 700; line-height: 1.5; letter-spacing: -0.01em; }
.prose blockquote cite { display: block; margin-top: 10px; font-style: normal; font-size: 14px; font-weight: 700; color: var(--meta); }
.prose > .ad { margin-top: 0; }

.tldr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); padding: var(--s-6); border-radius: var(--r-md); background: var(--bg-soft); }
.tldr dt { font-size: 14px; font-weight: 800; color: var(--ci, var(--meta)); margin-bottom: 6px; }
.tldr dd { margin: 0; font-size: 15px; line-height: 1.55; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); }
.table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.table th, .table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table th { font-size: 14px; font-weight: 800; color: var(--meta); background: var(--bg-soft); }
.table tr:last-child td { border-bottom: 0; }
.table td:first-child { font-weight: 800; white-space: nowrap; }
.table .is-hl td { background: color-mix(in srgb, var(--cs) 50%, transparent); }
.table-note { font-size: 14px !important; color: var(--meta); font-weight: 600; }

/* 5.4 Возможности: ведущая строка + «картотечный» список */
.features { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s-7); border-top: 1px solid var(--line); margin-top: var(--s-6) !important; }
.feat { padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.feat h3 { font-size: 17px !important; margin: 0 !important; display: flex; align-items: center; gap: 10px; letter-spacing: -0.01em; }
.feat h3 .icon { color: var(--ci); }
.feat p { font-size: 15px; line-height: 1.55; color: var(--text-soft); margin-top: 6px !important; }
.feat--lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px var(--s-7); align-items: center; padding: var(--s-6) 0; }
.feat--lead h3 { font-size: 22px !important; }
.feat--lead p { font-size: 16px; color: var(--text); grid-column: 1; }
.feat__tags { grid-row: 1 / span 2; grid-column: 2; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 240px; }
.feat__tags span { height: 30px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 9px; background: var(--cs); color: var(--ci); font-size: 13px; font-weight: 800; }
.feat__plan { font-size: 12px; font-weight: 800; color: var(--peach-ink); background: var(--peach-soft); padding: 2px 7px; border-radius: 6px; letter-spacing: 0; }

/* 5.5 Кому подходит */
.fit { list-style: none; margin-top: var(--s-6) !important; }
.fit li { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 6px var(--s-6); align-items: baseline; padding: 16px 0 !important; border-top: 1px solid var(--line); }
.fit li::before { display: none; }
.fit li + li { margin-top: 0 !important; }
.fit b { font-weight: 800; font-size: 16px; }
.fit p { font-size: 15px; color: var(--text-soft); line-height: 1.5; }
.fit li > p { grid-column: 2; grid-row: 1; }
.fit li > .meter { grid-column: 3; grid-row: 1; }
.meter { display: flex; gap: 4px; align-self: center; padding: 4px 0; }
.meter i { display: block; }
.meter i { width: 18px; height: 6px; border-radius: 3px; background: var(--bar); }
.meter i.on { background: var(--c, var(--accent)); }

/* 5.6 Плюсы/минусы */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); }
.proscons > div { padding: var(--s-5) var(--s-6) var(--s-6); border-radius: var(--r-md); border: 1px solid var(--line); background: var(--card); }
.proscons h3 { font-size: 17px !important; margin: 0 0 12px !important; display: flex; align-items: center; gap: 8px; }
.proscons ul li { font-size: 15px; line-height: 1.5; padding-left: 26px !important; }
.proscons .pros li::before { content: "+"; background: none; width: auto; height: auto; top: 0; left: 4px; font-weight: 900; color: var(--mint-ink); font-size: 17px; }
.proscons .cons li::before { content: "−"; background: none; width: auto; height: auto; top: 0; left: 4px; font-weight: 900; color: var(--peach-ink); font-size: 17px; }

/* 5.7 FAQ */
.faq { border-top: 1px solid var(--line); margin-top: var(--s-6) !important; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 12px 0; font-size: 17px; font-weight: 800; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .25s var(--ease); color: var(--meta); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding: 0 40px 18px 0; font-size: 16px; color: var(--text-soft); }

/* 5.8 Похожие */
.related { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 var(--gutter); }

/* 5.9 Комментарии */
.comments { max-width: 820px; }
.comments__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: var(--s-6); }
.comments__head h2 span { color: var(--text-3); }
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 12px; background: var(--bg-soft); }
.seg button { height: 36px; padding: 0 14px; border-radius: 9px; font-size: 14px; font-weight: 700; color: var(--text-soft); transition: background-color .2s, color .2s, box-shadow .2s; }
.seg button[aria-selected="true"] { background: var(--card); color: var(--text); box-shadow: var(--shadow-sm); }

.cform { padding: 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--card); transition: box-shadow .25s var(--ease), border-color .2s; }
.cform:focus-within { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.cform__top { display: flex; gap: 14px; }
.cform__top .field { flex: 1; }
.cform .textarea { min-height: 52px; height: 52px; transition: height .3s var(--ease), border-color .2s, box-shadow .2s; }
.cform:not(.is-collapsed) .textarea { height: 132px; }
.cform__more { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .3s var(--ease); }
.cform.is-collapsed .cform__more { grid-template-rows: 0fr; }
.cform__more > div { overflow: hidden; }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 14px 2px 2px; }
.cform__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 2px 2px; flex-wrap: wrap; }
.cform__foot .field__hint { max-width: 44ch; }

.clist { list-style: none; margin-top: var(--s-7); }
.cmt { position: relative; }
.cmt + .cmt { margin-top: var(--s-6); padding-top: var(--s-6); border-top: 1px solid var(--line); }
.comment { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
.avatar { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--cs); color: var(--ci); font-size: 15px; font-weight: 900; }
.comment__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 26px; }
.comment__author { font-size: 16px; font-weight: 800; }
.comment__head time { font-size: 14px; font-weight: 600; color: var(--meta); }
.comment__text { margin-top: 6px; font-size: 16px; line-height: 1.65; }
.comment__text p + p { margin-top: .6em; }
.comment__actions { display: flex; align-items: center; gap: 4px; margin-top: 8px; margin-left: -10px; }
.cbtn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--meta); transition: background-color .2s, color .2s; }
.cbtn:hover { background: var(--bg-soft); color: var(--text); }
.cbtn[aria-pressed="true"] { color: var(--pink-ink); }
.cbtn[aria-pressed="true"] .icon { fill: currentColor; }
.creplies { list-style: none; margin: var(--s-5) 0 0 22px; padding-left: 36px; border-left: 2px solid var(--line); display: grid; gap: var(--s-5); }
.creplies .avatar { width: 36px; height: 36px; border-radius: 11px; font-size: 13px; }
.creplies .comment { grid-template-columns: 36px minmax(0, 1fr); }
.creplies .creplies { margin-left: 16px; padding-left: 24px; }
.reply-form { margin-top: 12px; display: grid; gap: 10px; }
.reply-form .textarea { min-height: 96px; }
.reply-form__actions { display: flex; gap: 8px; }
.clist__more { margin-top: var(--s-7); }
.cmt.is-new > .comment { animation: flash 1.6s var(--ease); border-radius: 14px; }
@keyframes flash { from { background: var(--blue-soft); } to { background: transparent; } }

/* 5.10 Sticky-панели записи */
.entry-bar {
  position: fixed; left: 0; right: 0; top: var(--header-h); z-index: 55;
  background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transform: translateY(-110%); opacity: 0; visibility: hidden;
  transition: transform .35s var(--ease), opacity .2s, visibility 0s linear .35s;
}
.entry-bar.is-visible { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
.entry-bar__inner { height: 64px; display: flex; align-items: center; gap: 14px; }
.entry-bar__name { font-size: 17px; font-weight: 800; }
.entry-bar .badge { margin-left: 4px; }
.entry-bar__spacer { flex: 1; }
.entry-bar__sec { font-size: 14px; font-weight: 700; color: var(--meta); }

.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: none;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(90, 74, 140, .08);
  transform: translateY(110%); transition: transform .35s var(--ease);
}
.cta-bar.is-visible { transform: none; }
.cta-bar__inner { display: flex; align-items: center; gap: 12px; }
.cta-bar__info { flex: 1; min-width: 0; }
.cta-bar__name { font-size: 16px; font-weight: 800; line-height: 1.2; }
.cta-bar__price { font-size: 13px; font-weight: 700; color: var(--meta); }

/* ---------- 6. 404 ---------- */
.nf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-10); align-items: center; padding-top: var(--s-9); }
.nf__stack { position: relative; max-width: 500px; margin: 0 auto; width: 100%; }
.nf__stack::before, .nf__stack::after {
  content: ""; position: absolute; inset: var(--tab-h) 0 0; border-radius: 4px var(--r-lg) var(--r-lg) var(--r-lg);
  border: 1px solid var(--line); background: var(--bg-soft);
}
.nf__stack::before { transform: rotate(4deg) translate(14px, 10px); }
.nf__stack::after { transform: rotate(1.5deg) translate(6px, 4px); background: var(--card); }
.nf__card { position: relative; z-index: 1; padding: 28px 28px 26px; transform: rotate(-1.5deg); }
.nf__no { font-size: 64px; font-weight: 900; letter-spacing: -0.04em; line-height: 1; color: var(--text-3); font-variant-numeric: tabular-nums; }
.nf__card .dict { margin: 8px 0 20px; }
.nf__card .spec__row dd { max-width: 60%; overflow-wrap: anywhere; }
.nf__suggest { margin-top: 20px; padding: 14px 16px; border-radius: 14px; background: var(--blue-soft); display: flex; align-items: center; gap: 12px; }
.nf__suggest[hidden] { display: none; }
.nf__suggest p { flex: 1; font-size: 15px; font-weight: 600; color: var(--text); }
.nf__suggest a { font-weight: 800; color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }
.nf__main h1 { margin-bottom: 16px; max-width: 14ch; }
.nf__main .lead { max-width: 34em; }
.nf__search { margin-top: var(--s-7); }
.nf__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s-5); }
.nf__cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.nf__label { margin-top: var(--s-8); font-size: 14px; font-weight: 700; color: var(--meta); }
.nf-picks .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- 7. Responsive ---------- */
@media (max-width: 1279px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .header-add { display: none; }
  .about { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about > :first-child { grid-column: 1 / -1; }
  .entry-body { grid-template-columns: minmax(0, 720px); justify-content: center; }
  .rail { display: none; }
  .toc-mobile { display: block; }
}

@media (max-width: 1099px) {
  .nav { display: none; }
  .masthead { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .masthead__aside { max-width: 620px; }
  .daycard { display: grid; grid-template-columns: 240px minmax(0, 1fr); }
  .daycard__media { aspect-ratio: auto; min-height: 100%; margin: 10px 0 10px 10px; }
  .entry-head { grid-template-columns: minmax(0, 1fr); gap: var(--s-7); }
  .passport { max-width: 620px; }
  .related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nf { grid-template-columns: minmax(0, 1fr); gap: var(--s-8); }
  .nf__stack { order: 2; }
}

@media (max-width: 959px) {
  :root { --gutter: 20px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar { position: relative; top: auto; }
  .toolbar__controls .dd[data-dd="extra"], .toolbar__controls .toolbar__sep { display: none; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
  .stage__plate { padding: 36px 32px 0; border-radius: 24px; }
  .stage__foot { flex-direction: column-reverse; align-items: stretch; gap: 8px; }
  .stage__nav { min-width: 0; }
  .empty { grid-template-columns: 1fr; }
  .empty__art { display: none; }
  .nf-picks .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nf-picks .grid > :nth-child(3) { display: none; }
}

@media (max-width: 759px) {
  :root { --header-h: 60px; --fs-body: 16px; }
  .hsearch { display: none; }
  .hsearch-mobile, .menu-btn { display: inline-grid; }
  .site-header__inner { gap: 12px; }
  .logo { font-size: 19px; }

  .masthead { padding-top: var(--s-6); gap: var(--s-7); }
  .masthead__aside { display: none; }
  .masthead h1 { margin: 14px 0 12px; }
  .masthead__lead { margin-bottom: var(--s-6); }
  .search__input { height: 58px; font-size: 16px; }
  .search > .icon { margin-left: 16px; }
  .search .btn { display: none; }
  .tasks { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scrollbar-width: none; }
  .tasks::-webkit-scrollbar { display: none; }
  .task { flex: none; }
  .ledger { margin-top: var(--s-7); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .ledger__item { border: 0; margin: 0; padding: 0; }
  .ledger__num { font-size: 24px; }

  .catalog { margin-top: var(--s-8); }
  .catnav { margin-inline: calc(var(--pad) * -1); padding-left: var(--pad); }
  .catnav .ctab--all { display: none; }
  .ctab { height: 44px; padding: 0 14px; font-size: 14px; }
  .toolbar { padding: 12px 12px 12px 16px; border-radius: 0 var(--r-md) var(--r-md) var(--r-md); }
  .toolbar__controls { display: none; }
  .fbtn--mobile { display: inline-flex; }
  .toolbar__title { font-size: 16px; flex-direction: column; gap: 0; }
  .mbar { display: flex; }

  .grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .card__go { opacity: 1; transform: none; }
  .ad--leader { --ad-h: 100px; }  /* 320×100 */
  .ad--infeed, .ad--inarticle { --ad-h: 250px; } /* 300×250 */
  .promo { flex-wrap: wrap; padding: 16px; gap: 14px; }
  .promo .btn { width: 100%; }
  .promo--digest form { flex-basis: 100%; flex-wrap: wrap; }
  .promo--digest .input, .promo--digest .btn { width: 100%; }

  .empty { padding: var(--s-6); }
  .about { grid-template-columns: 1fr; gap: var(--s-6); }
  .sheet--wide .cidx { columns: 2 140px; column-gap: 12px; }

  .entry-title { align-items: flex-start; gap: 14px; }
  .lt--lg { width: 64px; height: 64px; border-radius: 18px; font-size: 28px; }
  .entry-facts { gap: 6px 16px; }
  .stage { margin-inline: calc(var(--pad) * -1); }
  .stage__plate { padding: 22px 16px 0; border-radius: 0; }
  .browser { border-radius: 12px 12px 0 0; }
  .browser__bar { height: 36px; padding: 0 12px; }
  .browser__dots i { width: 8px; height: 8px; }
  .browser__url { height: 24px; font-size: 12px; }
  .stage__foot { padding-inline: var(--pad); }
  .sthumb { width: 124px; font-size: 13px; }
  .entry-body { margin-top: var(--s-8); }
  .tldr { grid-template-columns: 1fr; gap: var(--s-4); }
  .features { grid-template-columns: 1fr; }
  .feat--lead { grid-template-columns: 1fr; }
  .feat__tags { grid-row: auto; grid-column: 1; justify-content: flex-start; max-width: none; }
  .fit li { grid-template-columns: minmax(0, 1fr) auto; }
  .fit li > p { grid-column: 1 / -1; grid-row: 2; }
  .fit li > .meter { grid-column: 2; }
  .proscons { grid-template-columns: 1fr; }
  .related { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin-inline: calc(var(--pad) * -1); padding: 0 var(--pad) 8px; scrollbar-width: none; }
  .related > .card { flex: 0 0 82%; scroll-snap-align: start; }
  .cform__row, .cform__top { grid-template-columns: 1fr; flex-direction: column; }
  .creplies { margin-left: 16px; padding-left: 18px; }
  .creplies .creplies { margin-left: 0; padding-left: 14px; }
  .entry-bar { display: none; }
  .cta-bar { display: block; }
  .page-single .site-footer { padding-bottom: 110px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .nf__no { font-size: 52px; }
  .nf__stack { width: calc(100% - 28px); }
  .nf-picks .grid { grid-template-columns: 1fr; }
  .nf-picks .grid > :nth-child(3) { display: flex; }
  .demo { display: none; }
}

@media (min-width: 760px) {
  .sheet { align-items: center; justify-items: center; padding: 24px; }
  .sheet__panel { width: min(560px, 100%); border-radius: var(--r-lg); max-height: 84vh; transform: translateY(16px) scale(.98); opacity: 0; transition: transform .3s var(--ease), opacity .2s; }
  .sheet.is-open .sheet__panel { transform: none; opacity: 1; }
  .sheet__grip { display: none; }
  .sheet__head { padding-top: 16px; }
  .sheet--wide .sheet__panel { width: min(960px, 100%); }
  .sheet--palette { align-items: start; padding-top: 12vh; }
  .sheet--palette .sheet__panel { width: min(640px, 100%); }
}

@media (max-width: 759px) {
  .sheet--palette { align-items: stretch; }
  .sheet--palette .sheet__panel { max-height: none; height: 100%; border-radius: 0; }
  .sheet--palette .palette__list { max-height: none; flex: 1; }
  .palette__foot { display: none; }
}

@media (hover: none) {
  .card:hover { transform: none; }
  [data-tip]::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}


/* ===== WordPress integration ===== */
.wp-admin-bar-showing .site-header{top:32px}
@media(max-width:782px){.wp-admin-bar-showing .site-header{top:46px}}
.service-shot-img{width:100%;height:100%;object-fit:cover;display:block}
.card__media .service-shot-img{position:absolute;inset:0}
.card__media{position:relative;overflow:hidden}
.card__logo-img{width:44px;height:44px;border-radius:12px;object-fit:contain;background:#fff;padding:6px;border:1px solid var(--line)}
.lt--logo{padding:0;overflow:hidden;background:#fff}
.lt--logo img{width:100%;height:100%;object-fit:contain;padding:6px}
.entry-title .lt--logo img{padding:8px}
.service-gallery-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.stage__plate .browser__screen>a{display:block;height:100%}
.stage__plate .browser__screen img{width:100%;height:100%;object-fit:cover;display:block}
.wp-prose>*:first-child{margin-top:0}
.wp-prose img{max-width:100%;height:auto;border-radius:var(--r-md)}
.card[hidden]{display:none!important}
.catalog-empty{grid-column:1/-1}
.footer-nav-placeholder{opacity:.65}
.comment-list,.comment-list .children{list-style:none;margin:0;padding:0}
.comment-list .children{margin:16px 0 0 52px}
.aipedia-comment{margin:0 0 22px}
.comment-respond{margin-top:28px}
.comment-respond .comment-reply-title{font-size:24px;margin:0 0 12px}
.comment-form{display:grid;gap:14px}
.comment-form p{margin:0}
.comment-form label{display:block;font-weight:700;margin-bottom:6px}
.comment-form textarea,.comment-form input[type=text],.comment-form input[type=email],.comment-form input[type=url]{width:100%;border:1px solid var(--line);background:var(--card);color:var(--text);border-radius:14px;padding:13px 14px;font:inherit}
.comment-form textarea{min-height:130px;resize:vertical}
.comment-form .form-submit input{appearance:none;border:0;border-radius:14px;background:var(--blue);color:#fff;padding:12px 18px;font:800 15px Nunito,sans-serif;cursor:pointer}
.comment-meta a{color:var(--text-soft)}
.comment__text p{margin:.35em 0}
.comments .navigation{margin-top:20px}
.nf__guess-link{font-weight:800}
.service-card-grid-loading{opacity:.55}
.palette__list .pres{cursor:pointer}
.bookmarks-empty{padding:24px;color:var(--text-soft)}
.entry-jobs a{white-space:nowrap}
.prose .feature-lines{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0 28px;padding:0;list-style:none}
.prose .feature-lines li{background:var(--card-2);border:1px solid var(--line);border-radius:16px;padding:14px 16px}
.prose .audience-lines{display:grid;gap:10px;padding:0;list-style:none}
.prose .audience-lines li{padding:12px 14px;border-left:3px solid var(--c,var(--blue));background:var(--card-2);border-radius:0 12px 12px 0}
@media(max-width:759px){.prose .feature-lines{grid-template-columns:1fr}.comment-list .children{margin-left:20px}}

/* ---------- 8.1 Single polish 2.0.1 ---------- */
.page-single .crumbs { font-size: 14px; }
.page-single .entry-head { grid-template-columns: minmax(0, 1fr) 430px; gap: 64px; }
.page-single .entry-intro { padding-top: 4px; }
.page-single .entry-lead { max-width: 46em; font-size: clamp(19px,1.45vw,21px); line-height: 1.6; }
.page-single .entry-facts { font-size: 15px; gap: 10px 26px; }
.page-single .passport { padding: 26px 28px 28px; }
.page-single .passport .spec { margin-bottom: 20px; }
.page-single .passport .spec__row { min-height: 48px; }
.page-single .passport .spec__row dt { font-size: 14px; }
.page-single .passport .spec__row dd { font-size: 15px; }
.page-single .passport .spec__note { display: block; max-width: 220px; margin-top: 5px; font-size: 14px; line-height: 1.4; color: var(--text-soft); }
.page-single .passport-status { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 9px; background: var(--blue-soft); color: var(--blue-ink); font-size: 13px; font-weight: 800; }
.page-single .passport .plat-list { justify-content: flex-start; margin: -2px 0 22px; gap: 7px; }
.page-single .passport .plat-list span { font-size: 13px; }
.page-single .passport__note { font-size: 14px; }

.page-single .stage { margin-top: 64px; margin-inline: 0; margin-bottom: 0; }
.page-single .stage__plate { padding: 48px 52px 0; }
.page-single .browser { max-width: 1160px; }
.page-single .browser__screen { aspect-ratio: 16 / 10; background: #fff; overflow: hidden; }
.page-single .browser__screen > a { display: flex; width: 100%; height: 100%; align-items: flex-start; justify-content: center; cursor: zoom-in; }
.page-single .browser__screen img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: top center; image-rendering: auto; }
.page-single .stage__foot { margin-top: 18px; }
.page-single .stage__caption { font-size: 15px; }
.page-single .sthumb { width: 170px; font-size: 14px; }
.page-single .sthumb__img img { width: 100%; height: 100%; object-fit: cover; }

.page-single .entry-body { grid-template-columns: minmax(0, 820px) 260px; gap: 72px; margin-top: 72px; }
.page-single .prose { font-size: 17px; line-height: 1.76; }
.page-single .prose h2 { scroll-margin-top: calc(var(--header-h) + 100px); }
.page-single .toc__title { font-size: 15px; }
.page-single .toc a { padding: 8px 14px; font-size: 15px; }

.page-single .prose .feature-lines { gap: 14px; margin: 22px 0 34px; }
.page-single .prose .feature-lines li { display: grid; gap: 7px; min-height: 132px; padding: 18px 20px; border-radius: 18px; }
.page-single .prose .feature-lines li::before { display: none; }
.page-single .prose .feature-lines li strong { font-size: 16px; line-height: 1.3; font-weight: 800; }
.page-single .prose .feature-lines li span { font-size: 15px; line-height: 1.6; color: var(--text-soft); }

.page-single .prose .audience-lines { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 12px; margin: 22px 0 34px; padding: 0; }
.page-single .prose .audience-lines li { min-height: 70px; display: flex; align-items: center; padding: 15px 18px 15px 22px; border: 1px solid var(--line); border-left: 3px solid var(--c,var(--accent)); border-radius: 14px; background: var(--card-2); }
.page-single .prose .audience-lines li::before { display:none; }
.page-single .prose .audience-lines li span { font-size: 15px; line-height: 1.5; }

.page-single .proscons { align-items: start; gap: 18px; }
.page-single .proscons > div { align-self: start; padding: 22px 24px 24px; }
.page-single .proscons h3 { font-size: 18px !important; }
.page-single .proscons ul li { font-size: 15px; line-height: 1.6; }

.page-single .faq { margin-top: 24px !important; }
.page-single .faq summary { min-height: 64px; font-size: 17px; }
.page-single .faq summary .icon { transition: transform .25s var(--ease); }
.page-single .faq details[open] summary .icon { transform: rotate(180deg); }
.page-single .faq details p { font-size: 16px; line-height: 1.65; }

.page-single .comments { max-width: 860px; }
.page-single .comments__head h2 { font-size: 30px; }
.page-single .seg button { font-size: 14px; }

.image-lightbox { width: min(94vw, 1500px); max-width: none; max-height: 92vh; margin: auto; padding: 0; border: 0; border-radius: 18px; background: var(--card); box-shadow: var(--shadow-lg); overflow: visible; }
.image-lightbox::backdrop { background: rgba(22,20,29,.78); backdrop-filter: blur(4px); }
.image-lightbox img { display: block; max-width: 100%; max-height: 88vh; margin: auto; border-radius: 18px; }
.image-lightbox__close { position: absolute; right: -14px; top: -14px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; background: var(--card); color: var(--text); box-shadow: var(--shadow-md); font-size: 28px; line-height: 1; }

@media (max-width: 1100px) {
  .page-single .entry-head { grid-template-columns: minmax(0,1fr) 360px; gap: 36px; }
  .page-single .entry-body { grid-template-columns: minmax(0,1fr) 230px; gap: 44px; }
}
@media (max-width: 920px) {
  .page-single .entry-head { grid-template-columns: 1fr; }
  .page-single .entry-body { grid-template-columns: 1fr; gap: 0; }
  .page-single .rail { display: none; }
  .page-single .toc-mobile { display: block; }
  .page-single .stage__plate { padding: 36px 28px 0; }
}
@media (max-width: 680px) {
  .page-single .entry-lead { font-size: 18px; }
  .page-single .stage { margin-top: 40px; margin-inline: calc(var(--pad) * -1); }
  .page-single .stage__plate { padding: 18px 12px 0; border-radius: 0; }
  .page-single .browser { border-radius: 12px 12px 0 0; }
  .page-single .stage__foot { padding: 0 var(--pad); }
  .page-single .prose .feature-lines,
  .page-single .prose .audience-lines,
  .page-single .proscons { grid-template-columns: 1fr; }
  .page-single .prose .feature-lines li { min-height: 0; }
  .image-lightbox { width: 96vw; }
  .image-lightbox__close { right: 6px; top: 6px; }
}


/* ---------- 8.2 Fixes 2.0.2 ---------- */
/* Подробное описание тарифов живёт на single, а компактные карточки показывают только статус. */
.card .spec__note, .daycard .spec__note { display: none !important; }
.card .spec__row dd, .daycard .spec__row dd { min-width: 0; }
.card .badge, .daycard .badge { max-width: 100%; }

/* При небольшом числе заполненных категорий не растягиваем ленту нулевыми разделами. */
.catnav__rail:has(.ctab:nth-child(-n+4)) { -webkit-mask-image: none; mask-image: none; padding-right: 0; }

/* Single: плотнее связываем вводный блок со скриншотом. */
.page-single .stage { margin-top: 48px; }
.page-single .entry-head { align-items: start; }
.page-single .passport .spec__row dd { min-width: 0; }

@media (max-width: 680px) {
  .page-single .stage { margin-top: 32px; }
}


/* AI-Pedia 2.0.3: доступ, категории, бренд */
.access-badge, .access-info { position: relative; }
.access-badge[data-tip] { cursor: help; }
.access-badge[data-tip]::after, .access-info[data-tip]::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 10px); z-index: 120; width: max-content; max-width: min(300px, 78vw); padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--text); color: var(--bg); box-shadow: var(--shadow-md); font-size: 12px; font-weight: 600; line-height: 1.45; white-space: normal; text-align: left; transform: translate(-50%, 4px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s; }
.access-badge[data-tip]:hover::after, .access-badge[data-tip]:focus-visible::after, .access-info[data-tip]:hover::after, .access-info[data-tip]:focus-visible::after { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.access-info { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 5px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--text-soft); font-size: 11px; font-weight: 800; cursor: help; }
.spec__row--cats { align-items: flex-start; }
.passport-cats { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; max-width: 70%; }
.passport-cats a { padding: 5px 8px; border-radius: 8px; background: var(--bg-soft); color: var(--text); font-size: 12px; font-weight: 700; line-height: 1.2; }
.passport-cats a:hover { background: var(--cs, var(--blue-soft)); }
@media (max-width: 760px) { .logo__image { width: 138px; max-height: 34px; } .passport-cats { max-width: 72%; } }

.access-legend { max-width: 250px; margin: 0 0 8px; padding: 8px 9px; border-radius: 8px; background: var(--bg-soft); color: var(--text-soft); font-size: 12px; line-height: 1.4; }


/* ---------- 2.0.5 SEO-контент каталога ---------- */
.seo-catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(34px, 5vw, 76px);
  margin-top: clamp(18px, 3vw, 40px);
  padding-top: clamp(34px, 5vw, 64px);
  padding-bottom: clamp(10px, 2vw, 24px);
  border-top: 1px solid var(--line);
}
.seo-catalog__item {
  max-width: 620px;
}
.seo-catalog__item h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.02em;
}
.seo-catalog__item p {
  margin: 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.75;
}
.site-footer__brand .logo__image { width: 156px; max-height: 38px; }
@media (max-width: 900px) {
  .seo-catalog {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .seo-catalog__item { max-width: 760px; }
}
@media (max-width: 760px) {
  .seo-catalog {
    margin-top: 10px;
    padding-top: 30px;
    gap: 26px;
  }
  .seo-catalog__item h2 { margin-bottom: 10px; font-size: 22px; }
  .seo-catalog__item p { font-size: 15px; line-height: 1.72; }
}


/* ---------- 2.0.6 Fact-first content blocks ---------- */
.page-single .important-box {
  margin: 30px 0 34px;
  padding: 22px 24px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-soft);
}
.page-single .important-box h2 { margin: 0 0 14px !important; font-size: 22px !important; }
.page-single .important-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.page-single .important-box li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 15px; line-height: 1.55; }
.page-single .important-box li .icon { margin-top: 3px; color: var(--accent); }
.page-single .source-box { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.page-single .source-box__head { display: flex; gap: 16px; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.page-single .source-box__head h2 { margin: 0 !important; font-size: 22px !important; }
.page-single .source-box__head span { color: var(--text-soft); font-size: 13px; font-weight: 700; }
.page-single .source-box ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.page-single .source-box li { margin: 0 !important; }
.page-single .source-box a { display: grid; grid-template-columns: minmax(0,1fr) auto 18px; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.page-single .source-box a span { font-size: 15px; font-weight: 800; }
.page-single .source-box a small { color: var(--text-soft); font-size: 12px; }
.page-single .source-box a:hover span { color: var(--accent); }
@media (max-width: 640px) {
  .page-single .important-box { padding: 18px; margin: 24px 0 28px; }
  .page-single .source-box__head { display: block; }
  .page-single .source-box__head span { display: block; margin-top: 4px; }
  .page-single .source-box a { grid-template-columns: 1fr 18px; }
  .page-single .source-box a small { grid-column: 1 / 2; grid-row: 2; }
  .page-single .source-box a .icon { grid-column: 2; grid-row: 1 / span 2; }
}

/* 2.0.8: simplified service passport */
.page-single .passport-spec { margin-bottom: 18px; }
.page-single .passport-platforms { justify-content: flex-end; margin: 0; gap: 7px; flex-wrap: wrap; }
.page-single .passport-platforms span { font-size: 13px; }
@media (max-width:760px){.page-single .passport-platforms{justify-content:flex-start}.page-single .passport-spec .spec__row{align-items:flex-start}}

/* ---------- 2.0.9: catalog filter + service passport cleanup ---------- */
/* Dropdowns are menus, not flowing text. */
.toolbar__controls .dd__panel {
  width: max-content;
  min-width: 250px;
  max-width: min(340px, calc(100vw - 32px));
  padding: 10px;
}
.toolbar__controls .dd[data-dd="plats"] .dd__panel { min-width: 290px; }
.toolbar__controls .dd[data-dd="extra"] .dd__panel { min-width: 290px; }
.toolbar__controls .dd[data-dd="sort"] .dd__panel { min-width: 230px; }
.toolbar__controls .dd__panel > .opt {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  gap: 9px;
  line-height: 1.25;
  white-space: normal;
}
.toolbar__controls .dd__panel > .opt input[type="checkbox"],
.toolbar__controls .dd__panel > .opt input[type="radio"] {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--blue);
}
.toolbar__controls .dd__panel > .opt + .opt { margin-top: 2px; }
.toolbar__controls .access-legend {
  margin: 0 0 7px;
  padding: 9px 10px;
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
}

/* Passport: reserve real space for the label and never let platform chips overlap it. */
.page-single .passport { padding: 24px 28px 26px; }
.page-single .passport-spec {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}
.page-single .passport-spec .spec__row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  min-height: 32px;
}
.page-single .passport-spec .spec__row dt {
  display: block;
  padding-top: 5px;
  white-space: nowrap;
  line-height: 1.3;
}
.page-single .passport-spec .spec__row dt::after { display: none; }
.page-single .passport-spec .spec__row dd {
  min-width: 0;
  width: 100%;
  justify-content: flex-end;
  text-align: right;
}
.page-single .passport-platforms {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
}
.page-single .passport-platforms span {
  flex: 0 0 auto;
  height: 30px;
  padding-inline: 10px;
  white-space: nowrap;
}
.page-single .passport .cta-main { margin-top: 4px; }
.page-single .passport__actions { margin-top: 8px; }
.page-single .passport__note { margin-top: 14px; font-size: 13px; line-height: 1.45; }

@media (max-width: 1050px) {
  .toolbar__controls .dd__panel { max-width: min(320px, calc(100vw - 24px)); }
}
@media (max-width: 760px) {
  .page-single .passport { padding: 22px 20px 22px; }
  .page-single .passport-spec .spec__row {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .page-single .passport-spec .spec__row dt { padding-top: 0; }
  .page-single .passport-spec .spec__row dd { justify-content: flex-start; text-align: left; }
  .page-single .passport-platforms { justify-content: flex-start; }
}

/* ---------- 2.0.11: isolated comments UI ---------- */
/* 2.0.11: WordPress adds the class .comment to the LI itself.
   The theme also has a legacy .comment grid rule, so the LI must be reset
   or the whole comment collapses into the 44px avatar column. */
.aipedia-comments-area li.aipedia-comment.comment {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  position: relative;
}

.aipedia-comments-area li.aipedia-comment.comment + li.aipedia-comment.comment {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: 0 !important;
}

.aipedia-comments-area .aipedia-comment-card {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

.page-single #comments .comments {
  max-width: 920px;
}

.page-single #comments .comments__head {
  margin-bottom: 24px;
}

.page-single #comments .comments__head .h2 {
  margin: 0;
}

.aipedia-comments-area {
  width: 100%;
}

.aipedia-comments-area .comment-list,
.aipedia-comments-area .comment-list .children {
  list-style: none;
  margin: 0;
  padding: 0;
}

.aipedia-comments-area .comment-list {
  display: grid;
  gap: 14px;
  margin-bottom: 30px;
}

.aipedia-comments-area .aipedia-comment {
  width: 100%;
  margin: 0;
}

.aipedia-comments-area .aipedia-comment + .aipedia-comment {
  margin: 0;
  padding: 0;
  border: 0;
}

/* Intentionally highly scoped: parent Reboot has its own .comment styles. */
.aipedia-comments-area .aipedia-comment > .aipedia-comment-card {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  margin: 0 !important;
  padding: 18px 20px;
  display: grid !important;
  grid-template-columns: 46px minmax(0, 1fr) !important;
  align-items: start;
  gap: 14px;
  float: none !important;
  position: static;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.aipedia-comments-area .aipedia-comment .avatar {
  box-sizing: border-box;
  width: 46px !important;
  height: 46px !important;
  min-width: 46px;
  margin: 0 !important;
  padding: 0;
  float: none !important;
  border: 0;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--pink-soft);
  color: var(--pink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.aipedia-comments-area .comment__main {
  width: 100%;
  min-width: 0;
}

.aipedia-comments-area .comment__head {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  min-height: 24px;
  margin: 0;
  padding: 0;
}

.aipedia-comments-area .comment__author,
.aipedia-comments-area .comment__author a {
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
}

.aipedia-comments-area .comment__head time {
  display: inline-block;
  white-space: nowrap;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.aipedia-comments-area .comment__text {
  width: 100%;
  max-width: none;
  margin: 8px 0 0;
  padding: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.aipedia-comments-area .comment__text p {
  width: auto !important;
  max-width: none !important;
  margin: 0;
  padding: 0;
}

.aipedia-comments-area .comment__text p + p {
  margin-top: 8px;
}

.aipedia-comments-area .comment__actions {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  margin: 10px 0 -4px -8px;
  padding: 0;
}

.aipedia-comments-area .comment__actions .cbtn,
.aipedia-comments-area .comment__actions .comment-reply-link,
.aipedia-comments-area .comment__actions .comment-edit-link {
  min-height: 34px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-soft);
  font: 700 14px/1 Nunito, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.aipedia-comments-area .comment__actions .cbtn:hover,
.aipedia-comments-area .comment__actions .comment-reply-link:hover,
.aipedia-comments-area .comment__actions .comment-edit-link:hover {
  background: var(--bg-soft);
  color: var(--text);
}

.aipedia-comments-area .comment-list .children {
  display: grid;
  gap: 12px;
  margin: 12px 0 0 38px;
  padding-left: 14px;
  border-left: 2px solid var(--line);
}

.aipedia-comments-area .comment-list .children .aipedia-comment > .aipedia-comment-card {
  grid-template-columns: 38px minmax(0, 1fr) !important;
  padding: 15px 16px;
  border-radius: 16px;
}

.aipedia-comments-area .comment-list .children .avatar {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px;
  border-radius: 12px;
  font-size: 13px;
}

/* WordPress native form, restyled as an AI-Pedia card. */
.aipedia-comments-area .comment-respond {
  box-sizing: border-box;
  width: 100%;
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.aipedia-comments-area .comment-reply-title {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 23px;
  font-weight: 900;
  line-height: 1.25;
}

.aipedia-comments-area .logged-in-as,
.aipedia-comments-area .comment-notes,
.aipedia-comments-area .field__hint {
  margin: 0 0 16px !important;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.55;
}

.aipedia-comments-area .logged-in-as a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.aipedia-comments-area .comment-form {
  display: grid;
  gap: 14px;
}

.aipedia-comments-area .comment-form p {
  margin: 0;
}

.aipedia-comments-area .comment-form label {
  display: block;
  margin: 0 0 7px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.aipedia-comments-area .comment-form textarea,
.aipedia-comments-area .comment-form input[type="text"],
.aipedia-comments-area .comment-form input[type="email"],
.aipedia-comments-area .comment-form input[type="url"] {
  box-sizing: border-box;
  width: 100% !important;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  outline: none;
  background: var(--bg);
  color: var(--text);
  border-radius: 14px;
  padding: 13px 14px;
  font: 600 15px/1.55 Nunito, sans-serif;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}

.aipedia-comments-area .comment-form textarea {
  min-height: 132px;
  resize: vertical;
}

.aipedia-comments-area .comment-form textarea:focus,
.aipedia-comments-area .comment-form input:focus {
  border-color: color-mix(in srgb, var(--blue) 50%, var(--line));
  background: var(--card);
  box-shadow: 0 0 0 4px var(--blue-soft);
}

.aipedia-comments-area .comment-form textarea::placeholder,
.aipedia-comments-area .comment-form input::placeholder {
  color: var(--text-3);
  opacity: 1;
}

.aipedia-comments-area .form-submit {
  padding-top: 2px;
}

.aipedia-comments-area .form-submit .submit,
.aipedia-comments-area .form-submit input[type="submit"] {
  width: auto !important;
  min-height: 44px;
  margin: 0;
  padding: 0 20px;
  border: 0;
  border-radius: 13px;
  background: var(--blue);
  color: #fff;
  font: 800 15px/1 Nunito, sans-serif;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(91, 141, 239, .18);
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
}

.aipedia-comments-area .form-submit .submit:hover,
.aipedia-comments-area .form-submit input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(91, 141, 239, .24);
}

.aipedia-comments-area .comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-soft);
  font-size: 13px;
}

.aipedia-comments-area .comment-form-cookies-consent label {
  margin: 0;
  font-weight: 600;
}

.aipedia-comments-area .navigation {
  margin: 18px 0 24px;
}

@media (max-width: 759px) {
  .page-single #comments .comments__head {
    align-items: flex-start;
  }

  .aipedia-comments-area .aipedia-comment > .aipedia-comment-card {
    grid-template-columns: 40px minmax(0, 1fr) !important;
    gap: 11px;
    padding: 15px;
    border-radius: 16px;
  }

  .aipedia-comments-area .aipedia-comment .avatar {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px;
    border-radius: 12px;
  }

  .aipedia-comments-area .comment-list .children {
    margin-left: 18px;
    padding-left: 10px;
  }

  .aipedia-comments-area .comment-respond {
    padding: 17px;
    border-radius: 17px;
  }

  .aipedia-comments-area .comment-reply-title {
    font-size: 21px;
  }
}


/* 2.1.2: white header matched to approved Claude prototype, existing functions preserved */
.site-header{background:#fff;border-bottom:1px solid var(--line);transition:border-color .2s var(--ease),background-color .3s var(--ease)}
[data-theme="dark"] .site-header{background:var(--card)}
.site-header.is-scrolled{border-bottom-color:var(--line)}
.site-header__inner{height:68px;gap:28px}
.logo__image{width:156px;max-height:38px}
.nav{gap:4px}
.nav a{padding:8px 14px;border-radius:10px;font-size:15px;font-weight:700;color:var(--text-soft)}
.nav a:hover{color:var(--text);background:var(--bg-soft)}
.nav a[aria-current="page"]{color:var(--text)}
.nav a[aria-current="page"]::after{display:none}
.hsearch{height:40px;border-radius:12px;background:var(--bg-soft);border:0;max-width:300px;padding:0 10px 0 14px}
.hsearch:hover{border:0;box-shadow:none;background:var(--blue-soft)}
.hsearch kbd{background:var(--card)}
.site-header__actions{gap:8px}
.icon-btn{width:40px;height:40px;border-radius:12px}
.header-add{height:40px;border-radius:12px}
@media(max-width:1180px){.site-header__inner{gap:16px}.nav a{padding-inline:10px}.hsearch{max-width:240px}}
@media(max-width:1000px){.nav{display:none}.hsearch{margin-left:auto}.site-header__actions{margin-left:0}}
@media(max-width:782px){.site-header__inner{height:60px;gap:12px}.logo__image{width:132px;max-height:34px}}

/* 3.6.5: правовые ссылки в подвале */
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 13px; font-weight: 600; }
.site-footer__legal a, .site-footer__cookie { color: var(--meta, var(--text-soft)); text-decoration: none; }
.site-footer__legal a:hover, .site-footer__cookie:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__cookie { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
