/* ════════════════════════════════════════════════════════════════
   1001site.com — дизайн-система лендинга (v5.6.1).
   Тёмная тема по умолчанию (+ светлая по prefers-color-scheme / html[data-theme]), токены и компоненты 1:1 по мотивам styles.каталог референсов.design:
   фон #101216, карточки #181a20, границы rgba(222,210,241,.075),
   приглушённый текст rgba(209,219,255,.7), display-антиква + Inter.
   Страницы: index.html (каталог) и style.html (страница стиля).
   ════════════════════════════════════════════════════════════════ */

:root {
  --bg: #101216;
  --card: #181a20;
  --muted: #1f222a;
  --muted-2: #262933;
  --border: rgba(222, 210, 241, 0.075);
  --border-2: rgba(222, 210, 241, 0.14);
  --border-3: rgba(222, 210, 241, 0.24);
  --fg: #ffffff;
  --fg-muted: rgba(209, 219, 255, 0.7);
  --fg-faint: rgba(209, 219, 255, 0.45);
  --primary: #ffffff;
  --primary-fg: #101216;
  --ok: #10b981;
  --no: #ef4444;
  --focus: rgba(255, 255, 255, 0.25);
  --hover: rgba(255, 255, 255, 0.03);
  --pre-bg: #0c0d11;
  --overlay: rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
  --shadow-fab: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.1);
  --badge-bg: rgba(16, 18, 22, 0.75);
  --err: #fca5a5;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --r-lg: 8px; --r-xl: 12px; --r-2xl: 16px; --r-3xl: 24px; --r-4xl: 32px;
  --wrap: 1600px;
  --hdr-h: 101px;          /* белая шапка как на 1001site.com */
  --dock-h: 56px;          /* липкая полоска футера снизу */
  --font-ui: 'Manrope', 'Inter', system-ui, sans-serif;
  color-scheme: dark;
}
/* Светлая тема (v5.6.1): по умолчанию — как в браузере (prefers-color-scheme), явный выбор — html[data-theme] из localStorage site_theme.
   Шапка (белая карточка + тёмная полоса контактов) одинакова в обеих темах — это копия 1001site.com. */
:root[data-theme="light"] {
  --bg: #f5f6f8;
  --card: #ffffff;
  --muted: #eceef2;
  --muted-2: #e1e4ea;
  --border: rgba(20, 24, 40, 0.08);
  --border-2: rgba(20, 24, 40, 0.14);
  --border-3: rgba(20, 24, 40, 0.24);
  --fg: #101216;
  --fg-muted: rgba(30, 36, 60, 0.68);
  --fg-faint: rgba(30, 36, 60, 0.45);
  --primary: #101216;
  --primary-fg: #ffffff;
  --focus: rgba(16, 18, 22, 0.25);
  --hover: rgba(16, 18, 22, 0.035);
  --pre-bg: #f0f2f5;
  --overlay: rgba(16, 18, 22, 0.45);
  --shadow-lg: 0 20px 40px rgba(16, 18, 22, 0.14);
  --shadow-fab: 0 12px 32px rgba(16, 18, 22, 0.22), 0 0 0 1px rgba(16, 18, 22, 0.06);
  --badge-bg: rgba(255, 255, 255, 0.85);
  --err: #dc2626;
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f5f6f8;
    --card: #ffffff;
    --muted: #eceef2;
    --muted-2: #e1e4ea;
    --border: rgba(20, 24, 40, 0.08);
    --border-2: rgba(20, 24, 40, 0.14);
    --border-3: rgba(20, 24, 40, 0.24);
    --fg: #101216;
    --fg-muted: rgba(30, 36, 60, 0.68);
    --fg-faint: rgba(30, 36, 60, 0.45);
    --primary: #101216;
    --primary-fg: #ffffff;
    --focus: rgba(16, 18, 22, 0.25);
    --hover: rgba(16, 18, 22, 0.035);
    --pre-bg: #f0f2f5;
    --overlay: rgba(16, 18, 22, 0.45);
    --shadow-lg: 0 20px 40px rgba(16, 18, 22, 0.14);
    --shadow-fab: 0 12px 32px rgba(16, 18, 22, 0.22), 0 0 0 1px rgba(16, 18, 22, 0.06);
    --badge-bg: rgba(255, 255, 255, 0.85);
    --err: #dc2626;
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: 16px; line-height: 1.5; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: 16px; }
@media (min-width: 640px) { .wrap { padding-inline: 24px; } }
@media (min-width: 1280px) { .wrap { padding-inline: 32px; } }

/* ── Верхняя полоса + шапка — копия 1001site.com (top-bar #333 r15 h39; header белый r0 0 25 25, тень, h101) ── */
.topbar {
  margin: 8px 40px 0; height: 39px; border-radius: 15px; background: #333333; color: #f5f5f5;
  display: flex; align-items: center; justify-content: space-between; padding: 0 40px;
  font-family: var(--font-ui); font-size: 14px; font-weight: 500;
}
.topbar__contact a { color: #ffffff; }
.topbar__contact a:hover { text-decoration: underline; }
.topbar__socials { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 22px; }
.topbar__socials a { display: inline-flex; width: 14px; height: 14px; color: #ffffff; opacity: .95; transition: opacity .15s; }
.topbar__socials a:hover { opacity: .7; }
.topbar__socials svg { width: 14px; height: 14px; }
.hdr {
  position: sticky; top: 0; z-index: 50;
  margin: 0 40px; background: #ffffff; color: #333333; border-radius: 0 0 25px 25px;
  box-shadow: 0 5px 23px 4px rgba(0, 0, 0, 0.1);
  font-family: var(--font-ui);
}
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--hdr-h); min-width: 0; padding: 0 40px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; transition: opacity .15s; color: #333333; }
.brand:hover { opacity: .75; }
.brand__mark { width: 56px; height: 28px; display: block; color: inherit; flex-shrink: 0; }   /* знак «Ai» (символ #brand-mark) */
/* надпись «1001site AI» с сайта заказчика (символ #brand-wordmark, tools/wordmark.mjs): цвет от CSS — белая в тёмной теме, чёрная в светлой */
.wordmark { display: block; height: 40px; width: auto; aspect-ratio: 614 / 120; color: var(--fg); flex-shrink: 0; }
.hero__brand { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 20px; }
.wordmark--hero { height: 44px; }
@media (max-width: 639px) { .wordmark--hero { height: 32px; } .dock__toggle .wordmark--dock { height: 24px; } }
.ftr .brand { color: var(--fg); }
.crumbs { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; font-size: 15px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: #333333; }
.crumbs__sep { flex-shrink: 0; color: #9a9a9a; }
.crumbs__link { flex-shrink: 0; transition: opacity .15s; }
.crumbs__link:hover { opacity: .6; }
.crumbs__cur { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: none; font-weight: 500; }
.hdr__right { display: flex; align-items: center; gap: 22px; flex-shrink: 0; margin-left: auto; }   /* v6.0.2: правая группа прижата вправо — блок разработчика остаётся у логотипа */
.hdr__icon { width: 24px; height: 24px; color: #333333; display: inline-flex; align-items: center; justify-content: center; transition: opacity .15s; }
.hdr__icon svg { width: 22px; height: 22px; }
.hdr__icon:hover { opacity: .6; }
.btn-order {
  display: inline-flex; align-items: center; justify-content: center; line-height: 1; text-decoration: none;   /* v6.1.1: <a> вместо <button> — текст по центру пилюли */
  height: 52px; padding: 0 30px; border-radius: 9999px; border: 2px solid #e0342c; color: #111111; background: transparent;
  font-family: var(--font-ui); font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  transition: background-color .15s, color .15s;
}
.btn-order:hover { background: #e0342c; color: #ffffff; }
.hdr__menu {
  position: absolute; right: 40px; top: calc(100% - 12px); min-width: 240px; padding: 10px; border-radius: 18px;
  background: #ffffff; color: #111111; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18); display: flex; flex-direction: column;
}
.hdr__menu[hidden] { display: none; }
.hdr__menu a { padding: 12px 16px; border-radius: 12px; font-size: 15px; font-weight: 600; color: #111111; }
.hdr__menu a:hover { background: #f2f2f2; }
.hdr__prefs { margin-top: 6px; padding-top: 10px; border-top: 1px solid #ececec; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.hdr__menu .hdr__menu-cab { margin-top: 10px; height: 46px; padding: 0 18px; border-radius: 999px; background: #111111; color: #ffffff; display: flex; align-items: center; justify-content: center; font-size: 14px; letter-spacing: .02em; transition: background-color .15s; }   /* v6.2.3: «Войти в кабинет» — кнопка в конце меню (заказчик) */
.hdr__menu .hdr__menu-cab:hover { background: #333333; color: #ffffff; }
.theme { display: inline-flex; padding: 3px; border-radius: 999px; background: #f2f2f2; }
.theme__btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #666666; transition: background-color .15s, color .15s; }
.theme__btn svg { width: 16px; height: 16px; }
.theme__btn:hover { color: #111111; }
.theme__btn[aria-checked="true"] { background: #ffffff; color: #111111; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }
.lang-btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid #e3e3e3; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: #111111; transition: background-color .15s; }
.lang-btn:hover { background: #f2f2f2; }
.lang-btn__flag { font-size: 16px; line-height: 1; }
.lang-btn__chev { width: 14px; height: 14px; opacity: .5; }
@media (max-width: 1023px) { .crumbs { display: none; } }
/* v6.0.2: разработчик в шапке — фото + подпись без рамки, сразу после логотипа (ссылка в Telegram); <1280 — без второй строки, <1024 — только фото */
.author { display: inline-flex; align-items: center; gap: 12px; flex: none; min-width: 0; max-width: 470px; margin-left: 8px; color: #333333; text-decoration: none; }
.author__pic { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2px #ffffff, 0 0 0 3px rgba(0, 0, 0, .08); transition: box-shadow .2s; }
.author__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-family: var(--font-ui); }
.author__name { display: flex; align-items: baseline; gap: 8px; font-size: 14px; font-weight: 700; letter-spacing: -.01em; color: #111111; white-space: nowrap; }
.author__name em { font-style: normal; font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #9a9a9a; }
.author__line { font-size: 12.5px; line-height: 1.3; color: #666666; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.author__cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 12px; font-weight: 600; white-space: nowrap; }
.author__cta a, .acard__act a { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }
.author__cta a:hover, .acard__act a:hover { text-decoration: underline; text-underline-offset: 3px; }
.author__cta svg, .acard__act svg { width: 13px; height: 13px; }
.author__tg { color: #229ED9; }   /* v6.1.0: цвета мессенджеров (заказчик) */
.author__wa { color: #25D366; }
.author__pic-link { display: block; flex: none; line-height: 0; }
.author__pic-link:hover .author__pic { box-shadow: 0 0 0 2px #ffffff, 0 0 0 3px #229ED9; }
.author + .crumbs { margin-left: 18px; padding-left: 18px; border-left: 1px solid #ececec; }
@media (max-width: 1279px) { .author__line { display: none; } .author { max-width: 320px; } }
@media (max-width: 1023px) { .author { margin-left: 4px; } .author__txt { display: none; } .author__pic { width: 40px; height: 40px; } }
@media (max-width: 639px) { .author__pic { width: 34px; height: 34px; } }
@media (max-width: 639px) {
  :root { --hdr-h: 64px; --dock-h: 48px; }
  .topbar { margin: 8px 12px 0; padding: 0 16px; height: 34px; font-size: 12px; }
  .topbar__socials { gap: 14px; }
  .hdr { margin: 0 12px; border-radius: 0 0 18px 18px; }
  .hdr__in { padding: 0 16px; gap: 12px; }
  .hdr__right { gap: 12px; }
  .hdr__icon[data-search] { display: none; }
  .btn-order { height: 40px; padding: 0 16px; font-size: 12px; }
  .hdr__menu { right: 12px; left: 12px; }
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero { padding: 56px 16px 32px; text-align: center; }
@media (min-width: 1024px) { .hero { padding-top: 88px; } }
.badge {
  display: inline-flex; align-items: center; justify-content: center; height: 28px; padding: 4px 12px;
  border-radius: 999px; border: 1px solid var(--border-2); font-size: 13px; font-weight: 400; color: var(--fg-muted);
}
.display {
  /* v6.2.4: заголовок — Manrope 800 (var(--font-ui)) вместо антиквы Playfair: современный гротеск, единый со шрифтом шапки;
     покрытие Latin Extended (чешский, польский, словацкий…), кириллица, греческий, вьетнамский — под перевод; для арабского/иврита/тайского/CJK
     сработает системный запасной шрифт из стека var(--font-ui) */
  font-family: var(--font-ui); font-weight: 800; letter-spacing: -0.025em;
  font-size: clamp(32px, 4.2vw, 60px); line-height: 1.08; margin: 22px auto 0; max-width: 24ch; text-wrap: balance;
}
.hero__sub { max-width: 720px; margin: 20px auto 0; font-size: 16px; line-height: 25px; color: var(--fg-muted); font-weight: 400; text-wrap: pretty; }   /* v6.2.4: текст длиннее — шире колонка, без «висячих» слов */

/* ── Поиск + чипы ────────────────────────────────────────────── */
.search { width: 100%; max-width: 640px; margin: 40px auto 0; text-align: left; }
.search__box {
  display: flex; align-items: center; gap: 8px; height: 60px; border-radius: var(--r-2xl);
  border: 1px solid var(--border-2); background: var(--card); padding: 7px 7px 7px 16px;
  transition: border-color .15s;
}
@media (min-width: 640px) { .search__box { padding-left: 20px; } }
.search__box:focus-within { border-color: var(--focus); }
.search__input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: none; font-size: 16px; }
.search__input::placeholder { color: var(--fg-faint); }
.search__btn {
  height: 44px; min-width: 92px; padding: 0 20px; border-radius: var(--r-lg);
  background: var(--primary); color: var(--primary-fg); font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: opacity .15s, transform .1s;
}
.search__btn:hover { opacity: .9; }
.search__btn:active { transform: translateY(1px); }
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
@media (min-width: 640px) { .chips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .chips { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.chip {
  height: 40px; width: 100%; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--card); color: var(--fg-muted); font-size: 14px; font-weight: 500; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  transition: background-color .15s, color .15s, border-color .15s;
}
.chip > span { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.chip:hover { border-color: var(--border-2); background: var(--muted); color: var(--fg); }
.chip.is-on { background: var(--muted-2); color: var(--fg); border-color: var(--border-3); }
.hero__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; margin-top: 22px; }
.hero__links a, .hero__links button { font-size: 14px; font-weight: 500; color: var(--fg-muted); height: 48px; display: inline-flex; align-items: center; transition: color .15s; }
.hero__links a:hover, .hero__links button:hover { color: var(--fg); }

/* ── Вкладки (pill) ──────────────────────────────────────────── */
.feed { padding: 32px 0 64px; scroll-margin-top: var(--hdr-h); }   /* v6.2.2: прокрутка к ленте (меню Лендинги/Сайты/Магазины, чипы, поиск) останавливается ПОД липкой шапкой — вкладки не прячутся за ней */
.feed__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.tabs { display: inline-flex; align-items: center; gap: 8px; height: 40px; flex-wrap: wrap; }
.tab {
  height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg); color: var(--fg-muted); font-size: 14px; font-weight: 500; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background-color .15s, color .15s, border-color .15s;
}
.tab:hover { color: var(--fg); }
.tab[aria-selected="true"] { background: var(--card); color: var(--fg); font-weight: 600; }
.tab--link svg { width: 14px; height: 14px; opacity: .55; }   /* v6.2.2: ссылка в ряду вкладок («Коммерческие агенты» → comag.vibevox.pro) — стрелка «наружу» */
.tab--link:hover svg { opacity: 1; }
.feed__count { font-size: 13px; color: var(--fg-faint); }

/* ── Сетка карточек (1:1 с каталогом референсов) ─────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); column-gap: 16px; row-gap: 32px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid { column-gap: 24px; row-gap: 40px; } }
@media (min-width: 1280px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; } }

.card { position: relative; border-radius: var(--r-4xl); }
.card__link { display: block; border-radius: var(--r-4xl); outline: none; }
.card__link:focus-visible { box-shadow: 0 0 0 3px var(--focus); }
.card__box {
  background: var(--card); overflow: hidden; border-radius: var(--r-4xl); padding: 32px;
  transition: background-color .2s;
}
@media (min-width: 640px) { .card__box { padding: 40px; } }
@media (min-width: 1280px) { .card__box { padding: 48px; } }
.card:hover .card__box { background: var(--muted); }
.card__frame {
  position: relative; aspect-ratio: 16 / 10; width: 100%; overflow: hidden; border-radius: var(--r-lg);
  border: 1px solid var(--border); background: var(--card); transition: transform .3s;
}
.card:hover .card__frame { transform: scale(1.02); }
.card__media { position: absolute; inset: 0; overflow: hidden; background: var(--card); }
.card__poster, .card__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.card__video { opacity: 0; transition: opacity .5s ease-in-out; background: var(--card); }
.card__video.is-playing { opacity: 1; }
.card__meta { display: flex; align-items: flex-start; gap: 8px; padding-top: 8px; }
.card__fav { width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--r-lg); background: var(--card); object-fit: cover; }
.card__fav--txt { display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 20px; color: var(--fg); border: 1px solid var(--border-2); }
.card__text { min-width: 0; padding-bottom: 4px; }
.card__title { font-size: 20px; font-weight: 600; line-height: 28px; letter-spacing: -0.01em; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: -4px; }
.card__tag { font-size: 13px; font-weight: 500; color: var(--fg-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* компактная карточка («Похожие стили») */
.card--sm, .card--sm .card__link, .card--sm .card__box { border-radius: var(--r-2xl); }
.card--sm .card__box { padding: 12px; }
@media (min-width: 640px) { .card--sm .card__box { padding: 16px; } }

/* ── CSS-макет страницы в токенах стиля (когда нет постера/видео) ─ */
.mock {
  position: absolute; inset: 0; overflow: hidden; container-type: size;
  background: var(--m-bg); color: var(--m-fg);
  font-family: var(--m-font, var(--font-body));
  --m-r: 1.2cqw;
}
.mock[data-radius="pill"] { --m-r: 99cqw; }
.mock[data-radius="sm"] { --m-r: 0.35cqw; }
.mock[data-font="serif"] { --m-font: 'Playfair Display', Georgia, serif; }
.mock__page { position: absolute; left: 0; top: 0; width: 100%; transition: transform 7s linear; }
.card:hover .mock__page, .preview:hover .mock__page { transform: translateY(-47%); }
.mock__nav { display: flex; align-items: center; gap: 3cqw; height: 7cqw; padding: 0 5cqw; border-bottom: 0.15cqw solid color-mix(in srgb, var(--m-fg) 12%, transparent); }
.mock__logo { width: 5cqw; height: 2.2cqw; border-radius: 0.4cqw; background: var(--m-fg); }
.mock__nav i { width: 4cqw; height: 1cqw; border-radius: 0.3cqw; background: var(--m-fg); opacity: .45; }
.mock__nav b { margin-left: auto; width: 9cqw; height: 3.6cqw; border-radius: var(--m-r); background: var(--m-accent); }
.mock__hero { padding: 8cqw 8cqw 6cqw; text-align: center; }
.mock__title { display: block; font-size: 5.4cqw; font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; margin: 0 auto; max-width: 80cqw; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mock[data-font="serif"] .mock__title { font-weight: 400; }
.mock__sub { display: block; margin: 1.8cqw auto 0; font-size: 1.9cqw; line-height: 1.4; opacity: .6; max-width: 56cqw; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mock__btns { display: flex; justify-content: center; gap: 1.6cqw; margin-top: 3.2cqw; }
.mock__btns em { display: block; width: 12cqw; height: 4cqw; border-radius: var(--m-r); background: var(--m-accent); }
.mock__btns em.ghost { background: transparent; border: 0.2cqw solid color-mix(in srgb, var(--m-fg) 30%, transparent); }
.mock__media { margin: 0 8cqw; height: 30cqw; border-radius: calc(var(--m-r) * 1); background: var(--m-card); position: relative; overflow: hidden; border: 0.15cqw solid color-mix(in srgb, var(--m-fg) 8%, transparent); }
.mock[data-radius="pill"] .mock__media, .mock[data-radius="pill"] .mock__card { border-radius: 2cqw; }
.mock__media::before { content: ''; position: absolute; left: 10%; top: 18%; width: 46%; height: 64%; border-radius: 1.5cqw; background: color-mix(in srgb, var(--m-accent) 22%, var(--m-card)); }
.mock__media::after { content: ''; position: absolute; right: 8%; top: 28%; width: 30%; height: 44%; border-radius: 1cqw; background: color-mix(in srgb, var(--m-fg) 8%, transparent); }
.mock__cards { display: flex; gap: 2.4cqw; padding: 6cqw 8cqw 0; }
.mock__card { flex: 1; height: 24cqw; border-radius: var(--m-r); background: var(--m-card); border: 0.15cqw solid color-mix(in srgb, var(--m-fg) 8%, transparent); overflow: hidden; }
.mock__card::before { content: ''; display: block; height: 55%; background: color-mix(in srgb, var(--m-fg) 7%, transparent); }
.mock__card i { display: block; margin: 1.6cqw 1.8cqw 0; height: 1.3cqw; width: 60%; border-radius: 0.3cqw; background: var(--m-fg); opacity: .8; }
.mock__card i + i { width: 38%; opacity: .35; height: 1cqw; }
.mock__band { margin: 7cqw 0 0; height: 16cqw; background: var(--m-accent); display: flex; flex-direction: column; justify-content: center; gap: 1.4cqw; padding: 0 8cqw; }
.mock__band i { display: block; height: 1.6cqw; width: 34%; border-radius: 0.4cqw; background: #fff; opacity: .9; }
.mock__band i + i { width: 52%; height: 1cqw; opacity: .55; }
.mock__foot { height: 12cqw; padding: 3cqw 8cqw 0; display: flex; gap: 4cqw; }
.mock__foot i { display: block; width: 14cqw; height: 1cqw; border-radius: 0.3cqw; background: var(--m-fg); opacity: .3; }

/* ── v5.7.6: баннеры возможностей сервиса. Лента главной — полоса .bstrip (каждые 3 ряда, по вкладке);
   страница стиля — правая колонка .feats (режим стиля + общие). Тексты: /site/data/banners.json ── */
.bstrip { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)); gap: 16px; }
.banner { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 22px 22px 20px; border-radius: var(--r-3xl); background: var(--card); border: 1px solid var(--border); transition: border-color .2s; }
.banner:hover { border-color: var(--border-3); }
.banner__top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.banner__ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 12px; background: var(--muted); color: var(--fg); }
.banner__ico svg { width: 18px; height: 18px; }
.banner__kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.banner__mode { flex: none; margin-left: auto; height: 22px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--border-2); font-size: 11px; font-weight: 600; color: var(--fg-muted); display: inline-flex; align-items: center; white-space: nowrap; }
.banner__stat { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.banner__stat b { font-family: var(--font-display); font-size: 40px; font-weight: 400; line-height: 1; letter-spacing: -0.02em; }
.banner__stat span { font-size: 13px; color: var(--fg-muted); }
.banner__title { font-family: var(--font-display); font-size: clamp(20px, 1.8vw, 24px); font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.banner__text { font-size: 14px; line-height: 1.55; color: var(--fg-muted); }
.banner__points { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.banner__points li { font-size: 12px; line-height: 1.3; padding: 4px 9px; border-radius: 999px; background: var(--muted); color: var(--fg); }
.banner__foot { margin-top: auto; padding-top: 4px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.banner__link { font-size: 13px; font-weight: 500; color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-3); }
.banner__link:hover { text-decoration-color: currentColor; }
.banner--compact .banner__text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Вставка-панель в ленте (v5.8.7, дизайн уточнён в v5.9.0) — как hero на https://1001site.com/: картинка на всю ширину,
   «плывёт» за курсором (site/flowmap.js рисует <canvas> поверх CSS-фона), логотип + строка + заголовок (появляется по словам),
   ярлыки-вкладки: вертикально слева и горизонтально справа внизу, «вырезанные» из панели вогнутыми углами 20px (radial-gradient).
   Замеры с 1001site.com: панель radius 25, 1405×789 при 1500px; ярлыки — фон страницы, Manrope 600, вертикальный 64–68px.
   v5.9.0 (заказчик: «меньше шрифт и межстрочное; перевод на 107 языков должен ложиться»): заголовок ≤ 50px (телефон 20–26px),
   line-height 1.15/1.2, текст ≤ 72 % ширины, длинные слова переносятся (overflow-wrap/hyphens), ярлыки ограничены по длине
   с многоточием (немецкий/финский на 30–40 % длиннее русского), заголовок анимируется по словам, заготовка RTL внизу блока. ── */
.insert { grid-column: 1 / -1; position: relative; isolation: isolate; overflow: hidden; border-radius: 25px; background: #101216 center / cover no-repeat; --ins-h: clamp(440px, 30vw, 540px); height: var(--ins-h); width: 100%; color: #fff; }   /* v5.9.4: на всю ширину сетки (aspect-ratio + max-height раньше сужали панель до 1405px на широких экранах), высота 440–540px — «ниже, чтобы было красиво» */
.insert__canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .4s .25s; pointer-events: none; }
.insert__canvas.is-on { opacity: 1; }
.insert__body { position: absolute; z-index: 2; left: 8.5%; top: 50%; transform: translateY(-50%); width: min(720px, 72%); pointer-events: none; }
.insert__brand { display: block; height: auto; width: clamp(120px, 11vw, 180px); color: #fff; margin-bottom: clamp(20px, 3.2vw, 44px); }
.insert__kicker { font-family: 'Roboto', var(--font-ui); font-size: clamp(14px, 1.35vw, 20px); font-weight: 600; line-height: 1.3; letter-spacing: .01em; opacity: .92; margin: 0 0 10px; overflow-wrap: anywhere; }
.insert__title { font-family: 'Roboto', var(--font-ui); font-size: clamp(24px, 3.3vw, 50px); font-weight: 500; line-height: 1.15; letter-spacing: -0.015em; margin: 0; text-wrap: balance; overflow-wrap: anywhere; hyphens: auto; }
.insert__title .w { display: inline-block; opacity: 0; transform: translateY(.6em); }
.insert.is-in .insert__title .w { animation: insFade .45s ease forwards, insUp .8s cubic-bezier(.26, -.14, 0, 1.01) forwards; }
@keyframes insFade { to { opacity: 1; } }
@keyframes insUp { to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .insert__title .w { opacity: 1; transform: none; animation: none !important; } }
/* ярлыки-вкладки (v5.9.6): фон = цвет карточек (var(--card), как плашки ленты), без вогнутых уголков — заказчик: «чёрточки убери»;
   текст ярлыка ограничен по длине и обрезается многоточием — перевод не сломает раскладку */
.insert__tab { position: absolute; z-index: 3; display: inline-flex; align-items: center; justify-content: center; margin: 0; background: var(--card); color: var(--fg); font-family: var(--font-ui); font-size: 15px; font-weight: 600; line-height: 1.3; text-decoration: none; white-space: nowrap; border: 0; appearance: none; -webkit-appearance: none; cursor: pointer; transition: color .2s; }
.insert__tab span { position: relative; z-index: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.insert__tab:hover { color: var(--fg-muted); }
/* v6.0.0: «Далее ↓» — пилюля в правом верхнем углу панели, прокрутка к следующей */
.insert__next { position: absolute; z-index: 3; top: 18px; right: 18px; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(8px); font-family: var(--font-ui); font-size: 13px; font-weight: 600; transition: background-color .15s; }
.insert__next:hover { background: rgba(255, 255, 255, .26); }
.insert__next svg { width: 15px; height: 15px; }
@media (max-width: 639px) { .insert__next { top: 12px; right: 12px; height: 32px; font-size: 12px; padding: 0 10px 0 12px; } }
html[dir="rtl"] .insert__next { right: auto; left: 18px; }
/* вертикальный у левого края: текст снизу вверх; чуть ниже центра, как на 1001site */
.insert__tab--side { left: 0; top: 50%; transform: translateY(-40%); width: 64px; padding: 44px 0; border-radius: 0 25px 25px 0; }
.insert__tab--side span { writing-mode: vertical-rl; transform: rotate(180deg); max-height: calc(var(--ins-h) - 210px); }   /* v5.9.4: от высоты панели */
/* горизонтальный в правом нижнем углу */
.insert__tab--bottom { right: 0; bottom: 0; max-width: min(60%, 460px); padding: 28px clamp(40px, 6.5vw, 100px) 18px; border-radius: 25px 0 0 0; }
.insert__tab--bottom span { max-width: 100%; }
@media (max-width: 1279px) { .insert__tab--bottom { padding: 22px clamp(28px, 5vw, 56px) 14px; } }
/* узкие экраны: панель в потоке, вертикальный ярлык остаётся (как на 1001site.com), текст правее него;
   тело панели — position: relative + z-index, иначе canvas эффекта (абсолютный, z-index 0) перекрывал логотип и строку */
@media (max-width: 899px) {
  .insert { aspect-ratio: auto; height: auto; min-height: 380px; max-height: none; padding: 44px 20px 88px 88px; border-radius: 20px; display: flex; align-items: center; }
  .insert__body { position: relative; z-index: 2; top: auto; left: auto; transform: none; width: 100%; max-width: 560px; }
  .insert__brand { width: 120px; margin-bottom: 22px; }
  .insert__kicker { font-size: 14px; margin-bottom: 8px; }
  .insert__title { font-size: clamp(20px, 3.6vw, 26px); line-height: 1.2; }
  .insert__tab { font-size: 14px; }
  .insert__tab--side { top: 50%; transform: translateY(-50%); width: 56px; padding: 32px 0; border-radius: 0 20px 20px 0; }
  .insert__tab--side span { max-height: 260px; }
  .insert__tab--bottom { padding: 16px 26px 12px; border-radius: 20px 0 0 0; max-width: 70%; }
}
@media (max-width: 479px) {
  .insert { min-height: 320px; padding: 36px 16px 76px 72px; }
  .insert__brand { width: 104px; margin-bottom: 18px; }
  .insert__kicker { font-size: 13px; }
  .insert__title { font-size: 20px; }
  .insert__tab { font-size: 12px; }
  .insert__tab--side { width: 48px; padding: 24px 0; border-radius: 0 16px 16px 0; }
  .insert__tab--side span { max-height: 200px; }
  .insert__tab--bottom { padding: 14px 20px 10px; }
}
/* заготовка RTL под перевод (арабский, иврит, фарси — html[dir=rtl]): текст справа, ярлыки зеркально */
html[dir="rtl"] .insert__body { left: auto; right: 8.5%; text-align: right; }
html[dir="rtl"] .insert__tab--side { left: auto; right: 0; border-radius: 25px 0 0 25px; }
html[dir="rtl"] .insert__tab--bottom { right: auto; left: 0; border-radius: 0 25px 0 0; }
@media (max-width: 899px) { html[dir="rtl"] .insert { padding: 44px 88px 88px 20px; } }
.sentinel { height: 1px; }
.feed__end { text-align: center; padding: 40px 0 0; color: var(--fg-muted); font-size: 14px; display: none; }
.feed__end.is-on { display: block; }
.feed__end button { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; }
.feed__empty { grid-column: 1 / -1; text-align: center; padding: 48px 16px; color: var(--fg-muted); }

/* ── Страница стиля ──────────────────────────────────────────── */
.detail { display: flex; flex-direction: column; }
@media (min-width: 1024px) {
  .detail { flex-direction: row; height: calc(100vh - var(--hdr-h) - 1px); }
  .detail__left { width: 50%; overflow-y: auto; overscroll-behavior: contain; position: relative; z-index: 10; }
  .detail__right { flex: 1; min-width: 0; border-left: 1px solid var(--border); overflow-y: auto; overscroll-behavior: contain; }
}
.detail__left { padding: 32px 24px 64px; }
@media (min-width: 1024px) { .detail__left { padding: 48px 48px 64px 40px; } }
.detail__col { display: flex; flex-direction: column; gap: 64px; max-width: 768px; margin-left: auto; }
@media (max-width: 1023px) { .detail__col { margin-inline: auto; } }
.detail__right { padding: 24px; }
@media (min-width: 1024px) { .detail__right { padding: 32px; } }

.preview { position: relative; aspect-ratio: 16 / 10; width: 100%; overflow: hidden; border-radius: var(--r-2xl); border: 1px solid var(--border); background: var(--muted); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.preview .card__video, .preview .card__poster { border-radius: 0; }

.detail__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.detail__title { font-family: var(--font-display); font-size: clamp(36px, 4vw, 48px); font-weight: 400; line-height: 1.05; letter-spacing: -0.01em; }
.detail__fav { width: 64px; height: 64px; border-radius: 50%; background: #fff; flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.detail__fav img { width: 36px; height: 36px; object-fit: contain; }
.detail__fav span { font-family: var(--font-display); font-size: 28px; color: #101216; }
.detail__tag { margin-top: 14px; font-size: 16px; color: var(--fg-muted); }
.detail__desc { margin-top: 18px; font-size: 16px; line-height: 26px; color: var(--fg-muted); }
.detail__pending { font-size: 14px; color: var(--fg-faint); border-left: 2px solid var(--border-3); padding-left: 12px; }
.detail__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; }
.detail__site { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--fg-muted); transition: color .15s; }
.detail__site:hover { color: var(--fg); }
.detail__site svg { width: 14px; height: 14px; }
.detail__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.sec__text { font-size: 15px; line-height: 1.6; color: var(--fg-muted); }
.tagpill { height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--border-2); font-size: 12px; color: var(--fg-muted); display: inline-flex; align-items: center; }

.sec { display: flex; flex-direction: column; gap: 24px; }
.sec__h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.eyebrow { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-muted); }
.sec__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sec__note { font-size: 12px; color: var(--fg-muted); }
/* v5.9.8: блок «Промпт для ИИ-картинок в этом стиле» на странице стиля */
.prompt__how { margin: 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.5; color: var(--fg-muted); }
.prompt__how b { color: var(--fg); font-weight: 600; }
.prompt__box { border: 1px solid var(--border-2); border-radius: var(--r-2xl); background: var(--pre-bg); overflow: hidden; }
.prompt__text { margin: 0; padding: 16px 18px; max-height: 320px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.55; color: var(--fg); }
.prompt__act { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border-top: 1px solid var(--border); background: var(--card); }
.prompt__hint { font-size: 12px; color: var(--fg-faint); }
.prompt__ex { display: flex; flex-direction: column; gap: 10px; }
.prompt__ex[hidden] { display: none; }
.prompt__fig { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.prompt__fig img { display: block; width: 100%; height: auto; border-radius: var(--r-2xl); border: 1px solid var(--border); background: var(--card); }
.prompt__fig figcaption { font-size: 12px; color: var(--fg-muted); line-height: 1.45; }
/* v5.9.9: генерация промпта владельцем + бейдж «написан ИИ» */
.prompt__badge { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--fg); }
.prompt__badge[hidden] { display: none; }
.prompt__badge svg { width: 16px; height: 16px; flex: none; color: var(--ok); }
.prompt__gen { display: flex; flex-direction: column; gap: 8px; }
.prompt__gen[hidden] { display: none; }
.prompt__gen .btn { align-self: flex-start; }
.prompt__status { margin: 0; font-size: 13px; color: var(--fg-muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.prompt__status[hidden] { display: none; }
.prompt__status.is-err { color: var(--err); }
.prompt__status a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.prompt__status .spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border-3); border-top-color: var(--fg); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
/* v5.9.9: свёрнутая плашка «Типографика» (палитра, шрифты, интервалы и форма) на странице стиля */
.fold { border: 1px solid var(--border-2); border-radius: var(--r-2xl); background: var(--card); }
.fold__sum { list-style: none; display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; user-select: none; }
.fold__sum::-webkit-details-marker { display: none; }
.fold__t { font-size: 16px; font-weight: 600; }
.fold__s { font-size: 12px; color: var(--fg-faint); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fold__chev { width: 18px; height: 18px; flex: none; color: var(--fg-muted); transition: transform .2s; }
.fold[open] .fold__chev { transform: rotate(180deg); }
.fold__body { display: flex; flex-direction: column; gap: 40px; padding: 4px 18px 22px; border-top: 1px solid var(--border); }
@media (max-width: 639px) { .fold__sum { padding: 14px; } .fold__body { padding: 4px 14px 18px; gap: 28px; } .fold__s { display: none; } }
.group { display: flex; flex-direction: column; gap: 12px; }
.groups { display: flex; flex-direction: column; gap: 24px; }

/* Палитра */
.swatches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
@media (min-width: 640px) { .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.swatch { display: flex; flex-direction: column; text-align: left; border-radius: var(--r-2xl); outline: none; }
.swatch:focus-visible { box-shadow: 0 0 0 2px var(--focus); }
.swatch__box { position: relative; height: 64px; width: 100%; border-radius: var(--r-2xl); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
@media (min-width: 640px) { .swatch__box { height: 80px; } }
.swatch__copy {
  position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.15); color: #fff; font-size: 12px; font-weight: 500;
  opacity: 0; transition: opacity .15s;
}
.swatch__box[data-light="1"] .swatch__copy { background: rgba(0, 0, 0, 0.35); }
.swatch:hover .swatch__copy { opacity: 1; }
.swatch__copy svg { width: 12px; height: 12px; }
.swatch__name { margin-top: 10px; font-size: 14px; font-weight: 600; }
.swatch__hex { font-family: var(--font-mono); font-size: 12px; color: var(--fg-muted); margin-top: 2px; }
.swatch__role { margin-top: 4px; font-size: 12px; line-height: 1.4; color: var(--fg-muted); }

/* Типографика */
.typerows { border: 1px solid var(--border); border-radius: var(--r-2xl); overflow: hidden; }
.typerow { padding: 12px 16px; border-bottom: 1px solid var(--border); transition: background-color .15s; }
.typerow:last-child { border-bottom: 0; }
.typerow:hover { background: var(--hover); }
.typerow__meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 4px; font-family: var(--font-mono); font-size: 12px; color: var(--fg-muted); }
.typerow__sample { display: block; width: 100%; text-align: left; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--fg); }
.fonts { display: grid; gap: 12px; }
@media (min-width: 640px) { .fonts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.font { border: 1px solid var(--border); border-radius: var(--r-2xl); padding: 14px 16px; }
.font__name { font-size: 15px; font-weight: 600; }
.font__sub { font-size: 12px; color: var(--fg-muted); margin-top: 2px; }
.font__sub b { color: var(--fg); font-weight: 500; }
.font__role { font-size: 12px; color: var(--fg-muted); margin-top: 8px; line-height: 1.4; }

/* Интервалы и форма */
.tbl { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; border: 1px solid var(--border); border-radius: var(--r-2xl); overflow: hidden; }
.tblwrap { border: 1px solid var(--border); border-radius: var(--r-2xl); overflow: hidden; }
.tblwrap table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.tblwrap th { text-align: left; padding: 8px 12px; font-weight: 500; color: var(--fg-muted); background: var(--hover); border-bottom: 1px solid var(--border); }
.tblwrap td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tblwrap tr:last-child td { border-bottom: 0; }
@media (min-width: 640px) { .tblwrap th, .tblwrap td { padding-inline: 16px; } }
.tblwrap th:first-child, .tblwrap td:first-child { width: 38%; }
.tblwrap th:nth-child(2), .tblwrap td:nth-child(2) { width: 100px; white-space: nowrap; }
.mono { font-family: var(--font-mono); font-size: 12px; color: var(--fg-muted); }
.shape-demo { width: 56px; height: 28px; border: 1.5px solid var(--fg-muted); }
.ruler { display: flex; gap: 2px; }
.ruler i { display: block; width: 8px; height: 12px; border-radius: 2px; background: var(--fg-muted); opacity: .5; }

/* Правила */
/* (v5.9.3) раздел «Правила» (Do/Don't из дизайн-системы) на странице стиля не показывается — решение заказчика */

/* Наша CTA-карточка (вместо «Give your AI design taste») */
.cta { display: grid; overflow: hidden; border-radius: var(--r-3xl); border: 1px solid var(--border); background: var(--card); }
@media (min-width: 640px) { .cta { grid-template-columns: minmax(0, 1fr) minmax(220px, 0.72fr); } }
.cta__body { order: 2; display: flex; flex-direction: column; min-width: 0; padding: 28px 24px; }
@media (min-width: 640px) { .cta__body { order: 1; padding: 32px; } }
.cta__h2 { font-family: var(--font-display); font-size: 32px; font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; }
@media (min-width: 640px) { .cta__h2 { font-size: 36px; } }
.cta__p { margin-top: 16px; max-width: 42ch; font-size: 16px; line-height: 24px; color: var(--fg-muted); text-wrap: pretty; }
.cta__list { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; max-width: 46ch; }   /* v5.9.3: что сделает ИИ */
.cta__list li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.45; color: var(--fg-muted); }
.cta__list li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--ok); }
.cta__list li b { color: var(--fg); font-weight: 600; }
.cta__act { margin-top: 24px; }
.cta__note { margin-top: 12px; font-size: 12px; color: var(--fg-muted); }
.cta__art { order: 1; position: relative; height: 160px; overflow: hidden; background: var(--hover); }
@media (min-width: 640px) { .cta__art { order: 2; height: auto; min-height: 280px; } }
.cta__art .mock { inset: 12% -10% -10% 10%; border-radius: 12px; border: 1px solid var(--border-2); box-shadow: var(--shadow-lg); }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px;
  border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; transition: opacity .2s, background-color .15s, border-color .15s, transform .1s;
}
.btn svg { width: 16px; height: 16px; }
.btn .btn__mark { width: 30px; height: 15px; flex: none; }   /* v5.9.7: знак «Ai» в кнопке «Создать сайт» */
.cta__act .btn { max-width: 100%; }
.btn--primary { background: var(--primary); color: var(--primary-fg); }
.btn--primary:hover { opacity: .85; }
.btn--ghost { border: 1px solid var(--border-2); color: var(--fg); background: transparent; }
.btn--ghost:hover { background: var(--muted); border-color: var(--border-3); }
.btn--block { width: 100%; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; pointer-events: none; }

.btn--sm { min-height: 34px; padding: 6px 12px; font-size: 13px; }
.cta__link { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.plan__new.plan__new--text { font-size: 26px; line-height: 1.15; }   /* «Цена договорная» — текст вместо суммы (специфичность выше .plan__new) */
.plans__ent { margin-top: 14px; font-size: 13px; color: var(--fg-muted); }
.plans__ent a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

/* Похожие стили */
.similar { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 24px 16px; }
@media (min-width: 640px) { .similar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* v5.8.9: «Похожие стили» — порциями по 6, кнопка «Показать ещё» под сеткой, счётчик в заголовке */
.sec__h2 small { font-size: 13px; font-weight: 500; color: var(--fg-faint); margin-left: 10px; letter-spacing: 0; }
.similar__more { display: flex; justify-content: center; }
.similar__more[hidden] { display: none; }

/* Правая колонка страницы стиля (v5.7.6): заголовок + переключатель режима сайта + баннеры возможностей */
.feats { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin: 0 auto; container-type: inline-size; }
.feats__h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.feats__h h2 { font-size: 20px; font-weight: 600; }
.feats__h span { font-size: 12px; color: var(--fg-faint); font-family: var(--font-mono); }
.rmodes { display: flex; flex-wrap: wrap; gap: 8px; }
.tab--sm { height: 32px; padding: 0 12px; font-size: 13px; }
.feats__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@container (min-width: 620px) {
  .feats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feats__grid .banner--lead { grid-column: 1 / -1; }
}

/* ── Плавающая кнопка «Получить себе» ────────────────────────── */
.fab {
  position: fixed; right: 20px; bottom: calc(var(--dock-h) + 16px); z-index: 60; height: 52px; padding: 0 22px 0 20px; border-radius: 999px;
  background: var(--primary); color: var(--primary-fg); font-size: 15px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px; box-shadow: var(--shadow-fab);
  transition: transform .15s, opacity .2s;
}
.fab:hover { transform: translateY(-2px); }
.fab svg { width: 18px; height: 18px; }
.fab .fab__mark { width: 30px; height: 15px; flex: none; }   /* v5.9.2: знак «Ai» вместо солнышка (просьба заказчика) */
@media (max-width: 639px) {
  .fab { right: 16px; left: 16px; bottom: calc(var(--dock-h) + 12px); justify-content: center; }
  main { padding-bottom: calc(var(--dock-h) + 76px) !important; }   /* полоска футера + плавающая кнопка */
}

/* ── Попап «Получить себе» ───────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-end; justify-content: center; padding: 0; background: var(--overlay); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal.is-open { display: flex; }
@media (min-width: 640px) { .modal { align-items: center; padding: 24px; } }
.modal__dlg {
  width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: var(--card); border: 1px solid var(--border-2);
  border-radius: 24px 24px 0 0; padding: 24px 20px 28px; position: relative; animation: rise .22s ease-out;
}
@media (min-width: 640px) { .modal__dlg { border-radius: 24px; padding: 32px; } }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal__x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-2); display: inline-flex; align-items: center; justify-content: center; color: var(--fg-muted); transition: color .15s, background-color .15s; }
.modal__x:hover { color: var(--fg); background: var(--muted); }
.modal__x svg { width: 16px; height: 16px; }
.modal__eyebrow { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-muted); }
.modal__h2 { font-family: var(--font-display); font-size: 30px; font-weight: 400; line-height: 1.1; margin-top: 8px; padding-right: 40px; }
.modal__p { margin-top: 12px; font-size: 15px; line-height: 1.55; color: var(--fg-muted); }
.step { display: none; }
.step.is-on { display: block; }
.form { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; color: var(--fg-muted); }
.field label b { color: var(--fg); font-weight: 500; }
.field input {
  height: 48px; padding: 0 14px; border-radius: var(--r-xl); border: 1px solid var(--border-2); background: var(--bg); color: var(--fg);
  outline: none; transition: border-color .15s;
}
.field input::placeholder { color: var(--fg-faint); }
.field input:focus { border-color: var(--border-3); }
.field.is-err input { border-color: var(--no); }
.field__hint { font-size: 12px; color: var(--fg-faint); }
.form__err { display: none; font-size: 13px; color: var(--err); line-height: 1.45; }
.form__err.is-on { display: block; }
.form__err a { text-decoration: underline; text-underline-offset: 2px; }
.form__row { display: grid; gap: 14px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__legal { font-size: 12px; color: var(--fg-faint); line-height: 1.45; }
.form__legal a { color: var(--fg-muted); text-decoration: underline; text-underline-offset: 2px; }

.plans { display: grid; gap: 14px; margin-top: 22px; }
@media (min-width: 640px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { border: 1px solid var(--border-2); border-radius: var(--r-2xl); padding: 20px; background: var(--bg); display: flex; flex-direction: column; gap: 10px; position: relative; }
.plan--hot { border-color: var(--border-3); }
.plan__flag { position: absolute; top: -11px; left: 16px; height: 22px; padding: 0 10px; border-radius: 999px; background: var(--primary); color: var(--primary-fg); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; display: inline-flex; align-items: center; }
.plan__name { font-size: 16px; font-weight: 600; }
.plan__price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.plan__old { font-size: 18px; color: var(--fg-faint); text-decoration: line-through; }
.plan__new { font-family: var(--font-display); font-size: 40px; line-height: 1; }
.plan__per { font-size: 13px; color: var(--fg-muted); }
.plan__note { font-size: 13px; color: var(--fg-muted); line-height: 1.45; }
.plan__note code { font-family: var(--font-mono); font-size: 12px; color: var(--fg); background: var(--muted); padding: 2px 6px; border-radius: 6px; cursor: pointer; }
.plan__more { font-size: 13px; color: var(--fg-muted); text-decoration: underline; text-underline-offset: 3px; align-self: flex-start; }
.plan__tag { font-size: 13px; color: var(--fg-muted); margin: -4px 0 0; }   /* v5.9.7: тэглайн «Под ключ» как на /auth/pricing */
.plan__full { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; border-top: 1px dashed var(--border-2); }   /* v5.9.7: раскрытый полный список «Всё включено» */
.plan__full[hidden] { display: none; }
.plan .btn { margin-top: auto; }
.done { text-align: center; padding: 16px 0 0; }
.done__ico { width: 64px; height: 64px; border-radius: 50%; background: rgba(16, 185, 129, 0.15); color: var(--ok); display: inline-flex; align-items: center; justify-content: center; }
.done__ico svg { width: 30px; height: 30px; }
.done__links { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
@media (min-width: 640px) { .done__links { flex-direction: row; justify-content: center; } }

/* ── Выбор языка (107 языков сервиса, поиск, флаги; переводы позже) ── */
.lang-modal { position: fixed; inset: 0; z-index: 110; display: none; align-items: flex-end; justify-content: center; background: var(--overlay); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lang-modal.is-open { display: flex; }
@media (min-width: 640px) { .lang-modal { align-items: center; padding: 24px; } }
.lang-modal__dlg { width: 100%; max-width: 640px; max-height: 84vh; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border-2); border-radius: var(--r-3xl) var(--r-3xl) 0 0; overflow: hidden; }
@media (min-width: 640px) { .lang-modal__dlg { border-radius: var(--r-3xl); } }
.lang-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 12px; }
.lang-modal__title { font-family: var(--font-display); font-weight: 400; font-size: 22px; }
.lang-modal__close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-2); color: var(--fg-muted); display: inline-flex; align-items: center; justify-content: center; }
.lang-modal__close:hover { color: var(--fg); background: var(--muted); }
.lang-modal__close svg { width: 16px; height: 16px; }
.lang-search { padding: 0 20px 12px; }
.lang-search input { width: 100%; height: 44px; padding: 0 16px; border: 1px solid var(--border-2); border-radius: var(--r-xl); background: var(--muted); color: var(--fg); outline: none; }
.lang-search input::placeholder { color: var(--fg-faint); }
.lang-search input:focus { border-color: var(--border-3); }
.lang-note { margin: 0 20px 10px; padding: 10px 12px; border-radius: var(--r-xl); background: var(--muted); font-size: 12px; color: var(--fg-muted); line-height: 1.45; }
.lang-modal__body { overflow-y: auto; padding: 0 16px 20px; -webkit-overflow-scrolling: touch; }
.lang-group { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-faint); padding: 14px 4px 8px; }
.lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 479px) { .lang-grid { grid-template-columns: 1fr; } }
.lang-chip { display: flex; align-items: center; gap: 10px; text-align: left; width: 100%; padding: 9px 12px; border: 1px solid transparent; border-radius: var(--r-xl); transition: background-color .12s, border-color .12s; }
.lang-chip:hover { border-color: var(--border-2); background: var(--hover); }
.lang-chip.is-on { border-color: var(--border-3); background: var(--muted); }
.lang-chip__flag { font-size: 22px; line-height: 1; flex: 0 0 auto; min-width: 30px; text-align: center; }
/* (v6.2.7) бейдж кода языка вместо флага там, где флага-эмодзи нет (eo, hmn, la, eu, ca, gd, cy) */
.lang-abbr { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 7px; background: var(--muted); color: var(--fg-muted); font: 700 11px/1 var(--font-sans, system-ui, sans-serif); letter-spacing: .04em; vertical-align: middle; }
.lang-abbr--sm { min-width: 24px; height: 18px; font-size: 10px; padding: 0 4px; }

.lang-chip__txt { min-width: 0; flex: 1; }
.lang-chip__name { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang-chip__en { display: block; font-size: 12px; color: var(--fg-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang-chip__check { flex: 0 0 auto; width: 16px; height: 16px; color: var(--fg); }
.lang-empty { text-align: center; padding: 48px 0; color: var(--fg-muted); font-size: 14px; }
.lang-count { font-size: 12px; color: var(--fg-faint); padding: 4px 4px 8px; }

/* ── Тост ────────────────────────────────────────────────────── */
.toast { position: fixed; left: 50%; bottom: calc(var(--dock-h) + 88px); transform: translateX(-50%) translateY(8px); z-index: 120; padding: 10px 16px; border-radius: 999px; background: var(--fg); color: var(--bg); font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Футер-полоска (dock): fixed снизу, белая карточка как шапка (копия 1001site.com), в обеих темах одинаковая.
      Закрыт: лого 1001site.com слева + YouTube/Telegram/WhatsApp справа; клик по полоске раскрывает панель
      с реквизитами и страницами (body.dock-open прячет плавающую кнопку). ── */
.dock {
  position: fixed; left: 40px; right: 40px; bottom: 0; z-index: 55;
  display: flex; flex-direction: column; background: #ffffff; color: #333333; border-radius: 25px 25px 0 0;
  box-shadow: 0 -5px 23px 4px rgba(0, 0, 0, 0.1); font-family: var(--font-ui);
}
.dock__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--dock-h); padding: 0 12px 0 40px; }
.dock__toggle { flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; gap: 12px; text-align: left; color: #333333; }
.dock__toggle .wordmark--dock { height: 30px; color: #111111; }   /* чёрная версия на белой полоске */
.dock__chev { width: 18px; height: 18px; color: #9a9a9a; transition: transform .2s; }
.dock__toggle[aria-expanded="true"] .dock__chev { transform: rotate(180deg); }
.dock__toggle:hover .dock__chev { color: #333333; }
.dock__socials { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.dock__socials a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: #333333; transition: background-color .15s; }
.dock__socials a:hover { background: #f2f2f2; }
.dock__socials svg { width: 18px; height: 18px; }
.dock__panel { padding: 28px 40px 8px; border-bottom: 1px solid #ececec; max-height: calc(100vh - 140px); overflow: auto; animation: dockUp .2s ease-out; }
.dock__panel[hidden] { display: none; }
@keyframes dockUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.dock__grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .dock__grid { grid-template-columns: 1.4fr 1fr; } }
.dock__legal { font-size: 13px; line-height: 1.6; color: #666666; display: flex; flex-direction: column; gap: 10px; }
.dock__legal .co { color: #111111; font-weight: 600; }
.dock__legal a:hover { color: #111111; text-decoration: underline; }
.dock__copy { color: #9a9a9a; }
.dock__links { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: #444444; }
.dock__links a:hover { color: #111111; text-decoration: underline; }
.dock__ttl { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #9a9a9a; margin-bottom: 4px; }
/* значки гарантий/технологий в раскрытом футере — как в образце заказчика: белый скруглённый квадрат с контурной иконкой, заголовок + пояснение */
.trust { list-style: none; margin: 24px 0 0; padding: 20px 0 8px; border-top: 1px solid #ececec; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px 28px; }
.trust__item { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.trust__ico { flex-shrink: 0; width: 56px; height: 56px; border-radius: 14px; background: #ffffff; border: 1px solid #e6e6e6; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); display: inline-flex; align-items: center; justify-content: center; color: #111111; }
.trust__ico svg { width: 26px; height: 26px; }
.trust__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding-top: 4px; }
.trust__txt b { font-size: 14px; font-weight: 700; color: #111111; line-height: 1.3; }
.trust__txt span { font-size: 12.5px; line-height: 1.45; color: #666666; }
@media (max-width: 639px) { .trust { grid-template-columns: 1fr; gap: 14px; } .trust__ico { width: 48px; height: 48px; border-radius: 12px; } .trust__ico svg { width: 22px; height: 22px; } }
body.dock-open .fab { opacity: 0; pointer-events: none; }
main { padding-bottom: calc(var(--dock-h) + 24px); }   /* полоска перекрывает низ страницы */
@media (max-width: 639px) {
  .dock { left: 12px; right: 12px; border-radius: 18px 18px 0 0; }
  .dock__bar { padding: 0 6px 0 16px; }
  .dock__socials a { width: 36px; height: 36px; }
  .dock__panel { padding: 20px 16px 8px; }
}

/* ── Скелет загрузки / ошибки ────────────────────────────────── */
.skeleton { border-radius: var(--r-2xl); background: linear-gradient(90deg, var(--card) 0%, var(--muted) 50%, var(--card) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.notfound { padding: 96px 16px; text-align: center; color: var(--fg-muted); }
.notfound h1 { font-family: var(--font-display); font-size: 40px; color: var(--fg); font-weight: 400; }
.notfound a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* v5.7.8: подсказка владельцу, пришедшему из кабинета за стилем (/?pick=style) */
.pickbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; background: var(--muted); border: 1px solid var(--border-2); font-size: 14px; color: var(--fg); }
.pickbar .btn { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-3); background: var(--bg); color: var(--fg); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; white-space: nowrap; }

/* ── v5.8.3: 4-шаговый попап «Создать сайт в этом стиле» (как путеводитель кабинета) ─────────────────── */
.modal__dlg--wiz { max-width: 640px; }
.wiz { display: flex; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; padding-right: 44px; }
.wiz li { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 10px; border-radius: 12px; background: var(--muted); color: var(--fg-faint); font-size: 12px; font-weight: 500; }
.wiz li.is-on { background: var(--fg); color: var(--bg); }
.wiz li.is-done { color: var(--fg-muted); }
.wiz__n { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; background: var(--bg); color: var(--fg); flex-shrink: 0; }
.wiz li.is-on .wiz__n { background: var(--bg); color: var(--fg); }
.wiz li.is-done .wiz__n { background: var(--ok); color: #fff; }
.wiz__n svg { width: 12px; height: 12px; }
.wiz__t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 520px) { .wiz__t { display: none; } .wiz li { justify-content: center; padding: 8px 4px; } }
.smini { display: flex; gap: 14px; align-items: center; margin-top: 16px; padding: 12px; border-radius: 16px; border: 1px solid var(--border-2); background: var(--bg); }
.smini__pic { width: 112px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--muted); position: relative; }
.smini__pic img, .smini__pic .mock { width: 100%; height: 100%; object-fit: cover; display: block; }
.smini__body { min-width: 0; }
.smini__name { font-weight: 600; font-size: 15px; }
.smini__tag { font-size: 12px; color: var(--fg-muted); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.smini__link { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--fg-muted); text-decoration: underline; text-underline-offset: 3px; }
.modes { display: grid; gap: 10px; margin-top: 14px; }
@media (min-width: 560px) { .modes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mode { text-align: left; padding: 14px; border-radius: 16px; border: 1px solid var(--border-2); background: var(--bg); display: flex; flex-direction: column; gap: 4px; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.mode:hover { border-color: var(--border-3); background: var(--muted); }
.mode.is-on { border-color: var(--fg); box-shadow: 0 0 0 1px var(--fg) inset; }
.mode__t { font-weight: 600; font-size: 14px; margin-top: 4px; }
.mode__s { font-size: 12px; color: var(--fg-muted); line-height: 1.4; }
.pchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pchip { height: 36px; padding: 0 14px 0 10px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--bg); color: var(--fg-muted); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; transition: background-color .15s, color .15s, border-color .15s; }
.pchip svg { width: 14px; height: 14px; opacity: 0; transition: opacity .15s; }
.pchip.is-on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pchip.is-on svg { opacity: 1; }
.pchip--add { padding: 0 6px 0 12px; border-style: dashed; }
.pchip--add input { border: 0; background: transparent; outline: 0; font: inherit; color: var(--fg); width: 150px; }
.pchip--add input::placeholder { color: var(--fg-faint); }
.field--ta { margin-top: 16px; }
.field textarea { width: 100%; min-height: 84px; resize: vertical; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border-2); background: var(--bg); color: var(--fg); font: inherit; font-size: 14px; line-height: 1.5; outline: 0; }
.field textarea:focus { border-color: var(--border-3); }
.field textarea::placeholder { color: var(--fg-faint); }
.wiz__act { margin-top: 20px; }
.wiz__act--split { display: flex; gap: 10px; justify-content: space-between; align-items: center; }
.wiz__act--split .btn--primary { flex: 1; }
.plan__list { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 6px; }
.plan__list li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--fg); line-height: 1.4; }
.plan__list svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 3px; color: var(--ok); }

/* ── v5.8.5: вход Google в попапе + разделитель ───────────────────────────────────────── */
.btn--google { gap: 10px; border: 1px solid var(--border-2); background: var(--bg); color: var(--fg); font-weight: 600; }
.btn--google:hover { background: var(--muted); border-color: var(--border-3); }
.btn--google svg { flex-shrink: 0; }
.or { display: flex; align-items: center; gap: 12px; margin: 14px 0 6px; color: var(--fg-faint); font-size: 12px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--border-2); }

/* ── v5.8.6: попап — Назад на каждом шаге, без эмодзи, «стиль не выбран», движение (нажатие, хлопок, появление) ── */
@keyframes wiz-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes wiz-pop { 0% { transform: scale(1); } 45% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes wiz-chk { from { opacity: 0; transform: scale(.3) rotate(-20deg); } to { opacity: 1; transform: none; } }
@keyframes wiz-shine { from { transform: translateX(-120%) skewX(-18deg); } to { transform: translateX(220%) skewX(-18deg); } }
.step.is-on > * { animation: wiz-in .45s cubic-bezier(.2, .7, .2, 1) both; }
.step.is-on > :nth-child(2) { animation-delay: .04s; } .step.is-on > :nth-child(3) { animation-delay: .08s; } .step.is-on > :nth-child(4) { animation-delay: .12s; }
.step.is-on > :nth-child(5) { animation-delay: .16s; } .step.is-on > :nth-child(6) { animation-delay: .2s; } .step.is-on > :nth-child(7) { animation-delay: .24s; } .step.is-on > :nth-child(n+8) { animation-delay: .28s; }
.plans .plan { animation: wiz-in .5s cubic-bezier(.2, .7, .2, 1) both; } .plans .plan + .plan { animation-delay: .12s; }
.wiz .btn { transition: transform .12s, background-color .15s, border-color .15s, color .15s, opacity .15s; }
.wiz .btn:active, .modal__dlg--wiz .btn:active { transform: scale(.97); }
.mode { position: relative; padding-right: 40px; transition: transform .15s, border-color .15s, background-color .15s, box-shadow .15s; }
.mode:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .35); }
.mode:active { transform: scale(.97); transition-duration: .06s; }
.mode.is-on { border-color: var(--fg); box-shadow: 0 0 0 1px var(--fg) inset, 0 12px 28px -16px rgba(0, 0, 0, .4); }
.mode__chk { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--fg); color: var(--bg); display: inline-flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.3); transition: opacity .12s, transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.mode__chk svg { width: 12px; height: 12px; }
.mode.is-on .mode__chk { opacity: 1; transform: scale(1); }
.pchip { transition: background-color .15s, color .15s, border-color .15s, transform .12s; }
.pchip:active { transform: scale(.94); }
.pchip.is-pop, .is-pop { animation: wiz-pop .32s cubic-bezier(.34, 1.56, .64, 1); }
.pchips__sum { margin: 12px 0 0; font-size: 13px; color: var(--fg-muted); line-height: 1.5; }
.pchips__sum b { color: var(--fg); font-weight: 600; display: inline-block; }
.wiz li.is-new .wiz__n { animation: wiz-chk .4s cubic-bezier(.34, 1.56, .64, 1); }
.wiz li { transition: background-color .25s, color .25s; }
.nostyle { display: none; margin-top: 16px; padding: 18px; border-radius: 16px; border: 1px dashed var(--border-3); background: var(--muted); }
.nostyle__t { font-weight: 600; font-size: 15px; }
.nostyle__p { margin: 6px 0 0; font-size: 14px; color: var(--fg-muted); line-height: 1.5; }
.nostyle .wiz__act { margin-top: 16px; }
.step.is-nostyle .nostyle { display: block; }
.step.is-nostyle .wiz__has-style, .step.is-nostyle .modes { display: none; }
.wiz__act--3 .btn--ghost { white-space: nowrap; }
@media (max-width: 560px) { .wiz__act--3 { flex-wrap: wrap; } .wiz__act--3 .btn--skip { order: 3; flex-basis: 100%; border: 0; height: 36px; text-decoration: underline; text-underline-offset: 3px; color: var(--fg-muted); } }
.field--ok { position: relative; }
.field__ok { position: absolute; right: 14px; bottom: 14px; width: 20px; height: 20px; border-radius: 50%; background: var(--ok); color: #fff; display: inline-flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.3); transition: opacity .15s, transform .3s cubic-bezier(.34, 1.56, .64, 1); pointer-events: none; }
.field__ok svg { width: 11px; height: 11px; }
.field.is-ok .field__ok { opacity: 1; transform: scale(1); }
.field.is-ok input { border-color: var(--ok); padding-right: 42px; }
.plan__old { animation: wiz-in .4s .7s both; }
.btn.is-shine { position: relative; overflow: hidden; }
.btn.is-shine::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent); animation: wiz-shine .9s .9s ease-out both; pointer-events: none; }
.wiz__foot { display: flex; gap: 14px; align-items: center; margin-top: 16px; }
.wiz__foot .plans__ent { margin: 0; flex: 1; }
.done .wiz__act { margin-top: 16px; }

/* ── v5.8.9: шаг «Кабинет» после входа Google — бейдж вместо полей, остаётся только мессенджер ── */
.gacc { display: none; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border-2); background: var(--muted); margin-bottom: 4px; }
.gacc svg { flex-shrink: 0; }
.gacc__body { min-width: 0; flex: 1; }
.gacc__t { font-size: 12px; color: var(--fg-muted); }
.gacc__who { font-size: 14px; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gacc__x { border: 0; background: transparent; color: var(--fg-muted); font: inherit; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.form.is-google .wiz__no-google { display: none !important; }
.form.is-google .gacc { display: flex; animation: wiz-in .4s cubic-bezier(.2, .7, .2, 1) both; }
.field--ta .field__hint { margin-top: 6px; }

/* ── Мобильная вёрстка (v5.9.2, замечания заказчика по iPhone 16 Pro Max 440×956): кегли и ритм под телефон,
   вкладки одной строкой с горизонтальной прокруткой (раньше переносились на вторую строку и налезали на счётчик
   «1001 популярный сайт мира»), лента с полями 12px как у шапки, компактная плавающая кнопка справа (не перекрывает
   карточки), страница стиля плотнее. Правила: тап-цели ≥ 38px, текст ≥ 13px, поле ввода 16px (iOS не зумит),
   safe-area снизу, никаких горизонтальных прокруток страницы. Блок в конце файла — перекрывает базовые правила. ── */
@media (max-width: 639px) {
  .hero { padding: 36px 16px 20px; }
  .hero__brand { gap: 10px; margin-bottom: 14px; }
  .wordmark--hero { height: 28px; }
  .badge { height: 24px; padding: 2px 10px; font-size: 12px; }
  .display { font-size: clamp(26px, 7vw, 32px); line-height: 1.12; margin-top: 14px; max-width: none; letter-spacing: -0.02em; }
  .hero__sub { margin-top: 12px; font-size: 15px; line-height: 22px; }
  .search { margin-top: 24px; }
  .search__box { height: 52px; padding: 5px 5px 5px 14px; border-radius: 14px; }
  .search__btn { height: 40px; min-width: 76px; padding: 0 14px; font-size: 13px; }
  .chips { gap: 8px; margin-top: 10px; }
  .chip { height: 38px; padding: 0 12px; font-size: 13px; }
  .hero__links { gap: 0 16px; margin-top: 12px; }
  .hero__links a, .hero__links button { height: 40px; font-size: 13px; }
  .feed { padding: 16px 12px 40px; }
  .feed__top { flex-direction: column; align-items: stretch; gap: 8px; margin-bottom: 16px; }
  /* v5.9.3: заказчик — «чтобы влево-вправо вёрстка не ездила»: вкладки переносятся в две строки, без прокрутки вбок */
  .tabs { display: flex; flex-wrap: wrap; height: auto; gap: 8px; overflow: visible; }
  .tab { height: 38px; padding: 0 14px; font-size: 13px; flex: none; }
  html, body { overflow-x: clip; }   /* страховка: страница не сдвигается вбок, даже если что-то шире экрана */
  .feed__count { font-size: 12px; padding-left: 2px; }
  .grid { row-gap: 20px; }
  .card, .card__link, .card__box { border-radius: 24px; }
  .card__box { padding: 20px; }
  .card__meta { padding-top: 6px; gap: 8px; }
  .card__fav { width: 36px; height: 36px; }
  .card__title { font-size: 17px; line-height: 24px; margin-bottom: -2px; }
  .card__tag { font-size: 13px; }
  .bstrip { gap: 12px; }
  .banner { padding: 18px 18px 16px; gap: 10px; border-radius: 20px; }
  .banner__title { font-size: 18px; }
  .banner__text { font-size: 14px; line-height: 1.5; }
  .feed__end { padding-top: 24px; }
  /* плавающая кнопка: компактная справа, над полоской футера, с учётом safe-area */
  .fab { left: auto; right: 12px; bottom: calc(var(--dock-h) + 12px + env(safe-area-inset-bottom, 0px)); height: 48px; padding: 0 18px 0 14px; font-size: 14px; }
  main { padding-bottom: calc(var(--dock-h) + 72px) !important; }
  /* страница стиля */
  .detail__left { padding: 20px 16px 48px; }
  .detail__col { gap: 40px; }
  .detail__title { font-size: clamp(28px, 8vw, 36px); }
  .detail__fav { width: 52px; height: 52px; }
  .detail__fav img { width: 30px; height: 30px; }
  .detail__tag { margin-top: 10px; font-size: 15px; }
  .detail__desc { margin-top: 14px; font-size: 15px; line-height: 24px; }
  .detail__actions { margin-top: 16px; gap: 10px 16px; }
  .sec { gap: 16px; }
  .sec__h2 { font-size: 18px; }
  .sec__text { font-size: 14px; }
  .swatches { gap: 16px 12px; }
  .swatch__box { height: 56px; border-radius: 12px; }
  .cta__body { padding: 22px 18px; }
  .cta__h2 { font-size: 26px; }
  .cta__p { margin-top: 12px; font-size: 15px; line-height: 22px; }
  .cta__list { margin-top: 12px; gap: 6px; }
  .cta__list li { font-size: 13px; }
  .cta__act { margin-top: 18px; }
  .cta__art { height: 140px; }
  .detail__right { padding: 16px 12px 24px; }
  .feats { gap: 12px; }
  .feats__h h2 { font-size: 18px; }
  .similar { gap: 16px; }
}

/* v5.9.x: шаг 2 попапа — плашки источника («по ссылке» / «заполню сам»), поле ссылки, карточка результата анализа */
.modes--src { grid-template-columns: 1fr 1fr; margin-top: 4px; }
@media (max-width: 560px) { .modes--src { grid-template-columns: 1fr; } }
.srcbox { margin-top: 12px; }
.srcrow { display: flex; gap: 8px; align-items: stretch; }
.srcrow input { flex: 1; min-width: 0; }
.srcrow .btn { white-space: nowrap; }
@media (max-width: 480px) { .srcrow { flex-direction: column; } }
/* v6.3.0: поле промокода на шаге 4 (по умолчанию промокод месяца) */
.plan .promo { margin-top: 4px; }
.plan .promo input { font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.field__hint.is-err { color: #e5484d; }
.srcres { margin-top: 12px; padding: 12px; border: 1px solid var(--border-2); border-radius: 14px; background: var(--muted); }
.srcres__row { display: flex; align-items: center; gap: 12px; }
.srcres__logo { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: var(--bg); flex: none; }
.srcres__logo--ph { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; color: var(--fg-muted); }
.srcres__body { min-width: 0; flex: 1; }
.srcres__name { font-weight: 600; font-size: 14px; }
.srcres__act { font-size: 13px; color: var(--fg-muted); line-height: 1.4; margin-top: 2px; }
.srcres__meta { font-size: 12px; color: var(--fg-faint); margin-top: 4px; }
.srcres__x { flex: none; width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--bg); color: var(--fg-muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.srcres__x svg { width: 14px; height: 14px; }
.srcres__items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.srcres__item { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border-2); max-width: 100%; }
.srcres__item img { width: 22px; height: 22px; border-radius: 999px; object-fit: cover; }
.srcres__more { font-size: 12px; color: var(--fg-faint); align-self: center; }
.srcres__note { font-size: 12px; color: var(--fg-muted); margin: 10px 0 0; line-height: 1.45; }

/* ── Блог-портфолио (v6.1.0): /blog/ и /blog/<slug>/ — статьи по постам Telegram-канала, собирает tools/build-blog.mjs ── */
.blog { max-width: 1100px; margin: 0 auto; padding: 40px 16px 80px; }
.bhero { max-width: 820px; margin: 0 auto 40px; text-align: center; }
.bhero__h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 4vw, 52px); line-height: 1.08; letter-spacing: -0.01em; margin: 12px 0 16px; text-wrap: balance; }
.bhero__p { font-size: 16px; line-height: 1.6; color: var(--fg-muted); margin: 0 auto; max-width: 680px; }
.bhero__act { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.btn--tg { background: #229ED9; color: #fff; }
.btn--wa { background: #25D366; color: #fff; }
.btn--tg svg, .btn--wa svg { width: 16px; height: 16px; }
.btn--tg:hover, .btn--wa:hover { opacity: .9; }
.bgrid { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 24px 20px; }
@media (min-width: 640px) { .bgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .bgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bcard { display: flex; flex-direction: column; border-radius: var(--r-3xl); background: var(--card); border: 1px solid var(--border); overflow: hidden; color: var(--fg); text-decoration: none; transition: border-color .2s, transform .2s; }
.bcard:hover { border-color: var(--border-3); transform: translateY(-2px); }
.bcard__pic { aspect-ratio: 16 / 10; background: var(--muted); overflow: hidden; }
.bcard__pic img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.bcard__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.bcard__meta { font-size: 12px; color: var(--fg-faint); }
.bcard__h { font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.bcard__p { font-size: 13.5px; line-height: 1.5; color: var(--fg-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post { max-width: 760px; margin: 0 auto; }
.post__crumbs { font-size: 13px; color: var(--fg-faint); margin-bottom: 14px; }
.post__crumbs a { color: var(--fg-muted); text-decoration: none; }
.post__crumbs a:hover { text-decoration: underline; }
.post__h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 4vw, 44px); line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 12px; text-wrap: balance; }
.post__meta { font-size: 13px; color: var(--fg-muted); margin-bottom: 10px; }
.post__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.post__cover { margin: 22px 0 0; border-radius: var(--r-3xl); overflow: hidden; border: 1px solid var(--border); background: var(--card); }
.post__cover img { display: block; width: 100%; height: auto; }
.brief { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin: 22px 0 0; padding: 18px 20px; border-radius: var(--r-2xl); background: var(--card); border: 1px solid var(--border); }
.brief > div { display: flex; flex-direction: column; gap: 3px; font-size: 14px; line-height: 1.4; }
.brief__k { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-faint); }
@media (max-width: 639px) { .brief { grid-template-columns: 1fr; } }
.post__body { margin-top: 26px; font-size: 17px; line-height: 1.65; color: var(--fg); }
.post__body p { margin: 0 0 16px; }
.post__body h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin: 30px 0 12px; line-height: 1.25; }
.post__body ul, .post__body ol { margin: 0 0 16px; padding-left: 22px; }
.post__body li { margin: 0 0 8px; }
.post__body a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-3); }
.post__body a:hover { text-decoration-color: currentColor; }
.post__body strong { font-weight: 600; }
.yt { position: relative; aspect-ratio: 16 / 9; margin: 26px 0; border-radius: var(--r-2xl); overflow: hidden; background: #000; border: 1px solid var(--border); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gal { margin: 26px 0; display: flex; flex-direction: column; gap: 10px; }
.gal__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .gal__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gal__grid a { display: block; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border); background: var(--card); aspect-ratio: 4 / 3; }
.gal__grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.gal__grid a:hover img { transform: scale(1.03); }
.tpl { margin: 22px 0 26px; display: flex; flex-direction: column; gap: 10px; }
.tpl__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 640px) { .tpl__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tpl__grid a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--card); color: var(--fg); text-decoration: none; font-size: 14px; line-height: 1.3; transition: border-color .2s, transform .2s; }
.tpl__grid a:hover { border-color: var(--fg); transform: translateY(-1px); }
.tpl__grid a i { font-style: normal; color: var(--fg-muted); flex: none; }
.post__body blockquote { margin: 14px 0; padding: 12px 18px; border-left: 3px solid var(--border-3); background: var(--card); border-radius: 0 var(--r-xl) var(--r-xl) 0; color: var(--fg-muted); font-style: italic; }
.post__links { margin: 26px 0; display: flex; flex-direction: column; gap: 8px; }
.post__links ul { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.6; }
.post__links a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-3); }
.tgpost { margin: 26px 0; display: flex; flex-direction: column; gap: 10px; }
.tgpost__note { margin: 0; font-size: 13px; }
.tgpost__note a, .tgpost__card { color: var(--fg); }
.tgpost__card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-2xl); border: 1px solid var(--border-2); background: var(--card); text-decoration: none; font-size: 14px; line-height: 1.4; color: var(--fg-muted); transition: border-color .2s; }
.tgpost__card:hover { border-color: #229ED9; }
.tgpost__card svg { width: 28px; height: 28px; flex: none; color: #229ED9; }
.tgpost__card b { color: var(--fg); }
.faq { margin: 30px 0; display: flex; flex-direction: column; gap: 8px; }
.faq .sec__h2 { margin-bottom: 6px; }
.faq__item { border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--card); padding: 0 16px; }
.faq__item summary { cursor: pointer; padding: 12px 0; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; color: var(--fg-faint); font-weight: 400; }
.faq__item[open] summary::after { content: '−'; }
.faq__item p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.55; color: var(--fg-muted); }
.subscribe { display: flex; gap: 18px; align-items: flex-start; margin: 34px 0; padding: 22px 22px 22px 20px; border-radius: var(--r-3xl); border: 1px solid #229ED955; background: linear-gradient(135deg, rgba(34, 158, 217, .12), rgba(34, 158, 217, .03)); }
.subscribe__ico { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #229ED9; color: #fff; display: flex; align-items: center; justify-content: center; }
.subscribe__ico svg { width: 22px; height: 22px; }
.subscribe__h2 { font-size: 20px; font-weight: 600; margin: 4px 0 8px; letter-spacing: -0.01em; }
.subscribe__p { margin: 0 0 14px; font-size: 15px; line-height: 1.55; color: var(--fg-muted); }
.subscribe__p b { color: var(--fg); font-weight: 600; }
.subscribe__act { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 639px) { .subscribe { flex-direction: column; padding: 18px 16px; } }
.acard { display: flex; gap: 16px; align-items: flex-start; margin: 26px 0; padding: 18px 20px; border-radius: var(--r-2xl); border: 1px solid var(--border); background: var(--card); }
.acard__pic { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2px var(--card), 0 0 0 3px var(--border-3); }
.acard__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.acard__name { font-size: 16px; font-weight: 700; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.acard__name em { font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-faint); }
.acard__p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--fg-muted); }
.acard__act { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; font-weight: 600; margin-top: 4px; }
.acard__yt { color: #ff0033; }
.post__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 30px 0; }
.post__navlink { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: var(--r-xl); border: 1px solid var(--border); background: var(--card); color: var(--fg); text-decoration: none; font-size: 13px; line-height: 1.35; transition: border-color .2s; }
.post__navlink span { color: var(--fg-faint); font-size: 12px; }
.post__navlink b { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post__navlink--r { text-align: right; }
.post__navlink:hover { border-color: var(--border-3); }
@media (max-width: 639px) { .post__nav { grid-template-columns: 1fr; } .post__navlink--r { text-align: left; } }
.related { margin-top: 34px; display: flex; flex-direction: column; gap: 16px; }
.related .bgrid--3 { gap: 16px; }
.related .bcard__p { -webkit-line-clamp: 2; }
@media (max-width: 639px) { .blog { padding: 24px 12px 64px; } .post__body { font-size: 16px; line-height: 1.6; } .post__body h2 { font-size: 20px; } .bhero__p { font-size: 15px; } }

/* ── правовые страницы (v6.1.2, tools/build-legal.mjs) ───────────────────────────────────────────────── */
.legal__nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.legal__nav a, .legal__nav .is-cur { font-size: 13px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--fg-muted); text-decoration: none; }
.legal__nav a:hover { border-color: var(--fg); color: var(--fg); }
.legal__nav .is-cur { color: var(--fg); border-color: var(--fg); font-weight: 600; }
.post__body h3 { font-size: 18px; font-weight: 600; margin: 22px 0 8px; line-height: 1.3; }
.post__body table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 14px; line-height: 1.45; }
.post__body th, .post__body td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.post__body th { font-weight: 600; color: var(--fg-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.post__body tr:last-child td { border-bottom: 0; }
.legal .post__body h2 { scroll-margin-top: 110px; }
@media (max-width: 639px) { .post__body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; } }

/* ── баннер согласия на cookie (site/consent.js, v6.1.2) ─────────────────────────────────────────────── */
.consent { position: fixed; left: 16px; bottom: calc(var(--dock-h) + 16px); z-index: 70; width: min(440px, calc(100vw - 32px)); padding: 18px 20px 16px; border-radius: var(--r-3xl); background: var(--card); color: var(--fg); border: 1px solid var(--border-2); box-shadow: 0 18px 50px rgba(0, 0, 0, .22); font-family: var(--font-ui); animation: consent-in .35s ease-out; }
@keyframes consent-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.consent__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.consent__head svg { width: 22px; height: 22px; flex: none; color: var(--fg-muted); }
.consent__ttl { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.consent__p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--fg-muted); }
.consent__p a { color: var(--fg); text-decoration: underline; text-underline-offset: 2px; }
.consent__opts { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 2px; }
.consent__opts[hidden] { display: none; }
.consent__opt { display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px; border-radius: var(--r-xl); border: 1px solid var(--border); cursor: pointer; }
.consent__opt input { margin-top: 3px; accent-color: var(--primary); flex: none; }
.consent__opt span { display: flex; flex-direction: column; gap: 1px; font-size: 13px; line-height: 1.35; }
.consent__opt small { font-size: 12px; color: var(--fg-muted); }
.consent__act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.consent__btn { height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-2); background: transparent; color: var(--fg); font: 600 13px/1 var(--font-ui); cursor: pointer; transition: border-color .15s, background-color .15s; }
.consent__btn:hover { border-color: var(--fg); }
.consent__btn--primary { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }
.consent__btn--primary:hover { opacity: .9; }
.consent__btn--link { border-color: transparent; color: var(--fg-muted); padding: 0 8px; }
.consent__btn--link:hover { color: var(--fg); border-color: transparent; text-decoration: underline; }
@media (max-width: 639px) { .consent { left: 12px; right: 12px; width: auto; bottom: calc(var(--dock-h) + 10px); padding: 16px 16px 14px; } .consent__btn { flex: 1 1 auto; } }

/* (v6.2.0) серверный рендер страницы стиля (apps/backend/src/modules/styles/ssr.ts): блок живёт до перерисовки app.js и для роботов без JS —
   списки без маркеров, образцы цвета — маленькие плашки в строке, промпт — как текст */
.detail__col[data-ssr] ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.detail__col[data-ssr] .swatches li { display: flex; align-items: center; gap: 10px; }
.detail__col[data-ssr] .swatch__box { display: inline-block; width: 28px; height: 28px; border-radius: 8px; flex: 0 0 auto; }
.detail__col[data-ssr] .preview img { width: 100%; height: auto; border-radius: var(--r-2xl); display: block; }
.detail__col[data-ssr] .prompt__text { white-space: pre-wrap; font: inherit; line-height: 1.55; color: var(--fg-muted); }
.detail__col[data-ssr] .cta__list li::before { content: '✓ '; }
