
/* Layout: «верстак» — тёмно-синяя плита, в которой прорезаны оранжевым светом разделы;
   слева текст, справа живые демонстрации. Один смелый акцент: рендер с горящими вырезами. */
:root {
  --bg: #111830;          /* как фон рендера */
  --bg-deep: #0b1124;
  --plate: #16203f;       /* «плита» карточек */
  --plate-hi: #1d2a52;
  --line: #273666;
  --fg: #e9edf7;
  --muted: #95a1c6;
  --accent: #ff8a3d;
  --accent-hot: #ffb15c;
  --accent-ink: #1a0d03;
  --glow: color-mix(in srgb, var(--accent) 35%, transparent);

  --f-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --step--1: .85rem;
  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.3rem + 2.4vw, 2.8rem);
  --step-4: clamp(2.6rem, 1.4rem + 5.6vw, 5.4rem);

  --r: 14px;
  --wrap: 1180px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  background: var(--bg);
  color: var(--fg);
  font: 400 var(--step-0)/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg-deep); }
a { color: var(--accent-hot); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font: 600 var(--step--1)/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.mono { font-family: var(--f-mono); }
:focus-visible { outline: 2px solid var(--accent-hot); outline-offset: 3px; border-radius: 6px; }

/* ── шапка ── */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--bg-deep) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font: 700 1.02rem/1 var(--f-display); white-space: nowrap; }

.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--fg); }


/* ── кнопки ── */
.btn { display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; text-decoration: none; font: 700 1rem/1 var(--f-body); border-radius: 12px; padding: 15px 22px; transition: transform .15s, box-shadow .2s, background .2s; }
.btn-hot { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 30px -8px var(--glow); }
.btn-hot:hover { background: var(--accent-hot); transform: translateY(-1px); box-shadow: 0 12px 38px -8px var(--glow); }
.btn-ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn-sm { padding: 10px 16px; font-size: .9rem; border-radius: 10px; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ── герой ── */
.hero { position: relative; overflow: hidden; padding-block: 64px 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; position: relative; z-index: 1; }
.hero-copy { display: grid; gap: 28px; align-content: start; min-width: 0; }
.hero-box { justify-self: center; width: min(100%, 440px); filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .55)) drop-shadow(0 0 70px color-mix(in srgb, var(--accent) 18%, transparent)); }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); } .hero-box { width: 100%; max-width: 460px; } }
.hero h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -.03em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: var(--step-1); color: #c8d0ea; max-width: 34ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 600 .82rem/1 var(--f-body); padding: 8px 12px; border-radius: 999px; background: var(--plate); color: var(--muted); border: 1px solid var(--line); }
.chip b { color: var(--fg); font-weight: 700; }
.chip.free { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.hero-shot { margin-top: 18px; position: relative; }
.hero-shot img { width: 100%; border-radius: 0; mask-image: linear-gradient(to bottom, #000 70%, transparent); -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); }
.dl-note { position: fixed; z-index: 20; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); width: min(560px, calc(100% - 32px)); padding: 14px 18px; border-radius: 12px; background: var(--plate-hi); border: 1px solid var(--line); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8); font-size: .95rem; color: var(--fg); }
.dl-note:empty { display: none; }
.dl-note.ok { border-color: #3f9a5c; }
.dl-note.err { border-color: var(--accent); }

/* ── секции ── */
section { padding-block: 72px; }
.sec-head { display: grid; gap: 14px; margin-bottom: 36px; max-width: 760px; }
.sec-head h2 { font-size: var(--step-3); }
.sec-head p { color: var(--muted); font-size: 1.08rem; max-width: 62ch; }
.cutline { height: 0; border-top: 2px dashed color-mix(in srgb, var(--accent) 45%, transparent); margin: 0; }

/* ── каталог ── */
.catalog { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 18px; }
.card { background: var(--plate); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.addon-card { grid-template-columns: 112px minmax(0, 1fr); column-gap: 20px; align-items: center; }
.addon-card img { width: 112px; height: auto; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .5)); }
.soon .ph { justify-self: center; }
.addon-card h3 { font-size: 1.35rem; }
.addon-card .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.addon-card p { color: var(--muted); grid-column: 1 / -1; }
.addon-card .row { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; }
.soon { border-style: dashed; background: transparent; }
.soon .ph { width: 64px; height: 64px; border-radius: 14px; border: 2px dashed var(--line); display: grid; place-items: center; color: var(--muted); font: 700 1.6rem/1 var(--f-display); }

/* ── возможности ── */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.feat { padding: 20px; border-radius: var(--r); background: linear-gradient(180deg, var(--plate), color-mix(in srgb, var(--plate) 60%, var(--bg))); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.feat img { width: 40px; height: 40px; }
.feat h3 { font-family: var(--f-body); font-size: 1.12rem; font-weight: 700; letter-spacing: 0; }
.feat p { color: var(--muted); font-size: .96rem; }

/* ── HUD ── */
.split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 36px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.shot { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7); }
.list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; color: #cdd5ee; }
.list li img { width: 28px; height: 28px; margin-top: 1px; }
.list b { color: var(--fg); }
.modes { display: flex; gap: 8px; flex-wrap: wrap; }
.mode { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 999px; background: var(--plate); border: 1px solid var(--line); font-weight: 600; font-size: .9rem; }
.mode i { width: 12px; height: 12px; border-radius: 50%; display: block; }

/* ── библиотека ── */
.lib { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .lib { grid-template-columns: minmax(0, 1fr); } }
.stage { position: sticky; top: 96px; display: grid; gap: 14px; }
.plate { aspect-ratio: 1; max-width: 100%; border-radius: 18px; overflow: hidden; position: relative; background: radial-gradient(60% 60% at 50% 55%, #ff7a26 0%, #d9480f 45%, #3a1a10 100%); border: 1px solid var(--line); }
.plate svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-name { font: 700 1.25rem/1.2 var(--f-display); }
.stage-meta { color: var(--muted); font-size: .92rem; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter { font: 600 .9rem/1 var(--f-body); padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--plate); color: var(--muted); cursor: pointer; }
.filter span { opacity: .7; margin-left: 4px; font-family: var(--f-mono); font-size: .78rem; }
.filter[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.filter[aria-pressed="true"] span { opacity: .8; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.tile { border: 1px solid var(--line); background: var(--plate); border-radius: 12px; padding: 12px 6px 8px; cursor: pointer; display: grid; gap: 6px; justify-items: center; color: var(--muted); font: 600 .72rem/1.2 var(--f-body); text-align: center; min-width: 0; transition: border-color .15s, background .15s, transform .15s; }
.tile svg { width: 44px; height: 44px; overflow: visible; }
.tile svg path { fill: var(--accent); }
.tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.tile[aria-pressed="true"] { background: var(--plate-hi); border-color: var(--accent); color: var(--fg); }
.tile span { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; max-width: 100%; }

/* ── интерфейс ── */
.ui-grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 860px) { .ui-grid { grid-template-columns: minmax(0, 1fr); } .ui-grid .panel-shot { max-width: 320px; margin-inline: auto; } }
.panel-shot { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7); }
.ui-notes { display: grid; gap: 18px; }
.ui-note { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.ui-note:last-child { border-bottom: 0; }
.ui-note img { width: 40px; height: 40px; }
.ui-note h3 { font: 700 1.05rem/1.3 var(--f-body); margin-bottom: 4px; }
.ui-note p { color: var(--muted); font-size: .96rem; }

/* ── установка ── */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: s; background: var(--plate); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 8px; align-content: start; }
.steps li::before { content: counter(s); font: 800 1.9rem/1 var(--f-display); color: var(--accent); }
.steps b { font-size: 1.05rem; }
.steps p { color: var(--muted); font-size: .95rem; }
kbd, .path { font: 500 .84rem/1.2 var(--f-mono); background: var(--bg-deep); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 2px 7px; color: var(--fg); white-space: nowrap; }
.path { border-bottom-width: 1px; white-space: normal; }

/* ── клавиши ── */
.keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.keys .card h3 { font: 700 .82rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 14px; align-items: center; margin: 0; }
.kv dt { justify-self: start; }
.kv dd { margin: 0; color: #cdd5ee; font-size: .95rem; }

/* ── версии ── */
.log { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--line); }
.log li { position: relative; padding: 0 0 24px 26px; display: grid; gap: 4px; }
.log li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.log li:first-child::before { background: var(--accent); box-shadow: 0 0 0 5px var(--glow); }
.log .v { font: 500 .9rem/1.2 var(--f-mono); color: var(--accent-hot); }
.log p { color: #cdd5ee; max-width: 70ch; }

/* ── вопросы ── */
.faq { display: grid; gap: 10px; max-width: 860px; }
details { background: var(--plate); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font: 700 1.3rem/1 var(--f-display); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); padding-bottom: 18px; max-width: 70ch; }

/* ── финал ── */
.final { text-align: left; background: radial-gradient(80% 140% at 85% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%), var(--bg-deep); border-block: 1px solid var(--line); }
.final .wrap { display: grid; gap: 20px; justify-items: start; }
.final h2 { font-size: var(--step-3); max-width: 18ch; }
footer { padding-block: 36px 48px; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }


/* ── фон: размытые цветные пятна + сетка как во вьюпорте Blender ── */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, #15204a 0%, var(--bg) 55%, var(--bg-deep) 100%); }
.bg::after { content: ""; position: absolute; inset: -2px; background-image: linear-gradient(rgba(149, 161, 198, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(149, 161, 198, .06) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(90% 70% at 50% 30%, #000 30%, transparent 85%); -webkit-mask-image: radial-gradient(90% 70% at 50% 30%, #000 30%, transparent 85%); }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; will-change: transform; }
.blob.b1 { width: 520px; height: 520px; background: var(--accent); left: -120px; top: 8%; animation: drift1 26s ease-in-out infinite alternate; opacity: .38; }
.blob.b2 { width: 640px; height: 640px; background: #2c4bd6; right: -180px; top: -120px; animation: drift2 32s ease-in-out infinite alternate; opacity: .42; }
.blob.b3 { width: 460px; height: 460px; background: var(--accent-hot); right: 10%; bottom: -160px; animation: drift3 28s ease-in-out infinite alternate; opacity: .26; }
.blob.b4 { width: 380px; height: 380px; background: #6a3cff; left: 35%; top: 45%; animation: drift2 36s ease-in-out infinite alternate-reverse; opacity: .16; }
@keyframes drift1 { to { transform: translate(140px, 90px) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-160px, 120px) scale(.92); } }
@keyframes drift3 { to { transform: translate(-120px, -140px) scale(1.15); } }

/* ── матовое стекло ── */
:root { --glass: rgba(20, 30, 62, .42); --glass-hi: rgba(34, 48, 96, .55); --glass-line: rgba(180, 196, 255, .12); --blur: blur(18px) saturate(150%); }
.glass, .card, .feat, .steps li, details, .tile, .filter, .chip, .mode, .shot, .panel-shot, .ui-note, .keys .card { background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.chip.free, .filter[aria-pressed="true"] { background: var(--accent); }
.tile[aria-pressed="true"] { background: var(--glass-hi); border-color: var(--accent); }
.ui-note { padding: 16px; border-radius: var(--r); border-bottom: 1px solid var(--glass-line); }
.ui-note:last-child { border-bottom: 1px solid var(--glass-line); }
.feat { background: linear-gradient(180deg, rgba(34, 48, 96, .5), rgba(16, 24, 50, .35)); }
.top { background: rgba(10, 16, 36, .55); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); border-bottom: 1px solid var(--glass-line); }
body { background: var(--bg-deep); }

/* ── логотип ── */
.brand { gap: 12px; }
.logo-mark { width: 38px; height: 38px; flex: none; filter: drop-shadow(0 4px 14px var(--glow)); }
.logo-mark .spark { transform-origin: 39.5px 9.5px; animation: twinkle 3.2s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .35; transform: scale(.7) rotate(0deg); } 50% { opacity: 1; transform: scale(1.15) rotate(45deg); } }
.wordmark { display: inline-flex; align-items: baseline; font: 700 1.12rem/1 var(--f-display); letter-spacing: -.02em; }
.wordmark b { font-weight: 700; color: var(--fg); }
.wordmark i { font-style: normal; color: var(--accent); }
.wordmark small { font: 600 .68rem/1 var(--f-mono); color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.nav { display: flex !important; gap: 6px; margin-left: auto; }
.nav a { padding: 9px 14px; border-radius: 10px; color: var(--muted); }
.nav a[aria-current="page"] { color: var(--fg); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--glass-line); }

/* ── страницы ── */
.view { animation: viewIn .55s cubic-bezier(.2, .7, .2, 1); }
@keyframes viewIn { from { opacity: .0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.rise > *:nth-child(2) { animation-delay: .06s; } .rise > *:nth-child(3) { animation-delay: .12s; }
.rise > *:nth-child(4) { animation-delay: .18s; } .rise > *:nth-child(5) { animation-delay: .24s; } .rise > *:nth-child(6) { animation-delay: .3s; }
@keyframes rise { from { opacity: .0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.lift { transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s, border-color .25s; }
.lift:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .8), 0 0 0 1px color-mix(in srgb, var(--accent) 15%, transparent); }

/* ── главная ── */
.home-hero { padding-block: 72px 40px; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
@media (min-width: 960px) { .home-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
.home-copy { display: grid; gap: 26px; min-width: 0; }
.home-copy h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -.03em; }
.home-copy h1 em { font-style: normal; background: linear-gradient(180deg, var(--accent-hot), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-copy .lead { font-size: var(--step-1); color: #c8d0ea; max-width: 40ch; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --ang: 360deg; } }
/* ── интерактивная плита для вырезов ── */
.forge { justify-self: center; width: min(100%, 500px); display: grid; gap: 12px; }
.forge-frame { position: relative; border-radius: 26px; padding: 14px; perspective: 900px; }
.forge-ring { position: absolute; inset: -1px; border-radius: 26px; padding: 1px; background: conic-gradient(from var(--ang, 0deg), transparent 0 62%, var(--accent) 76%, transparent 90%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 7s linear infinite; pointer-events: none; }
.forge-tilt { transform-style: preserve-3d; transition: transform .25s ease-out; border-radius: 18px; }
.forge canvas { display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 18px; cursor: none; touch-action: manipulation; }
.forge-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); padding: 8px 14px; border-radius: 999px; font: 600 .82rem/1 var(--f-body); color: var(--fg); white-space: nowrap; pointer-events: none; transition: opacity .4s; }
.forge-hint b { color: var(--accent); }
.forge-bar { border-radius: 16px; padding: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.forge-shapes { display: flex; gap: 6px; flex-wrap: wrap; flex: 1 1 auto; }
.fshape { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--glass-line); background: rgba(8, 12, 28, .45); display: grid; place-items: center; cursor: pointer; padding: 0; transition: transform .15s, border-color .15s, background .15s; }
.fshape svg { width: 20px; height: 20px; fill: var(--muted); transition: fill .15s; }
.fshape:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.fshape[aria-pressed="true"] { background: var(--accent); border-color: transparent; }
.fshape[aria-pressed="true"] svg { fill: var(--accent-ink); }
.fshape.rand { font: 800 1rem/1 var(--f-display); color: var(--muted); }
.fshape.rand[aria-pressed="true"] { color: var(--accent-ink); }
.forge-size { display: flex; align-items: center; gap: 8px; color: var(--muted); font: 600 .8rem/1 var(--f-body); }
.forge-size input { width: 92px; accent-color: var(--accent); }
.forge-clear { padding: 9px 12px; font-size: .82rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.fact { border-radius: var(--r); padding: 18px 20px; display: grid; gap: 4px; }
.fact b { font: 700 1.5rem/1.1 var(--f-display); color: var(--fg); }
.fact span { color: var(--muted); font-size: .92rem; }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.pillar { border-radius: var(--r); padding: 24px; display: grid; gap: 12px; align-content: start; }
.pillar .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); }
.pillar .ico svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { font: 700 1.15rem/1.3 var(--f-body); }
.pillar p { color: var(--muted); }
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; counter-reset: f; margin: 0; padding: 0; list-style: none; }
.flow li { counter-increment: f; border-radius: var(--r); padding: 22px; display: grid; gap: 8px; align-content: start; position: relative; }
.flow li::before { content: counter(f, decimal-leading-zero); font: 600 .85rem/1 var(--f-mono); color: var(--accent); letter-spacing: .08em; }
.flow b { font-size: 1.08rem; }
.flow p { color: var(--muted); font-size: .95rem; }
.release { border-radius: 18px; padding: 18px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; text-decoration: none; color: var(--fg); }
.release img { width: 54px; height: auto; }
.release .grow { flex: 1 1 220px; min-width: 0; display: grid; gap: 2px; }
.release small { color: var(--muted); font-size: .85rem; }
.release b { font-size: 1.05rem; }
.release .arrow { color: var(--accent); font: 700 1.3rem/1 var(--f-display); transition: transform .2s; }
.release:hover .arrow { transform: translateX(4px); }

/* ── страница аддонов ── */
.page-head { padding-block: 64px 28px; display: grid; gap: 14px; }
.page-head h1 { font-size: var(--step-3); }
.page-head p { color: var(--muted); font-size: 1.08rem; max-width: 60ch; }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 20px; padding-bottom: 80px; }
.product { border-radius: 20px; padding: 22px; display: grid; gap: 16px; align-content: start; text-decoration: none; color: var(--fg); }
.product .art { border-radius: 14px; aspect-ratio: 4 / 3.2; display: grid; place-items: center; background: radial-gradient(70% 70% at 50% 65%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%), rgba(8, 12, 28, .45); overflow: hidden; }
.product .art img { width: 62%; height: auto; transition: transform .45s cubic-bezier(.2, .7, .2, 1); filter: drop-shadow(0 22px 28px rgba(0, 0, 0, .6)); }
.product:hover .art img { transform: translateY(-6px) rotate(-2deg) scale(1.04); }
.product h2 { font-size: 1.4rem; }
.product p { color: var(--muted); }
.product .meta { display: flex; flex-wrap: wrap; gap: 8px; }
.product .row { display: flex; flex-wrap: wrap; gap: 10px; }
.product.soon { border-style: dashed; }
.product.soon .art { background: rgba(8, 12, 28, .35); }
.product.soon .art span { font: 800 3rem/1 var(--f-display); color: var(--line); }

/* ── плитка «+N» в библиотеке ── */
.tile.more { align-content: center; background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent); color: var(--accent-hot); }
.tile.more b { font: 800 1.35rem/1 var(--f-display); color: var(--accent); }
.tile.more:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); }

/* ── страница аддона ── */
.crumbs { padding-top: 28px; display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .92rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--fg); }
.hero { padding-block: 28px 0; }
.hero-box { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-.6deg); } }
.final { background: transparent; border: 0; }
.final .wrap > .glass { border-radius: 24px; padding: clamp(24px, 4vw, 44px); display: grid; gap: 20px; justify-items: start; background: radial-gradient(80% 140% at 85% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%), var(--glass); }
footer { border-top: 1px solid var(--glass-line); }

/* ═════════ акцентные цвета (настройка) ═════════ */
html[data-accent="amber"] { --accent: #ffb020; --accent-hot: #ffd36b; --glow: rgba(255, 176, 32, .35); }
html[data-accent="coral"] { --accent: #ff5d5d; --accent-hot: #ff9a8a; --glow: rgba(255, 93, 93, .35); }
html[data-accent="mint"]  { --accent: #38d39f; --accent-hot: #8ff0c9; --glow: rgba(56, 211, 159, .32); --accent-ink: #03170f; }
html[data-accent="sky"]   { --accent: #4cb4ff; --accent-hot: #9bd6ff; --glow: rgba(76, 180, 255, .32); --accent-ink: #021220; }
html[data-text="s"] { font-size: 93.75%; }
html[data-text="l"] { font-size: 112.5%; }
html.no-blobs .blob { display: none; }
html.no-glass { --blur: none; }
html.no-glass .top, html.no-glass .glass, html.no-glass .auth::backdrop { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.no-glass .glass, html.no-glass .card, html.no-glass .feat, html.no-glass .tile, html.no-glass details, html.no-glass .steps li { background-color: rgba(20, 30, 62, .92); }
html.no-motion *, html.no-motion *::before, html.no-motion *::after { animation: none !important; transition: none !important; }
html.no-motion { scroll-behavior: auto; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* ═════════ шапка ═════════ */
.top .wrap { gap: 14px; flex-wrap: wrap; }
.nav { margin-left: 18px; }
.tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ibtn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; color: var(--muted); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--glass-line); border: 0; cursor: pointer; text-decoration: none; transition: color .2s, background .2s, box-shadow .2s, transform .15s; }
.ibtn svg { width: 19px; height: 19px; }
.ibtn:hover { color: var(--fg); background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent); }
.ibtn[aria-current="page"] { color: var(--accent); }
.ibtn.tg:hover { color: #5ec2ff; }
.lang { display: inline-flex; padding: 3px; border-radius: 11px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--glass-line); position: relative; }
.lang button { position: relative; z-index: 1; border: 0; background: none; color: var(--muted); font: 700 .74rem/1 var(--f-mono); letter-spacing: .06em; padding: 10px 10px; border-radius: 8px; cursor: pointer; transition: color .2s; }
.lang button[aria-pressed="true"] { color: var(--accent-ink); }
.lang::before { content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 8px; background: var(--accent); transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
html[lang="en"] .lang::before { transform: translateX(100%); }
.acc-btn { display: inline-flex; align-items: center; gap: 9px; border: 0; cursor: pointer; text-decoration: none; padding: 4px 12px 4px 4px; border-radius: 12px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--glass-line); color: var(--fg); font: 700 .9rem/1 var(--f-body); max-width: 200px; }
.acc-btn:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent); }
.acc-btn .avatar { width: 32px; height: 32px; border-radius: 9px; }
.acc-btn span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu { position: relative; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; padding: 8px; border-radius: 16px; display: grid; gap: 2px; z-index: 30; background: rgba(16, 24, 52, .92); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); transform-origin: top right; animation: pop .22s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes pop { from { opacity: 0; transform: scale(.92) translateY(-6px); } }
.menu-pop .mp-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--glass-line); margin-bottom: 6px; display: grid; gap: 2px; }
.menu-pop .mp-head b { font-size: .98rem; }
.menu-pop .mp-head small { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; }
.menu-pop a, .menu-pop button { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; color: var(--fg); text-decoration: none; font: 600 .92rem/1 var(--f-body); background: none; border: 0; cursor: pointer; text-align: left; width: 100%; }
.menu-pop a:hover, .menu-pop button:hover { background: rgba(255, 255, 255, .07); }
.menu-pop svg { width: 17px; height: 17px; color: var(--muted); }
.menu-pop .sep { height: 1px; background: var(--glass-line); margin: 6px 4px; }
@media (max-width: 860px) {
  .nav { order: 3; width: 100%; margin: 0 -4px; overflow-x: auto; scrollbar-width: none; }
  .nav a { white-space: nowrap; }
  .top .wrap { row-gap: 6px; padding-block: 10px 8px; }
}
@media (max-width: 520px) { .wordmark small { display: none; } .tools .ibtn.tg, .tools .ibtn.set { display: none; } .acc-btn span:last-child { display: none; } .acc-btn { padding: 4px; } .tools .btn-login { padding: 10px 13px; } }

/* ═════════ аватар: плитка с вырезом ═════════ */
.avatar { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: radial-gradient(70% 70% at 50% 60%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%), linear-gradient(160deg, #27366c, #0d1430); box-shadow: inset 0 0 0 1px rgba(180, 196, 255, .16); overflow: hidden; flex: none; position: relative; }
.avatar svg { width: 100%; height: 100%; filter: drop-shadow(0 0 5px color-mix(in srgb, var(--accent) 70%, transparent)); }
.avatar-xl { width: 92px; height: 92px; border-radius: 24px; box-shadow: 0 18px 40px -14px var(--glow); }

/* ═════════ новостная строка на главной ═════════ */
.news-ticker { justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px 9px 12px; border-radius: 999px; text-decoration: none; color: var(--fg); font-size: .9rem; max-width: 100%; }
.news-ticker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--glow); animation: ping 2s infinite; flex: none; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px transparent; } }
.news-ticker b { color: var(--accent); font-weight: 700; }
.news-ticker .nt-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #c8d0ea; min-width: 0; }
.news-ticker .arrow { color: var(--accent); transition: transform .2s; }
.news-ticker:hover .arrow { transform: translateX(3px); }
.home-bottom { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.tg-ico { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(160deg, #39a8e8, #1d7fc4); color: #fff; flex: none; }
.tg-ico svg { width: 28px; height: 28px; }

/* ═════════ видео ═════════ */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; border: 1px solid var(--glass-line); background: #070b18; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .v-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video .v-play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, transparent 40%, rgba(5, 8, 20, .75)); border: 0; cursor: pointer; color: #fff; text-decoration: none; width: 100%; padding: 0; }
.video .v-btn { width: clamp(64px, 9vw, 92px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 22%, transparent), 0 20px 50px -10px var(--glow); transition: transform .2s; }
.video .v-btn svg { width: 38%; height: 38%; margin-left: 6%; }
.video .v-play:hover .v-btn { transform: scale(1.07); }
.video .v-cap { position: absolute; left: 20px; right: 20px; bottom: 16px; display: flex; justify-content: space-between; gap: 12px; align-items: end; font-weight: 700; text-align: left; }
.video .v-cap small { color: #c8d0ea; font-weight: 600; }
.video.soon { display: grid; place-items: center; background: radial-gradient(60% 80% at 50% 110%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 70%), repeating-linear-gradient(90deg, rgba(149, 161, 198, .05) 0 1px, transparent 1px 56px), repeating-linear-gradient(0deg, rgba(149, 161, 198, .05) 0 1px, transparent 1px 56px), #0a1024; }
.v-soon { display: grid; gap: 16px; justify-items: center; text-align: center; padding: 24px; }
.v-soon .v-btn { position: relative; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 60%, transparent); color: var(--accent); }
.v-soon .v-btn::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--accent) 55%, transparent); animation: spin2 12s linear infinite; }
@keyframes spin2 { to { transform: rotate(360deg); } }
.v-soon .v-btn svg { width: 30px; height: 30px; margin-left: 4px; }
.v-soon b { font: 700 clamp(1.1rem, 2.4vw, 1.6rem)/1.2 var(--f-display); }
.v-soon p { color: var(--muted); max-width: 46ch; }
.v-yt { display: inline-flex; align-items: center; gap: 8px; font: 600 .82rem/1 var(--f-body); color: #ffb3b3; padding: 7px 12px; border-radius: 999px; background: rgba(255, 60, 60, .12); box-shadow: inset 0 0 0 1px rgba(255, 90, 90, .3); }
.chip-video { text-decoration: none; color: var(--fg); }
.chip-video:hover { border-color: var(--accent); }

/* ═════════ новости ═════════ */
.news-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; padding-bottom: 80px; }
.ncard { border-radius: 20px; padding: 0; overflow: hidden; display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: var(--fg); }
.ncard .n-art { aspect-ratio: 16 / 8; position: relative; overflow: hidden; background: radial-gradient(70% 90% at 70% 110%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%), linear-gradient(160deg, #1b2850, #0c1328); }
.ncard .n-art svg { position: absolute; width: 46%; right: 8%; top: 50%; transform: translateY(-50%) rotate(-8deg); fill: rgba(5, 8, 20, .85); filter: drop-shadow(0 0 18px var(--glow)); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.ncard:hover .n-art svg { transform: translateY(-50%) rotate(4deg) scale(1.06); }
.ncard .n-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 14px; filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .6)); }
.ncard .n-body { padding: 20px 22px 22px; display: grid; gap: 10px; align-content: start; }
.ncard h2 { font-size: 1.22rem; line-height: 1.2; }
.ncard p { color: var(--muted); font-size: .96rem; }
.n-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: .82rem; }
.n-tag { font: 700 .7rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
@media (min-width: 900px) {
  .ncard.featured { grid-column: 1 / -1; grid-template-columns: 1.1fr 1fr; grid-template-rows: none; }
  .ncard.featured .n-art { aspect-ratio: auto; min-height: 300px; }
  .ncard.featured .n-body { padding: 34px; align-content: center; gap: 14px; }
  .ncard.featured h2 { font-size: var(--step-2); }
}
.post { max-width: 780px; padding-block: 28px 90px; display: grid; gap: 20px; }
.post h1 { font-size: var(--step-3); }
.post .lead { font-size: var(--step-1); color: #c8d0ea; }
.post .p-body { display: grid; gap: 16px; font-size: 1.06rem; color: #d3d9ef; }
.post .p-body h2 { font-size: 1.35rem; margin-top: 14px; }
.post .p-body ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.post .p-art { border-radius: 22px; aspect-ratio: 16 / 7; }
.post .p-foot { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 16px; border-top: 1px solid var(--glass-line); }

/* ═════════ настройки ═════════ */
.settings { display: grid; gap: 18px; padding-bottom: 90px; max-width: 900px; }
.set-group { border-radius: 20px; padding: 8px 24px; }
.set-group h2 { font: 700 .8rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); padding: 18px 0 6px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 16px 0; border-top: 1px solid var(--glass-line); flex-wrap: wrap; }
.set-group h2 + .set-row, .form h2 + .muted + .set-row { border-top: 0; }
.set-row > div:first-child { flex: 1 1 260px; min-width: 0; display: grid; gap: 3px; }
.set-row p { color: var(--muted); font-size: .92rem; }
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 12px; background: rgba(5, 8, 20, .4); box-shadow: inset 0 0 0 1px var(--glass-line); }
.seg button { border: 0; background: none; color: var(--muted); font: 700 .9rem/1 var(--f-body); padding: 10px 14px; border-radius: 9px; cursor: pointer; min-width: 44px; transition: background .2s, color .2s; }
.seg button[aria-checked="true"] { background: var(--accent); color: var(--accent-ink); }
.seg button[data-v="s"] { font-size: .78rem; } .seg .seg-m { font-size: .95rem; } .seg .seg-l { font-size: 1.15rem; }
.swatches { display: flex; gap: 10px; }
.swatches button { width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; background: var(--sw); box-shadow: 0 0 0 2px var(--bg-deep), 0 0 0 3px transparent; transition: transform .15s, box-shadow .2s; }
.swatches button:hover { transform: scale(1.1); }
.swatches button[aria-checked="true"] { box-shadow: 0 0 0 3px var(--bg-deep), 0 0 0 5px var(--sw); }
.switch { position: relative; width: 52px; height: 30px; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: rgba(5, 8, 20, .5); box-shadow: inset 0 0 0 1px var(--glass-line); transition: background .25s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: #c3cbe6; transition: transform .25s cubic-bezier(.3, 1.4, .5, 1), background .25s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(22px); background: #fff; }
.switch input:focus-visible + span { outline: 2px solid var(--accent-hot); outline-offset: 3px; }

/* ═════════ профиль ═════════ */
.acc { padding-block: 36px 90px; display: grid; gap: 20px; }
.acc-head { border-radius: 24px; padding: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; background: radial-gradient(60% 140% at 0% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 60%), var(--glass); }
.acc-id { flex: 1 1 220px; min-width: 0; display: grid; gap: 6px; }
.acc-id h1 { font-size: var(--step-2); overflow-wrap: anywhere; }
.acc-id p { color: var(--muted); }
.acc-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.acc-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.acc-tabs { position: sticky; top: 90px; border-radius: 18px; padding: 8px; display: grid; gap: 2px; }
.acc-tabs a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; color: var(--muted); text-decoration: none; font-weight: 700; transition: background .2s, color .2s; position: relative; }
.acc-tabs a svg { width: 19px; height: 19px; flex: none; }
.acc-tabs a:hover { color: var(--fg); background: rgba(255, 255, 255, .05); }
.acc-tabs a[aria-current="page"] { color: var(--fg); background: rgba(255, 255, 255, .08); }
.acc-tabs a[aria-current="page"]::before { content: ""; position: absolute; left: -8px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.acc-tabs a[aria-current="page"] svg { color: var(--accent); }
@media (max-width: 860px) {
  .acc-body { grid-template-columns: minmax(0, 1fr); }
  .acc-tabs { position: static; display: flex; overflow-x: auto; scrollbar-width: none; }
  .acc-tabs a { white-space: nowrap; }
  .acc-tabs a[aria-current="page"]::before { left: 12px; right: 12px; top: auto; bottom: -8px; width: auto; height: 3px; }
}
.acc-panels { min-width: 0; }
.acc-panel { display: grid; gap: 18px; animation: viewIn .4s cubic-bezier(.2, .7, .2, 1); }
.acc-card { border-radius: 20px; padding: 24px; display: grid; gap: 16px; min-width: 0; }
.acc-card h2 { font: 700 1.15rem/1.2 var(--f-display); }
.acc-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.acc-card-head a { color: var(--accent-hot); text-decoration: none; font-weight: 700; font-size: .92rem; }
.acc-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.acc-link { text-decoration: none; color: var(--fg); gap: 4px; }
.acc-link span { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 14px; }
.stat { border-radius: 18px; padding: 18px 20px; display: grid; gap: 6px; position: relative; overflow: hidden; }
.stat b { font: 800 2rem/1 var(--f-display); }
.stat span { color: var(--muted); font-size: .88rem; }
.stat::after { content: ""; position: absolute; right: -24px; top: -24px; width: 80px; height: 80px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 18%, transparent); filter: blur(4px); }
.form { gap: 18px; }
.f-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field > span { font-weight: 700; font-size: .9rem; }
.field-wide { grid-column: 1 / -1; }
.field input { font: 500 1rem/1.2 var(--f-body); color: var(--fg); background: rgba(5, 8, 20, .45); border: 1px solid var(--glass-line); border-radius: 12px; padding: 13px 14px; width: 100%; transition: border-color .2s, box-shadow .2s; }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.field input[readonly] { color: var(--muted); }
.field small { color: var(--muted); font-size: .82rem; }
.badge-warn { color: #ffcf8a !important; }
.badge-ok { color: #7fe0a8 !important; }
.form-msg { font-weight: 600; font-size: .94rem; min-height: 1.2em; }
.form-msg.ok { color: #7fe0a8; } .form-msg.err { color: #ff9a8a; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-danger { background: rgba(255, 80, 80, .14); color: #ffb3a8; box-shadow: inset 0 0 0 1.5px rgba(255, 90, 90, .45); }
.btn-danger:hover { background: rgba(255, 80, 80, .24); }
.danger { border-color: rgba(255, 90, 90, .28) !important; }
.ava-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; }
.ava-pick button { aspect-ratio: 1; border-radius: 13px; border: 0; padding: 0; cursor: pointer; background: none; box-shadow: 0 0 0 2px transparent; transition: transform .15s, box-shadow .2s; }
.ava-pick button .avatar { width: 100%; height: 100%; border-radius: 12px; }
.ava-pick button:hover { transform: translateY(-2px); }
.ava-pick button[aria-checked="true"] { box-shadow: 0 0 0 2px var(--bg-deep), 0 0 0 4px var(--fg); }
.sessions { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sessions li { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; background: rgba(5, 8, 20, .35); border: 1px solid var(--glass-line); flex-wrap: wrap; }
.sessions .s-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: var(--muted); flex: none; }
.sessions .s-ico svg { width: 20px; height: 20px; }
.sessions .s-txt { flex: 1 1 200px; min-width: 0; display: grid; gap: 2px; }
.sessions .s-txt small { color: var(--muted); }
.sessions .here { font: 700 .72rem/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: #7fe0a8; background: rgba(60, 200, 120, .12); padding: 6px 9px; border-radius: 999px; }
.orders { display: grid; gap: 10px; }
.order { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px; border-radius: 16px; background: rgba(5, 8, 20, .35); border: 1px solid var(--glass-line); }
.order img { width: 56px; height: auto; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .5)); }
.order .o-txt { display: grid; gap: 3px; min-width: 0; }
.order .o-txt small { color: var(--muted); font-size: .84rem; }
.order .o-side { display: grid; gap: 8px; justify-items: end; }
.order .price { font: 700 .95rem/1 var(--f-mono); }
.order .status { font: 700 .7rem/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: #7fe0a8; }
@media (max-width: 560px) { .order { grid-template-columns: 44px minmax(0, 1fr); } .order img { width: 44px; } .order .o-side { grid-column: 1 / -1; justify-items: start; grid-auto-flow: column; justify-content: space-between; align-items: center; } }
.empty { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 30px 10px; color: var(--muted); }
.empty svg { width: 60px; height: 60px; fill: color-mix(in srgb, var(--accent) 60%, transparent); }
.acc-guest { padding-block: 80px; display: grid; justify-items: center; gap: 18px; text-align: center; }

/* ═════════ 404 ═════════ */
.nf { padding-block: 56px 90px; display: grid; gap: 18px; justify-items: center; text-align: center; }
.nf-plate { width: min(100%, 640px); cursor: crosshair; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .6)) drop-shadow(0 0 60px var(--glow)); animation: float 7s ease-in-out infinite; }
.nf-plate svg { width: 100%; height: auto; display: block; }
.nf-edge { fill: none; stroke: var(--accent-hot); stroke-width: 2; stroke-dasharray: 12 8; animation: dash 6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -200; } }
.nf h1 { font-size: var(--step-3); max-width: 20ch; }
.nf .lead { color: #c8d0ea; max-width: 52ch; font-size: 1.08rem; }
.nf .cta { justify-content: center; }
.nf-path { color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.nf-path:empty { display: none; }

/* ═════════ футер ═════════ */
.foot { padding-block: 48px 40px; }
.foot .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; justify-content: stretch; }
.foot .f-brand { display: grid; gap: 14px; align-content: start; }
.foot .f-brand p { max-width: 34ch; }
.foot h3 { font: 700 .76rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--fg); margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--accent-hot); }
.foot .f-bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 24px; border-top: 1px solid var(--glass-line); font-size: .85rem; }
@media (max-width: 860px) { .foot .wrap { grid-template-columns: 1fr 1fr; } .foot .f-brand { grid-column: 1 / -1; } }
.fab { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 15; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: linear-gradient(160deg, #39a8e8, #1d7fc4); box-shadow: 0 14px 34px -10px rgba(29, 127, 196, .8); text-decoration: none; transition: transform .2s; }
.fab svg { width: 28px; height: 28px; }
.fab:hover { transform: translateY(-3px) rotate(-4deg); }
.fab .fab-tip { position: absolute; right: calc(100% + 10px); white-space: nowrap; padding: 8px 12px; border-radius: 10px; background: rgba(16, 24, 52, .95); border: 1px solid var(--glass-line); font: 600 .85rem/1 var(--f-body); opacity: 0; transform: translateX(6px); transition: opacity .2s, transform .2s; pointer-events: none; }
.fab:hover .fab-tip { opacity: 1; transform: none; }

/* ═════════ уведомления (тосты) ═════════ */
.toasts { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); width: min(520px, calc(100% - 32px)); display: grid; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: rgba(20, 30, 62, .94); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .9); animation: toastIn .35s cubic-bezier(.2, .9, .3, 1.2); font-weight: 600; font-size: .95rem; }
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 10px var(--accent); }
.toast.ok::before { background: #5fd894; box-shadow: 0 0 10px #5fd894; }
.toast.err::before { background: #ff6b5b; box-shadow: 0 0 10px #ff6b5b; }
.toast.out { animation: toastOut .3s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }
.dl-note { display: none !important; }

/* ── правки после проверки ── */
html, body { margin: 0; }
.acc-panel { padding: 0; }
.field { align-content: start; }
.settings { margin-inline: 0 auto; }
@media (min-width: 1212px) { .settings { margin-left: calc((100% - var(--wrap)) / 2); } }
.ncard .n-art svg { fill: url(#nGlow); filter: drop-shadow(0 0 14px var(--accent)) drop-shadow(0 0 40px var(--glow)); }
.ncard.featured .n-art svg { width: 36%; }
.n-art-plate { position: absolute; inset: 0; background: radial-gradient(40% 60% at 62% 50%, rgba(0, 0, 0, .5), transparent 70%); }

/* ═════════ платные аддоны: цена и скидка ═════════ */
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; }
.price b { font: 800 1.7rem/1 var(--f-display); color: var(--fg); letter-spacing: -.02em; }
.price s { font: 600 1.05rem/1 var(--f-body); color: var(--muted); text-decoration-color: #ff4d4d; text-decoration-thickness: 2px; }
.price-off { align-self: center; font: 800 .82rem/1 var(--f-body); letter-spacing: .04em; color: #fff; background: linear-gradient(180deg, #ff5252, #d91d2a); padding: 6px 10px; border-radius: 999px; box-shadow: 0 6px 18px -6px rgba(255, 50, 60, .7); }
.price-hero b { font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem); }
.price-hero s { font-size: 1.3rem; }
.price-hero .price-off { font-size: .95rem; padding: 8px 12px; }
.chip-sale { background: rgba(255, 60, 70, .14) !important; color: #ff7b7b !important; border-color: rgba(255, 80, 90, .45) !important; font-weight: 800; }
.product .art { position: relative; }
.sale-badge { position: absolute; top: 14px; right: 14px; font: 800 1.05rem/1 var(--f-display); color: #fff; background: linear-gradient(180deg, #ff5252, #d91d2a); padding: 10px 12px; border-radius: 14px; transform: rotate(6deg); box-shadow: 0 10px 24px -8px rgba(255, 40, 50, .8); }
.product-paid { border-color: rgba(255, 90, 90, .28) !important; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.gallery figure { margin: 0; border-radius: 18px; overflow: hidden; display: grid; }
.gallery img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; }
.gallery figcaption { padding: 12px 16px; color: var(--muted); font-size: .92rem; }
.order .status.pending { color: #ffb15c; }
/* окно оформления */
.checkout { padding: 0; border: 0; background: transparent; color: var(--fg); width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; display: grid; place-items: center; }
.checkout:not([open]) { display: none; }
.checkout::backdrop { background: rgba(4, 7, 18, .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.co-card { width: min(520px, calc(100% - 24px)); border-radius: 26px; padding: 26px; display: grid; gap: 18px; background: rgba(13, 20, 44, .92); border: 1px solid rgba(180, 196, 255, .14); box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .9); animation: forgeIn .45s cubic-bezier(.2, .9, .25, 1.1); position: relative; }
.co-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; }
.co-item img { width: 96px; height: auto; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .6)); }
.co-item h3 { font: 700 1.3rem/1.2 var(--f-display); }
.co-item p { color: var(--muted); font-size: .9rem; }
.co-lines { display: grid; gap: 8px; padding: 14px 16px; border-radius: 14px; background: rgba(5, 8, 20, .45); }
.co-lines div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.co-lines .red { color: #ff7b7b; font-weight: 700; }
.co-lines .total { color: var(--fg); font-weight: 800; font-size: 1.15rem; padding-top: 8px; border-top: 1px solid var(--glass-line); }
.co-note { color: var(--muted); font-size: .88rem; }
.co-card .btn { justify-content: center; }
/* цена и кнопки у всех карточек на одной высоте */
.shelf .product { display: flex; flex-direction: column; }
.shelf .product .price { margin-top: auto; }
.shelf .product.soon .row { margin-top: auto; }

/* ── способы оплаты ── */
.co-pay { display: grid; gap: 10px; }
.co-pay .pc-head { font: 700 .78rem/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 2px 2px 0; }
.pay-card { --pc: 255, 138, 61; display: grid; grid-template-columns: 52px minmax(0, 1fr) 22px; align-items: center; gap: 14px; width: 100%; padding: 12px 14px 12px 12px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(var(--pc), .10), rgba(255, 255, 255, .02) 60%); border: 1px solid rgba(var(--pc), .22); color: var(--fg); text-align: left; cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.pay-card:hover:not(:disabled), .pay-card:focus-visible { transform: translateY(-2px); border-color: rgba(var(--pc), .7); box-shadow: 0 14px 34px -14px rgba(var(--pc), .55); outline: none;
  background: linear-gradient(135deg, rgba(var(--pc), .2), rgba(255, 255, 255, .03) 65%); }
.pay-card:disabled { opacity: .55; cursor: default; }
.pay-card.busy { opacity: 1; border-color: rgba(var(--pc), .8); }
.pay-card .pc-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, rgba(var(--pc), 1), rgba(var(--pc), .55)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 18px -8px rgba(var(--pc), .8); }
.pay-card .pc-ico svg { width: 26px; height: 26px; }
.pay-card .pc-ico img { width: 38px; height: 38px; object-fit: contain; }
.pay-card .pc-txt { display: grid; gap: 2px; min-width: 0; }
.pay-card .pc-txt b { font: 700 1.02rem/1.2 var(--f-display); }
.pay-card .pc-txt small { color: var(--muted); font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pay-card .pc-go { color: rgba(var(--pc), 1); display: grid; place-items: center; transition: transform .18s ease; }
.pay-card .pc-go svg { width: 20px; height: 20px; }
.pay-card:hover .pc-go { transform: translateX(3px); }
.pay-card.busy .pc-go svg { animation: pcPulse 1s ease-in-out infinite; }
@keyframes pcPulse { 50% { opacity: .3; transform: translateX(4px); } }
.pc-sbp { --pc: 46, 196, 160; }
.pc-card { --pc: 255, 138, 61; }
.pc-yoomoney { --pc: 139, 92, 246; }
.pc-none { padding: 14px; border-radius: 14px; text-align: center; color: var(--muted); border: 1px dashed var(--glass-line); }

/* ── окно результата оплаты ── */
.pr-card { text-align: center; justify-items: center; padding: 34px 28px 26px; }
#pr-body { display: grid; justify-items: center; gap: 12px; width: 100%; }
#pr-body h2 { font: 800 1.55rem/1.15 var(--f-display); }
#pr-body p { color: var(--muted); max-width: 400px; }
.pr-hero { position: relative; margin-bottom: 4px; }
.pr-box { width: 150px; height: auto; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .6)); animation: prBox .6s cubic-bezier(.2, .9, .25, 1.2); }
.pr-hero .pr-ico { position: absolute; right: -14px; bottom: 4px; width: 50px; height: 50px; }
.pr-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.pr-ico svg { width: 55%; height: 55%; }
.pr-ok { background: linear-gradient(145deg, #34d399, #059669); box-shadow: 0 0 0 6px rgba(52, 211, 153, .18), 0 12px 30px -8px rgba(16, 185, 129, .8); animation: prPop .5s .25s cubic-bezier(.2, .9, .25, 1.4) both; }
.pr-fail { background: linear-gradient(145deg, #f87171, #dc2626); box-shadow: 0 0 0 6px rgba(248, 113, 113, .16); }
.pr-wait { background: rgba(255, 255, 255, .06); border: 1px solid var(--glass-line); color: var(--muted); }
.pr-spin { width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--accent, #ff8a3d); animation: prSpin .8s linear infinite; }
.pr-actions { display: grid; grid-template-columns: 1fr; gap: 10px; width: 100%; margin-top: 6px; }
.pr-actions .btn { width: 100%; justify-content: center; }
.pr-actions .btn svg { width: 18px; height: 18px; }
.pr-order { color: var(--muted); font-size: .8rem; }
@keyframes prPop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes prBox { from { transform: translateY(14px) scale(.9); opacity: 0; } }
@keyframes prSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pr-box, .pr-ok, .pr-spin, .pay-card.busy .pc-go svg { animation: none; } }

/* ── покупки: кнопка «Скачать» ── */
.o-dl svg { width: 16px; height: 16px; }
.o-dl { gap: 6px; }

/* ── промокод в окне заказа ── */
.co-promo { margin-top: -6px; }
.link-btn { background: none; border: 0; padding: 4px 2px; color: var(--accent-hot, #ffb26b); font: 600 .9rem/1.2 var(--f-body, inherit); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 178, 107, .4); }
.link-btn:hover { text-decoration-color: currentColor; }
.promo-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.promo-form input { min-width: 0; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--glass-line); background: rgba(5, 8, 20, .5); color: var(--fg); font: 600 .95rem/1.2 var(--f-mono, monospace); text-transform: uppercase; letter-spacing: .04em; }
.promo-form input:focus { outline: none; border-color: var(--accent, #ff8a3d); }
.promo-msg { font-size: .85rem; margin-top: 6px; min-height: 0; }
.promo-msg.err { color: #ff8b8b; }
.promo-ok { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .35); color: #7ef0c0; font-weight: 600; font-size: .92rem; }
.promo-ok span { display: inline-flex; align-items: center; gap: 8px; }
.promo-ok svg { width: 18px; height: 18px; }
.co-lines .green { color: #7ef0c0; font-weight: 700; }
.co-free { width: 100%; justify-content: center; gap: 8px; }
.co-free svg { width: 18px; height: 18px; }

/* ── админ-панель ── */
.adm { padding-block: 32px 80px; }
.adm-login { max-width: 420px; margin: 40px auto; padding: 32px; border-radius: 26px; display: grid; gap: 14px; }
.adm-login h1, .adm-head h1 { font: 800 1.8rem/1.1 var(--f-display); }
.adm-login form { display: grid; gap: 12px; }
.adm-field { display: grid; gap: 6px; font-size: .85rem; color: var(--muted); }
.adm-field input, .adm-field textarea, .adm-field select, .adm-num, .adm-search input, .adm-ban input {
  width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--glass-line); background: rgba(5, 8, 20, .5); color: var(--fg); font: 500 .95rem/1.3 inherit; }
.adm-field input:focus, .adm-field textarea:focus, .adm-field select:focus, .adm-num:focus, .adm-search input:focus, .adm-ban input:focus { outline: none; border-color: var(--accent, #ff8a3d); }
.adm-field input[type=file] { padding: 8px; }
.adm-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.adm-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 14px; background: rgba(5, 8, 20, .45); border: 1px solid var(--glass-line); }
.adm-tabs button { border: 0; background: none; color: var(--muted); font: 700 .9rem/1 var(--f-display); padding: 10px 14px; border-radius: 10px; cursor: pointer; }
.adm-tabs button[aria-selected="true"] { background: var(--accent, #ff8a3d); color: #1a0d03; }
.adm-panel { display: grid; gap: 16px; }
.adm-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.adm-bar h2 { font: 800 1.35rem/1.1 var(--f-display); }
.adm-hint { font-size: .88rem; }
.adm-card { padding: 18px; border-radius: 20px; }
.adm-card h3 { font: 700 1.1rem/1.2 var(--f-display); margin-bottom: 12px; }
.adm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.adm-table { overflow-x: auto; }
.adm-table table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.adm-table th { text-align: left; color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px; border-bottom: 1px solid var(--glass-line); white-space: nowrap; }
.adm-table td { padding: 10px; border-bottom: 1px solid rgba(255, 255, 255, .05); vertical-align: middle; }
.adm-table tr:last-child td { border-bottom: 0; }
.adm-table img { border-radius: 8px; display: block; }
.adm-table tr.is-banned td { opacity: .75; }
.adm-num { width: 100px; padding: 8px 10px; }
.adm-pct { font-weight: 700; color: #ff8b8b; white-space: nowrap; }
.adm-row-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; }
.adm-danger { color: #ff9b9b; border-color: rgba(255, 120, 120, .35); }
.adm-danger[data-armed] { background: #dc2626; color: #fff; border-color: #dc2626; }
.adm-form { display: grid; gap: 14px; }
.adm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 14px; }
.adm-wide { grid-column: 1 / -1; }
.adm-check { display: flex; align-items: center; gap: 8px; font-weight: 600; align-self: end; padding-bottom: 10px; }
.adm-calc { color: var(--accent-hot, #ffb26b); font-weight: 600; min-height: 1.2em; }
.adm-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.adm-search { display: flex; gap: 8px; }
.adm-search input { width: 260px; max-width: 60vw; }
.adm-seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(5, 8, 20, .45); border: 1px solid var(--glass-line); }
.adm-seg button { border: 0; background: none; color: var(--muted); font-weight: 700; padding: 8px 12px; border-radius: 9px; cursor: pointer; }
.adm-seg button[aria-pressed="true"] { background: rgba(255, 255, 255, .1); color: var(--fg); }
.adm-ban { display: flex; gap: 6px; }
.adm-ban input { width: 220px; padding: 8px 10px; }
.adm-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.adm-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.adm-switch span { position: absolute; inset: 0; border-radius: 99px; background: rgba(255, 255, 255, .12); transition: background .2s; cursor: pointer; }
.adm-switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.adm-switch input:checked + span { background: #10b981; }
.adm-switch input:checked + span::after { transform: translateX(20px); }
.adm-switch input:focus-visible + span { outline: 2px solid var(--accent, #ff8a3d); outline-offset: 2px; }
.adm-stats .stat b { font-size: clamp(1.15rem, 2.2vw, 1.55rem); white-space: nowrap; }
.adm-table td.mono, .adm-table .mono { white-space: nowrap; }
/* высокие окна (заказ с промокодом) прокручиваются, а не обрезаются */
.checkout { overflow-y: auto; overscroll-behavior: contain; padding-block: 16px; place-items: safe center; }
.checkout .co-card { margin-block: auto; }

/* ── подтверждение почты в профиле ── */
.ev { display: grid; gap: 8px; margin-top: -4px; }
.ev:empty { display: none; }
.ev-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ev-row input { flex: 1 1 200px; min-width: 0; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--glass-line); background: rgba(5, 8, 20, .5); color: var(--fg); font: 600 .95rem/1.2 inherit; }
.ev-row input.mono { letter-spacing: .3em; font-family: var(--f-mono, monospace); max-width: 180px; }
.ev-row input:focus { outline: none; border-color: var(--accent, #ff8a3d); }
.ev-msg { font-size: .85rem; }
.ev-msg.err { color: #ff8b8b; }
.ev-msg.ok { color: #7ef0c0; }

/* ═════════ окно входа: «кузница» ═════════ */
.auth { padding: 0; border: 0; background: transparent; color: var(--fg); max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; overflow-y: auto; display: grid; place-items: center; }
.auth:not([open]) { display: none; }
.auth::backdrop { background: rgba(4, 7, 18, .62); -webkit-backdrop-filter: blur(10px) saturate(120%); backdrop-filter: blur(10px) saturate(120%); }
.auth[open] .auth-card { animation: forgeIn .55s cubic-bezier(.2, .9, .25, 1.1); }
.auth.closing .auth-card { animation: forgeOut .25s ease-in forwards; }
@keyframes forgeIn { from { opacity: 0; transform: translateY(26px) scale(.94) rotateX(8deg); } }
@keyframes forgeOut { to { opacity: 0; transform: translateY(16px) scale(.97); } }
.auth-card { position: relative; width: min(920px, calc(100% - 24px)); margin: 24px auto; display: grid; grid-template-columns: 1fr 1.08fr; border-radius: 30px; overflow: hidden; background: rgba(13, 20, 44, .82); border: 1px solid rgba(180, 196, 255, .14); box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .02) inset; -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%); perspective: 1000px; }
.auth-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--ang, 0deg), transparent 0 70%, var(--accent) 82%, transparent 94%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 9s linear infinite; pointer-events: none; z-index: 3; }

/* левая часть: плита с вырезом */
.auth-art { position: relative; padding: 30px; display: grid; grid-template-rows: auto 1fr auto auto; gap: 18px; overflow: hidden; background: radial-gradient(90% 70% at 50% 58%, color-mix(in srgb, var(--accent) calc(10% + var(--heat, 0) * 22%), transparent), transparent 70%), repeating-linear-gradient(0deg, rgba(149, 161, 198, .05) 0 1px, transparent 1px 32px), repeating-linear-gradient(90deg, rgba(149, 161, 198, .05) 0 1px, transparent 1px 32px), linear-gradient(170deg, #121b3c, #080d20); border-right: 1px solid rgba(180, 196, 255, .1); }
.auth-brand { display: flex; align-items: center; gap: 10px; }
.auth-brand .logo-mark { width: 32px; height: 32px; }
.auth-plate { position: relative; align-self: center; justify-self: center; width: min(100%, 300px); aspect-ratio: 1; }
.auth-plate svg { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .55)); }
.auth-plate svg rect { rx: 26px; }
.auth-glow { opacity: calc(.55 + var(--heat, 0) * .45); transition: opacity .5s; }
#auth-hole, #auth-hole-edge { transform-box: view-box; transform-origin: center; }
#auth-hole-edge { filter: drop-shadow(0 0 4px var(--accent)); }
.auth-lid { transform-box: view-box; transform-origin: center; transition: transform .8s cubic-bezier(.2, .9, .25, 1.15), opacity .8s; }
.auth-card.unlocked .auth-lid { transform: scale(1.6) rotate(-12deg); opacity: 0; }
.auth-card.unlocked .auth-glow { opacity: 1; }
.auth-plate.shake { animation: shake .45s; }
@keyframes shake { 20% { transform: translateX(-9px) rotate(-2deg); } 40% { transform: translateX(8px) rotate(2deg); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
.embers { position: absolute; inset: 0; pointer-events: none; }
.embers i { position: absolute; left: 50%; top: 55%; width: 4px; height: 4px; border-radius: 50%; background: var(--accent-hot); box-shadow: 0 0 8px var(--accent); opacity: 0; animation: ember 3.2s ease-out infinite; }
.embers i:nth-child(1) { --dx: -60px; animation-delay: 0s; } .embers i:nth-child(2) { --dx: 40px; animation-delay: .4s; }
.embers i:nth-child(3) { --dx: -20px; animation-delay: .8s; } .embers i:nth-child(4) { --dx: 75px; animation-delay: 1.2s; }
.embers i:nth-child(5) { --dx: -85px; animation-delay: 1.6s; } .embers i:nth-child(6) { --dx: 15px; animation-delay: 2s; }
.embers i:nth-child(7) { --dx: 55px; animation-delay: 2.4s; } .embers i:nth-child(8) { --dx: -40px; animation-delay: 2.8s; }
@keyframes ember { 0% { opacity: 0; transform: translate(0, 0) scale(1); } 15% { opacity: calc(.4 + var(--heat, 0) * .6); } 100% { opacity: 0; transform: translate(var(--dx), -170px) scale(.3); } }
.auth-caption { display: grid; gap: 4px; text-align: center; }
.auth-caption b { font: 700 1.1rem/1.2 var(--f-display); }
.auth-caption span { color: var(--muted); font-size: .9rem; min-height: 1.4em; }
.auth-forge { list-style: none; margin: 0 auto; padding: 0; display: flex; gap: 6px; width: min(100%, 220px); }
.auth-forge li { flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); transition: background .3s, box-shadow .3s; }
.auth-forge li.on { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.auth-card[data-mode="login"] .auth-forge, .auth-card[data-mode="forgot"] .auth-forge { visibility: hidden; }

/* правая часть: форма */
.auth-main { position: relative; padding: 30px 34px 26px; display: grid; gap: 18px; align-content: start; min-width: 0; }
.auth-x { position: absolute; right: 16px; top: 16px; width: 38px; height: 38px; border-radius: 11px; border: 0; background: rgba(255, 255, 255, .06); color: var(--muted); font-size: 1rem; cursor: pointer; transition: background .2s, color .2s, transform .2s; z-index: 2; }
.auth-x:hover { background: rgba(255, 255, 255, .12); color: var(--fg); transform: rotate(90deg); }
.auth-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: min(100%, 300px); padding: 4px; border-radius: 14px; background: rgba(5, 8, 20, .5); box-shadow: inset 0 0 0 1px var(--glass-line); }
.auth-tabs button { position: relative; z-index: 1; border: 0; background: none; color: var(--muted); font: 700 .95rem/1 var(--f-body); padding: 12px 8px; border-radius: 10px; cursor: pointer; transition: color .25s; }
.auth-tabs button[aria-selected="true"] { color: var(--accent-ink); }
.auth-tabs .blade { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 10px; background: linear-gradient(180deg, var(--accent-hot), var(--accent)); box-shadow: 0 6px 20px -6px var(--glow); transition: transform .4s cubic-bezier(.3, 1.4, .5, 1); }
.auth-tabs .blade::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: -1px; height: 2px; background: #fff; opacity: .6; border-radius: 2px; filter: blur(1px); }
.auth-card[data-mode="register"] .auth-tabs .blade { transform: translateX(100%); }
.auth-card[data-mode="forgot"] .auth-tabs { opacity: .4; pointer-events: none; }
.auth-form { display: grid; gap: 14px; animation: formIn .4s cubic-bezier(.2, .8, .3, 1); }
@keyframes formIn { from { opacity: 0; transform: translateX(14px); } }
.auth-lead { color: #c8d0ea; font-size: .98rem; }
.cut-field { position: relative; display: block; }
.cut-field input { width: 100%; font: 600 1.02rem/1.2 var(--f-body); color: var(--fg); background: rgba(5, 8, 20, .45); border: 1px solid var(--glass-line); border-radius: 14px; padding: 24px 16px 10px; transition: border-color .25s, background .25s, box-shadow .25s; }
.cut-field.has-eye input { padding-right: 52px; }
.cut-field > span { position: absolute; left: 17px; top: 17px; color: var(--muted); font-weight: 600; pointer-events: none; transform-origin: left top; transition: transform .22s cubic-bezier(.2, .8, .3, 1), color .22s; }
.cut-field input:focus + span, .cut-field input:not(:placeholder-shown) + span { transform: translateY(-9px) scale(.74); color: var(--accent-hot); }
.cut-field input:focus { outline: none; background: rgba(5, 8, 20, .62); border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.cut-field > i { display: none; }
.cut-field.bad input { border-color: rgba(255, 107, 91, .7); }
.cut-field.bad > span { color: #ff9a8a; }
.eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 10px; border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.eye:hover { color: var(--fg); background: rgba(255, 255, 255, .06); }
.eye svg { width: 20px; height: 20px; }
.eye.on { color: var(--accent); }
.caps { color: #ffcf8a; font-size: .85rem; font-weight: 600; margin-top: -6px; }
.meter { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 6px; align-items: center; margin-top: -4px; }
.meter i { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .08); transition: background .3s; }
.meter span { font: 700 .76rem/1 var(--f-body); color: var(--muted); min-width: 80px; text-align: right; }
.meter[data-s="1"] i:nth-child(-n+1) { background: #ff6b5b; }
.meter[data-s="2"] i:nth-child(-n+2) { background: #ffb020; }
.meter[data-s="3"] i:nth-child(-n+3) { background: #b6e05a; }
.meter[data-s="4"] i:nth-child(-n+4) { background: #4fdc94; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: .92rem; color: #c8d0ea; position: relative; }
.check input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; }
.check > input + span { width: 20px; height: 20px; border-radius: 6px; flex: none; box-shadow: inset 0 0 0 1.5px var(--line); background: rgba(5, 8, 20, .45); display: grid; place-items: center; transition: background .2s, box-shadow .2s; }
.check input:checked + span { background: var(--accent); box-shadow: none; }
.check input:checked + span::after { content: ""; width: 10px; height: 6px; border: solid var(--accent-ink); border-width: 0 0 2.5px 2.5px; transform: translate(0, -1px) rotate(-45deg); }
.check input:focus-visible + span { outline: 2px solid var(--accent-hot); outline-offset: 2px; }
.link { border: 0; background: none; padding: 0; color: var(--accent-hot); font: 600 .92rem/1.3 var(--f-body); cursor: pointer; justify-self: start; }
.link:hover { text-decoration: underline; }
.ts-slot { min-height: 0; }
.ts-slot:empty { display: none; }
.ts-demo { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: #1b1f2c; border: 1px solid #3a3f52; font: 500 .88rem/1.2 system-ui, sans-serif; color: #e6e6e6; max-width: 300px; cursor: pointer; user-select: none; }
.ts-demo .box { width: 24px; height: 24px; border-radius: 4px; border: 2px solid #8a8fa3; display: grid; place-items: center; flex: none; background: #11141d; }
.ts-demo.busy .box { border-color: transparent; border-top-color: #f6821f; border-radius: 50%; animation: spin2 .7s linear infinite; }
.ts-demo.done .box { border-color: #4fdc94; background: #4fdc94; }
.ts-demo.done .box::after { content: ""; width: 10px; height: 6px; border: solid #0b2a17; border-width: 0 0 2.5px 2.5px; transform: translate(0, -1px) rotate(-45deg); }
.ts-demo .cf { margin-left: auto; display: grid; justify-items: end; gap: 2px; font-size: .62rem; color: #9aa0b4; }
.ts-demo .cf b { color: #f6821f; font-size: .72rem; letter-spacing: .02em; }
.auth-msg { color: #ff9a8a; font-weight: 600; font-size: .92rem; min-height: 0; }
.auth-msg:empty { display: none; }
.auth-msg.ok { color: #7fe0a8; }
.auth-submit { justify-content: center; padding-block: 17px; font-size: 1.04rem; position: relative; overflow: hidden; }
.auth-submit::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); transition: left .7s; }
.auth-submit:hover::after { left: 130%; }
.spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(26, 13, 3, .3); border-top-color: var(--accent-ink); animation: spin2 .7s linear infinite; }
.auth-submit.busy .spin { display: block; }
.auth-submit.busy { pointer-events: none; }
.auth-foot { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: .8rem; padding-top: 14px; border-top: 1px solid var(--glass-line); }
.auth-foot svg { width: 16px; height: 16px; flex: none; color: var(--accent); margin-top: 1px; }
@media (max-width: 760px) {
  .auth-card { grid-template-columns: minmax(0, 1fr); border-radius: 24px; margin: 12px auto; }
  .auth-art { grid-template-rows: none; grid-template-columns: 96px minmax(0, 1fr); align-items: center; padding: 18px 20px; gap: 6px 16px; border-right: 0; border-bottom: 1px solid rgba(180, 196, 255, .1); }
  .auth-brand { display: none; }
  .auth-plate { grid-row: span 2; width: 96px; }
  .auth-caption { text-align: left; }
  .auth-forge { margin: 0; }
  .auth-main { padding: 22px 20px 20px; }
  .auth-x { top: 12px; right: 12px; }
}
@media (max-width: 760px) { .auth-tabs { width: calc(100% - 50px); } }

/* ── код из письма ── */
.auth-card[data-mode="code"] .auth-tabs { display: none; }
.code-sent { font-size: .92rem; }
.code-sent b { color: var(--fg); }
.code-boxes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 4px 0 2px; }
.code-boxes input { width: 100%; aspect-ratio: 1 / 1.15; text-align: center; font: 800 1.6rem/1 var(--f-mono, monospace); color: var(--fg);
  background: rgba(5, 8, 20, .55); border: 1px solid var(--glass-line); border-radius: 14px; caret-color: var(--accent, #ff8a3d); transition: border-color .15s, box-shadow .15s, transform .15s; }
.code-boxes input:focus { outline: none; border-color: var(--accent, #ff8a3d); box-shadow: 0 0 0 4px rgba(255, 138, 61, .18); transform: translateY(-1px); }
.code-boxes input:not(:placeholder-shown), .code-boxes input:valid:not([value=""]) { border-color: rgba(255, 178, 107, .55); }
.code-spam { font-size: .8rem; }
.auth-msg.ok { color: #7ef0c0; }
.forgot-on { display: grid; gap: 12px; }
.forgot-on[hidden], .forgot-off[hidden] { display: none; }
@media (max-width: 420px) { .code-boxes { gap: 5px; } .code-boxes input { font-size: 1.3rem; border-radius: 10px; } }
