/* grok.online site styles ("Event horizon"). Tokens live in tokens.css; the chat app has its own CSS (assets/chat/**).
   The cross-promo block between "promo:start" and "promo:end" is also extracted by build.mjs to /assets/css/promo.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 400 16.5px/1.65 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
html.sheet-open { overflow: hidden; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -.025em; color: var(--text); text-wrap: balance; }
p { margin: 0; }
::selection { background: rgba(139, 156, 255, .35); color: var(--text); }
[hidden] { display: none !important; }

.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .i-dir { transform: scaleX(-1); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--radius-sm); background: var(--text); color: var(--bg); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.wrap-narrow { max-width: 860px; }
.muted { color: var(--muted); }
.mono, .mono-tag { font-family: var(--font-mono); font-size: .8em; font-weight: 500; letter-spacing: -.01em; font-variant-ligatures: none; }
.mono-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border: 1px solid var(--border-strong); border-radius: 6px; color: var(--text-soft); font-size: 12px; line-height: 1; white-space: nowrap; direction: ltr; }

/* ---------------------------------------------------------------- buttons, chips, badges, tiles */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border: 1px solid transparent; border-radius: 12px; font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: background .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease); }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn .i { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 8px 24px -10px rgba(139, 156, 255, .55); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { border-color: var(--border-strong); background: transparent; color: var(--text); }
.btn-ghost:hover { border-color: var(--text-soft); background: var(--surface-2); color: var(--text); }
.btn-soft { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-soft:hover { border-color: var(--border-strong); color: var(--text); }
.btn-sm { min-height: 38px; padding: 7px 15px; font-size: 14px; border-radius: 10px; }
.btn-xs { min-height: 32px; padding: 5px 12px; font-size: 13px; gap: 6px; border-radius: 8px; }
.btn-xs .i { width: 16px; height: 16px; }
.btn-lg { min-height: 52px; padding: 14px 28px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 40px; height: 40px; padding: 0 9px; border: 0; border-radius: 10px; background: transparent; color: var(--text-soft); transition: background .15s; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 7px 14px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); color: var(--text-soft); font-size: 14px; line-height: 1.3; text-decoration: none; transition: border-color .15s, background .15s, color .15s; }
.chip:hover { border-color: var(--border-strong); background: var(--surface-2); color: var(--text); text-decoration: none; }
.chip .i { width: 17px; height: 17px; color: var(--teal); }
.chip.is-on { border-color: var(--text); background: var(--text); color: var(--bg); }
.chip-sm { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 8px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface-2); color: var(--text-soft); font-size: 12.5px; font-weight: 550; line-height: 1.5; }
.chip-sm .i { width: 14px; height: 14px; color: var(--teal); }
.chip-ghost { border-style: dashed; color: var(--accent-ink); font-weight: 600; }
button.chip-sm, .tag-filter .chip { cursor: pointer; }

.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 26px; padding: 0 8px; border: 1px solid var(--border-strong); border-radius: 7px; background: var(--surface-2); color: var(--text); font: 600 11.5px/1 var(--font-mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; direction: ltr; }
.badge-g420 { background: var(--text); border-color: var(--text); color: var(--bg); }
.badge-g43 { background: transparent; border-color: var(--teal); color: var(--teal); }
.badge-g47 { background: linear-gradient(135deg, #E8ECFF, #8B9CFF); border-color: transparent; color: #0A0A0C; }
.badge-gim { background: transparent; border-style: dashed; color: var(--text-soft); }
.badge-info, .badge-other { background: var(--surface-2); color: var(--text-soft); }
.badge-lg { min-width: 58px; height: 38px; border-radius: 10px; font-size: 14px; }

.tile { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); color: var(--text); }
.tile .i { width: 21px; height: 21px; }
.tile-sm { width: 34px; height: 34px; border-radius: 9px; }
.tile-sm .i { width: 18px; height: 18px; }
.tile-lg { width: 56px; height: 56px; border-radius: 14px; }
.tile-lg .i { width: 27px; height: 27px; }
.tile-accent, .tile-grad { border-color: transparent; background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 30px -12px rgba(139, 156, 255, .6); }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: var(--header-bg); -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--border); }
.header-in { display: flex; align-items: center; gap: 18px; height: 100%; }
.logo { display: inline-flex; align-items: center; gap: 9px; flex: none; color: var(--text); text-decoration: none; }
.logo:hover { text-decoration: none; }
.mark { width: 32px; height: 32px; }
.logo .mark { color: var(--text); }
.logo-word { font: 600 20px/1 var(--font-display); letter-spacing: -.035em; }
.logo-tld { color: var(--muted); font-weight: 500; }
.main-nav { flex: 1; min-width: 0; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--muted); font-size: 14.5px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav-link:hover, .nav-link[aria-expanded="true"] { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav-link[aria-current], .nav-link[data-active] { color: var(--text); }
.nav-link[aria-current]::after, .nav-link[data-active]::after { content: ""; width: 4px; height: 4px; margin-inline-start: 2px; border-radius: 50%; background: var(--periwinkle); }
.i-chev { width: 15px; height: 15px; opacity: .7; transition: transform .2s; }
[aria-expanded="true"] > .i-chev { transform: rotate(180deg); }
.header-tools { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.header-cta { margin-inline-start: 6px; border-radius: var(--radius-pill); }
.header-cta .i { width: 17px; height: 17px; }
.menu-btn { display: none; }
.lang-code { font: 600 12px/1 var(--font-mono); letter-spacing: .02em; }
.theme-btn .i-moon { display: none; }
[data-theme="dark"] .theme-btn .i-sun { display: none; }
[data-theme="dark"] .theme-btn .i-moon { display: block; }

.pop { position: relative; }
.pop-panel { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60; min-width: 220px; padding: 8px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-lg); animation: pop-in .16s var(--ease); }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .pop-panel { animation: none; } }
.theme-panel button, .model-panel button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-radius: 10px; background: none; text-align: start; font-size: 14.5px; }
.theme-panel button:hover, .model-panel button:hover, .theme-panel button:focus-visible, .model-panel button:focus-visible { background: var(--surface-2); }
.theme-panel [aria-checked="true"], .model-panel [aria-checked="true"] { background: var(--accent-soft); font-weight: 600; }
.lang-panel { width: 300px; padding: 0; overflow: hidden; }
.lang-search { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--muted); }
.lang-search input { flex: 1; min-width: 0; padding: 4px 0; border: 0; background: none; outline: none; color: var(--text); }
.lang-list { max-height: min(380px, 60vh); margin: 0; padding: 6px; overflow-y: auto; list-style: none; }
.lang-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 8px; color: var(--text); font-size: 14.5px; text-decoration: none; }
.lang-list a:hover, .lang-list a:focus-visible { background: var(--surface-2); }
.lang-list a[aria-current] { background: var(--accent-soft); font-weight: 600; }
.lang-list small { color: var(--muted); font: 500 11px/1 var(--font-mono); }
.lang-list .i { width: 16px; height: 16px; color: var(--teal); }

.nav-drop { position: relative; }
.mega { inset-inline-start: 50%; inset-inline-end: auto; transform: translateX(-50%); width: max-content; max-width: min(720px, 92vw); padding: 12px; }
[dir="rtl"] .mega { transform: translateX(50%); }
.mega a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--text); font-size: 14.5px; font-weight: 500; text-decoration: none; }
.mega a:hover, .mega a:focus-visible, .mega a[aria-current] { background: var(--surface-2); }
.mt { display: flex; flex-direction: column; min-width: 0; }
.mt small { color: var(--muted); font-size: 12.5px; font-weight: 400; line-height: 1.35; }
.mi { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-2); color: var(--text-soft); }
.mi .i { width: 18px; height: 18px; }
.badge.mi { width: auto; min-width: 44px; height: 30px; }
.mega-cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 8px; }
.mega-col + .mega-col { padding-inline-start: 8px; border-inline-start: 1px solid var(--border); }
.mega-h { margin: 4px 12px 6px; color: var(--muted); font: 500 11px/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.mega-list { display: grid; min-width: 300px; }
.mega-grid { display: grid; grid-template-columns: repeat(3, minmax(190px, 1fr)); }
.mega-all { justify-content: center; margin-top: 6px; border-top: 1px solid var(--border); border-radius: 0 0 10px 10px !important; color: var(--accent-ink) !important; font-size: 14px !important; }
.mega-all .i { width: 16px; height: 16px; }

/* mobile sheet */
.sheet { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; background: var(--bg); overflow-y: auto; animation: sheet-in .2s var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(8px); } }
.sheet-top { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding-inline: 20px; background: var(--bg); border-bottom: 1px solid var(--border); }
.sheet-body { display: grid; gap: 10px; padding: 18px 20px 40px; }
.sheet-group { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.sheet-group > summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; font: 600 17px/1.2 var(--font-display); cursor: pointer; list-style: none; }
.sheet-group > summary::-webkit-details-marker { display: none; }
.sheet-group[open] > summary .i { transform: rotate(180deg); }
.sheet-links { display: grid; padding: 0 8px 10px; }
.sheet-links a { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: 10px; color: var(--text); font-weight: 500; text-decoration: none; }
.sheet-links a:hover { background: var(--surface-2); }
.sheet-plain { padding: 6px 0 0; grid-template-columns: 1fr 1fr; }

/* ---------------------------------------------------------------- sections */
.section { padding-block: 72px; }
.section-tight { padding-block: 40px; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 17.5px; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.section-head-row > div { max-width: 720px; }
.section-title-sm { margin: 48px 0 18px; font-size: 22px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-ink); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.link-more:hover { text-decoration: underline; }
.link-more .i { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.link-more:hover .i { transform: translateX(3px); }
[dir="rtl"] .link-more:hover .i { transform: scaleX(-1) translateX(3px); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 5px 12px 5px 10px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--text-soft); font: 500 12.5px/1.3 var(--font-mono); }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--periwinkle); box-shadow: 0 0 0 3px rgba(139, 156, 255, .2), 0 0 12px rgba(139, 156, 255, .8); }

/* ---------------------------------------------------------------- home hero */
.hero { position: relative; padding: 64px 0 0; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background: var(--bg); }
.hero-stars { position: absolute; inset: 0; background-image: radial-gradient(1px 1px at 12% 18%, var(--star), transparent 60%), radial-gradient(1px 1px at 27% 72%, var(--star), transparent 60%), radial-gradient(1.5px 1.5px at 41% 33%, var(--star), transparent 60%), radial-gradient(1px 1px at 58% 12%, var(--star), transparent 60%), radial-gradient(1px 1px at 66% 58%, var(--star), transparent 60%), radial-gradient(1.5px 1.5px at 79% 26%, var(--star), transparent 60%), radial-gradient(1px 1px at 88% 74%, var(--star), transparent 60%), radial-gradient(1px 1px at 94% 9%, var(--star), transparent 60%), radial-gradient(1px 1px at 5% 88%, var(--star), transparent 60%), radial-gradient(1px 1px at 35% 92%, var(--star), transparent 60%); background-size: 640px 420px; opacity: .7; mask-image: linear-gradient(180deg, #000 30%, transparent 95%); -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 95%); }
.hero-horizon { position: absolute; inset-inline: -20%; bottom: -55%; height: 90%; background: var(--horizon); opacity: .9; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 56px; padding-bottom: 72px; }
.hero-title { margin-top: 20px; font-size: clamp(38px, 5.4vw, 66px); font-weight: 600; line-height: 1.02; letter-spacing: -.04em; }
.hero-lead { max-width: 580px; margin-top: 18px; color: var(--text-soft); font-size: 18.5px; line-height: 1.55; }
.orbit-wrap { position: relative; margin-top: 30px; }
.orbit { position: absolute; inset: -22px -26px; z-index: -1; border: 1px solid rgba(139, 156, 255, .28); border-radius: 50%; pointer-events: none; }
.orbit::before { content: ""; position: absolute; inset: -40% -10%; background: var(--horizon); z-index: -1; }
.orbit::after { content: ""; position: absolute; top: 50%; inset-inline-end: -4px; width: 7px; height: 7px; border-radius: 50%; background: #E8ECFF; box-shadow: 0 0 10px 2px rgba(139, 156, 255, .9); }
@media (prefers-reduced-motion: no-preference) { .orbit { animation: orbit 28s linear infinite; } }
@keyframes orbit { to { transform: rotate(360deg); } }
.composer { display: block; position: relative; padding: 10px; border: 1px solid var(--border-strong); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-lg); transition: border-color .2s, box-shadow .2s; }
.hero .composer { margin-top: 0; }
.composer:focus-within { border-color: rgba(139, 156, 255, .6); box-shadow: var(--shadow-lg), var(--ring); }
.composer textarea { display: block; width: 100%; min-height: 64px; max-height: 220px; padding: 10px 12px 6px; border: 0; background: none; outline: none; resize: none; font-size: 17px; line-height: 1.5; }
.composer textarea::placeholder { color: var(--muted); }
.composer-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 2px 0; }
.composer-hint { color: var(--muted); font-size: 12.5px; }
.model-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 12px 4px 5px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface-2); font-size: 14px; font-weight: 600; white-space: nowrap; }
.model-pill:hover { border-color: var(--border-strong); }
.model-pill .badge { min-width: 40px; height: 28px; border-radius: var(--radius-pill); font-size: 10.5px; }
.mp-badge { display: contents; }
.model-pop .pop-panel { inset-inline-start: 0; inset-inline-end: auto; top: auto; bottom: calc(100% + 10px); width: 360px; max-width: calc(100vw - 40px); }
.model-panel button { gap: 12px; }
.model-panel .badge { min-width: 44px; }
.model-panel .mt { flex: 1; }
.mm-id { font-size: 10.5px; height: 20px; padding: 0 6px; }
.send-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; min-width: 44px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 15px; transition: background .15s, transform .15s; }
.send-btn:hover { background: var(--accent-hover); }
.send-btn:active { transform: scale(.97); }
.send-btn .i { width: 19px; height: 19px; stroke-width: 2.1; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.hero-chips .chip { background: color-mix(in srgb, var(--surface) 80%, transparent); }
.hero-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 20px; }
.hero-note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.hero-note .i { width: 17px; height: 17px; color: var(--teal); }
.hero-visual { position: relative; min-height: 380px; display: grid; place-items: center; }
.hero-eclipse { position: absolute; inset: 0; display: grid; place-items: center; z-index: -1; }
.hero-eclipse .mark { width: min(420px, 100%); height: auto; color: var(--text); opacity: .07; }
.mock { position: relative; width: min(420px, 100%); border: 1px solid var(--border-strong); border-radius: 16px; background: color-mix(in srgb, var(--surface) 92%, transparent); box-shadow: var(--shadow-lg); overflow: hidden; }
.mock-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.mock-dots { display: flex; gap: 5px; }
.mock-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.mock-model { display: inline-flex; align-items: center; gap: 8px; color: var(--text-soft); }
.mock-model .badge { min-width: 34px; height: 20px; font-size: 9.5px; border-radius: 5px; }
.mock-body { display: grid; gap: 14px; padding: 16px; }
.mock-user { justify-self: end; max-width: 88%; padding: 9px 13px; border-radius: 14px 14px 4px 14px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13.5px; line-height: 1.45; }
[dir="rtl"] .mock-user { border-radius: 14px 14px 14px 4px; }
.mock-bot { display: flex; gap: 10px; }
.mock-avatar { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; background: var(--text); color: var(--bg); }
.mock-avatar .mark { width: 22px; height: 22px; color: var(--bg); }
.mock-lines { display: grid; flex: 1; gap: 8px; padding-top: 4px; }
.mock-lines i, .mock-code i { display: block; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--surface-2), var(--border-strong), var(--surface-2)); background-size: 200% 100%; animation: shimmer 2.4s linear infinite; }
.mock-lines i.short, .mock-code i.short { width: 58%; }
.mock-code { display: grid; gap: 8px; padding: 12px 14px; border-radius: 10px; background: var(--cg-code-bg, #0E0E12); color: #C9CDF8; }
.mock-code .mono { font-size: 12px; color: #AFC0FF; }
.mock-code i { background: linear-gradient(90deg, #1B1B22, #2A2A35, #1B1B22); background-size: 200% 100%; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .mock-lines i, .mock-code i { animation: none; } }

/* ---------------------------------------------------------------- ads */
.ad-slot { display: flex; flex-direction: column; align-items: center; max-width: 980px; margin: 40px auto; }
.ad-label { margin-bottom: 6px; color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.ad-slot > div { width: 100%; min-height: 250px; border-radius: 8px; background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
.ad-slot--content { margin: 36px 0; max-width: none; }
.wrap > .ad-slot { margin-block: 48px; }

/* ---------------------------------------------------------------- home: models */
.model-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.model-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; transition: border-color .2s, transform .2s var(--ease); }
.model-card::before { content: ""; position: absolute; inset: -60% -30% auto auto; width: 240px; height: 240px; background: var(--horizon); opacity: 0; transition: opacity .3s; pointer-events: none; }
.model-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.model-card:hover::before, .tone-g47::before { opacity: 1; }
.model-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ctx { color: var(--muted); font-size: 13px; }
.ctx strong { color: var(--text); font: 600 13px var(--font-mono); }
.model-card h3 { font-size: 22px; }
.model-card p { color: var(--muted); font-size: 15px; line-height: 1.5; }
.chips-sm { display: flex; flex-wrap: wrap; gap: 6px; }
.model-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: auto; padding-top: 6px; }
.model-card-actions .btn { white-space: normal; text-align: center; }
.model-card-actions .link-more { font-size: 14px; }

/* steps (old "How to use") */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.steps-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: none; }
.step { position: relative; padding: 22px 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.steps-5 .step::before { content: ""; position: absolute; top: 34px; inset-inline-start: 62px; inset-inline-end: -17px; height: 1px; background: linear-gradient(90deg, var(--border-strong), transparent); }
.steps-5 .step:last-child::before { display: none; }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 26px; margin-bottom: 14px; border: 1px solid var(--border-strong); border-radius: 7px; color: var(--text); font: 600 12.5px/1 var(--font-mono); }
.step h3 { font-size: 19px; }
.step p { color: var(--text-soft); font-size: 15px; line-height: 1.55; }

/* features bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.bento-cell { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.bento-cell h3 { font-size: 20px; }
.bento-cell p { color: var(--muted); font-size: 15.5px; }
.bento-cell { grid-column: span 3; }
@media (min-width: 1000px) { .bento-1 { grid-column: span 4; } .bento-2 { grid-column: span 2; } .bento-3, .bento-4, .bento-5 { grid-column: span 2; } .bento-6 { grid-column: span 6; } }
.bento-1::after { content: ""; position: absolute; inset: auto -10% -70% 30%; height: 120%; background: var(--horizon); pointer-events: none; }
.bento-6 { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 14px 20px; }
.bento-6 p { flex: 1 1 300px; }

/* tools + assistants */
.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tool-card { display: flex; align-items: flex-start; gap: 14px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .15s, transform .2s var(--ease); }
.tool-card:hover { border-color: var(--border-strong); transform: translateY(-2px); text-decoration: none; }
.tool-card .card-text { -webkit-line-clamp: 2; }
.assist-row { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); align-items: center; gap: 28px; margin-top: 28px; padding: 26px; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); }
.assist-head h3 { font-size: 21px; }
.assist-head p { margin-top: 6px; color: var(--text-soft); font-size: 15px; }
.assist-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }

/* home about (old block) */
.home-about { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); align-items: start; gap: 52px; }
.home-about-art { position: sticky; top: calc(var(--header-h) + 28px); overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #0A0A0C; }
.home-about-copy h2 { font-size: clamp(28px, 3.4vw, 42px); }
.home-about .prose { margin-top: 18px; }
.home-about .prose p + p { margin-top: 14px; }
.about-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* comparisons strip + web teaser */
.compare-strip { display: flex; gap: 10px; padding-bottom: 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.vs-card { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; padding: 13px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); font-weight: 600; text-decoration: none; scroll-snap-align: start; white-space: nowrap; }
.vs-card:hover { border-color: var(--border-strong); text-decoration: none; }
.vs-mark { display: inline-flex; color: var(--teal); }
.vs-card .card-title { font-size: 15px; }
.vs-card .card-arrow { position: static; opacity: 1; color: var(--muted); }
.vs-card .card-arrow .i { width: 16px; height: 16px; }
.web-teaser { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr) auto; align-items: center; gap: 28px; margin-top: 28px; padding: 22px 26px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); text-decoration: none; position: relative; overflow: hidden; }
.web-teaser:hover { border-color: var(--border-strong); text-decoration: none; }
.web-teaser::before { content: ""; position: absolute; inset: -80% auto auto -10%; width: 360px; height: 360px; background: var(--horizon); pointer-events: none; }
.web-teaser-bar { position: relative; display: flex; align-items: center; gap: 6px; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--bg); }
.web-teaser-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); }
.web-teaser-bar .mono { margin-inline-start: 8px; padding: 2px 8px; border-radius: 5px; background: var(--surface-2); color: var(--text-soft); }
.web-teaser-copy { display: grid; gap: 6px; color: var(--muted); font-size: 15px; }
.web-teaser-copy .h3 { color: var(--text); font: 600 20px/1.2 var(--font-display); letter-spacing: -.02em; }

/* FAQ */
.faq-list { display: grid; gap: 8px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.faq-item > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font: 600 17px/1.35 var(--font-display); letter-spacing: -.01em; cursor: pointer; list-style: none; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-ic { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid var(--border-strong); border-radius: 8px; transition: transform .2s var(--ease), background .2s; }
.faq-ic .i { width: 16px; height: 16px; }
.faq-item[open] .faq-ic { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.faq-a { padding: 0 22px 20px; color: var(--text-soft); }

/* languages (old block) */
.lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.lang-grid a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font-size: 15px; text-decoration: none; }
.lang-grid a:hover { border-color: var(--border-strong); text-decoration: none; }
.lang-grid a[aria-current] { border-color: var(--teal); }
.lang-grid .mono { min-width: 22px; color: var(--muted); font-size: 11.5px; text-transform: uppercase; }

/* CTA band */
.cta-band { padding: 24px 0 80px; }
.cta-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 64px 28px 56px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); text-align: center; overflow: hidden; isolation: isolate; }
.cta-in::before { content: ""; position: absolute; inset: auto -20% -80% -20%; height: 140%; z-index: -1; background: var(--horizon); }
.cta-orbit { position: absolute; inset-inline: 50%; top: 50%; z-index: -1; width: 640px; height: 640px; margin: -320px; border: 1px solid rgba(139, 156, 255, .16); border-radius: 50%; }
.cta-orbit span { position: absolute; inset: 90px; border: 1px solid rgba(139, 156, 255, .1); border-radius: 50%; }
.cta-in h2 { max-width: 720px; font-size: clamp(28px, 3.6vw, 44px); }
.cta-in p { max-width: 600px; color: var(--text-soft); font-size: 17.5px; }
.cta-in .btn { margin-top: 8px; }
.cta-mark { display: inline-flex; padding: 10px; border: 1px solid var(--border-strong); border-radius: 16px; background: var(--bg); color: var(--text); }
.cta-mark .mark { width: 44px; height: 44px; }

/* ---------------------------------------------------------------- cards */
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .15s, transform .2s var(--ease); }
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); text-decoration: none; }
.card-media { margin: -20px -20px 0; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; aspect-ratio: 16 / 9; background: #0A0A0C; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-media img { transform: scale(1.03); }
.card-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.card-title { font: 600 17.5px/1.3 var(--font-display); letter-spacing: -.015em; }
.card-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.card-meta { color: var(--muted); font: 500 12px/1.4 var(--font-mono); }
.card-meta.is-in { color: var(--teal); }
.card-arrow { position: absolute; inset-inline-end: 18px; bottom: 18px; color: var(--muted); opacity: 0; transition: opacity .2s, transform .2s; }
.card:hover .card-arrow { opacity: 1; transform: translateX(2px); }
.card-photo .card-media { aspect-ratio: 4 / 3; }
.card-model, .card-compact { flex-direction: row; align-items: flex-start; }
.card-compact .card-text { -webkit-line-clamp: 2; }

/* ---------------------------------------------------------------- inner page hero */
.page-hero { position: relative; padding: 36px 0 44px; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--border); }
.page-hero-bg { position: absolute; inset: 0; z-index: -1; background: var(--bg); overflow: hidden; }
.page-hero-bg::before { content: ""; position: absolute; inset: -40% -10% auto 40%; height: 120%; background: var(--horizon); opacity: .8; }
.page-hero-in { display: grid; gap: 40px; }
.page-hero.has-aside .page-hero-in, .page-hero-in.has-art { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); align-items: start; }
.page-hero-in.has-art { align-items: center; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); }
.page-hero-copy { max-width: 800px; }
.page-hero h1 { margin-top: 14px; font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -.035em; }
.page-hero .tile, .page-hero .badge-lg, .page-hero .vs { margin-top: 20px; }
.page-hero .lead { margin-top: 14px; color: var(--text-soft); font-size: 18.5px; line-height: 1.55; }
.page-hero .lead-old { font-size: 16px; color: var(--muted); }
.page-hero .lead-old + .lead-old { margin-top: 4px; }
.model-id-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; color: var(--muted); font: 500 13px var(--font-mono); }
.page-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; color: var(--muted); font-size: 13.5px; }
.dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; }
.crumbs li { display: inline-flex; align-items: center; gap: 4px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.crumbs .i { width: 14px; height: 14px; opacity: .6; }
.crumbs [aria-current] { color: var(--text-soft); }
.hub-art { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); aspect-ratio: 16 / 10; background: #0A0A0C; }
.hub-art img { width: 100%; height: 100%; object-fit: cover; }
.cover { margin: 28px 0 8px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); aspect-ratio: 16 / 7; background: #0A0A0C; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.vs { display: inline-flex; align-items: center; gap: 12px; }
.vs-x { font: 500 13px/1 var(--font-mono); color: var(--muted); text-transform: uppercase; }

.facts-card { position: relative; display: grid; gap: 14px; padding: 22px; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.facts-title { display: flex; align-items: center; gap: 8px; font: 600 16px/1.2 var(--font-display); }
.facts-title .i { color: var(--teal); }
.facts { width: 100%; border-collapse: collapse; font-size: 14px; }
.facts th, .facts td { padding: 8px 0; border-bottom: 1px solid var(--border); text-align: start; vertical-align: top; }
.facts th { width: 38%; padding-inline-end: 12px; color: var(--muted); font-weight: 500; }
.facts td { font-weight: 500; overflow-wrap: anywhere; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts-link { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.facts-link span { color: var(--text-soft); font-weight: 500; }
.facts-link .i { width: 15px; height: 15px; }
.facts-note { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); color: var(--text-soft); font-size: 14px; font-weight: 500; }
.facts-note .i { width: 18px; height: 18px; color: var(--coral); }

/* ---------------------------------------------------------------- article */
.article-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 8px; padding-bottom: 32px; }
.article-grid.no-toc { grid-template-columns: minmax(0, 1fr); }
.article-grid.no-toc .prose { margin-inline: auto; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; }
.toc-box > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; color: var(--muted); font: 500 11.5px/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; list-style: none; }
.toc-box > summary::-webkit-details-marker { display: none; }
.toc-box > summary .i { width: 16px; height: 16px; transition: transform .2s; }
.toc-box[open] > summary .i { transform: rotate(180deg); }
.toc ol { margin: 0; padding: 0; list-style: none; border-inline-start: 1px solid var(--border-strong); }
.toc a { display: block; margin-inline-start: -1px; padding: 6px 12px; border-inline-start: 1px solid transparent; color: var(--muted); font-size: 14px; line-height: 1.4; text-decoration: none; }
.toc a:hover { color: var(--text); }
.toc a.is-active { border-inline-start-color: var(--text); color: var(--text); font-weight: 600; }

.prose { max-width: 740px; color: var(--text-soft); font-size: 17px; line-height: 1.72; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; color: var(--text); font-size: clamp(24px, 2.6vw, 31px); }
.prose h3 { margin-top: 1.6em; color: var(--text); font-size: 21px; }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose ul > li::marker { color: var(--teal); }
.prose ol > li::marker { color: var(--text); font: 600 .85em var(--font-mono); }
.prose blockquote { margin-inline: 0; padding: 16px 20px; border-inline-start: 2px solid var(--periwinkle); border-radius: 0 var(--radius) var(--radius) 0; background: var(--accent-soft); color: var(--text); }
[dir="rtl"] .prose blockquote { border-radius: var(--radius) 0 0 var(--radius); }
.prose code { padding: .12em .4em; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); font: .86em/1.4 var(--font-mono); color: var(--text); }
.prose pre { padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: #0E0E12; color: #E8E8EC; overflow-x: auto; font: 14px/1.6 var(--font-mono); direction: ltr; text-align: left; }
.prose pre code { padding: 0; border: 0; background: none; color: inherit; font-size: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: start; vertical-align: top; }
.prose thead th { border-bottom: 1px solid var(--border-strong); color: var(--text); font-weight: 600; white-space: nowrap; }
.prose tbody tr:nth-child(even) { background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
.prose hr { height: 1px; border: 0; background: var(--border); }
.prose figure { margin-inline: 0; }
.prose img { border-radius: var(--radius); }
.prose a[target="_blank"]::after { content: "в†—"; margin-inline-start: 2px; font-size: .8em; }
.prose address { font-style: normal; }
.prose details { padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.prose details summary { color: var(--text); font-weight: 600; cursor: pointer; }
.prose .ad-slot { max-width: none; }
.hub-intro { max-width: 780px; margin: 8px 0 0; }
.hub-cards { padding-top: 32px; }
.hub-cards .section-title-sm:first-child { margin-top: 0; }
.related { padding: 48px 0 24px; }

/* prompt categories */
.tag-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tag-filter .chip { min-height: 32px; padding: 4px 12px; font-size: 13.5px; }
.prompt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.prompt-card { display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.prompt-top { display: flex; align-items: baseline; gap: 12px; }
.prompt-n { color: var(--muted); font: 500 13px/1 var(--font-mono); }
.prompt-card h2 { font-size: 18px; }
.prompt-text { padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-soft); color: var(--text-soft); font-size: 15px; line-height: 1.6; white-space: pre-line; }
.prompt-text mark { padding: 0 .2em; border-radius: 4px; background: var(--accent-soft); color: var(--text); font-weight: 600; }
.prompt-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.prompt-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.prompt-model { height: 20px; font-size: 11px; }
.prompt-actions { display: flex; gap: 8px; }
.is-done { border-color: var(--success) !important; color: var(--success) !important; }

/* assistants hub */
.assist-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.assist-card h2 { font-size: 19px; }
.assist-card p { color: var(--muted); font-size: 14.5px; }
.starters { display: grid; gap: 6px; width: 100%; margin: 0; padding: 0; list-style: none; }
.starters a { display: block; padding: 8px 12px; border-radius: 8px; background: var(--surface-2); color: var(--text-soft); font-size: 13.5px; line-height: 1.4; text-decoration: none; }
.starters a:hover { color: var(--text); background: var(--accent-soft); }
.assist-card .btn { margin-top: auto; }

/* tool pages */
.wrap-tool { max-width: 920px; padding-top: 28px; }
.page-hero-tool { padding-bottom: 28px; }
.tool-preview { display: grid; gap: 12px; padding: 24px; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.tp-head { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 17px; }
.tp-label { color: var(--text-soft); font-size: 14px; font-weight: 600; }
.tool-preview textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--bg); resize: vertical; font-size: 16px; line-height: 1.55; }
.tool-preview textarea:focus { outline: none; border-color: rgba(139, 156, 255, .6); box-shadow: var(--ring); }
.tp-options { display: flex; flex-wrap: wrap; gap: 12px; }
.tp-select { display: grid; gap: 4px; color: var(--muted); font-size: 13px; font-weight: 600; }
.tp-select select { min-width: 160px; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface-2); }
.tp-foot { display: flex; justify-content: flex-end; }
.tp-result { display: flex; align-items: center; justify-content: center; min-height: 120px; padding: 18px; border: 1px dashed var(--border-strong); border-radius: 12px; color: var(--muted); font-size: 14.5px; text-align: center; }
.i-spark { width: 17px; height: 17px; }

/* contact */
.contact-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; padding-top: 8px; }
.contact-card { padding: 30px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.contact-card h2 { font-size: 24px; }
.contact-card > .muted { margin-top: 8px; font-size: 15.5px; }
.form { display: grid; gap: 16px; margin-top: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { color: var(--text-soft); font-size: 14px; font-weight: 600; }
.field input, .field textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--bg); font-size: 16px; }
.field textarea { resize: vertical; min-height: 150px; line-height: 1.55; }
.field input:focus, .field textarea:focus { outline: none; border-color: rgba(139, 156, 255, .6); box-shadow: var(--ring); }
.field-file label { display: inline-flex; align-items: center; gap: 8px; }
.field-file label .i { width: 18px; height: 18px; color: var(--teal); }
.field-file input { padding: 9px 12px; border-style: dashed; font-size: 14px; }
.field-file input::file-selector-button { margin-inline-end: 12px; padding: 6px 14px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface-2); color: var(--text); font-weight: 600; cursor: pointer; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form-status { color: var(--muted); font-size: 14.5px; }
[data-state="sent"] .form-status { color: var(--success); font-weight: 600; }
[data-state="error"] .form-status { color: var(--danger); font-weight: 600; }
.i-send { width: 17px; height: 17px; }
.contact-side { display: grid; gap: 14px; }
.contact-mail { display: flex; gap: 14px; padding: 20px; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); color: var(--text-soft); font-size: 15px; }
.contact-links { display: grid; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.contact-links a { display: flex; align-items: center; gap: 12px; padding: 14px 18px; color: var(--text); font-weight: 500; text-decoration: none; }
.contact-links a + a { border-top: 1px solid var(--border); }
.contact-links a:hover { background: var(--surface-2); }
.contact-links a span { flex: 1; }
.contact-links .i { color: var(--muted); }

/* share */
.share-page { position: relative; isolation: isolate; padding-top: 32px; }
.share-page > .page-hero-bg { height: 360px; }
.share-bar { padding: 8px 0; }
.share-badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); color: var(--text-soft); font: 500 12.5px var(--font-mono); }
.share-badge .i { width: 16px; height: 16px; }
.share-bar h1 { margin-top: 16px; font-size: clamp(26px, 3.4vw, 38px); }
.share-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; color: var(--muted); font-size: 14px; }
.share-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.share-thread { display: grid; gap: 18px; padding: 8px 0 24px; }
.share-thread .cg-msg-user { justify-self: end; max-width: 85%; }
.share-thread .cg-bubble { padding: 12px 16px; border-radius: 16px 16px 4px 16px; background: var(--surface-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.share-thread .cg-md-raw { white-space: pre-wrap; overflow-wrap: anywhere; }
.share-thread .cg-msg-ai { padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.cg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.share-foot { margin-bottom: 24px; color: var(--muted); font-size: 13.5px; text-align: center; }

/* 404 */
.nf { position: relative; isolation: isolate; }
.nf > .page-hero-bg { height: 100%; }
.nf-in { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 56px 24px 80px; text-align: center; }
.nf-art { width: 220px; overflow: hidden; border: 1px solid var(--border); border-radius: 20px; background: #0A0A0C; }
.nf h1 { font-size: clamp(30px, 4vw, 44px); }
.nf .lead { max-width: 560px; color: var(--text-soft); font-size: 18px; }
.nf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.nf-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin: 18px 0 0; padding: 0; list-style: none; }
.nf-links a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.nf-links .i { width: 16px; height: 16px; }

/* chat placeholder (until assets/chat ships its own page) */
.chat-placeholder { overflow: hidden; }
.chat-ph { display: grid; grid-template-columns: 290px minmax(0, 1fr); height: 100vh; height: 100dvh; }
.chat-ph-side { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-inline-end: 1px solid var(--border); background: var(--bg-soft); overflow-y: auto; }
.chat-ph-fill { flex: 1; }
.chat-ph-side .ad-slot { margin: 0; }
.chat-ph-main { display: flex; flex-direction: column; min-width: 0; }
.chat-ph-top { display: flex; justify-content: flex-end; gap: 4px; padding: 12px 16px; }
.chat-ph-welcome { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; }
.chat-ph-welcome p { max-width: 520px; color: var(--muted); }
.mark-xl { width: 72px; height: 72px; color: var(--text); }
.composer-dock { width: min(760px, calc(100% - 32px)); margin: 0 auto 20px; }

/* ---------------------------------------------------------------- footer */
.site-footer { position: relative; margin-top: 24px; padding: 56px 0 32px; background: var(--bg-soft); border-top: 1px solid var(--border); overflow: hidden; isolation: isolate; }
.foot-glow { position: absolute; inset: -260px 20% auto; height: 300px; z-index: -1; background: var(--horizon); opacity: .6; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.foot-brand p { margin-top: 14px; max-width: 320px; color: var(--muted); font-size: 14.5px; }
.foot-h { margin-bottom: 12px; color: var(--text); font: 500 11.5px/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.foot-col ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.foot-col a { color: var(--muted); font-size: 14.5px; text-decoration: none; }
.foot-col a:hover { color: var(--text); text-decoration: underline; }
.foot-langs { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); }
.foot-langs > summary { display: inline-flex; align-items: center; gap: 8px; color: var(--text-soft); font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; }
.foot-langs > summary::-webkit-details-marker { display: none; }
.foot-langs > summary .i { width: 17px; height: 17px; }
.foot-langs ul { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 0; padding: 0; list-style: none; }
.foot-langs a { color: var(--muted); font-size: 14px; text-decoration: none; }
.foot-langs a:hover, .foot-langs a[aria-current] { color: var(--text); text-decoration: underline; }
.foot-bottom { display: grid; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.foot-disc, .foot-note { max-width: 860px; }
.foot-disc { color: var(--text-soft); }
.foot-old { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 0; padding: 0; list-style: none; }
.foot-old a { color: var(--text-soft); font-weight: 500; text-decoration: none; }
.foot-old a:hover { color: var(--text); text-decoration: underline; }

/* promo:start ------------------------------------------------------ cross-promo (our own projects; not ads) */
/* Slots (.pr-slot, cg_promo() in inc/lib.php; filled by assets/js/promo.js) have fixed heights per variant and container
   width, so the re-draw never moves the page; the server's default creative stays invisible until promo.js has drawn
   the visitor's one (after 3 s it shows anyway). Designs: .pr-d-white | .pr-d-brand | .pr-d-bold, coloured per product
   by .pr-c-<creative> (--pr-a в†’ --pr-b). Layout by container width: wide (> 860), medium, narrow (<= 640: phones). */
.pr-slot, .pr-host { container: pr / inline-size; }
.pr-slot[hidden] { display: none !important; }
.js .pr-slot:not([data-promo-done]) > .pr { visibility: hidden; animation: pr-show 0s 3s forwards; }
@keyframes pr-show { to { visibility: visible; } }
.pr-zone { padding-top: 16px; }
.pr-slot-top { margin: 0 0 4px; }
.pr-slot-fold { margin: 36px 0; }
.prose > .pr-slot-fold { margin: 36px 0 40px; }
.pr-slot-appbar { display: none; }

.pr { --pr-a: #4F46E5; --pr-b: #9333EA; --pr-ink: #18181B; --pr-soft: #3F3F46; position: relative; display: grid; align-items: center; box-sizing: border-box; overflow: hidden; border: 2px solid transparent; border-radius: 18px; color: var(--pr-ink); font: 15px/1.4 var(--font); text-align: start; isolation: isolate; }
.pr *, .pr *::before, .pr *::after { box-sizing: border-box; }
.pr .pr-label, .pr .pr-title, .pr .pr-text { margin: 0; }
.pr .pr-title, .pr .pr-text { margin-top: 4px; }
.pr-title, .pr-text, .pr-qr span { unicode-bidi: plaintext; }
.pr a { text-decoration: none; }
.pr a::after { content: none !important; }
.pr img, .pr svg { display: block; max-width: 100%; }
.pr .i { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .pr .i-dir { transform: scaleX(-1); }
.pr-c-imagegpt { --pr-a: #DB2777; --pr-b: #C2410C; }
.pr-c-aiart { --pr-a: #E11D48; --pr-b: #9333EA; }
.pr-c-chatplus { --pr-a: #2563EB; --pr-b: #7C3AED; }
.pr-c-maxgpt { --pr-a: #6D28D9; --pr-b: #2563EB; }
.pr-c-bots { --pr-a: #0369A1; --pr-b: #4F46E5; }
.pr-c-app { --pr-a: #047857; --pr-b: #0369A1; }

.pr-media { display: block; overflow: hidden; border-radius: 16px; background: #F4F4F5; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .45); }
.pr-media img { width: 100%; height: 100%; border-radius: 0; object-fit: cover; }
.pr-bots { display: grid; grid-template-columns: 1fr 1fr; place-items: center; gap: 4%; width: 100%; height: 100%; padding: 12%; background: #FFF; }
.pr-bots .pr-ic { width: 100%; height: auto; aspect-ratio: 1; padding: 18%; border-radius: 50%; color: #FFF; }
.pr-bots .pr-ic:nth-child(1) { grid-column: 1 / -1; width: 50%; background: #2AABEE; }
.pr-bots .pr-ic:nth-child(2) { background: linear-gradient(135deg, #3F8CFF, #8B5CF6); }
.pr-bots .pr-ic:nth-child(3) { background: #0077FF; }
.pr-body { min-width: 0; }
.pr-label { overflow: hidden; color: var(--pr-soft); font: 700 11px/14px var(--font); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; }
.pr-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--pr-ink); font: 700 21px/1.2 var(--font-display); letter-spacing: -.015em; }
.pr-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--pr-soft); font-size: 15px; line-height: 1.4; }
.pr-acts { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; }
.pr-btn { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border: 0; border-radius: 12px; font: 700 16px/1 var(--font); white-space: nowrap; transition: transform .15s, box-shadow .15s, filter .15s; }
.pr-btn:hover { transform: translateY(-1px); text-decoration: none; }
.pr-btn .pr-ic { width: 20px; height: 20px; }
.pr-store { display: inline-flex; flex: none; align-items: center; gap: 8px; width: 152px; height: 44px; padding: 0 12px 0 10px; border: 1px solid #A6A6A6; border-radius: 10px; background: #000; color: #FFF; direction: ltr; }
.pr-store:hover { background: #1A1A1A; color: #FFF; text-decoration: none; }
.pr-store .pr-ic { width: 24px; height: 24px; }
.pr-store-t { display: grid; line-height: 1.05; text-align: left; }
.pr-store-t small { font-size: 9.5px; font-weight: 500; letter-spacing: .01em; white-space: nowrap; }
.pr-store-t b { font: 600 16px/1.1 var(--font); letter-spacing: -.01em; white-space: nowrap; }
.pr-stores { display: flex; flex-direction: column; gap: 8px; }
.pr-qr { display: flex; flex: none; flex-direction: column; align-items: center; gap: 4px; }
.pr-qr img { width: 80px; height: 80px; padding: 4px; border-radius: 10px; background: #FFF; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.pr-qr span { max-width: 120px; overflow: hidden; color: var(--pr-soft); font-size: 12px; font-weight: 600; line-height: 16px; white-space: nowrap; text-overflow: ellipsis; }
.pr-get { display: none !important; }
.pr-x { display: grid; flex: none; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--pr-soft); cursor: pointer; }
.pr-x:hover { background: rgba(0, 0, 0, .08); }
.pr-x .pr-ic { width: 18px; height: 18px; }
.pr-os-ios .pr-store-android, .pr-os-android .pr-store-ios, .pr-os-ios .pr-qr, .pr-os-android .pr-qr { display: none; }

/* designs */
.pr-d-white { background: linear-gradient(#FFF, #FFF) padding-box, linear-gradient(120deg, var(--pr-a), var(--pr-b)) border-box; box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .55); }
.pr-d-white .pr-btn-go { background: linear-gradient(120deg, var(--pr-a), var(--pr-b)); color: #FFF; box-shadow: 0 8px 20px -10px var(--pr-a); }
.pr-d-white .pr-btn-go:hover { color: #FFF; filter: brightness(1.08); }
.pr-d-brand { --pr-ink: #FFF; --pr-soft: rgba(255, 255, 255, .9); background: radial-gradient(120% 160% at 100% 0%, rgba(255, 255, 255, .24), transparent 55%) border-box, linear-gradient(120deg, var(--pr-a), var(--pr-b)) border-box; box-shadow: 0 18px 40px -22px var(--pr-b); }
.pr-d-brand .pr-btn-go { background: #FFF; color: var(--pr-a); box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .5); }
.pr-d-brand .pr-btn-go:hover { color: var(--pr-b); }
.pr-d-brand .pr-qr img { box-shadow: none; }
.pr-d-brand .pr-x:hover { background: rgba(255, 255, 255, .18); }
.pr-d-bold { --pr-ink: #0A0A0A; --pr-soft: #27272A; border-color: #0A0A0A; background: #FFD43B; box-shadow: 5px 5px 0 var(--pr-a); }
.pr-d-bold .pr-btn-go { background: #0A0A0A; color: #FFF; }
.pr-d-bold .pr-btn-go:hover { color: #FFD43B; }
.pr-d-bold .pr-media { box-shadow: 0 0 0 2px #0A0A0A; }
.pr-d-bold .pr-store { border-color: #0A0A0A; }
.pr-slim.pr-d-bold { box-shadow: none; }
.pr-card.pr-d-bold { box-shadow: 3px 3px 0 var(--pr-a); }
.pr-btn-tg, .pr-btn-max, .pr-btn-vk { padding: 0 16px; background: #FFF; color: #18181B; box-shadow: 0 0 0 1px rgba(0, 0, 0, .14); }
.pr-btn-tg:hover, .pr-btn-max:hover, .pr-btn-vk:hover { color: #000; }
.pr-d-bold .pr-btn-tg, .pr-d-bold .pr-btn-max, .pr-d-bold .pr-btn-vk { box-shadow: 0 0 0 2px #0A0A0A; }
.pr-btn-tg .pr-ic { color: #2AABEE; }
.pr-btn-max .pr-ic { color: #6D5DFC; }
.pr-btn-vk .pr-ic { color: #0077FF; }

/* strip: "top" and "fold" */
.pr-strip { grid-template-columns: 104px minmax(0, 1fr) auto; gap: 24px; height: 136px; padding: 14px; padding-inline-end: 22px; }
.pr-strip .pr-media { width: 104px; height: 104px; }
.pr-strip .pr-title { -webkit-line-clamp: 1; }
.pr-strip.pr-c-app .pr-acts { gap: 16px; }

/* slim: the strip above the chat (desktop), 60 px */
.pr-slim { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; height: 60px; padding: 0 6px 0 6px; border-radius: 14px; }
.pr-slim .pr-media { width: 44px; height: 44px; border-radius: 11px; box-shadow: none; }
.pr-slim .pr-label { display: none; }
.pr-slim .pr-title { margin-top: 0; font-size: 15px; -webkit-line-clamp: 1; }
.pr-slim .pr-text { margin-top: 1px; font-size: 13px; -webkit-line-clamp: 1; }
.pr-slim .pr-btn { height: 40px; padding: 0 16px; border-radius: 10px; font-size: 14px; }
.pr-slim .pr-btn-tg, .pr-slim .pr-btn-max, .pr-slim .pr-btn-vk { padding: 0 12px; }
.pr-slim .pr-stores { flex-direction: row; }
.pr-slim .pr-store { width: auto; height: 40px; }
.pr-slim .pr-store-t small { display: none; }
.pr-slim .pr-store-t b { font-size: 14px; }
.pr-slim .pr-qr img { width: 52px; height: 52px; padding: 3px; border-radius: 7px; }
.pr-slim .pr-qr span { display: none; }

/* bar: the app on phones (under the site header, and above the chat) */
.pr-bar { display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 4px 0 12px; border-width: 0; border-radius: 0; }
.pr-bar .pr-body { flex: 1 1 auto; }
.pr-bar .pr-media { flex: none; width: 40px; height: 40px; border-radius: 10px; box-shadow: none; }
.pr-bar .pr-label { display: none; }
.pr-bar .pr-title { margin-top: 0; font-size: 15px; -webkit-line-clamp: 1; }
.pr-bar .pr-text { margin-top: 0; font-size: 12.5px; line-height: 1.3; -webkit-line-clamp: 1; }
.pr-bar .pr-stores { flex-direction: row; display: none; }
.pr-bar .pr-store { width: auto; height: 36px; padding: 0 10px 0 8px; }
.pr-bar .pr-store .pr-ic { width: 20px; height: 20px; }
.pr-bar .pr-store-t small { display: none; }
.pr-bar .pr-store-t b { font-size: 14px; }
.pr-bar .pr-get { display: inline-flex !important; height: 36px; padding: 0 16px; border-radius: 18px; font-size: 14px; }
.pr-bar.pr-os-ios .pr-stores, .pr-bar.pr-os-android .pr-stores { display: flex; }
.pr-bar.pr-os-ios .pr-get, .pr-bar.pr-os-android .pr-get { display: none !important; }
.pr-bar.pr-d-white { box-shadow: inset 0 -2px 0 var(--pr-a); background: #FFF; }
.pr-bar.pr-d-bold { box-shadow: inset 0 -2px 0 #0A0A0A; }
.pr-slot-chat-top .pr-bar { border-radius: 12px; }
.pr-slot-chat-top .pr-bar.pr-d-white { box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), inset 0 -2px 0 var(--pr-a); }

/* card: chat sidebar and between chat messages */
.pr-card { grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: 52px auto auto; align-items: start; align-content: start; gap: 10px 12px; height: 178px; padding: 12px; border-radius: 16px; }
.pr-card .pr-media { width: 52px; height: 52px; border-radius: 13px; }
.pr-card .pr-body { display: contents; }
.pr-card .pr-label { grid-column: 2; grid-row: 1; align-self: start; font-size: 10.5px; }
.pr-card .pr-title { grid-column: 2; grid-row: 1; align-self: end; margin: 0; font-size: 14.5px; line-height: 1.25; }
.pr-card .pr-text { grid-column: 1 / -1; margin: 0; font-size: 13px; }
.pr-card .pr-acts { grid-column: 1 / -1; flex-wrap: nowrap; }
.pr-card .pr-btn { flex: 1 1 auto; min-width: 0; height: 38px; padding: 0 12px; font-size: 14px; }
.pr-card .pr-acts-bots { gap: 6px; }
.pr-card .pr-btn-tg, .pr-card .pr-btn-max, .pr-card .pr-btn-vk { flex: 1 1 0; padding: 0 4px; font-size: 13px; }
.pr-card .pr-acts-bots .pr-ic { display: none; }
.pr-card.pr-c-app .pr-text { display: none; }
.pr-card .pr-stores { gap: 6px; }
.pr-card .pr-store { width: 140px; height: 36px; }
.pr-card .pr-store .pr-ic { width: 20px; height: 20px; }
.pr-card .pr-store-t b { font-size: 14px; }
.pr-card .pr-qr img { width: 78px; height: 78px; }
.pr-card .pr-qr span { display: none; }
.pr-card.pr-c-app .pr-acts { grid-row: 2 / 4; gap: 12px; }

/* modal: inside the chat's dialogs (no fixed height) */
.pr-modal { grid-template-columns: 64px minmax(0, 1fr); gap: 14px 14px; padding: 16px; border-radius: 18px; }
.pr-modal .pr-media { width: 64px; height: 64px; border-radius: 15px; }
.pr-modal .pr-title { font-size: 18px; }
.pr-modal .pr-text { -webkit-line-clamp: 3; font-size: 14px; }
.pr-modal .pr-acts { grid-column: 1 / -1; flex-wrap: wrap; }
.pr-modal .pr-btn-go { width: 100%; }
.pr-modal .pr-btn-tg, .pr-modal .pr-btn-max, .pr-modal .pr-btn-vk { flex: 1 1 0; min-width: 0; height: 44px; padding: 0 8px; font-size: 14px; }
.pr-modal.pr-c-app .pr-acts { justify-content: center; gap: 18px; }

@container pr (max-width: 860px) {
  .pr-strip { grid-template-columns: 88px minmax(0, 1fr) auto; gap: 18px; padding-inline: 14px 18px; }
  .pr-strip .pr-media { width: 88px; height: 88px; }
  .pr-strip .pr-title { font-size: 19px; -webkit-line-clamp: 2; }
  .pr-strip .pr-text { -webkit-line-clamp: 1; }
  .pr-strip.pr-c-app .pr-text { display: none; }
  .pr-strip .pr-btn { padding: 0 18px; }
}
@container pr (max-width: 640px) {
  .pr-strip { grid-template-columns: 60px minmax(0, 1fr); grid-template-rows: 60px 44px; gap: 12px; height: 144px; padding: 12px; border-radius: 16px; }
  .pr-strip .pr-media { width: 60px; height: 60px; border-radius: 14px; }
  .pr-strip .pr-title { font-size: 16px; line-height: 1.25; }
  .pr-strip .pr-text { display: none; }
  .pr-strip .pr-acts { grid-column: 1 / -1; }
  .pr-strip .pr-btn { flex: 1 1 0; min-width: 0; height: 44px; padding: 0 10px; font-size: 15px; }
  .pr-strip .pr-acts-bots { gap: 8px; }
  .pr-strip .pr-btn-tg, .pr-strip .pr-btn-max, .pr-strip .pr-btn-vk { gap: 5px; padding: 0 4px; font-size: 13.5px; }
  .pr-strip .pr-acts-bots .pr-ic { width: 18px; height: 18px; }
  .pr-strip .pr-qr { display: none; }
  .pr-strip .pr-stores { flex: 1 1 auto; flex-direction: row; justify-content: center; }
  .pr-strip .pr-store { width: auto; flex: 1 1 0; max-width: 200px; justify-content: center; }
  .pr-slim .pr-text { display: none; }
}
@container pr (max-width: 330px) {
  .pr-strip .pr-acts-bots .pr-ic { display: none; }
}
@container pr (max-width: 360px) {
  .pr-strip .pr-store-t small, .pr-modal .pr-store-t small { display: none; }
  .pr-modal .pr-store { padding: 0 8px; }
  .pr-bar .pr-text { display: none; }
}
@media (max-width: 720px) {
  .pr-zone { padding-top: 0; }
  .pr-zone > .wrap { padding-top: 14px; }
  .pr-slot-appbar { display: block; }
  .pr-slot-fold { margin: 28px 0; }
  .pr-modal .pr-qr { display: none; }
  .pr-modal .pr-stores { flex: 1 1 auto; flex-direction: row; justify-content: center; }
  .pr-modal .pr-store { width: auto; flex: 1 1 0; max-width: 200px; justify-content: center; }
}
/* promo:end */

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .main-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .tool-grid, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps-5 .step::before { display: none; }
  .foot-top { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .hero { padding-top: 36px; }
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-bottom: 56px; }
  .hero-visual { min-height: 0; }
  .page-hero.has-aside .page-hero-in, .page-hero-in.has-art { grid-template-columns: minmax(0, 1fr); }
  .hub-art { max-width: 560px; }
  .article-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .toc { position: static; max-height: none; padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
  .toc-box > summary { margin-bottom: 0; }
  .toc-box[open] > summary { margin-bottom: 10px; }
  .grid-3, .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assist-row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .home-about { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .home-about-art { position: static; max-width: 420px; }
  .web-teaser { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .contact-wrap { grid-template-columns: minmax(0, 1fr); }
  .prompt-grid { grid-template-columns: minmax(0, 1fr); }
  .chat-ph { grid-template-columns: minmax(0, 1fr); }
  .chat-ph-side { display: none; }
}
@media (max-width: 720px) {
  :root { --header-h: 58px; }
  body { font-size: 16px; }
  .wrap { padding-inline: 18px; }
  .section { padding-block: 52px; }
  .section-head { margin-bottom: 26px; }
  .section-head p { font-size: 16px; }
  .section-head-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .header-in { gap: 8px; }
  .header-cta { display: none; }
  .logo-word { font-size: 18.5px; }
  .mark { width: 30px; height: 30px; }
  .lang-code { display: none; }
  .hero-title { font-size: clamp(34px, 9.6vw, 46px); }
  .hero-lead { font-size: 16.5px; }
  .orbit { inset: -14px -10px; }
  .send-label { display: none; }
  .send-btn { padding: 0; width: 44px; }
  .hero-visual { display: none; }
  .model-grid, .tool-grid, .grid-3, .grid-4, .steps-5 { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento-cell { grid-column: auto !important; padding: 22px; }
  .bento-6 { flex-direction: column; align-items: flex-start; }
  .bento-6 p { flex: none; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .contact-card { padding: 22px; }
  .cover { aspect-ratio: 16 / 9; }
  .page-hero { padding: 24px 0 36px; }
  .page-hero .lead { font-size: 16.5px; }
  .prose { font-size: 16.5px; }
  .ad-slot > div { min-height: 280px; }
  .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .mega-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-item > summary { padding: 16px 18px; font-size: 16px; }
  .faq-a { padding: 0 18px 18px; }
  .cta-in { padding: 52px 20px 44px; }
  .sheet-plain { grid-template-columns: minmax(0, 1fr); }
  .lang-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  .wrap { padding-inline: 14px; }
  .lang-btn { padding: 0 6px; min-width: 36px; }
  .icon-btn { min-width: 36px; }
  .model-pill { padding-inline-end: 8px; font-size: 13px; }
  .model-pill .badge { display: none; }
  .hero-chips .chip { font-size: 13.5px; }
}

@media print {
  .site-header, .site-footer, .ad-slot, .pr, .cta-band, .related, .toc, .sheet { display: none !important; }
  .article-grid { display: block; }
}
