/* Буран AI — стили сайта (редизайн, ноябрь 2026). Без сборки.
   Страницы сайта подключают только этот файл. Админка живёт на прежних site.css + admin.css — их не трогаем.
   Шрифт: на технике Apple — системный San Francisco, на остальных — Inter (static/fonts, лицензия OFL). */

@font-face { font-family: "Inter"; src: url("/static/fonts/inter-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/static/fonts/inter-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("/static/fonts/inter-display-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("/static/fonts/inter-display-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --bg: #ffffff;
  --fog: #f4f6fa;
  --fog-2: #e9edf4;
  --ink: #0b1220;
  --ink-2: #3d4759;
  --muted: #677185;
  --line: #e2e7ef;
  --blue: #0a66f5;
  --blue-press: #0853cc;
  --blue-ink: #ffffff;
  --blue-soft: #e8f1ff;
  --flame: #ff8a1f;
  --flame-ink: #2b1500;
  --ok: #0c9455;
  --warn: #b26500;
  --err: #d3261a;
  --think: #6d3fd1;
  --think-soft: #f0e9ff;
  --night: #080d1a;            /* тёмные плитки с фото и видео — одинаковые в обеих темах */
  --night-ink: #f3f6fb;
  --night-muted: #9aa6ba;
  --pop: 0 24px 60px -18px rgb(11 18 32 / 22%), 0 4px 14px rgb(11 18 32 / 6%);
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "Inter Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --nav-h: 56px;
  color-scheme: light;
}

/* Тёмная тема: по системе, пока тема не выбрана кнопкой (theme.js ставит data-theme), и явно — data-theme="dark". */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #05080f; --fog: #0f141e; --fog-2: #171d2a; --ink: #f1f4f9; --ink-2: #c5ccd8; --muted: #8e99ac; --line: #222a39;
    --blue: #3d8bff; --blue-press: #5a9dff; --blue-ink: #04101f; --blue-soft: #10254b;
    --flame: #ffa040; --ok: #3ccf87; --warn: #f0b44c; --err: #ff6b61; --think: #c4b0ff; --think-soft: #2a2150;
    --pop: 0 24px 60px -18px rgb(0 0 0 / 70%), 0 4px 14px rgb(0 0 0 / 40%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #05080f; --fog: #0f141e; --fog-2: #171d2a; --ink: #f1f4f9; --ink-2: #c5ccd8; --muted: #8e99ac; --line: #222a39;
  --blue: #3d8bff; --blue-press: #5a9dff; --blue-ink: #04101f; --blue-soft: #10254b;
  --flame: #ffa040; --ok: #3ccf87; --warn: #f0b44c; --err: #ff6b61; --think: #c4b0ff; --think-soft: #2a2150;
  --pop: 0 24px 60px -18px rgb(0 0 0 / 70%), 0 4px 14px rgb(0 0 0 / 40%);
  color-scheme: dark;
}

/* ---------- основа */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font: 400 17px/1.5 var(--font); letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { flex: 1; }
img, video { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -0.028em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.6rem); }
h2, .h2 { font-size: clamp(1.9rem, 4.4vw, 3.25rem); }
h3, .h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.h4 { font-family: var(--font); font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: .4em; }
p { margin: 0 0 1em; }
strong, b { font-weight: 600; }
ul { padding-left: 1.2em; }
code { font-family: var(--mono); font-size: .9em; background: var(--fog); padding: .15em .45em; border-radius: 8px; word-break: break-all; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 22px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.strong { font-weight: 600; }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.35rem); line-height: 1.42; color: var(--ink-2); letter-spacing: -0.014em; text-wrap: pretty; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section.alt { background: var(--fog); }
.section + .section:not(.alt):not(.section-cta) { padding-top: 0; }
.section.alt + .section:not(.alt) { padding-top: clamp(64px, 9vw, 120px); }
.sec-head { max-width: 780px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head .lead { margin: 0; }
.sec-head h2 { margin-bottom: .35em; }
.page-pad { padding-block: 96px; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--bg); padding: 8px 14px; border-radius: 10px; }
.row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.row-center { justify-content: center; }
.sep::before { content: ""; display: inline-block; width: 3px; height: 3px; margin: 0 8px; border-radius: 50%; background: currentColor; vertical-align: middle; }

/* ---------- кнопки и ссылки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 10px 22px; border: 1px solid transparent; border-radius: 999px;
  background: var(--blue); color: var(--blue-ink);
  font: 600 1rem/1.2 var(--font); letter-spacing: -0.01em; text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .15s, transform .08s;
}
.btn:hover { background: var(--blue-press); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn:disabled, .btn[aria-busy="true"] { opacity: .55; cursor: not-allowed; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--blue) 50%, transparent); outline-offset: 2px;
}
.btn-ghost { background: var(--fog); color: var(--ink); }
.btn-ghost:hover { background: var(--fog-2); }
.section.alt .btn-ghost, .card .btn-ghost, .plan .btn-ghost { background: var(--fog-2); }
.section.alt .btn-ghost:hover, .card .btn-ghost:hover, .plan .btn-ghost:hover { background: var(--line); }
.btn-soft { background: var(--blue-soft); color: var(--blue); }
.btn-soft:hover { background: color-mix(in srgb, var(--blue) 18%, var(--bg)); }
.btn-light { background: #fff; color: #0a3fa8; }
.btn-light:hover { background: #eaf2ff; }
.btn-tg { background: #229ed9; color: #fff; }
.btn-tg:hover { background: #1b8cc2; }
.btn-cta { background: var(--blue); color: var(--blue-ink); }
.btn-sm { min-height: 36px; padding: 6px 16px; font-size: .9rem; }
.btn-lg { min-height: 54px; padding: 14px 30px; font-size: 1.08rem; }
.btn-block { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; cursor: pointer; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.more { display: inline-flex; align-items: center; gap: .3em; font-weight: 600; color: var(--blue); }
.more::after { content: ""; width: .5em; height: .5em; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); margin-top: .08em; transition: translate .15s; }
.more:hover { text-decoration: none; }
.more:hover::after, a:hover > .ai-card-foot .more::after { translate: 3px 0; }
.more-light { color: #fff; }

/* ---------- шапка */
.nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled, .nav.open { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; min-height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 700 1.12rem/1 var(--display); letter-spacing: -0.02em; flex: none; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 28px; margin-right: auto; }
.nav-links a { color: var(--ink-2); font-size: .94rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); text-decoration: none; }
.nav-links a[aria-current="page"] { font-weight: 600; }
.nav-m { display: none; }
.nav-side { display: flex; align-items: center; gap: 14px; flex: none; }
.nav-login { color: var(--ink-2); font-size: .94rem; }
.nav-login:hover { color: var(--ink); text-decoration: none; }
.menu-btn { display: none; width: 40px; height: 40px; margin-right: -8px; padding: 0; background: none; border: 0; cursor: pointer; }
.burger, .burger::before, .burger::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; margin: 0 auto; transition: transform .2s, opacity .2s; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }
.menu-btn[aria-expanded="true"] .burger { background: transparent; }
.menu-btn[aria-expanded="true"] .burger::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .burger::after { transform: translateY(-6px) rotate(-45deg); }
.theme-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer; }
.theme-btn:hover { background: var(--fog); color: var(--ink); }
.theme-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:root[data-theme="dark"] .theme-btn .i-moon, :root:not([data-theme="dark"]) .theme-btn .i-sun { display: none; }

@media (max-width: 860px) {
  .nav-in { gap: 12px; }
  .nav-links { position: absolute; top: var(--nav-h); left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 6px 22px 18px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgb(11 18 32 / 30%); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; font-size: 1.15rem; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav-m { display: block; }
  .nav-theme { padding: 14px 0; border: 0; background: none; color: var(--ink); font: 600 1.15rem/1.5 var(--font); letter-spacing: -0.006em; text-align: left; cursor: pointer; }
  .nav-side { margin-left: auto; gap: 6px; }
  .nav-login, .nav-side .theme-btn { display: none; }
  .menu-btn { display: block; }
}
@media (max-width: 380px) { .nav .brand span { display: none; } }

/* ---------- первый экран */
.hero { position: relative; overflow: hidden; padding: clamp(32px, 5vw, 60px) 0 clamp(48px, 7vw, 88px); background: radial-gradient(1100px 520px at 50% -140px, color-mix(in srgb, var(--blue) 16%, transparent), transparent 70%); }
.hero-in { text-align: center; }
.hero-pill { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; margin: 0 0 18px; padding: 7px 6px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--ink-2); font-size: .9rem; }
.hero-pill span { padding: 0 12px; }
.hero-pill span + span { border-left: 1px solid var(--line); }
.hero-pill strong { color: var(--ink); }
.hero h1 { font-size: clamp(2.9rem, 8.6vw, 5.75rem); line-height: .98; letter-spacing: -0.045em; margin-bottom: .3em; }
.hero .lead { max-width: 39em; margin: 0 auto; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; margin: 26px 0 18px; }
.hero-ticks { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; margin: 0; padding: 0; color: var(--muted); font-size: .92rem; }
.hero-ticks li, .checks li { position: relative; padding-left: 24px; }
.hero-ticks li::before, .checks li::before, .assure li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 16px; height: 16px; background: var(--ok);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.500l3.200 3.200L13 4.800' fill='none' stroke='%23000' stroke-width='2.200' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.500l3.200 3.200L13 4.800' fill='none' stroke='%23000' stroke-width='2.200' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* окно чата на первом экране: вкладки «Текст / Картинка / Видео / Музыка», выбор нейросети под полем ввода */
.demo-wrap { margin-top: clamp(32px, 4.500vw, 52px); position: relative; }
.demo-wrap::before { content: ""; position: absolute; inset: 12% 8% -6%; z-index: 0; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--blue) 34%, transparent), transparent); filter: blur(40px); pointer-events: none; }
.demo { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--pop); overflow: hidden; }
.demo-tabs { display: flex; gap: 4px; width: max-content; max-width: calc(100% - 24px); margin: 18px auto 0; padding: 4px; border-radius: 999px; background: var(--fog); }
.demo-tab { min-height: 38px; padding: 6px 20px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: 600 .95rem/1 var(--font); letter-spacing: -0.01em; cursor: pointer; transition: background-color .15s, color .15s; }
.demo-tab:hover { color: var(--ink); }
.demo-tab[aria-selected="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 3px rgb(11 18 32 / 14%); }
.demo-body { padding: 26px clamp(18px, 4vw, 44px) 8px; min-height: 372px; }
.demo-panel, .demo-variant { display: flex; flex-direction: column; gap: 14px; }
.msg { margin: 0; max-width: min(560px, 88%); padding: 13px 18px; border-radius: 22px; text-align: left; font-size: 1rem; line-height: 1.45; }
.msg p { margin: 0 0 .5em; }
.msg p:last-child { margin-bottom: 0; }
.msg-user { align-self: flex-end; background: var(--blue); color: var(--blue-ink); border-bottom-right-radius: 7px; }
.msg-ai { align-self: flex-start; background: var(--fog); border-bottom-left-radius: 7px; }
.msg .msg-model { margin-bottom: 6px; font-size: .82rem; color: var(--muted); }
.msg-model strong { color: var(--blue); }
.msg-next { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 6px; }
.msg-next span { padding: 4px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: .82rem; color: var(--ink-2); }
.msg-media { width: min(400px, 88%); }
.msg-media .ex { margin: 0; }
.msg-media .ex-frame { aspect-ratio: auto; height: 226px; border-radius: 14px; }
.demo-input { display: flex; align-items: center; gap: 10px; margin: 14px clamp(14px, 3vw, 28px) clamp(14px, 3vw, 24px); padding: 8px 8px 8px 20px; border-radius: 999px; background: var(--fog); }
.demo-field { flex: 1; min-width: 0; color: var(--muted); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-models { display: flex; gap: 4px; flex: none; }
.demo-model { min-height: 34px; padding: 4px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: 600 .86rem/1 var(--font); cursor: pointer; }
.demo-model:hover { color: var(--ink); background: var(--fog-2); }
.demo-model[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.demo-note { position: relative; z-index: 1; margin: 20px auto 0; max-width: 34em; text-align: center; color: var(--muted); font-size: .92rem; }
/* одна «сцена» при открытии страницы: вопрос → нейросеть печатает → ответ. Без JS и при reduce-motion всё видно сразу */
.demo.is-play .msg { opacity: 0; transform: translateY(10px); }
.demo.is-play .msg.in { opacity: 1; transform: none; transition: opacity .45s ease, transform .45s ease; }
@media (max-width: 640px) {
  .hero-pill span:nth-child(3) { display: none; }
  .demo-tabs { width: calc(100% - 24px); }
  .demo-tab { flex: 1; padding: 6px 4px; font-size: .9rem; }
  .demo-body { min-height: 400px; }
  .msg-media .ex-frame { height: 190px; }
  .demo-input { flex-direction: column; align-items: stretch; border-radius: 22px; padding: 12px; gap: 8px; }
  .demo-field { padding: 0 6px; }
  .demo-models { justify-content: space-between; }
  .demo-model { flex: 1; padding: 4px 6px; }
}

/* лента моделей */
.models-strip { padding: 18px 0; overflow: hidden; border-block: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee { display: flex; width: max-content; animation: marquee 80s linear infinite; }
.models-strip:hover .marquee { animation-play-state: paused; }
.marquee-track { display: flex; gap: 34px; margin: 0; padding: 0 17px; list-style: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
.chip { white-space: nowrap; color: var(--muted); font: 600 1rem/1.4 var(--display); letter-spacing: -0.01em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }

/* ---------- три шага */
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; }
.step { counter-increment: s; padding: 14px 14px 30px; border-radius: var(--r-xl); background: var(--fog); }
.step h3 { margin: 22px 16px 8px; }
.step h3::before { content: counter(s) ". "; color: var(--blue); }
.step p { margin: 0 16px; color: var(--ink-2); }
.step-art { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; height: 190px; padding: 20px; border-radius: 20px; background: var(--bg); }
.fake-btn { display: flex; align-items: center; justify-content: center; width: min(240px, 100%); min-height: 44px; border-radius: 999px; background: var(--fog); color: var(--ink); font-weight: 600; font-size: .95rem; }
.fake-btn-tg { background: #229ed9; color: #fff; }
.fake-list { display: flex; flex-direction: column; gap: 6px; width: min(240px, 100%); }
.fake-row { position: relative; padding: 10px 14px; border-radius: 12px; background: var(--fog); font-weight: 600; font-size: .95rem; color: var(--ink-2); }
.fake-row.on { background: var(--blue-soft); color: var(--blue); }
.fake-row.on::after { content: ""; position: absolute; right: 14px; top: 50%; width: 11px; height: 6px; border: solid currentColor; border-width: 0 0 2.500px 2.500px; transform: translateY(-70%) rotate(-45deg); }
.fake-input { position: relative; width: min(300px, 100%); padding: 13px 54px 13px 18px; border-radius: 22px; background: var(--fog); color: var(--ink); font-size: .95rem; line-height: 1.35; text-align: left; }
.fake-send { position: absolute; right: 8px; bottom: 8px; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); }
.fake-send::after { content: ""; position: absolute; left: 50%; top: 54%; width: 9px; height: 9px; border: solid #fff; border-width: 2.500px 0 0 2.500px; transform: translate(-50%, -50%) rotate(45deg); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .step-art { height: 160px; } }

/* ---------- что можно делать: плитки */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile { position: relative; min-width: 0; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-xl); background: var(--bg); overflow: hidden; }
.tile h3 { font-size: clamp(1.4rem, 2.300vw, 1.9rem); font-weight: 700; letter-spacing: -0.028em; line-height: 1.1; }
.tile p { color: var(--ink-2); margin: 0; }
.tile-text { grid-column: span 4; }
.tile-files { grid-column: span 2; }
.bento-search .tile-text { grid-column: span 6; }
.bento-search .tile-files, .tile-search { grid-column: span 3; }
.tile-icon { width: 64px; height: 64px; margin-bottom: 18px; }
.tile-text p { max-width: 34em; }
.asks { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; }
.asks li { padding: 10px 16px; border-radius: 20px 20px 20px 6px; background: var(--blue-soft); color: var(--ink); font-size: .95rem; line-height: 1.3; }
.tile-media { display: flex; flex-direction: column; padding: 0; background: var(--night); color: var(--night-ink); }
.tile-media.span-3 { grid-column: span 2; }
.tile-media.span-2 { grid-column: span 3; }
.tile-media.span-1 { grid-column: span 6; }
.tile-media-art .ex { margin: 0; }
.tile-media-art .ex-frame { border-radius: 0; aspect-ratio: 4 / 3; }
.tile-media-text { display: flex; flex-direction: column; gap: 8px; padding: 24px 28px 28px; flex: 1; }
.tile-media-text h3 { margin: 0; color: #fff; }
.tile-media p { color: var(--night-muted); }
.tile-media .tile-who { font-size: .88rem; color: #c8d2e3; }
.tile-media .more { margin-top: auto; padding-top: 10px; color: #7db3ff; }
@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr; gap: 14px; }
  .bento > .tile { grid-column: auto !important; }
}

/* ---------- примеры работ: фото, видео, трек; рисованная заглушка, пока примера нет */
.ex { margin: 0; }
.ex-frame { position: relative; overflow: hidden; border-radius: 20px; background: var(--night); aspect-ratio: 16 / 10; }
.ex-video .ex-frame { aspect-ratio: 16 / 9; }
.ex-media { width: 100%; height: 100%; object-fit: cover; }
.ex-photo .ex-frame { aspect-ratio: 4 / 3; display: grid; gap: 3px; }
.ex-photo.ex-n2 .ex-frame, .ex-photo.ex-n4 .ex-frame { grid-template-columns: 1fr 1fr; }
.ex-photo.ex-n3 .ex-frame { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.ex-photo.ex-n3 .ex-media:first-child { grid-row: span 2; }
.ex-photo .ex-media { min-height: 0; min-width: 0; }
.ex-audio .ex-frame { aspect-ratio: 16 / 10; }
.ex-audio audio { position: absolute; left: 12px; right: 12px; bottom: 12px; width: calc(100% - 24px); height: 40px; }
.ex figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; font-size: .88rem; color: var(--muted); line-height: 1.35; }
.ex figcaption strong { color: var(--ink); }
.art { position: absolute; inset: 0; display: grid; place-items: center; background:
  radial-gradient(60% 80% at 82% 12%, rgb(255 138 31 / 55%), transparent 60%),
  radial-gradient(70% 90% at 12% 96%, rgb(10 102 245 / 80%), transparent 62%),
  radial-gradient(50% 60% at 60% 70%, rgb(124 77 255 / 50%), transparent 70%),
  #0a1230; }
.art-video { background:
  radial-gradient(70% 90% at 14% 10%, rgb(10 102 245 / 75%), transparent 60%),
  radial-gradient(60% 80% at 90% 95%, rgb(0 200 170 / 45%), transparent 60%),
  #070d1f; }
.art-music { background:
  radial-gradient(70% 90% at 88% 8%, rgb(255 90 140 / 55%), transparent 60%),
  radial-gradient(70% 90% at 8% 96%, rgb(124 77 255 / 70%), transparent 62%),
  #120a2a; }
.art-image::after { content: ""; width: 64px; height: 64px; background: rgb(255 255 255 / 92%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.600' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.500' width='18' height='15' rx='3'/%3E%3Ccircle cx='8.500' cy='9.500' r='1.600'/%3E%3Cpath d='M4 17l5-5 3.500 3.500 3-3L21 17'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.600' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.500' width='18' height='15' rx='3'/%3E%3Ccircle cx='8.500' cy='9.500' r='1.600'/%3E%3Cpath d='M4 17l5-5 3.500 3.500 3-3L21 17'/%3E%3C/svg%3E") center / contain no-repeat; }
.art-play { width: 68px; height: 68px; border-radius: 50%; background: rgb(255 255 255 / 92%); position: relative; }
.art-play::after { content: ""; position: absolute; left: 54%; top: 50%; translate: -50% -50%; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #0a1230; }
.eq { display: flex; align-items: center; gap: 6px; height: 72px; }
.eq i { width: 6px; border-radius: 3px; background: rgb(255 255 255 / 92%); height: 30%; }
.eq i:nth-child(2) { height: 62%; } .eq i:nth-child(3) { height: 92%; } .eq i:nth-child(4) { height: 48%; }
.eq i:nth-child(5) { height: 76%; } .eq i:nth-child(6) { height: 100%; } .eq i:nth-child(7) { height: 58%; }
.eq i:nth-child(8) { height: 84%; } .eq i:nth-child(9) { height: 40%; } .eq i:nth-child(10) { height: 70%; }
.eq i:nth-child(11) { height: 52%; } .eq i:nth-child(12) { height: 26%; }

/* ---------- нейросети: лента карточек на главной */
.sec-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.sec-head-row > div:first-child { max-width: 780px; }
.rail-nav { display: flex; gap: 10px; flex: none; }
.rail-btn { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--fog); color: var(--ink); cursor: pointer; position: relative; }
.rail-btn:hover { background: var(--fog-2); }
.rail-btn::after { content: ""; position: absolute; left: 54%; top: 50%; width: 9px; height: 9px; border: solid currentColor; border-width: 0 0 2.500px 2.500px; transform: translate(-50%, -50%) rotate(45deg); }
.rail-btn.rail-next::after { left: 46%; transform: translate(-50%, -50%) rotate(-135deg); }
.rail-btn:disabled { opacity: .35; cursor: default; }
.rail { list-style: none; display: flex; gap: 20px; margin: 0; padding: 4px max(22px, calc((100vw - 1200px) / 2 + 22px)) 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(22px, calc((100vw - 1200px) / 2 + 22px)); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.ai-card { flex: none; width: min(330px, 82vw); scroll-snap-align: start; }
.ai-card-in { display: flex; flex-direction: column; gap: 14px; height: 100%; min-height: 400px; padding: 26px; border-radius: var(--r-xl); background: var(--fog); color: var(--ink); transition: background-color .2s; }
.ai-card-in:hover { text-decoration: none; background: var(--fog-2); }
.ai-head { display: flex; align-items: center; gap: 14px; }
.ai-head > :last-child { display: flex; flex-direction: column; min-width: 0; }
.ai-badge { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; overflow: hidden; background: var(--tint, var(--blue)); color: #fff; font: 700 1.15rem/1 var(--display); letter-spacing: -0.02em; }
.ai-badge img { width: 100%; height: 100%; object-fit: cover; }
.ai-badge:not(.ai-mono) { background: transparent; }  /* у логотипа свой фон и форма (круг Suno, сквиркл Kling) */
.ai-name { margin: 0; font: 700 1.35rem/1.15 var(--display); letter-spacing: -0.025em; color: var(--ink); }
.ai-maker { margin: 2px 0 0; font-size: .88rem; color: var(--muted); }
.ai-card .ai-tagline { font: 600 1.18rem/1.25 var(--display); letter-spacing: -0.02em; text-wrap: balance; }
.ai-can { display: flex; flex-direction: column; gap: 6px; font-size: .93rem; color: var(--ink-2); }
.ai-can span { position: relative; padding-left: 16px; }
.ai-can span::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--tint, var(--blue)); }
.ai-card-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: auto; padding-top: 12px; font-size: .9rem; }
.ai-avail { color: var(--muted); font-size: .9rem; }
.ai-all .ai-card-in { background: var(--blue); color: #fff; justify-content: flex-end; }
.ai-all .ai-card-in:hover { background: var(--blue-press); }
.ai-all-h { font: 700 2rem/1.05 var(--display); letter-spacing: -0.03em; }
.ai-all .more { color: #fff; }
:root[data-theme="dark"] .ai-all .ai-card-in, :root[data-theme="dark"] .ai-all .more { color: #04101f; }

/* фирменные оттенки семейств: цвет плашки с буквами и мягкое свечение баннера */
.ai-gpt { --tint: #10a37f; } .ai-claude { --tint: #d97757; } .ai-gemini { --tint: #4f7cf7; } .ai-grok { --tint: #23272f; }
.ai-deepseek { --tint: #4d6bfe; } .ai-qwen { --tint: #6a4ff0; } .ai-kimi { --tint: #1b2a4a; } .ai-glm { --tint: #2f6bff; }
.ai-sonar { --tint: #1f9bb0; } .ai-nemotron { --tint: #76b900; } .ai-auto { --tint: #0a66f5; } .ai-more { --tint: #6b7688; }
.ai-gpt-image { --tint: #10a37f; } .ai-nano-banana { --tint: #f2b705; } .ai-midjourney { --tint: #1a2540; } .ai-seedream { --tint: #ff5a3c; }
.ai-grok-imagine, .ai-grok-video { --tint: #23272f; } .ai-kling { --tint: #18b26b; } .ai-veo { --tint: #4f7cf7; } .ai-seedance { --tint: #ff5a3c; }
.ai-suno { --tint: #f2642d; } .ai-niji { --tint: #a35cf0; }
.ai-minimax { --tint: #e8336a; } .ai-mimo { --tint: #ff6900; } .ai-hunyuan { --tint: #1f6bf0; } .ai-more-image, .ai-more-video, .ai-more-music { --tint: #6b7688; }

/* сколько моделей в тарифе */
.counts { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 72px); align-items: center; margin-top: 28px; padding: clamp(26px, 4vw, 48px); border-radius: var(--r-xl); background: var(--fog); }
.counts-text h3 { font-size: clamp(1.4rem, 2.300vw, 1.9rem); font-weight: 700; letter-spacing: -0.028em; }
.counts-text p { color: var(--ink-2); }
.counts-title { margin-bottom: 16px; font-weight: 600; }
.count-row { display: grid; grid-template-columns: minmax(96px, auto) 1fr 34px; gap: 14px; align-items: center; margin-bottom: 14px; }
.count-name { font-weight: 600; }
.count-n { font: 700 1.1rem/1 var(--display); text-align: right; font-variant-numeric: tabular-nums; }
.bar { display: block; height: 10px; background: var(--fog-2); border-radius: 999px; overflow: hidden; }
.counts .bar, .card .bar { background: color-mix(in srgb, var(--ink) 9%, transparent); }
.bar-fill { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 999px; transition: width .8s cubic-bezier(.2, .7, .2, 1); }
.bar-fill.low { background: var(--flame); }
@media (max-width: 860px) { .counts { grid-template-columns: 1fr; } .sec-head-row .rail-nav { display: none; } }

/* ---------- тарифы */
.picker { margin: 0 0 28px; }
.picker-q { margin: 0 0 12px; font-weight: 600; }
.picker-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-btn { min-height: 42px; padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); font: 600 .95rem/1.2 var(--font); cursor: pointer; transition: border-color .15s, background-color .15s; }
.chip-btn:hover { border-color: var(--blue); }
.chip-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.picker-a { margin: 14px 0 0; color: var(--ink-2); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; align-items: stretch; margin: 0 0 28px; padding-top: 14px; }
.plan { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 28px 24px 26px; border-radius: var(--r-lg); background: var(--bg); border: 2px solid transparent; transition: border-color .2s, box-shadow .2s; }
.section-plans .plan { background: var(--fog); }
.plan-featured { border-color: var(--blue); }
.plan-current { border-color: var(--ok); }
.plan.is-picked { border-color: var(--blue); box-shadow: 0 0 0 5px color-mix(in srgb, var(--blue) 18%, transparent); }
.plan-name { margin: 0; font: 700 1.5rem/1.15 var(--display); letter-spacing: -0.025em; }
.plan-for { min-height: 1.5em; margin: 4px 0 18px; color: var(--muted); font-size: .95rem; }
.price { margin: 0; font: 700 clamp(2.3rem, 3.400vw, 2.9rem)/1 var(--display); letter-spacing: -0.04em; white-space: nowrap; }
.per-day { margin: 8px 0 20px; color: var(--muted); font-size: .9rem; }
.plan .btn { margin-bottom: 22px; padding-inline: 14px; }
.plan-models { align-self: flex-start; margin: 0 0 14px; padding: 4px 12px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-weight: 600; font-size: .88rem; }
.checks { list-style: none; display: grid; gap: 9px; margin: 0; padding: 0; font-size: .97rem; }
.badge { position: absolute; top: -13px; left: 22px; margin: 0; padding: 4px 12px; border-radius: 999px; background: var(--ok); color: #fff; font-size: .78rem; font-weight: 600; }
.badge.badge-hot { background: var(--flame); color: var(--flame-ink); }
.assure { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 28px; margin: 0 0 28px; padding: 0; }
.assure li { position: relative; padding-left: 28px; font-size: .95rem; }
.assure li::before { top: .2em; width: 18px; height: 18px; }
.assure strong { display: block; }
.assure span { color: var(--muted); font-size: .9rem; }
.notice { margin: 0 0 24px; padding: 14px 18px; border-radius: var(--r-md); background: var(--blue-soft); color: var(--ink); }
@media (max-width: 860px) { .assure { grid-template-columns: 1fr; } }

/* таблица моделей по тарифам */
.mt-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 16px; }
.mt-search { flex: 1 1 280px; max-width: 420px; }
.mtable-wrap { overflow-x: auto; border-radius: var(--r-lg); background: var(--bg); }
.mtable { width: 100%; border-collapse: collapse; font-size: .95rem; }
.mtable th, .mtable td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.mtable tbody:last-child tr:last-child > * { border-bottom: 0; }
.mtable thead th { position: sticky; top: 0; background: var(--bg); text-align: center; font-size: .92rem; font-weight: 600; vertical-align: bottom; }
.mtable .mt-name { text-align: left; font-weight: 600; }
.mt-count { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; }
.mt-family th { padding: 22px 16px 8px; background: transparent; text-align: left; font: 700 1.15rem/1.2 var(--display); letter-spacing: -0.02em; border-bottom-color: var(--ink); }
.mt-cell { text-align: center; width: 92px; }
.yes { color: var(--ok); font-weight: 700; }
.no { color: var(--muted); opacity: .45; }
.tag, .tier { display: inline-block; margin-left: 4px; padding: 2px 9px; border-radius: 999px; font-size: .72rem; font-weight: 600; white-space: nowrap; vertical-align: 1px; }
.tag { background: var(--think-soft); color: var(--think); }
.tier { background: var(--fog); color: var(--muted); }
.tier-smart { background: var(--blue-soft); color: var(--blue); }
.tier-flagship { background: var(--flame); color: var(--flame-ink); }
.mt-down .mt-name { color: var(--muted); }
.mt-down .yes { opacity: .4; }
.tag.tag-down { background: color-mix(in srgb, #d9480f 14%, transparent); color: #d9480f; }
.mt-desc { display: block; margin-top: 2px; font-weight: 400; color: var(--muted); font-size: .84rem; line-height: 1.35; }
.mt-empty { margin: 0; padding: 28px 16px; text-align: center; }
.mt-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 8px 28px; margin: 20px 0 0; font-size: .88rem; color: var(--muted); }
.mt-legend div { display: flex; gap: 8px; align-items: baseline; }
.mt-legend dt { font-weight: 600; white-space: nowrap; color: var(--ink-2); }
.mt-legend dt .tier { margin-left: 0; }
.mt-legend dd { margin: 0; }
.section.alt .tier:not(.tier-smart):not(.tier-flagship) { background: var(--fog-2); }
@media (max-width: 640px) {
  .mtable { font-size: .86rem; }
  .mtable th, .mtable td { padding: 9px 8px; }
  .mt-cell { width: 48px; }
  .mtable thead th { font-size: .72rem; }
  .mt-family th { padding: 18px 8px 6px; }
  .mtable .tag { display: table; margin: 4px 0 0; }
}

/* ---------- «обычно» и «в Буране» */
.vs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.vs-card { padding: 14px 14px 30px; border-radius: var(--r-xl); background: var(--fog); }
.vs-card h3 { margin: 24px 18px 10px; font-size: clamp(1.4rem, 2.300vw, 1.9rem); font-weight: 700; letter-spacing: -0.028em; }
.vs-card > p { margin: 0 18px 10px; color: var(--ink-2); }
.vs-card > p.muted { color: var(--muted); margin-bottom: 0; }
.vs-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.vs { margin: 0; padding: 18px 12px 16px; text-align: center; background: var(--bg); }
.vs-bad { border-radius: 20px 6px 6px 20px; }
.vs-good { border-radius: 6px 20px 20px 6px; background: color-mix(in srgb, var(--blue) 9%, var(--bg)); }
.vs .mascot { width: auto; max-width: 100%; height: 150px; margin: 0 auto; object-fit: contain; }
.vs-bad .mascot { filter: grayscale(.35); opacity: .9; }
.vs figcaption { margin-top: 10px; font-size: .86rem; line-height: 1.3; color: var(--muted); }
.vs-good figcaption { color: var(--blue); font-weight: 600; }
.mascot { display: block; width: 100%; height: auto; }
.mascot.flip { transform: scaleX(-1); }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.trust-item { display: flex; align-items: center; gap: 14px; }
.trust-item img { width: 48px; height: 48px; flex: none; }
.trust-item p { margin: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.35; }
.trust-item span { color: var(--muted); font-size: .92rem; }
@media (max-width: 860px) { .vs-grid, .trust { grid-template-columns: 1fr; } .vs .mascot { height: 120px; } }

/* ---------- вопросы */
.faq { border-bottom: 1px solid var(--line); }
.faq:first-of-type { border-top: 1px solid var(--line); }
.faq summary { position: relative; list-style: none; padding: 20px 44px 20px 0; cursor: pointer; font: 600 1.12rem/1.3 var(--display); letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq p { margin: 0 0 22px; max-width: 46em; color: var(--ink-2); }
.section.alt .faq, .section.alt .faq:first-of-type { border-color: color-mix(in srgb, var(--ink) 12%, transparent); }

/* ---------- призыв внизу */
.section-cta { padding-block: clamp(48px, 7vw, 96px); }
.cta-band { position: relative; display: grid; grid-template-columns: 1fr minmax(180px, 300px); gap: 28px; align-items: center; padding: clamp(32px, 5vw, 64px); border-radius: var(--r-xl); color: #fff; overflow: hidden; background: radial-gradient(80% 120% at 100% 0%, #58a6ff, transparent 60%), linear-gradient(135deg, #0a4fd6, #0a66f5 55%, #2a86ff); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #dbe8ff; font-size: 1.15rem; max-width: 30em; }
.cta-band .btn { margin-top: 10px; }
.cta-band .row .btn { margin-top: 0; }
.cta-band .row { margin-top: 10px; }
.cta-mascot .mascot { animation: bob 3.600s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (max-width: 720px) {
  .cta-band { grid-template-columns: 1fr; text-align: center; }
  .cta-band p { margin-inline: auto; }
  .cta-band .row { justify-content: center; }
  .cta-mascot { width: 170px; margin: 0 auto; order: -1; }
}

/* ---------- полоса с кнопкой на телефоне (главная, гость) */
.sticky-cta { display: none; }
@media (max-width: 720px) {
  .sticky-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .3s; }
  .sticky-cta.show { transform: none; }
  .sticky-cta p { margin: 0; font-size: .86rem; line-height: 1.3; color: var(--muted); }
  .sticky-cta .btn { flex: none; }
  .has-sticky .footer { padding-bottom: 104px; }
  .has-sticky .sup { bottom: 84px; }
  .has-sticky .sup.open { bottom: 0; }
  .has-sticky .toast { bottom: 96px; }
}

/* ---------- страница «Нейросети» */
.page-hero { padding: clamp(48px, 8vw, 96px) 0 clamp(28px, 4vw, 48px); background: radial-gradient(1100px 420px at 50% -160px, color-mix(in srgb, var(--blue) 14%, transparent), transparent 70%); }
.page-hero h1 { font-size: clamp(2.5rem, 7vw, 4.6rem); letter-spacing: -0.04em; line-height: 1; margin-bottom: .3em; }
.page-hero .lead { max-width: 40em; margin: 0; }
.kind-tabs { position: sticky; top: var(--nav-h); z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--line); }
.kind-tabs-in { display: flex; gap: 6px; padding-block: 10px; overflow-x: auto; scrollbar-width: none; }
.kind-tabs-in::-webkit-scrollbar { display: none; }
.kind-tab { flex: none; padding: 8px 18px; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.kind-tab:hover { color: var(--ink); background: var(--fog); text-decoration: none; }
.kind-tab.on { background: var(--ink); color: var(--bg); }
.tip { display: grid; grid-template-columns: 110px 1fr; gap: 20px; align-items: center; margin: clamp(28px, 4vw, 48px) 0 0; padding: 20px 28px; border-radius: var(--r-lg); background: var(--blue-soft); }
.tip p { margin: 0; color: var(--ink-2); }
.tip .tip-h { margin-bottom: 4px; font: 700 1.25rem/1.2 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.section-plans { padding-top: 12px; }
.kind-section { padding-block: clamp(48px, 7vw, 88px) 0; }
.kind-section + .kind-section { padding-top: clamp(64px, 9vw, 112px); }
.section.kind-section + .section.kind-section:not(.alt) { padding-top: clamp(64px, 9vw, 112px); }
.sec-head-mascot { position: relative; padding-right: 180px; max-width: 960px; }
.kind-mascot { position: absolute; right: 0; bottom: -8px; width: auto; height: 150px; }
@media (max-width: 640px) { .sec-head-mascot { padding-right: 0; } .kind-mascot { position: static; height: 120px; margin-bottom: 12px; } }
.pay-note { display: grid; gap: 8px; margin: -16px 0 32px; max-width: 780px; color: var(--ink-2); font-size: .97rem; }
.pay-note span { position: relative; padding-left: 18px; }
.pay-note span::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.ai-banners { display: grid; gap: 20px; }
.ai-banner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 52px); border-radius: var(--r-xl); scroll-margin-top: calc(var(--nav-h) + 70px);
  background: radial-gradient(620px 340px at 100% 0%, color-mix(in srgb, var(--tint, var(--blue)) 16%, transparent), transparent 70%), var(--fog); }
.ai-banner:nth-child(even) .ai-visual { order: -1; }
.ai-banner:nth-child(even) { background: radial-gradient(620px 340px at 0% 0%, color-mix(in srgb, var(--tint, var(--blue)) 16%, transparent), transparent 70%), var(--fog); }
.ai-text { min-width: 0; }
.ai-banner .ai-badge { width: 60px; height: 60px; border-radius: 16px; font-size: 1.3rem; }
.ai-banner .ai-name { font-size: 1.5rem; }
.ai-banner .ai-tagline { margin: 22px 0 12px; font: 700 clamp(1.6rem, 3vw, 2.4rem)/1.08 var(--display); letter-spacing: -0.032em; text-wrap: balance; }
.ai-about { color: var(--ink-2); max-width: 36em; }
.ai-checks { margin: 18px 0 0; }
.ai-models { margin-top: 22px; border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.ai-models summary { position: relative; list-style: none; display: flex; flex-direction: column; gap: 2px; padding: 14px 40px 14px 0; cursor: pointer; font-weight: 600; }
.ai-models summary::-webkit-details-marker { display: none; }
.ai-models summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.ai-models[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.ai-models-names { font-weight: 400; font-size: .9rem; color: var(--muted); }
.ai-list { list-style: none; display: grid; gap: 12px; margin: 0; padding: 4px 0 18px; }
.ai-list li { display: flex; flex-direction: column; gap: 2px; }
.ai-m-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.ai-m-top .tag, .ai-m-top .tier { margin-left: 0; }
.ai-banner .tier:not(.tier-smart):not(.tier-flagship) { background: var(--fog-2); }
.ai-m-plan { font-size: .82rem; color: var(--muted); }
.ai-m-desc { font-size: .9rem; color: var(--ink-2); }
.ai-list .is-down strong { color: var(--muted); }
.ai-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 26px; }
.ai-visual { min-width: 0; }
.ai-asks { position: relative; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 12px; min-height: 300px; padding: clamp(22px, 3vw, 36px); border-radius: var(--r-lg); background: var(--bg); overflow: hidden; }
.ai-asks-h { align-self: flex-start; margin: 0 0 4px; font-size: .88rem; color: var(--muted); }
.ask { position: relative; margin: 0; max-width: 92%; padding: 12px 18px; border-radius: 22px 22px 7px 22px; background: var(--tint, var(--blue)); color: #fff; font-size: 1rem; line-height: 1.35; text-align: left; }
.ai-asks .ask:nth-of-type(odd) { margin-right: 6%; }
.ask-plain { background: var(--fog); color: var(--ink); border-radius: 14px; font-weight: 600; }
.ai-asks .ask-plain { align-self: stretch; max-width: none; margin-right: 0; }
.ai-asks:not(.kind-chat) { background: var(--night); align-items: flex-start; justify-content: flex-end; min-height: 340px; }
.ai-asks:not(.kind-chat) .art { opacity: .9; }
.ai-asks .art::after, .ai-asks .art > * { display: none; }
.ai-asks:not(.kind-chat) .ai-asks-h { position: relative; color: #c8d2e3; }
.ai-asks:not(.kind-chat) .ask { background: rgb(255 255 255 / 14%); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-radius: 22px 22px 22px 7px; margin-right: 0; }
.ai-asks:not(.kind-chat) .ask-plain { color: #fff; border-radius: 14px; }
.ai-grok .ask, .ai-kimi .ask, .ai-midjourney .ask { color: #fff; }
:root[data-theme="dark"] .ai-grok, :root[data-theme="dark"] .ai-grok-imagine, :root[data-theme="dark"] .ai-grok-video { --tint: #5d6675; }
:root[data-theme="dark"] .ai-kimi, :root[data-theme="dark"] .ai-midjourney { --tint: #40598f; }
@media (max-width: 860px) {
  .ai-banner { grid-template-columns: 1fr; }
  .ai-banner:nth-child(even) .ai-visual { order: 0; }
  .ai-asks { min-height: 0; }
  .ai-asks:not(.kind-chat) { min-height: 300px; }
  .tip { grid-template-columns: 72px 1fr; padding: 18px; gap: 14px; }
}

/* ---------- формы: вход, регистрация */
.auth { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 400px); gap: clamp(32px, 6vw, 96px); align-items: center; justify-content: center; padding-block: clamp(36px, 6vw, 80px); }
.auth-solo { grid-template-columns: minmax(0, 440px); }
.auth-box h1 { font-size: clamp(2.2rem, 5vw, 3rem); letter-spacing: -0.035em; margin-bottom: .25em; }
.auth-lead { margin-bottom: 28px; color: var(--ink-2); font-size: 1.08rem; }
.auth-side { padding: 28px 32px 34px; border-radius: var(--r-xl); background: var(--fog); }
.auth-mascot { width: 200px; margin: 0 auto 8px; }
.auth-side .checks { color: var(--ink-2); }
.auth-side-h { margin: 0 0 14px; font: 700 1.4rem/1.2 var(--display); letter-spacing: -0.025em; }
.auth-steps { list-style: none; counter-reset: a; display: grid; gap: 12px; margin: 0; padding: 0; color: var(--ink-2); }
.auth-steps li { counter-increment: a; position: relative; padding-left: 38px; min-height: 26px; }
.auth-steps li::before { content: counter(a); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--bg); color: var(--blue); font-weight: 600; font-size: .88rem; }
@media (max-width: 860px) { .auth { grid-template-columns: minmax(0, 440px); } .auth-side { display: none; } }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .94rem; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink-2); line-height: 1.4; }
.form .check input { margin: 3px 0 0; width: 18px; height: 18px; flex: none; accent-color: var(--blue); }
input[type="email"], input[type="password"], input[type="text"], input[type="search"], textarea {
  width: 100%; min-height: 48px; padding: 11px 16px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--bg); color: var(--ink); font: 400 1rem/1.4 var(--font);
  transition: border-color .15s, box-shadow .15s;
}
input[type="search"] { border-radius: 999px; padding-inline: 20px; }
input:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 16%, transparent); outline: 0; }
textarea { resize: vertical; }
input[aria-invalid="true"] { border-color: var(--err); }
.hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
.form-error { margin: 0; color: var(--err); font-size: .95rem; }
.done { padding: 8px 0; }
.or-sep { display: flex; align-items: center; gap: 14px; margin: 22px 0 18px; color: var(--muted); font-size: .9rem; }
.or-sep::before, .or-sep::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.tg-hint { margin: 10px 0 0; }
.tg-wait { margin: 14px 0 0; display: grid; gap: 8px; }
.tg-wait p { margin: 0; }
.tg-login .form-error { margin-top: 12px; }
.spinner { display: inline-block; width: 18px; height: 18px; margin-right: 10px; border: 2.500px solid var(--line); border-top-color: var(--blue); border-radius: 50%; vertical-align: -3px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.lost-mascot { width: 200px; margin: 0 auto 12px; }

/* ---------- кабинет */
.account { padding-top: clamp(32px, 5vw, 56px); }
.account-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 24px; }
.account-head h1 { margin-bottom: .1em; }
.account-head p { margin: 0; }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.account-grid .wide { grid-column: 1 / -1; }
.card { min-width: 0; padding: clamp(22px, 3vw, 32px); border-radius: var(--r-lg); background: var(--fog); }
.card > .h3 { margin-bottom: .7em; }
.card input, .card textarea, .card .package { background: var(--bg); }
.card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 8px; }
.card-head .h3, .card-head p { margin: 0; }
.acc-hero { display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; align-items: center; background: radial-gradient(90% 140% at 100% 0%, #58a6ff, transparent 60%), linear-gradient(135deg, #0a4fd6, #0a66f5 55%, #2a86ff); color: #fff; }
.acc-main { min-width: 0; }
.acc-label { margin: 0 0 6px; font: 400 .95rem/1.2 var(--font); letter-spacing: 0; color: #cfe1ff; }
.plan-line { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; margin: 0 0 4px; }
.plan-line strong { font: 700 clamp(2rem, 4vw, 2.8rem)/1.05 var(--display); letter-spacing: -0.035em; }
.acc-hero .muted { color: #cfe1ff; }
.acc-hero .bar { background: rgb(255 255 255 / 24%); }
.acc-hero .bar-fill { background: #fff; }
.acc-hero .bar-fill.low { background: #ffc078; }
.limits { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px 28px; margin: 18px 0 0; }
.limit-top { display: flex; justify-content: space-between; font-size: .95rem; margin-bottom: 7px; }
.limit p { margin: 6px 0 0; }
.acc-actions { display: flex; flex-direction: column; gap: 10px; min-width: 240px; }
.acc-hero .btn { background: #fff; color: #0a3fa8; }
.acc-hero .btn:hover { background: #eaf2ff; }
.acc-hero .btn-ghost { background: rgb(255 255 255 / 16%); color: #fff; }
.acc-hero .btn-ghost:hover { background: rgb(255 255 255 / 26%); }
.upsell { margin: 18px 0 0; padding: 12px 16px; border-radius: var(--r-sm); background: rgb(255 255 255 / 14%); font-size: .95rem; }
.upsell a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.start-steps { list-style: none; counter-reset: st; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 28px; margin: 0 0 18px; padding: 0; }
.start-steps li { counter-increment: st; position: relative; display: flex; flex-direction: column; gap: 4px; padding-left: 44px; }
.start-steps li::before { content: counter(st); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: var(--blue-ink); font-weight: 600; }
.start-steps span { color: var(--ink-2); font-size: .95rem; }
.start p { margin: 0; }
.credits-balance { font-size: 1.05rem; }
.credits-balance strong { font: 700 2rem/1 var(--display); letter-spacing: -0.03em; }
.packages { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 18px 0; }
.package { display: grid; gap: 4px; text-align: left; padding: 16px 18px; border: 2px solid transparent; border-radius: var(--r-md); color: var(--ink); font: inherit; cursor: pointer; transition: border-color .15s; }
.package:hover, .package:focus-visible { border-color: var(--blue); }
.package:disabled { opacity: .6; cursor: wait; }
.package-title { font-weight: 600; }
.package-credits { color: var(--muted); font-size: .95rem; }
.package-price { font: 700 1.25rem/1.2 var(--display); letter-spacing: -0.02em; color: var(--blue); }
td.plus { color: var(--ok); font-weight: 600; }
td.minus { color: var(--muted); }
.sec-email, .sec-tg, .sec-pw { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); }
.sec-email p:last-child, .sec-tg p:last-child, .sec-pw p:last-child { margin-bottom: 0; }
.key-card summary { position: relative; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding-right: 36px; cursor: pointer; }
.key-card summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.key-card[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.key-card summary::-webkit-details-marker { display: none; }
.key-card summary .h3 { margin: 0; }
.key-card[open] summary { margin-bottom: 16px; }
.support { display: flex; flex-direction: column; }
.chat-log { display: flex; flex-direction: column; gap: 8px; max-height: 340px; overflow-y: auto; padding: 4px; margin-bottom: 12px; }
.bubble { max-width: 85%; padding: 9px 14px; border-radius: 18px; }
.bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble time { display: block; font-size: .74rem; color: var(--muted); margin-top: 2px; }
.bubble-user { align-self: flex-end; background: var(--blue); color: var(--blue-ink); border-bottom-right-radius: 6px; }
.bubble-user time { color: color-mix(in srgb, var(--blue-ink) 72%, transparent); }
.bubble-admin { align-self: flex-start; background: var(--bg); border-bottom-left-radius: 6px; }
.bubble-admin::before { content: "Поддержка"; display: block; font-size: .72rem; font-weight: 600; color: var(--blue); margin-bottom: 2px; }
.bubble.pending { opacity: .6; }
.bubble.failed { outline: 1px solid var(--err); }
.bubble.failed time { color: var(--err); }
.support-form { display: flex; gap: 8px; align-items: flex-end; }
.support-form textarea { min-height: 44px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 11px 10px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); white-space: nowrap; }
.table th { font-weight: 600; color: var(--muted); font-size: .85rem; }
.table tbody tr:last-child td { border-bottom: 0; }
.table td:nth-child(3) { white-space: normal; min-width: 180px; }
.status { font-weight: 600; }
.status-fulfilled { color: var(--ok); }
.status-pending, .status-paid { color: var(--warn); }
.status-canceled, .status-failed, .status-refunded { color: var(--muted); }
@media (max-width: 860px) {
  .account-grid { grid-template-columns: 1fr; }
  .acc-hero { grid-template-columns: 1fr; }
  .acc-actions { min-width: 0; }
  .start-steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .table thead { display: none; }
  .table tr { display: block; padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); }
  .table td { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border: 0; white-space: normal; text-align: right; }
  .table td::before { content: attr(data-label); color: var(--muted); text-align: left; flex: none; }
  .table td:nth-child(3) { min-width: 0; }
}

/* ---------- поддержка: кнопка в углу и окно чата */
.sup { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; pointer-events: none; }
.sup > * { pointer-events: auto; }
.sup-fab { position: relative; width: 54px; height: 54px; border: 0; border-radius: 50%; background: var(--ink); color: var(--bg); cursor: pointer; display: grid; place-items: center; box-shadow: 0 10px 28px rgb(11 18 32 / 28%); transition: transform .15s; }
.sup-fab:hover { transform: translateY(-2px); }
.sup-badge { position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--err); color: #fff; font: 600 .78rem/22px var(--font); text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.sup-panel { width: min(380px, calc(100vw - 36px)); height: min(540px, calc(100dvh - 108px)); display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--pop); overflow: hidden; }
.sup-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 18px; color: #fff; background: linear-gradient(135deg, #0a4fd6, #0a66f5 55%, #2a86ff); }
.sup-head p { margin: 0; }
.sup-title { font-weight: 600; }
.sup-sub { font-size: .8rem; color: #dbe8ff; }
.sup-close { flex: none; width: 36px; height: 36px; margin: -6px -8px 0 0; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.sup-close:hover { background: rgb(255 255 255 / 18%); }
.sup-log { flex: 1; max-height: none; margin: 0; padding: 14px; }
.sup-log .bubble-admin { background: var(--fog); }
.sup-form { padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.sup-form textarea { max-height: 120px; resize: none; }
.sup-guest { padding: 20px 18px; }
@media (max-width: 480px) {
  .sup { right: 12px; bottom: 12px; }
  .sup.open { inset: 0; right: 0; bottom: 0; }
  .sup.open .sup-panel { width: 100%; height: 100dvh; border: 0; border-radius: 0; }
  .sup.open .sup-fab { display: none; }
}

/* ---------- окно оплаты */
.modal { border: 0; border-radius: var(--r-lg); padding: 0; width: min(460px, calc(100vw - 32px)); background: var(--bg); color: var(--ink); box-shadow: var(--pop); }
.modal::backdrop { background: rgb(5 10 20 / 55%); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal-body { padding: 28px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.quote { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; margin: 0 0 14px; }
.quote dt { color: var(--ink-2); }
.quote dd { margin: 0; text-align: right; }
.quote .strong { padding-top: 12px; border-top: 1px solid var(--line); font-size: 1.15rem; color: var(--ink); }

/* ---------- юридические страницы */
.legal { padding-top: clamp(40px, 6vw, 72px); }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.25rem; margin-top: 1.8em; letter-spacing: -0.015em; }
.legal p { color: var(--ink-2); }

/* ---------- подвал */
.footer { margin-top: 24px; padding: 48px 0 40px; background: var(--fog); font-size: .92rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; padding-bottom: 28px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); }
.footer-brand p { margin: 12px 0 0; max-width: 22em; }
.footer-col { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.footer-col a { color: var(--ink-2); overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--ink); }
.footer-h { margin: 0 0 4px; font-weight: 600; color: var(--ink); }
.footer-legal { margin: 22px 0 0; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- уведомление */
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 50; max-width: calc(100vw - 32px); padding: 13px 20px; border-radius: 999px; background: var(--ink); color: var(--bg); box-shadow: var(--pop); }
.toast.err { background: var(--err); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation-duration: .001s !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .marquee { width: auto; flex-wrap: wrap; justify-content: center; }
  .marquee-track[aria-hidden="true"] { display: none; }
  .marquee-track { flex-wrap: wrap; justify-content: center; row-gap: 8px; }
  .models-strip { -webkit-mask-image: none; mask-image: none; }
}
