/* ════════════════════════════════════════════════════════════════
   1001site.com — дизайн-система лендинга (v5.6.1).
   Тёмная тема по умолчанию (+ светлая по prefers-color-scheme / html[data-theme]), токены и компоненты 1:1 по мотивам styles.refero.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; }
.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 {
  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; }
.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; } }
@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 {
  font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em;
  font-size: clamp(38px, 5.2vw, 76px); line-height: 1.05; margin: 22px auto 0; max-width: 18ch; text-wrap: balance;
}
.hero__sub { max-width: 560px; margin: 20px auto 0; font-size: 16px; line-height: 24px; color: var(--fg-muted); font-weight: 400; }

/* ── Поиск + чипы ────────────────────────────────────────────── */
.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; }
.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; }
.feed__count { font-size: 13px; color: var(--fg-faint); }

/* ── Сетка карточек (1:1 refero) ─────────────────────────────── */
.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, .rcard: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; }

/* ── Инфоблок-заглушка (каждые 3 ряда) ───────────────────────── */
.infoblock {
  grid-column: 1 / -1; min-height: 240px; border-radius: var(--r-4xl); background: var(--card); padding: 12px;
}
.infoblock__in {
  height: 100%; min-height: 216px; border-radius: 22px; border: 1.5px dashed var(--border-3);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 24px;
}
.infoblock__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-faint); }
.infoblock__title { font-family: var(--font-display); font-size: clamp(24px, 3vw, 34px); font-weight: 400; line-height: 1.1; }
.infoblock__hint { font-size: 14px; color: var(--fg-muted); max-width: 52ch; }
.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); }
.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; }

/* Правила */
.rules { display: flex; flex-direction: column; gap: 24px; }
.rules ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rules li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.5; }
.rules li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; }
.rules .do svg { color: var(--ok); }
.rules .dont svg { color: var(--no); }

/* Наша 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__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--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; }

/* Файлы стиля (как вкладки refero) */
.files__tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.files__tab { height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); font-size: 13px; font-weight: 500; color: var(--fg-muted); background: var(--bg); transition: color .15s, background-color .15s; }
.files__tab:hover { color: var(--fg); }
.files__tab.is-on { background: var(--card); color: var(--fg); font-weight: 600; border-color: var(--border-2); }
.files__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.files__mode { display: flex; gap: 6px; }
.files__act { display: flex; gap: 8px; }
.btn--sm { min-height: 34px; padding: 6px 12px; font-size: 13px; }
.files__pre { margin: 0; max-height: 520px; overflow: auto; padding: 16px; border-radius: var(--r-2xl); border: 1px solid var(--border); background: var(--pre-bg); font-family: var(--font-mono); font-size: 12.5px; line-height: 1.55; color: #d6dbe8; white-space: pre; }
.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)); } }

/* Правая колонка: карточки-заглушки «Что вы получите» */
.results { display: flex; flex-direction: column; gap: 16px; max-width: 720px; margin: 0 auto; }
@media (min-width: 1024px) { .results { position: sticky; top: 0; } }
.results__h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.results__h h2 { font-size: 20px; font-weight: 600; }
.results__h span { font-size: 12px; color: var(--fg-faint); font-family: var(--font-mono); }
.rgrid { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 640px) { .rgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rcard { border-radius: var(--r-2xl); background: var(--card); padding: 12px; transition: background-color .2s; }
.rcard:hover { background: var(--muted); }
.rcard__frame { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-lg); border: 1.5px dashed var(--border-3); overflow: hidden; }
.rcard__frame .mock { opacity: .55; }
.rcard__badge { position: absolute; left: 10px; top: 10px; z-index: 2; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--badge-bg); border: 1px solid var(--border-2); color: var(--fg-muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; display: inline-flex; align-items: center; }
.rcard__meta { padding: 10px 4px 2px; }
.rcard__title { font-size: 15px; font-weight: 600; }
.rcard__hint { font-size: 12px; color: var(--fg-muted); margin-top: 2px; }

/* ── Плавающая кнопка «Получить себе» ────────────────────────── */
.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; }
@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 .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; }
.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; }
}
