:root {
  --bg: #0b0907;
  --bg-2: #13100c;
  --card: rgba(255, 255, 255, 0.035);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f6efe8;
  --muted: #a3978b;
  --accent: #ff7a1a;
  --accent-2: #ffb347;
  --accent-dim: rgba(255, 122, 26, 0.14);
  --radius: 18px;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --display: "Unbounded", "Inter", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
/* полосы прокрутки в цветах сайта, без серых стрелочек */
/* Chrome со scrollbar-color рисует стрелки сам — ему ::-webkit-scrollbar ниже, остальным (Firefox) стандарт */
@supports not selector(::-webkit-scrollbar) { * { scrollbar-width: thin; scrollbar-color: rgba(255, 122, 26, .45) transparent; } }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 122, 26, .45); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 122, 26, .75); }
::-webkit-scrollbar-button { display: none; }
body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
code { font-family: var(--mono); color: var(--accent-2); font-size: .92em; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 40px); }
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; margin-top: 28px; }

/* фон */
.bg-blobs {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  /* слабое тёплое свечение по всему фону, чтобы не было пустого чёрного */
  background:
    radial-gradient(ellipse 60% 50% at 15% 20%, rgba(255, 106, 0, .17), transparent 70%),
    radial-gradient(ellipse 55% 45% at 85% 60%, rgba(232, 80, 12, .15), transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(255, 161, 61, .13), transparent 70%);
}
/* кабинет: фон темнее, свечение слабее */
.bg-blobs--dark {
  background:
    radial-gradient(ellipse 60% 50% at 15% 20%, rgba(255, 106, 0, .06), transparent 70%),
    radial-gradient(ellipse 55% 45% at 85% 60%, rgba(232, 80, 12, .05), transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(255, 161, 61, .045), transparent 70%);
}
.bg-blobs--dark::after { content: ""; position: absolute; inset: 0; background: rgba(8, 6, 4, .28); }
/* огоньки создаются в bg.js */
.blob { position: absolute; top: 0; left: 0; border-radius: 50%; will-change: transform, opacity; }

/* кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn span { transition: transform .2s; }
.btn:hover span { transform: translateX(4px); }
.btn--primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #1a0d02; box-shadow: 0 8px 30px rgba(255, 122, 26, .35); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(255, 122, 26, .5); }
.btn--ghost { border: 1px solid var(--border); background: rgba(255,255,255,.03); }
.btn--ghost:hover { border-color: var(--accent); }
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--wide { width: 100%; margin-top: 26px; }

/* шапка */
.header { position: sticky; top: 0; z-index: 50; background: rgba(11, 9, 7, .93); border-bottom: 1px solid var(--border); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 19px; }
.logo__mark { display: flex; }
.logo b { color: var(--accent); font-weight: 800; }
.nav { display: flex; gap: 24px; font-size: 14px; color: var(--muted); }
.nav a { white-space: nowrap; }
.nav a:hover { color: var(--text); }
/* меню в шапке: светящаяся линия растёт из центра, текст чуть приподнимается */
@media (min-width: 861px) {
  .nav a { position: relative; padding: 6px 0; transition: color .25s, transform .3s ease, text-shadow .3s, opacity .25s; }
  .nav a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: -2px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 10px rgba(255, 122, 26, .8); opacity: 0; transition: left .35s cubic-bezier(.22, 1, .36, 1), right .35s cubic-bezier(.22, 1, .36, 1), opacity .2s; }
  .nav a:hover { transform: translateY(-2px); text-shadow: 0 0 14px rgba(255, 179, 71, .45); }
  .nav a:hover::after, .nav a.active::after { left: 0; right: 0; opacity: 1; }
  .nav:hover a:not(:hover) { opacity: .55; }
}
@media (prefers-reduced-motion: reduce) { .nav a, .nav a::after { transition: none; } }
.header__actions { display: flex; align-items: center; gap: 14px; }
.lang { --lp: 3px; position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr 1fr; padding: var(--lp); border: 1px solid var(--border); border-radius: 999px; font-size: 12px; font-weight: 600; transition: transform .35s cubic-bezier(.34,1.56,.64,1), border-color .25s, box-shadow .3s; }
.lang::before { content: ""; position: absolute; z-index: -1; top: var(--lp); bottom: var(--lp); left: var(--lp); width: calc(50% - var(--lp)); border-radius: 999px; background: var(--accent-dim); box-shadow: inset 0 0 0 1px rgba(255,122,26,.35), 0 0 16px -4px rgba(255,122,26,.7); transition: transform .5s cubic-bezier(.34,1.56,.64,1); }
.lang:has(.active[data-lang="en"])::before { transform: translateX(100%); }
.lang:hover { transform: scale(1.06); border-color: rgba(255,122,26,.35); box-shadow: 0 8px 24px -12px rgba(255,122,26,.6); }
.lang button { padding: 4px 9px; border-radius: 999px; color: var(--muted); cursor: pointer; transition: color .25s, transform .3s cubic-bezier(.34,1.56,.64,1); }
.lang button:hover { color: var(--text); }
.lang button:active { transform: scale(.88); }
.lang .active, .lang .active:hover { color: var(--accent); animation: tpPop .45s cubic-bezier(.34,1.56,.64,1); }
@keyframes tpPop { 40% { transform: scale(1.25); } }
@supports not selector(:has(a)) { .lang::before { display: none; } .lang .active { background: var(--accent-dim); } }
.burger { display: none; width: 36px; height: 36px; flex-direction: column; justify-content: center; gap: 6px; }
.burger span { height: 2px; background: var(--text); border-radius: 2px; }

/* hero */
.hero { padding: 90px 0 60px; text-align: center; }
.hero__inner { display: flex; flex-direction: column; align-items: center; }
/* 3D-звезда над заголовком (рисуется в star.js) */
/* звезда поднята на 40px к навбару; заголовок на прежнем месте (260 − 100 + 10 = 170px) и под нижним лучом есть воздух */
.hero__star { position: relative; width: 260px; height: 260px; margin: -100px auto 10px; pointer-events: none; }
.hero__star::before {
  content: ""; position: absolute; inset: 8%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(255, 140, 0, .55) 0%, rgba(255, 107, 0, .22) 40%, transparent 70%);
  filter: blur(14px); animation: starGlow 4s ease-in-out infinite;
}
.hero__star canvas { display: block; width: 100% !important; height: 100% !important; }
@keyframes starGlow { 50% { opacity: .6; transform: scale(.9); } }
.hero__title { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 7vw, 84px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 22px; }
.hero__title .accent { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { max-width: 640px; font-size: 18px; color: var(--muted); }
.hero__cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; justify-content: center; }
.hero__checks { display: flex; gap: 26px; list-style: none; margin-top: 26px; font-size: 14px; color: var(--muted); flex-wrap: wrap; justify-content: center; }
.hero__checks li::before { content: "✓ "; color: var(--accent); font-weight: 700; }

.terminal { width: min(680px, 100%); margin-top: 56px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(10, 8, 6, .85); text-align: left; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,122,26,.08); }
.terminal__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.terminal__bar > span { width: 11px; height: 11px; border-radius: 50%; background: #3a2f26; }
.terminal__bar > span:first-child { background: #ff5f3a; }
.terminal__bar > span:nth-child(2) { background: #ffb347; }
.terminal__bar em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.copy { font-family: var(--mono); font-size: 11px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); margin-left: 10px; }
.copy:hover { color: var(--accent); border-color: var(--accent); }
.terminal pre { padding: 20px; font-family: var(--mono); font-size: 15px; overflow-x: auto; }
.caret { display: inline-block; width: 9px; height: 18px; background: var(--accent); vertical-align: -3px; margin-left: 4px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* секции */
.section { padding: 90px 0; }
.eyebrow { font-family: var(--mono); font-size: 13px; color: var(--accent); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.section__title { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 4vw, 46px); line-height: 1.12; letter-spacing: -0.015em; margin-bottom: 16px; }
.section__sub { max-width: 620px; color: var(--muted); font-size: 17px; margin-bottom: 40px; }
.section__note { color: var(--muted); font-size: 14px; margin-top: 18px; max-width: 760px; }

.card { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); transition: border-color .25s, transform .25s; }
.card:hover { border-color: rgba(255, 122, 26, .4); transform: translateY(-3px); }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.card__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-dim); font-size: 20px; margin-bottom: 18px; }
.link { display: inline-block; margin-top: 14px; color: var(--accent); font-weight: 600; font-size: 14px; }

/* программы */
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.app { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); display: flex; flex-direction: column; gap: 6px; transition: all .25s; position: relative; }
.app::after { content: "→"; position: absolute; right: 20px; bottom: 20px; color: var(--accent); opacity: 0; transition: .25s; }
.app:hover { border-color: var(--accent); background: var(--accent-dim); }
.app:hover::after { opacity: 1; }
.app small { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.app strong { font-size: 18px; }

/* как это работает */
.how { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; margin-top: 40px; }
.steps { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; gap: 20px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.steps__num { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--accent); width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; background: var(--accent-dim); }
.steps h3 { font-size: 18px; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: 15px; }
.how__cards { display: flex; flex-direction: column; gap: 14px; }

/* модели */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 20px; }
.chip { font-family: var(--mono); font-size: 13px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--text); transition: .2s; }
.chip span { color: var(--muted); margin-left: 4px; }
.chip:hover { border-color: var(--accent); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #1a0d02; }
.chip.active span { color: rgba(26, 13, 2, .6); }
.legend { display: flex; gap: 22px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.lv { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; }
.lv--low { background: #4ade80; }
.lv--mid { background: #facc15; }
.lv--high { background: #ff5f3a; }
.models { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 26px; }
.model { position: relative; padding: 22px 24px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(160deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .015) 60%), #120d09; transition: border-color .4s; animation: fadeIn .4s ease; will-change: transform; --mx: 50%; --my: 50%;
  /* толщина плашки (кромка снизу) + блик сверху; при наклоне тень пересчитывает script.js */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), inset 0 -14px 24px -16px rgba(0, 0, 0, .7),
    0 .67px 0 #4a2209, 0 1.33px 0 #3f1d08, 0 2px 0 #341807, 0 2.67px 0 #2a1406, 0 3.33px 0 #211005, 0 4px 0 #190c04,
    0 12px 20px -14px rgba(0, 0, 0, .6); }
/* свечение под курсором */
.model::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(260px circle at var(--mx) var(--my), rgba(255, 122, 26, .3), transparent 65%); }
/* блик по рамке */
.model::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(180px circle at var(--mx) var(--my), #ff7a1a, transparent 70%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
/* наклон и тень задаёт script.js (плавно, с инерцией) */
.model > * { position: relative; z-index: 1; }
.model:hover { border-color: rgba(255, 122, 26, .3); z-index: 2; }
.model:hover::before, .model:hover::after { opacity: 1; }
.model h3 { transition: color .4s; }
.model:hover h3 { color: #ffb070; }
.model:hover .model__rate { animation: ratePulse 1.4s ease-in-out infinite; }
@keyframes ratePulse { 50% { text-shadow: 0 0 14px rgba(74, 222, 128, .8); transform: scale(1.08); } }
@media (hover: none), (prefers-reduced-motion: reduce) { .model:hover .model__rate { animation: none; } }
.model__top { display: flex; justify-content: space-between; align-items: center; }
.model__prov { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.model__rate { font-family: var(--mono); font-weight: 600; font-size: 18px; }
.model__rate.low { color: #4ade80; }
.model__rate.mid { color: #facc15; }
.model__rate.high { color: #ff5f3a; }
.model h3 { font-size: 20px; margin: 6px 0 2px; }
.model code { font-size: 13px; }
.model p { color: var(--muted); font-size: 13px; margin-top: 10px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } }

/* калькулятор */
.calc { display: grid; grid-template-columns: 1.2fr 1fr; border: 1px solid var(--border); border-radius: 24px; overflow: hidden; background: var(--card); }
.calc__main { padding: 36px; border-right: 1px solid var(--border); }
.calc__side { padding: 36px; background: rgba(255, 122, 26, .04); }
.calc__label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.calc__volume { font-family: var(--display); font-size: 46px; font-weight: 800; margin-top: 10px; }
.calc__volume small { font-family: "Inter"; font-size: 16px; font-weight: 500; color: var(--muted); }
.calc__price { display: flex; align-items: baseline; gap: 14px; margin: 6px 0 28px; }
.calc__price span { font-size: 30px; font-weight: 600; color: var(--accent); }
.calc__price small { color: var(--muted); }
input[type="range"] { width: 100%; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--accent) var(--p, 16%), rgba(255,255,255,.1) var(--p, 16%)); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-2); border: 4px solid var(--bg); box-shadow: 0 0 0 2px var(--accent); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--accent-2); border: 4px solid var(--bg); cursor: pointer; }
.calc__ticks { display: flex; justify-content: space-between; margin-top: 12px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.calc__ticks span { white-space: nowrap; width: 0; display: flex; justify-content: center; }
.calc__ticks span:first-child { justify-content: flex-start; }
.calc__ticks span:last-child { justify-content: flex-end; }
/* подписи через одну, последняя всегда видна */
.calc__ticks span:nth-child(even):not(:last-child), .calc__ticks span:nth-last-child(2) { visibility: hidden; }
#usage { list-style: none; margin: 18px 0; display: flex; flex-direction: column; gap: 4px; }
#usage li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 15px; }
#usage li b { color: var(--accent); font-family: var(--mono); font-weight: 600; }
#usage li i { font-style: normal; font-family: var(--mono); color: var(--muted); font-size: 12px; margin-left: 8px; }

.plans { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 22px; }
.plan { padding: 18px 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); cursor: pointer; transition: .2s; position: relative; }
.plan:hover, .plan.active { border-color: var(--accent); }
.plan.active { background: var(--accent-dim); }
.plan__tag { position: absolute; top: -10px; left: 14px; font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em; padding: 3px 8px; border-radius: 6px; background: var(--accent); color: #1a0d02; font-weight: 600; }
.plan__vol { font-weight: 600; font-size: 17px; }
.plan__price { font-family: var(--display); font-size: clamp(18px, 1.8vw, 24px); white-space: nowrap; font-weight: 800; margin: 6px 0 2px; }
.plan__per { font-size: 12px; color: var(--muted); }

/* наведение на пакет: у каждого своя анимация */
@property --pl-r { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --pl-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.plan { isolation: isolate; }
.plan::before, .plan::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; }
.plan:hover::before, .plan:hover::after { opacity: 1; }
.plan__vol, .plan__price { display: inline-block; transform-origin: left center; transition: transform .3s, letter-spacing .3s, text-shadow .3s; }
.plan__vol { display: block; }
/* 1 млн — капля: от центра расходится круг */
.plan:nth-child(1)::before { background: radial-gradient(circle at 50% 50%, transparent calc(var(--pl-r) - 2px), rgba(255, 122, 26, .55) var(--pl-r), transparent calc(var(--pl-r) + 2px)); }
.plan:nth-child(1):hover::before { animation: pl-ring 1.4s ease-out infinite; }
@keyframes pl-ring { from { --pl-r: 0px; opacity: 1; } to { --pl-r: 140px; opacity: 0; } }
/* 10 млн — блик наискосок */
.plan:nth-child(2)::before { background: linear-gradient(115deg, transparent 38%, rgba(255, 220, 170, .2) 50%, transparent 62%) no-repeat; background-size: 260% 100%; background-position: 130% 0; }
.plan:nth-child(2):hover::before { animation: pl-shine 1s ease-out infinite; }
@keyframes pl-shine { to { background-position: -30% 0; } }
/* 50 млн — цена пружинит, как желе */
.plan:nth-child(3):hover .plan__price { animation: pl-jelly .8s ease both; }
@keyframes pl-jelly { 30% { transform: scale(1.18, .86); } 45% { transform: scale(.9, 1.1); } 60% { transform: scale(1.06, .95); } 75% { transform: scale(.98, 1.02); } }
/* 100 млн — по рамке бежит огонёк */
.plan:nth-child(4)::after { inset: -2px; padding: 2px; background: conic-gradient(from var(--pl-a), transparent 0 55%, rgba(255, 122, 26, .8) 78%, #ffd9a0 90%, #fff 91%, transparent 96%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); z-index: 0; }
.plan:nth-child(4):hover::after { animation: pl-spin 2s linear infinite; }
.plan:nth-child(4):hover .plan__tag { animation: pl-hop .9s ease-in-out infinite; }
@keyframes pl-spin { to { --pl-a: 360deg; } }
/* с вращением угла плавное появление в Chrome залипает на нуле */
.plan:nth-child(4)::after, .plan:nth-child(15)::before { transition: none; }
@keyframes pl-hop { 50% { transform: translateY(-4px); } }
/* 200 млн — сверху вниз проходит луч сканера */
.plan:nth-child(5)::before { background: linear-gradient(to bottom, transparent, rgba(255, 122, 26, .45) 48%, #ffd9a0 50%, transparent 52%) no-repeat; background-size: 100% 220%; background-position: 0 100%; }
.plan:nth-child(5):hover::before { animation: pl-scan 1.5s ease-in-out infinite alternate; }
@keyframes pl-scan { to { background-position: 0 0; } }
/* 300 млн — карточка покачивается */
.plan:nth-child(6):hover { animation: pl-wobble .7s ease; }
@keyframes pl-wobble { 20% { transform: rotate(-3deg); } 40% { transform: rotate(2.5deg); } 60% { transform: rotate(-1.5deg); } 80% { transform: rotate(.8deg); } }
/* 400 млн — проявляется мерцающая сетка точек */
.plan:nth-child(7)::before { background: radial-gradient(circle, rgba(255, 160, 70, .85) 0 1.4px, transparent 2px) 0 0 / 12px 12px; -webkit-mask: radial-gradient(circle at 50% 50%, #000, transparent 75%); mask: radial-gradient(circle at 50% 50%, #000, transparent 75%); }
.plan:nth-child(7):hover::before { animation: pl-grid 1.6s ease-in-out infinite; }
@keyframes pl-grid { 50% { background-size: 15px 15px; opacity: .45; } }
/* 500 млн — цена переворачивается */
.plan:nth-child(8):hover .plan__price { animation: pl-flip .9s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes pl-flip { from { transform: perspective(300px) rotateX(0); } to { transform: perspective(300px) rotateX(360deg); } }
/* 600 млн — поднимаются пузырьки */
.plan:nth-child(9)::before { background: radial-gradient(circle, rgba(255, 210, 150, .95) 0 2.5px, transparent 3.5px) 10px 0 / 46px 60px, radial-gradient(circle, transparent 0 3px, rgba(255, 140, 50, .9) 3.5px 4.5px, transparent 5.5px) 30px 20px / 70px 60px, linear-gradient(to top, rgba(255, 106, 0, .18), transparent 70%); }
.plan:nth-child(9):hover::before { animation: pl-bubbles 2.2s linear infinite; }
@keyframes pl-bubbles { to { background-position: 10px -60px, 30px -40px, 0 0; } }
/* 700 млн — бегут диагональные полосы */
.plan:nth-child(10)::before { background: repeating-linear-gradient(135deg, rgba(255, 122, 26, .12) 0 10px, transparent 10px 20px); background-size: 200% 200%; }
.plan:nth-child(10):hover::before { animation: pl-stripes 1.2s linear infinite; }
@keyframes pl-stripes { to { background-position: 28.28px 0; } }
/* 800 млн — карточка дышит свечением */
.plan:nth-child(11):hover { animation: pl-breath 1.6s ease-in-out infinite; }
@keyframes pl-breath { 50% { box-shadow: 0 0 0 1px var(--accent), 0 0 36px rgba(255, 122, 26, .45); } }
/* 900 млн — объём раздвигается, снизу растёт линия */
.plan:nth-child(12)::after { top: auto; left: 16px; right: 16px; bottom: 10px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), #ffd9a0); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .3s; }
.plan:nth-child(12):hover::after { transform: scaleX(1); }
.plan:nth-child(12):hover .plan__vol { letter-spacing: .12em; color: var(--accent); }
/* 1 млрд — снизу разгорается жар, цена горит */
.plan:nth-child(13)::before { background: radial-gradient(ellipse at 50% 130%, rgba(255, 106, 0, .55), transparent 65%); }
.plan:nth-child(13):hover::before { animation: pl-heat 1.2s ease-in-out infinite alternate; }
.plan:nth-child(13):hover .plan__price { background: linear-gradient(90deg, #ff7a1a, #ffd9a0, #ff5a00, #ff7a1a); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: pl-flame 1.8s linear infinite; }
@keyframes pl-heat { to { transform: scaleY(1.25); transform-origin: bottom; } }
@keyframes pl-flame { to { background-position: 300% 0; } }
/* 2 млрд — из угла бегут двойные волны */
.plan:nth-child(14)::before { background: radial-gradient(circle at 0 0, transparent calc(var(--pl-r) - 24px), rgba(255, 200, 140, .3) calc(var(--pl-r) - 21px), transparent calc(var(--pl-r) - 18px), transparent calc(var(--pl-r) - 3px), rgba(255, 122, 26, .55) var(--pl-r), transparent calc(var(--pl-r) + 3px)); }
.plan:nth-child(14):hover::before { animation: pl-wave 1.8s ease-out infinite; }
@keyframes pl-wave { from { --pl-r: 0px; opacity: 1; } to { --pl-r: 260px; opacity: 0; } }
/* 4 млрд — по фону плывёт северное сияние */
.plan:nth-child(15)::before { inset: 0; background: conic-gradient(from var(--pl-a) at 50% 50%, rgba(255, 122, 26, .7), transparent 30%, rgba(255, 210, 140, .55) 55%, transparent 80%, rgba(255, 122, 26, .7)); filter: blur(18px); }
.plan:nth-child(15):hover::before { animation: pl-spin 4s linear infinite; }
/* 8 млрд — вспыхивают звёздочки */
.plan:nth-child(16)::before { background: radial-gradient(circle, #fff 0 1px, rgba(255, 190, 110, .8) 1.5px, transparent 3px) 14% 22% no-repeat, radial-gradient(circle, #fff 0 1px, rgba(255, 190, 110, .8) 1.5px, transparent 3px) 82% 30% no-repeat, radial-gradient(circle, #fff 0 1px, rgba(255, 190, 110, .8) 1.5px, transparent 3px) 60% 78% no-repeat; background-size: 8px 8px; }
.plan:nth-child(16)::after { background: radial-gradient(circle, #fff 0 1px, rgba(255, 150, 60, .8) 1.5px, transparent 3px) 88% 75% no-repeat, radial-gradient(circle, #fff 0 1px, rgba(255, 150, 60, .8) 1.5px, transparent 3px) 36% 12% no-repeat, radial-gradient(circle, #fff 0 1px, rgba(255, 150, 60, .8) 1.5px, transparent 3px) 8% 82% no-repeat; background-size: 8px 8px; }
.plan:nth-child(16):hover::before { animation: pl-twinkle 1.2s ease-in-out infinite; }
.plan:nth-child(16):hover::after { animation: pl-twinkle 1.2s ease-in-out .6s infinite; }
@keyframes pl-twinkle { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
/* 10 млрд — переливается рамка, карточка всплывает, всё горит */
.plan:nth-child(17)::after { inset: -1px; padding: 2px; background: linear-gradient(90deg, #ff5a00, #ffd9a0, #ff7a1a, #fff4dc, #ff5a00); background-size: 300% 100%; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); z-index: 0; }
.plan:nth-child(17)::before { background: radial-gradient(circle at 50% 0%, rgba(255, 122, 26, .3), transparent 70%); }
.plan:nth-child(17):hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(255, 106, 0, .3); }
.plan:nth-child(17):hover::after { animation: pl-flame 2s linear infinite; }
.plan:nth-child(17):hover .plan__vol { background: linear-gradient(90deg, #ff7a1a, #ffd9a0, #ff5a00, #ff7a1a); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: pl-flame 2s linear infinite; }
@media (prefers-reduced-motion: reduce) { .plan, .plan::before, .plan::after, .plan *, .plan:hover { animation: none !important; } }

/* аккаунты */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 36px 0 28px; }
.tier { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 26px 24px; text-align: left; color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.tier:hover { border-color: rgba(255, 122, 26, .5); transform: translateY(-3px); }
.tier.active { border-color: var(--accent); background: radial-gradient(circle at 0% 0%, rgba(255, 122, 26, .22), transparent 70%), var(--card); box-shadow: 0 0 0 1px var(--accent), 0 18px 40px rgba(255, 106, 0, .15); }
.tier__radio { position: absolute; top: 22px; right: 22px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); transition: .2s; }
.tier.active .tier__radio { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 45%, transparent 50%); }
.tier__name { font-family: var(--display); font-size: 28px; font-weight: 800; letter-spacing: .02em; }
.tier.active .tier__name { color: var(--accent); }
.tier__desc { color: var(--muted); font-size: 14px; min-height: 40px; }
.tier__price { font-family: var(--display); font-size: 24px; font-weight: 800; margin-top: 10px; }

/* наведение на аккаунт: у каждого уровня своя анимация */
@property --tier-r { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --tier-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.tier { isolation: isolate; }
.tier::before, .tier::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; }
.tier:hover::before, .tier:hover::after, .tier:focus-visible::before, .tier:focus-visible::after { opacity: 1; }
.tier__name, .tier__price { display: inline-block; transition: transform .3s, letter-spacing .3s, text-shadow .3s; transform-origin: left center; }
/* START — по карточке пробегает блик */
.tier:nth-child(1)::before { background: linear-gradient(115deg, transparent 38%, rgba(255, 220, 170, .16) 50%, transparent 62%) no-repeat; background-size: 260% 100%; background-position: 130% 0; }
.tier:nth-child(1):hover::before { animation: tier-shine 1.1s ease-out; }
.tier:nth-child(1):hover .tier__name { letter-spacing: .08em; }
@keyframes tier-shine { to { background-position: -30% 0; } }
/* BASIC — от кружка расходятся волны */
.tier:nth-child(2)::before { background: radial-gradient(circle at calc(100% - 31px) 31px, transparent calc(var(--tier-r) - 3px), rgba(255, 122, 26, .5) var(--tier-r), transparent calc(var(--tier-r) + 3px)); }
.tier:nth-child(2):hover::before { animation: tier-wave 1.6s ease-out infinite; }
.tier:nth-child(2):hover .tier__radio { border-color: var(--accent); animation: tier-beat 1.6s ease-out infinite; }
@keyframes tier-wave { from { --tier-r: 0px; opacity: 1; } to { --tier-r: 360px; opacity: 0; } }
@keyframes tier-beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.35); } }
/* PRO — по рамке бежит огонёк */
.tier:nth-child(3)::after { inset: -2px; padding: 3px; background: conic-gradient(from var(--tier-a), transparent 0 40%, rgba(255, 122, 26, .8) 65%, #ffb347 82%, #fff4dc 89%, #fff 90%, transparent 95%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); z-index: 0; }
.tier:nth-child(3):hover::after { animation: tier-spin 2.4s linear infinite; }
.tier:nth-child(3)::before { background: radial-gradient(circle at 50% 120%, rgba(255, 122, 26, .32), transparent 65%); }
.tier:nth-child(3):hover .tier__price { transform: scale(1.12); text-shadow: 0 0 18px rgba(255, 140, 40, .55); }
.tier:nth-child(3):hover .plan__tag { animation: tier-hop .9s ease-in-out infinite; }
@keyframes tier-spin { to { --tier-a: 360deg; } }
@keyframes tier-hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
/* ULTRA — снизу поднимаются искры, имя переливается огнём */
.tier:nth-child(4)::before { background: radial-gradient(circle, rgba(255, 200, 120, .95) 0 1.6px, transparent 2.6px) 0 0 / 97px 130px, radial-gradient(circle, rgba(255, 140, 40, .9) 0 2px, transparent 3.2px) 40px 60px / 131px 110px, radial-gradient(circle, rgba(255, 230, 180, .75) 0 1.1px, transparent 2px) 70px 25px / 67px 150px, linear-gradient(to top, rgba(255, 106, 0, .3), transparent 70%); -webkit-mask: linear-gradient(to top, #000 30%, transparent); mask: linear-gradient(to top, #000 30%, transparent); }
.tier:nth-child(4):hover::before { animation: tier-embers 2.6s linear infinite; }
.tier:nth-child(4):hover { box-shadow: 0 0 0 1px var(--accent), 0 18px 50px rgba(255, 106, 0, .35); animation: tier-glow 1.8s ease-in-out infinite; }
.tier:nth-child(4):hover .tier__name { background: linear-gradient(90deg, #ff7a1a, #ffd9a0, #ff5a00, #ff7a1a); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: tier-flame 2s linear infinite; }
@keyframes tier-embers { to { background-position: 0 -130px, 40px -50px, 70px -125px, 0 0; } }
@keyframes tier-glow { 50% { box-shadow: 0 0 0 1px #ffb347, 0 18px 70px rgba(255, 106, 0, .55); } }
@keyframes tier-flame { to { background-position: 300% 0; } }
@media (prefers-reduced-motion: reduce) { .tier::before, .tier::after, .tier .tier__name, .tier .tier__radio, .tier .plan__tag, .tier:hover { animation: none !important; } }

/* пакеты токенов — скоро */
.soon { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; padding: 48px; border: 1px solid var(--border); border-radius: 28px; background: radial-gradient(ellipse at 100% 0%, rgba(255, 122, 26, .2), transparent 60%), radial-gradient(ellipse at 0% 120%, rgba(255, 179, 71, .08), transparent 55%), var(--card); }
.soon::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(120deg, transparent 30%, rgba(255, 122, 26, .7) 50%, transparent 70%) 0 0 / 250% 100%; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: soonEdge 6s linear infinite; pointer-events: none; }
@keyframes soonEdge { to { background-position: -250% 0; } }
.soon__badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; padding: 6px 14px; border-radius: 999px; background: var(--accent-dim); border: 1px solid rgba(255, 122, 26, .35); color: var(--accent); }
.soon__badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255, 122, 26, .7); animation: soonPulse 1.8s ease-out infinite; }
@keyframes soonPulse { 70% { box-shadow: 0 0 0 10px rgba(255, 122, 26, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 122, 26, 0); } }
.soon__title { font-family: var(--display); font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; line-height: 1.1; margin: 20px 0 16px; }
.soon__title .accent { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.soon__text { font-size: 16px; line-height: 1.6; max-width: 560px; }
.soon__text + .soon__text { margin-top: 10px; }
.soon__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.soon__list { list-style: none; display: grid; gap: 12px; }
.soon__list li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 16px; background: rgba(255, 255, 255, .02); font-weight: 500; transition: border-color .25s, transform .25s; }
.soon__list li::before { content: "✓"; flex-shrink: 0; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-dim); color: var(--accent); font-weight: 700; }
.soon__list li:hover { border-color: rgba(255, 122, 26, .5); transform: translateX(4px); }
@media (max-width: 1000px) { .soon { grid-template-columns: 1fr; padding: 36px; } }
@media (max-width: 600px) { .soon { padding: 26px; gap: 28px; } .soon__cta .btn { width: 100%; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .soon::before, .soon__badge i { animation: none; } }

/* почему мы */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.why__n { font-family: var(--mono); color: var(--accent); font-size: 13px; display: block; margin-bottom: 18px; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; margin-top: 30px; }
.faq details { border: 1px solid var(--border); border-radius: 16px; background: var(--card); transition: border-color .2s; }
.faq details[open] { border-color: rgba(255, 122, 26, .4); }
.faq summary { padding: 20px 24px; cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--accent); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

/* финал */
.final { text-align: center; padding: 80px 30px; border-radius: 32px; border: 1px solid var(--border); background: radial-gradient(ellipse at 50% 120%, rgba(255, 122, 26, .35), transparent 65%), var(--bg-2); }
.final h2 { font-family: var(--display); font-size: clamp(30px, 5vw, 56px); line-height: 1.1; margin-bottom: 34px; }

/* подвал */
.footer { border-top: 1px solid var(--border); padding: 56px 0 28px; font-size: 14px; background: linear-gradient(180deg, transparent, rgba(255, 122, 26, .04)); }
.footer__top { display: grid; grid-template-columns: 1.3fr 1fr 1.1fr; gap: 40px; align-items: start; }
.footer__brand p { color: var(--muted); max-width: 320px; margin-top: 16px; }
.footer__label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 14px; }
.footer__nav { display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 32px; }
.footer__nav a:hover { color: var(--accent); }
.footer__help { padding: 22px 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.footer__help > p:not(.footer__label) { color: var(--muted); }
.footer__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.pill { padding: 9px 16px; border: 1px solid var(--border); border-radius: 999px; font-weight: 600; font-size: 14px; background: rgba(255, 255, 255, .03); transition: .2s; }
.pill:hover { border-color: var(--accent); color: var(--accent); }
.footer__provs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.footer__compat { font-family: var(--mono); font-size: 12px; }

.help { position: fixed; right: 22px; bottom: 22px; z-index: 40; padding: 12px 20px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--border); font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.5); transition: .2s; }
.help:hover { border-color: var(--accent); }

/* ссылки под карточками программ */
.apps__more { margin-top: 22px; color: var(--muted); font-size: 14px; }
.apps__more a { color: var(--text); }
.apps__more a:hover, .apps__more a.accent { color: var(--accent); }
.nav a.active { color: var(--accent); }

/* страница «Как подключить» */
.setup { padding-top: 60px; }
.setup__controls { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; }
.setup__controls .filters { margin: 0 0 14px; }
/* кнопки выбора программы и системы: подъём, свечение, «пружинка» при выборе */
.setup__controls .chip { position: relative; overflow: hidden; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), border-color .25s, background .25s, color .25s, box-shadow .3s; }
.setup__controls .chip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%); transform: translateX(-120%); pointer-events: none; }
.setup__controls .chip:hover { transform: translateY(-3px); border-color: var(--accent); background: var(--accent-dim); box-shadow: 0 8px 22px rgba(255, 122, 26, .22); }
.setup__controls .chip:hover::after { transform: translateX(120%); transition: transform .7s ease; }
.setup__controls .chip:active { transform: translateY(0) scale(.95); transition-duration: .1s; }
.setup__controls .chip.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 6px 24px rgba(255, 122, 26, .45); animation: chipPop .5s cubic-bezier(.34, 1.56, .64, 1), chipGlow 2.6s ease-in-out .5s infinite; }
.setup__controls .chip.active:hover { color: #1a0d02; }
@keyframes chipPop { 0% { transform: scale(.85); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes chipGlow { 0%, 100% { box-shadow: 0 6px 24px rgba(255, 122, 26, .4); } 50% { box-shadow: 0 6px 34px rgba(255, 122, 26, .7); } }
@media (prefers-reduced-motion: reduce) { .setup__controls .chip, .setup__controls .chip.active { animation: none; transition: none; } }
.setup__key { display: flex; align-items: center; max-width: 560px; border: 1px solid var(--border); border-radius: 14px; background: rgba(10, 8, 6, .85); padding: 6px 8px 6px 16px; transition: border-color .2s; }
.setup__key:focus-within { border-color: var(--accent); }
.setup__key input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font-family: var(--mono); font-size: 14px; padding: 8px 0; }
.setup__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.setup__side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 90px; }
.setup__side .card:hover { transform: none; }
.setup__tips { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.setup__tips li { padding-left: 18px; position: relative; }
.setup__tips li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }
.faq--compact { margin: 12px 0 16px; gap: 8px; }
.faq--compact summary { padding: 12px 16px; font-size: 14px; font-family: var(--mono); }
.faq--compact details p { padding: 0 16px 14px; font-size: 14px; }

/* «Как тратить меньше»: пункт выезжает, стрелка бежит вперёд */
.setup__tips li { padding: 6px 8px 6px 26px; margin: -6px -8px; border-radius: 10px; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), background .25s, color .25s; }
.setup__tips li::before { left: 8px; top: 6px; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), text-shadow .25s; }
.setup__tips li:hover { transform: translateX(4px); background: rgba(255, 122, 26, .07); color: var(--text, #f3ece4); }
.setup__tips li:hover::before { transform: translateX(4px); text-shadow: 0 0 10px rgba(255, 122, 26, .8); }

/* «Если не работает»: карточки-кнопки */
.faq--compact details { position: relative; overflow: hidden; transition: border-color .25s, transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s, background .25s; }
.faq--compact details::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, #ffb347, var(--accent)); transform: scaleY(0); transition: transform .3s; border-radius: 3px; }
.faq--compact details:hover { transform: translateY(-2px); border-color: rgba(255, 122, 26, .45); box-shadow: 0 8px 22px -12px rgba(255, 122, 26, .55); }
.faq--compact details:hover::before, .faq--compact details[open]::before { transform: scaleY(1); }
.faq--compact details:active { transform: scale(.98); }
.faq--compact details[open] { background: rgba(255, 122, 26, .06); box-shadow: 0 10px 26px -14px rgba(255, 122, 26, .6); }
.faq--compact summary { transition: color .2s; }
.faq--compact summary::after { transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), text-shadow .25s; }
.faq--compact details:hover summary::after { transform: scale(1.25); text-shadow: 0 0 10px rgba(255, 122, 26, .8); }
.faq--compact details[open] summary::after { transform: rotate(135deg) scale(1.15); }
.faq--compact details[open] p { animation: faqOpen .35s ease-out; }
/* «Частые вопросы»: блик по карточке, «+» в кружке, ответ проявляется из размытия */
.faq:not(.faq--compact) details { position: relative; overflow: hidden; isolation: isolate; transition: border-color .3s, background .3s; }
.faq:not(.faq--compact) details::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255, 160, 80, .13) 50%, transparent 70%); transform: translateX(-110%); pointer-events: none; }
.faq:not(.faq--compact) details:hover::before { animation: faqSweep .9s ease-out; }
.faq:not(.faq--compact) details:hover { border-color: rgba(255, 122, 26, .35); }
.faq:not(.faq--compact) summary { gap: 16px; }
.faq:not(.faq--compact) summary > * , .faq:not(.faq--compact) summary { transition: color .25s; }
.faq:not(.faq--compact) details:hover summary { color: #ffd2a8; }
.faq:not(.faq--compact) summary::after { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; line-height: 1; border: 1px solid rgba(255, 122, 26, .35); transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), background .3s, color .3s, box-shadow .3s, border-color .3s; }
.faq:not(.faq--compact) details:hover summary::after { border-color: var(--accent); box-shadow: 0 0 0 5px rgba(255, 122, 26, .1); }
.faq:not(.faq--compact) details[open] { background: linear-gradient(135deg, rgba(255, 122, 26, .09), var(--card) 60%); }
.faq:not(.faq--compact) details[open] summary { color: #ffb070; }
.faq:not(.faq--compact) details[open] summary::after { transform: rotate(225deg); background: var(--accent); color: #1a0f07; border-color: var(--accent); box-shadow: 0 0 18px rgba(255, 122, 26, .55); }
.faq:not(.faq--compact) details[open] p { animation: faqReveal .5s ease-out; }
@keyframes faqSweep { to { transform: translateX(110%); } }
@keyframes faqReveal { from { opacity: 0; filter: blur(6px); letter-spacing: .02em; } to { opacity: 1; filter: none; letter-spacing: normal; } }
@media (prefers-reduced-motion: reduce) {
  .faq:not(.faq--compact) details:hover::before, .faq:not(.faq--compact) details[open] p { animation: none; }
  .faq:not(.faq--compact) summary::after { transition: none; }
}
@keyframes faqOpen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .setup__tips li, .setup__tips li::before, .faq--compact details, .faq--compact summary::after { transition: none; }
  .faq--compact details[open] p { animation: none; }
}

.recipe { padding: 32px; border: 1px solid var(--border); border-radius: 24px; background: var(--card); }
.recipe__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.recipe__head h2 { font-family: var(--display); font-size: 26px; }
.recipe__os { font-family: var(--mono); font-size: 12px; padding: 5px 12px; border-radius: 999px; background: var(--accent-dim); color: var(--accent); }
.recipe__intro { color: var(--muted); margin: 10px 0 26px; }
.recipe__steps { list-style: none; display: flex; flex-direction: column; gap: 22px; }
.recipe__steps li { display: flex; gap: 18px; }
.recipe__num { flex-shrink: 0; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-dim); color: var(--accent); font-family: var(--mono); font-weight: 600; font-size: 14px; }
.recipe__body { flex: 1; min-width: 0; }
.recipe__body h3 { font-size: 17px; margin: 5px 0 6px; }
.recipe__body p { color: var(--muted); font-size: 15px; }
.recipe__warn { margin-top: 10px; padding: 10px 14px; border-left: 2px solid var(--accent); background: var(--accent-dim); border-radius: 0 10px 10px 0; font-size: 14px !important; }
.recipe__note { margin-top: 22px; padding: 14px 18px; border: 1px dashed var(--border); border-radius: 14px; color: var(--muted); font-size: 14px; }
.recipe__fields { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.recipe__fields > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 12px; }
.recipe__fields > div > span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.recipe__fields .codeblock { margin-top: 0; }

/* быстрая настройка одним файлом (Windows) */
.quick { margin: 0 0 30px; padding: 24px; border: 1px solid rgba(255, 122, 26, .35); border-radius: 20px; background: linear-gradient(160deg, rgba(255, 122, 26, .10), rgba(255, 122, 26, .02) 60%); }
.quick__top { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.quick__info { flex: 1 1 320px; min-width: 0; }
.quick__badge { display: inline-block; font-family: var(--mono); font-size: 12px; padding: 4px 12px; border-radius: 999px; background: var(--accent-dim); color: var(--accent); margin-bottom: 12px; }
.quick__info h3 { font-family: var(--display); font-size: 20px; margin-bottom: 8px; }
.quick__info p { color: var(--muted); font-size: 15px; }
.quick__info b { color: var(--text); }
.quick__dl { flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.quick__dl .btn { justify-content: center; }
.quick__dl small { text-align: center; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.quick__label { margin: 22px 0 12px; padding-top: 18px; border-top: 1px solid var(--border); font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.quick__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; }
.quick__steps li { padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: rgba(0, 0, 0, .2); }
.quick__steps h4 { font-size: 15px; margin-bottom: 6px; }
.quick__steps h4 span { color: var(--accent); font-family: var(--mono); margin-right: 6px; }
.quick__steps p { color: var(--muted); font-size: 14px; }
.quick__tip { margin-top: 14px; padding: 12px 16px; border-left: 2px solid var(--accent); background: var(--accent-dim); border-radius: 0 12px 12px 0; color: var(--muted); font-size: 14px; }
.quick__tip b, .quick__steps b { color: var(--text); }
.recipe__or { margin: 0 0 18px; font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
@media (max-width: 720px) {
  .quick__steps { grid-template-columns: 1fr; }
  .quick__dl { width: 100%; }
}
.codeblock { position: relative; margin-top: 12px; border: 1px solid var(--border); border-radius: 12px; background: rgba(10, 8, 6, .85); }
.codeblock pre { padding: 14px 110px 14px 16px; font-family: var(--mono); font-size: 13px; line-height: 1.6; overflow-x: auto; white-space: pre; color: var(--text); }
.codeblock .copy { position: absolute; top: 9px; right: 9px; margin: 0; background: rgba(10, 8, 6, .9); }

/* окно входа в кабинет */
.auth { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; overflow-y: auto; background: rgba(8, 6, 4, .55); backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); opacity: 0; transition: opacity .25s, backdrop-filter .25s; }
.auth[hidden] { display: none; }
.auth.open { opacity: 1; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.auth__card { position: relative; width: 100%; max-width: 420px; padding: 38px 34px 28px; text-align: center; border: 1px solid rgba(255, 122, 26, .28); border-radius: 26px; background: radial-gradient(circle at 50% -10%, rgba(255, 122, 26, .28), transparent 55%), var(--bg-2); box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .03) inset; transform: translateY(18px) scale(.97); transition: transform .3s cubic-bezier(.2, .9, .3, 1.2); }
.auth.open .auth__card { transform: none; }
.auth.shake .auth__card { animation: authShake .4s; }
@keyframes authShake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.auth__close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 10px; color: var(--muted); font-size: 22px; line-height: 1; transition: .2s; }
.auth__close:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.auth__mark { display: inline-flex; padding: 10px; border-radius: 18px; background: rgba(255, 122, 26, .12); box-shadow: 0 0 40px rgba(255, 122, 26, .35); margin-bottom: 18px; }
.auth__title { font-family: var(--display); font-size: 25px; font-weight: 800; }
.auth__sub { color: var(--muted); font-size: 14px; margin: 6px 0 22px; }
.auth__form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.auth__input { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: rgba(10, 8, 6, .85); color: var(--text); font: inherit; font-size: 15px; outline: 0; transition: border-color .2s, box-shadow .2s; }
.auth__input::placeholder { color: var(--muted); }
.auth__input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 122, 26, .15); }
.auth__pass { position: relative; }
.auth__pass input { padding-right: 84px; }
.auth__eye { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); padding: 6px 10px; border-radius: 8px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.auth__eye:hover { color: var(--accent); }
.auth__error { min-height: 20px; margin-top: -4px; color: #ff6b4a; font-size: 13px; }
.auth__error:empty { min-height: 0; margin: 0; }
.auth__submit { margin-top: 4px; justify-content: center; }
.auth--busy .auth__submit { opacity: .7; pointer-events: none; }
.auth__hint { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--border); color: var(--muted); font-size: 13px; }
.auth__hint b { color: var(--text); font-weight: 600; }

/* кнопка «Проверить API-ключ» в шапке */
.keybtn { gap: 8px; min-width: 196px; padding-left: 16px; padding-right: 20px; white-space: nowrap; border-color: rgba(255, 122, 26, .4); background: linear-gradient(135deg, rgba(255, 122, 26, .14), rgba(255, 179, 71, .05)); color: var(--text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 0 0 rgba(255, 122, 26, 0); }
.keybtn b { font-weight: 600; }
.keybtn svg { flex: none; color: var(--accent); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.keybtn:hover { transform: translateY(-2px); border-color: var(--accent); background: linear-gradient(135deg, rgba(255, 122, 26, .22), rgba(255, 179, 71, .08)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 30px -10px rgba(255, 122, 26, .55); }
.keybtn:hover svg { transform: rotate(-18deg) scale(1.1); }
/* где не влезает рядом с меню — круглая иконка с подсказкой */
@media (min-width: 861px) and (max-width: 1000px) {
  .header__inner { gap: 12px; }
  .header__actions { gap: 10px; }
  .nav { gap: 14px; font-size: 13.5px; }
}
@media (min-width: 861px) and (max-width: 1200px), (max-width: 720px) {
  .keybtn { flex: none; width: 38px; min-width: 0; height: 38px; padding: 0; border-radius: 50%; }
  .keybtn b { display: none; }
  .keybtn svg { width: 18px; height: 18px; }
}
@media (max-width: 420px) { .header .keybtn { width: 32px; height: 32px; padding: 0; } }
/* в мобильном меню — отдельным пунктом; на самых узких телефонах кнопки в шапке нет, только он */
.nav .nav__key { color: var(--accent); }
@media (min-width: 861px) { .nav .nav__key { display: none; } }
@media (max-width: 370px) { .header .keybtn { display: none; } }

/* окно проверки ключа */
.keychk__input:not(:placeholder-shown) { font-family: var(--mono); font-size: 14px; }
.keychk__res { text-align: left; animation: askIn .25s cubic-bezier(.2, .8, .2, 1) both; }
.keychk__status { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: rgba(61, 220, 132, .1); border: 1px solid rgba(61, 220, 132, .3); color: #3ddc84; font-size: 12.5px; font-weight: 600; margin-bottom: 16px; }
.keychk__status span { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 8px #3ddc84; }
.keychk__left small, .keychk__pair small { display: block; color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }
.keychk__left b { display: block; font-family: var(--display); font-size: 38px; font-weight: 800; line-height: 1.15; background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.keychk__bar { height: 8px; margin: 12px 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.keychk__bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 12px rgba(255, 122, 26, .6); transition: width .6s cubic-bezier(.22, 1, .36, 1); }
.keychk__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.keychk__pair > div { padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255, 255, 255, .02); }
.keychk__pair b { font-size: 17px; }
.keychk__note { padding: 12px 14px; border: 1px solid rgba(255, 122, 26, .3); border-radius: 12px; background: rgba(255, 122, 26, .07); font-size: 14px; line-height: 1.5; }
.keychk__rows { margin: 16px 0 18px; border-top: 1px dashed var(--border); }
.keychk__rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.keychk__rows dt { color: var(--muted); flex: none; }
.keychk__rows dd { text-align: right; overflow-wrap: anywhere; }
.keychk__again { width: 100%; }
.keychk__fp { color: var(--accent); font-weight: 600; border-bottom: 1px solid rgba(255, 122, 26, .4); transition: border-color .2s, color .2s; }
.keychk__fp:hover { color: var(--accent-2); border-color: var(--accent-2); }

/* появление при прокрутке */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* адаптив */
@media (max-width: 1000px) {
  .apps { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .how, .calc { grid-template-columns: 1fr; }
  .calc__main { border-right: 0; border-bottom: 1px solid var(--border); }
  .why { grid-template-columns: 1fr; }
  .setup__grid { grid-template-columns: minmax(0, 1fr); }
  .setup__side { position: static; }
}
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--border); }
  .nav.open { display: flex; }
  .nav a { padding: 16px 20px; border-top: 1px solid var(--border); }
  .burger { display: flex; }
  .header__actions { gap: 10px; }
  .footer { padding-bottom: 96px; }
  .footer__top { grid-template-columns: 1fr; gap: 30px; }
  .footer__bottom { flex-direction: column; }
}
@media (max-width: 600px) {
  .models, .apps { grid-template-columns: 1fr; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .tiers { grid-template-columns: 1fr; }
  .auth__card { padding: 32px 22px 24px; }
  .calc__main, .calc__side { padding: 26px; }
  .calc__ticks span:not(:first-child):not(:nth-child(6)):not(:last-child) { visibility: hidden; }
  .hero { padding-top: 60px; }
  .hero__star { width: 200px; height: 200px; margin-top: -50px; }
  .header { backdrop-filter: none; background: rgba(11, 9, 7, .94); }
  .help { right: 14px; bottom: 14px; padding: 10px 16px; }
  .section { padding: 64px 0; }
  .recipe { padding: 22px; }
  .recipe__steps li { gap: 12px; }
  .codeblock pre { padding: 46px 14px 14px; }
  .codeblock .copy { top: 7px; right: 7px; }
  .recipe__fields > div { grid-template-columns: 1fr; gap: 4px; }

  /* телефон: компактнее, по две карточки в ряд, меньше прокрутки */
  .section { padding: 52px 0; }
  .section__title { font-size: 28px; }
  .hero__title { font-size: 38px; }
  .terminal { margin-top: 36px; }
  .terminal pre { font-size: 12.5px; padding: 16px; }
  .apps { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .app { padding: 14px; border-radius: 14px; }
  .app strong { font-size: 15px; line-height: 1.25; }
  .app small { font-size: 9.5px; }
  .steps li { padding: 16px; gap: 14px; }
  .steps h3 { font-size: 16px; }
  .steps p, .card p { font-size: 14px; }
  .card { padding: 20px; }
  .card h3 { font-size: 17px; }
  .why { gap: 10px; margin-top: 26px; }
  .models { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .model { padding: 14px; border-radius: 14px; }
  .model__prov { font-size: 9.5px; letter-spacing: .06em; }
  .model__rate { font-size: 13px; }
  .model h3 { font-size: 15px; line-height: 1.25; margin: 6px 0 4px; }
  .model code { font-size: 10.5px; word-break: break-all; }
  .model p { display: none; }
  .tiers { grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 26px 0 22px; }
  .tier { padding: 18px 14px; border-radius: 14px; }
  .tier__radio { top: 14px; right: 14px; width: 15px; height: 15px; }
  .tier__name { font-size: 20px; }
  .tier__desc { font-size: 12.5px; min-height: 34px; }
  .tier__price { font-size: 19px; margin-top: 6px; }
  .final { padding: 52px 20px; border-radius: 24px; }
  .final h2 { font-size: 30px; margin-bottom: 26px; }
  .quick { padding: 18px; }
  .quick__info h3 { font-size: 17px; }
  .nav.open { animation: navDrop .3s cubic-bezier(.22, 1, .36, 1); }
  .nav.open a { animation: navItem .35s ease backwards; }
  .nav.open a:nth-child(2) { animation-delay: .04s; } .nav.open a:nth-child(3) { animation-delay: .08s; }
  .nav.open a:nth-child(4) { animation-delay: .12s; } .nav.open a:nth-child(5) { animation-delay: .16s; } .nav.open a:nth-child(6) { animation-delay: .2s; }
  .nav a:active { background: var(--accent-dim); color: var(--accent); }
}
@keyframes navDrop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes navItem { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@media (max-width: 420px) {
  .container { width: calc(100% - 28px); }
  .header__inner { gap: 8px; }
  .header__actions { gap: 6px; }
  .logo { font-size: 15px; gap: 6px; }
  .logo__mark svg { width: 26px; height: 26px; }
  .lang { --lp: 2px; font-size: 11px; }
  .lang button { padding: 4px 5px; }
  .header .btn--sm { padding: 8px 10px; font-size: 12px; }
  .burger { width: 26px; }
}

/* ===== админка (admin.html) ===== */
.adm__main { padding: 40px 0 80px; }
.adm__card { background: var(--bg-2); border: 1px solid var(--border); border-radius: 18px; padding: 24px; margin-bottom: 18px; }
.adm__login { max-width: 380px; margin: 60px auto; }
.adm__login form { display: grid; gap: 12px; }
/* глазик-иконка — только во входе кабинета; в окне входа на сайте кнопка текстовая («показать») */
.adm__login .auth__pass .auth__input { padding-right: 48px; }
.adm__login .auth__eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; transition: color .2s; }
.adm__login .auth__eye:hover, .adm__login .auth__eye.is-on { color: var(--accent); }
.adm__login .auth__eye.is-on .auth__eye-off { display: none; }
.adm__h1 { font-family: var(--display); font-size: 26px; margin-bottom: 18px; }
.adm__h2 { font-family: var(--display); font-size: 18px; margin-bottom: 14px; }
.adm__who { color: var(--muted); font-size: 14px; }
.adm__denied { text-align: center; margin: 80px 0; color: var(--muted); }
.adm__tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.adm__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.adm__row label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); flex: 1 1 180px; }
.adm__result { margin-top: 16px; padding: 16px; border: 1px solid var(--accent); border-radius: 12px; background: var(--accent-dim); }
.adm__cred { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); }
.adm__cred:first-of-type { border-top: 0; padding-top: 0; }
.adm__cred code { font-family: var(--mono); font-size: 15px; word-break: break-all; user-select: all; }
.adm__cred .chip { padding: 5px 12px; font-size: 12px; }
.adm__cred > .chip:last-child { grid-column: 2 / -1; justify-self: start; }
.adm__lines > div { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--border); }
.adm__lines > div:first-child { border-top: 0; padding-top: 0; }
.adm__lines code { flex: 1; min-width: 0; font-family: var(--mono); font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }
.adm__lines .chip { padding: 5px 12px; font-size: 12px; flex-shrink: 0; }
.cab__table td.mono .chip { padding: 2px 8px; font-size: 12px; margin-left: 4px; }
.adm__result pre { font-family: var(--mono); font-size: 14px; white-space: pre-wrap; word-break: break-all; margin-bottom: 12px; }
.adm__bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.adm__bar .adm__h2 { margin: 0; }
.adm__search { max-width: 260px; }
.adm__tr { display: grid; grid-template-columns: minmax(0, 2fr) 1fr 1fr 1fr minmax(0, 2.4fr); gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); font-size: 14px; }
.adm__th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; border-top: 0; }
.adm__tr small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.adm__tr b { overflow-wrap: anywhere; }
.adm__st.ok { color: #5fd48a; }
.adm__st.bad { color: #ff5d5d; }
.adm__acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.adm__acts .chip { padding: 6px 12px; font-size: 13px; }
.adm__del:hover { border-color: #ff5d5d; color: #ff5d5d; }
.adm__toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; transition: .25s; padding: 12px 20px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--accent); font-size: 14px; pointer-events: none; z-index: 60; }
.adm__toast.show { opacity: 1; transform: translate(-50%, 0); }
.adm__toast.bad { border-color: #ff5d5d; }
@media (max-width: 760px) {
  .adm__th { display: none; }
  .adm__tr { grid-template-columns: 1fr 1fr; }
  .adm__tr > span:first-child, .adm__acts { grid-column: 1 / -1; }
  .adm__acts { justify-content: flex-start; }
  .adm__search { max-width: none; flex: 1; }
}

/* ===== кабинет (cabinet.html) ===== */
.cab { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding: 32px 0 80px; }
.cab__side { position: sticky; top: 92px; align-self: start; display: grid; gap: 4px; }
.cab__side h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 14px 12px 6px; font-weight: 600; }
.cab__side h4:first-child { margin-top: 0; }
.cab__nav { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid transparent; color: var(--muted); font-size: 15px; transform-origin: left center; transition: transform .38s cubic-bezier(.34,1.56,.64,1), color .2s, background .25s, border-color .25s, box-shadow .3s; }
.cab__nav:hover { color: var(--text); transform: scale(1.06) translateX(4px); background: linear-gradient(90deg, rgba(255,122,26,.16), rgba(255,122,26,.03)); border-color: rgba(255,122,26,.25); box-shadow: 0 10px 28px -12px rgba(255,122,26,.6); }
.cab__nav:active { transform: scale(.97); transition-duration: .1s; }
.cab__nav.active { color: var(--text); background: var(--accent-dim); box-shadow: inset 3px 0 0 var(--accent); animation: tpNavOn .5s cubic-bezier(.2,.8,.2,1); }
.cab__nav.active:hover { box-shadow: inset 3px 0 0 var(--accent), 0 10px 28px -12px rgba(255,122,26,.6); }
.cab__nav svg { width: 18px; height: 18px; flex: none; transition: transform .45s cubic-bezier(.34,1.56,.64,1), color .2s; }
.cab__nav:hover svg { color: var(--accent); transform: scale(1.2) rotate(-8deg); }
.cab__nav.active svg { color: var(--accent); }
@keyframes tpNavOn { from { background: transparent; box-shadow: inset 0 0 0 var(--accent); } }
.cab__mode { display: inline-flex; align-items: center; gap: 8px; }
.cab__mode.on { border-color: var(--accent); color: var(--accent); }
.cab__title { font-family: var(--display); font-size: 24px; margin-bottom: 6px; }
.cab__sub { color: var(--muted); margin-bottom: 22px; font-size: 14px; }
.cab__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.cab__stat { background: var(--bg-2); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.cab__stat span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.cab__stat b { font-family: var(--display); font-size: 22px; font-weight: 600; }
.cab__stat small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.cab__stat--accent { border-color: rgba(255, 122, 26, .45); background: linear-gradient(135deg, rgba(255,122,26,.14), rgba(255,179,71,.05)); }
.cab__scroll { overflow-x: auto; margin: 0 -4px; }
.cab__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cab__table th { text-align: left; color: var(--muted); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; white-space: nowrap; }
.cab__table td { padding: 12px 10px; border-top: 1px solid var(--border); vertical-align: middle; }
.cab__table td small { display: block; color: var(--muted); font-size: 12px; }
.cab__table .num { text-align: right; font-family: var(--mono); white-space: nowrap; }
.cab__table .mono { font-family: var(--mono); font-size: 13px; }
.cab__table .acts { text-align: right; white-space: nowrap; }
.cab__table .acts .chip { padding: 5px 11px; font-size: 12px; margin-left: 4px; }
.cab__table input.auth__input { padding: 7px 10px; font-size: 13px; width: 100px; }
.cab__empty { color: var(--muted); padding: 24px 0; text-align: center; }
.cab__pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 14px; color: var(--muted); font-size: 13px; }
.cab__pager .chip { padding: 5px 12px; }
.cab__pager .chip:disabled { opacity: .4; cursor: default; }
.cab__tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; border: 1px solid var(--border); white-space: nowrap; }
.cab__tag.ok { color: #5fd48a; border-color: rgba(95, 212, 138, .35); }
.cab__tag.bad { color: #ff5d5d; border-color: rgba(255, 93, 93, .35); }
.cab__tag.warn { color: var(--accent-2); border-color: rgba(255, 179, 71, .35); }
.cab__form { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: end; }
.cab__form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.cab__form .full { grid-column: 1 / -1; }
.cab__form textarea.auth__input { min-height: 80px; resize: vertical; font-family: var(--mono); font-size: 13px; }
.cab__switch { display: flex !important; align-items: center; gap: 10px; cursor: pointer; color: var(--text) !important; font-size: 14px !important; }
.cab__switch input { width: 18px; height: 18px; accent-color: var(--accent); }
.cab__bars { display: grid; gap: 8px; }
.cab__bar { display: grid; grid-template-columns: minmax(0, 180px) 1fr auto; gap: 12px; align-items: center; font-size: 13px; }
.cab__bar i { display: block; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); min-width: 2px; }
.cab__bar span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cab__keybox { display: flex; gap: 10px; align-items: center; margin-top: 14px; padding: 14px 16px; border: 1px solid var(--accent); border-radius: 12px; background: var(--accent-dim); }
.cab__keybox code { flex: 1; word-break: break-all; color: var(--text); }
.cab__dlg { margin: auto; width: min(400px, 100% - 32px); padding: 24px; border-radius: 18px; border: 1px solid var(--border); background: var(--bg-2); color: var(--text); }
.cab__dlg::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); }
/* окно «Вы уверены?» */
.cab__ask { width: min(420px, 100% - 32px); border-color: rgba(255, 122, 26, .3); box-shadow: 0 24px 60px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 122, 26, .08); animation: askIn .22s cubic-bezier(.2, .8, .2, 1) both; }
.cab__ask .adm__h2 { margin-bottom: 8px; }
.cab__askt { color: var(--muted); font-size: 14.5px; line-height: 1.5; margin-bottom: 4px; overflow-wrap: anywhere; }
.cab__ask .auth__input { margin-top: 8px; }
.cab__askb { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.cab__askb .btn { min-width: 96px; justify-content: center; }
.cab__askdel { background: #e5484d; border-color: #e5484d; color: #fff; box-shadow: 0 8px 24px rgba(229, 72, 77, .3); }
.cab__askdel:hover { background: #f05358; }
@keyframes askIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.cab__grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.cab__grid2 > .adm__card { margin-bottom: 0; }
.cab__grid2 + .adm__card, .cab__stats + .cab__grid2 { margin-top: 18px; }
.cab__headrow { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.cab__headbtns { display: flex; gap: 10px; margin-top: 6px; }
.cab__strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; margin: 18px 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--border); overflow: hidden; }
.cab__strip > div { padding: 14px 18px; background: var(--bg-2); }
@media (max-width: 1100px) { .cab__strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .cab__strip { grid-template-columns: repeat(2, 1fr); } }
.cab__strip span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.cab__strip b { font-size: 20px; font-weight: 600; }
.cab__strip b.accent { color: var(--accent); }
.cab__strip b.bad { color: #e5484d; }
.cab__link { color: var(--accent); font-size: 13px; font-weight: 600; }
.cab__meter { padding: 12px 0; }
.cab__meter + .cab__meter { border-top: 1px solid var(--border); }
.cab__meter-top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.cab__meter-bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.cab__meter-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.cab__meter-bar i.low { background: #e5484d; }
.cab__meter small { display: block; margin-top: 7px; color: var(--muted); font-size: 12.5px; }
.cab__meter small b { color: var(--text); }
.cab__split { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; margin-top: 18px; }
.cab__split > div > .adm__card + .adm__card { margin-top: 18px; }
.cab__chart { position: relative; height: 220px; margin: 14px 0 0 44px; padding-bottom: 22px; }
.cab__gl { position: absolute; inset: 0 0 22px 0; }
.cab__grid { position: absolute; left: 0; right: 0; border-top: 1px dashed rgba(255, 255, 255, .07); }
.cab__nodata { position: absolute; inset: 0 0 22px 0; display: grid; place-items: center; z-index: 1; }
.cab__keybox--col { flex-direction: column; align-items: stretch; }
.cab__keybox--col code { word-break: break-all; }
.cab__grid em { position: absolute; right: 100%; top: -8px; margin-right: 8px; font: 10.5px var(--mono); font-style: normal; color: var(--muted); white-space: nowrap; }
.cab__cols { position: absolute; inset: 0 0 0 0; display: flex; gap: 2px; }
.cab__col { flex: 1; position: relative; outline: none; cursor: crosshair; }
.cab__col::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 22px; border-left: 1px dashed rgba(255, 255, 255, .18); opacity: 0; }
.cab__col i { position: absolute; left: 50%; width: 9px; height: 9px; margin: 0 0 -4.5px -4.5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg-2); opacity: 0; }
.cab__col:hover::before, .cab__col:focus::before, .cab__col:hover i, .cab__col:focus i { opacity: 1; }
.cab__col > span { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); font: 10px var(--mono); color: var(--muted); }
.cab__col:nth-child(even) > span { visibility: hidden; }
.cab__line { position: absolute; left: 0; right: 0; top: 0; height: calc(100% - 22px); width: 100%; overflow: visible; }
.cab__stroke { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.cab__area-fill { fill: rgba(255, 122, 26, .12); }
.cab__tip { display: none; position: absolute; bottom: calc(100% - 10px); z-index: 2; padding: 6px 9px; border: 1px solid var(--border); border-radius: 8px; background: #17110c; font: 500 11.5px var(--mono); white-space: nowrap; pointer-events: none; }
.cab__col:hover .cab__tip, .cab__col:focus .cab__tip { display: block; bottom: auto; top: -6px; left: 50%; transform: translateX(-50%); }
@media (max-width: 900px) { .cab__split { grid-template-columns: 1fr; } }
.chat { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.chat__main { display: flex; flex-direction: column; height: calc(100vh - 150px); min-height: 460px; padding: 0; overflow: hidden; }
.chat__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.chat__head .adm__h2 { margin: 0; }
.chat__log { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.chat__empty { margin: auto; text-align: center; display: grid; justify-items: center; gap: 6px; color: var(--muted); }
.chat__empty svg { width: 28px; height: 28px; }
.chat__empty b { color: var(--text); }
.chat__msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
.chat__msg--user { align-self: flex-end; background: var(--accent-dim); border: 1px solid rgba(255, 122, 26, .35); }
.chat__msg--assistant { align-self: flex-start; background: rgba(255, 255, 255, .04); border: 1px solid var(--border); }
.chat__msg--err { border-color: #e5484d; color: #ff8a8d; }
.chat__msg--wait::after { content: "●●●"; letter-spacing: 3px; color: var(--muted); animation: blink 1s steps(2) infinite; }
.chat__msg pre { margin: 8px 0; padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, .35); overflow-x: auto; }
.chat__msg pre code { color: var(--text); white-space: pre; }
.chat__form { display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--border); align-items: stretch; }
.chat__form textarea { flex: 1; resize: none; min-height: 52px; max-height: 200px; }
.chat__form .btn { padding: 0 18px; }
.chat__form { flex-wrap: wrap; }
.chat__form .chat__clip { padding: 0 14px; font-size: 18px; }
.chat__att { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px; }
.chat__pic { position: relative; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.chat__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chat__pic button { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .7); color: #fff; font-size: 11px; line-height: 20px; cursor: pointer; }
.chat__doc { display: inline-flex; align-items: center; gap: 6px; max-width: 260px; height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid rgba(255, 122, 26, .35); background: rgba(255, 122, 26, .08); font-size: 13px; }
.chat__att .chat__doc { height: 64px; }
.chat__doc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat__doc i { font-style: normal; color: var(--muted); font-size: 12px; white-space: nowrap; }
.chat__doc button { width: 20px; height: 20px; flex: none; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .5); color: #fff; font-size: 11px; line-height: 20px; cursor: pointer; }
.chat__docs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.chat__imgs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.chat__imgs img { max-width: 220px; max-height: 220px; border-radius: 10px; display: block; }
.chat__side { position: sticky; top: 20px; display: flex; flex-direction: column; }
.chat__side textarea { resize: vertical; }
.chat__h2 { margin-top: 18px; }
.chat__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; max-height: 280px; overflow: hidden auto; }
.chat__item { min-width: 0; display: flex; align-items: center; gap: 2px; border: 1px solid transparent; border-radius: 10px; transition: .2s; }
.chat__item:hover { background: rgba(255, 255, 255, .04); }
.chat__item.active { border-color: rgba(255, 122, 26, .35); background: var(--accent-dim); }
.chat__open { flex: 1; min-width: 0; text-align: left; padding: 8px 10px; font-size: 13.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat__act { flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; color: var(--muted); font-size: 13px; opacity: 0; transition: .2s; }
.chat__item:hover .chat__act, .chat__item.active .chat__act, .chat__act:focus-visible, .chat__item.pinned .chat__act[data-a="pin"] { opacity: 1; }
.chat__item.pinned .chat__act[data-a="pin"] { color: var(--accent); }
.chat__act:hover { color: var(--text); background: rgba(255, 255, 255, .08); }
@media (hover: none) { .chat__act { opacity: 1; } }
.chat__lbl { font-size: 13px; color: var(--muted); margin: 14px 0 6px; }
.chat__row { display: flex; justify-content: space-between; }
.chat__row b { color: var(--text); }
.chat__side input[type=range] { accent-color: var(--accent); width: 100%; }
.chat__toggle { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; }
.chat__toggle span { display: grid; gap: 2px; font-size: 14px; }
.chat__toggle input { position: absolute; opacity: 0; pointer-events: none; }
.chat__toggle i { width: 36px; height: 20px; border-radius: 999px; background: rgba(255, 255, 255, .12); position: relative; transition: .2s; flex-shrink: 0; }
.chat__toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: .2s; }
.chat__toggle input:checked + i { background: var(--accent); }
.chat__toggle input:checked + i::after { left: 19px; }
.chat__toggle input:focus-visible + i { box-shadow: 0 0 0 2px var(--accent-2); }
/* выбор модели — свой выпадающий список вместо серого системного */
.pick { position: relative; }
.pick__btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; cursor: pointer; }
.pick__btn span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick__btn i { flex-shrink: 0; width: 8px; height: 8px; margin-top: -4px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform .25s, margin .25s; }
.pick.open .pick__btn { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 122, 26, .15); }
.pick.open .pick__btn i { transform: rotate(-135deg); margin-top: 4px; }
.pick__btn:disabled { cursor: default; opacity: .6; }
.pick__list { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; max-height: 320px; overflow-y: auto; padding: 6px; display: grid; gap: 2px; background: #120d09; border: 1px solid rgba(255, 122, 26, .35); border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .55); animation: tpRise .2s cubic-bezier(.2,.8,.2,1) both; }
.pick__list[hidden] { display: none; }
.pick__opt { text-align: left; padding: 9px 12px; border-radius: 9px; font-size: 14px; color: var(--text); transition: background .15s, color .15s; }
.pick__opt:hover, .pick__opt:focus-visible { background: rgba(255, 255, 255, .06); outline: 0; }
.pick__opt.active { background: var(--accent-dim); color: var(--accent); font-weight: 600; }
/* блок кода в ответе модели с кнопкой «Скопировать» */
.chat__code { margin: 8px 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: rgba(0, 0, 0, .35); }
.chat__codebar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 5px 6px 5px 12px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .03); font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.chat__copy { padding: 4px 10px; border-radius: 7px; border: 1px solid rgba(255, 122, 26, .35); color: var(--accent); font-size: 12px; transition: background .2s; }
.chat__copy:hover { background: var(--accent-dim); }
.chat__codebar > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat__codebtns { display: flex; gap: 6px; flex-shrink: 0; }
.chat__zipbar { margin-top: 10px; }
.chat__code pre { margin: 0; border-radius: 0; background: none; }
@media (max-width: 900px) { .chat { grid-template-columns: 1fr; } .chat__side { position: static; order: -1; } .chat__main { height: 70vh; } }
.cab__find { display: flex; gap: 10px; margin-bottom: 12px; }
.cab__find .auth__input { flex: 1; }
.cab__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.cab__chips .chip { padding: 6px 14px; font-size: 13px; }
.cab__chips .chip.active { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.cab__rowlink { cursor: pointer; transition: background .15s; }
.cab__rowlink:hover { background: var(--card); }
.cab__chev { color: var(--muted); font-size: 18px; }
.cab__area { width: 100%; min-height: 90px; resize: vertical; font-family: var(--mono); font-size: 13px; }
.cab__table .acts .chip:disabled { opacity: .4; cursor: default; }
.cab__drawer { margin: 0 0 0 auto; height: 100%; max-height: none; width: min(860px, 100%); padding: 0; border: 0; border-left: 1px solid var(--border); background: var(--bg); color: var(--text); outline: none; }
.cab__drawer::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); }
.cab__drawer[open] { animation: cab-in .22s ease; }
@keyframes cab-in { from { transform: translateX(40px); opacity: 0; } }
.cab__dbody { padding: 28px; min-height: 100%; }
.cab__dhead { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.cab__dhead .cab__title { margin-bottom: 2px; overflow-wrap: anywhere; }
.cab__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cab__dacts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.cab__dacts .chip { padding: 8px 14px; font-size: 13px; }
.cab__inline { display: flex; gap: 6px; }
.cab__inline .auth__input { padding: 8px 10px; font-size: 13px; width: auto; }
.cab__inline input.auth__input { width: 140px; }
.cab__kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 14px; }
.cab__kv > div:first-child { border-top: 0; }
.cab__kv span { color: var(--muted); }
.cab__kv b { font-weight: 500; text-align: right; overflow-wrap: anywhere; }
#dres:not(:empty) { margin-bottom: 16px; }
@media (max-width: 860px) {
  .cab__dbody { padding: 20px 16px; }
  .cab { grid-template-columns: 1fr; padding-top: 18px; }
  .cab__side { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .cab__side h4 { display: none; }
  .cab__nav { white-space: nowrap; padding: 8px 12px; font-size: 14px; }
  .cab__nav svg { display: none; }
  .cab__nav.active { box-shadow: inset 0 -2px 0 var(--accent); }
}.cab__logout { width: 100%; margin-top: 18px; border-top: 1px solid var(--border); padding-top: 14px; text-align: left; font: inherit; color: var(--muted); background: none; cursor: pointer; }
.cab__logout:hover { color: #ff9a9a; background: linear-gradient(90deg, rgba(229,72,77,.14), transparent); border-color: transparent; border-top-color: var(--border); box-shadow: none; }
.cab__logout:hover svg { color: #ff6b6b; transform: translateX(3px); }
/* «Выйти» прижат к левому нижнему углу */
@media (min-width: 861px) {
  .cab__side { display: flex; flex-direction: column; min-height: calc(100vh - 124px); }
  .cab__logout { margin-top: auto; }
}

.ava { display: inline-grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; background: var(--accent-dim); border: 1px solid rgba(255, 122, 26, .35); color: var(--accent); font-weight: 700; font-size: 13px; }
.ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ava--sm { width: 26px; height: 26px; font-size: 12px; }
.ava--row { width: 34px; height: 34px; font-size: 14px; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s; }
.cab__rowlink:hover .ava--row { transform: scale(1.12); box-shadow: 0 0 0 3px rgba(255, 122, 26, .18); }
.cab__ucell { display: flex; align-items: center; gap: 12px; }
.cab__ucell small { display: block; }
.cab__dhead .cab__ucell { flex-wrap: nowrap; }
.cab__dhead .cab__ucell > span:not(.cab__lims) { flex: none; }
.cab__dhead .cab__title { min-width: 0; flex: 1 1 auto; }
.cab__limpct { margin-top: 4px; font-family: "Inter", system-ui, sans-serif; font-size: 13px; font-weight: 500; color: var(--muted); }
@media (max-width: 560px) {
  .cab__dhead .cab__ucell > span:not(.ava):not(.cab__lims) { flex: 0 1 auto; min-width: 0; }
  .cab__dhead .cab__ucell { gap: 8px; font-size: 18px; }
  .cab__dhead .cab__tag--lim { font-size: 12px; padding: 4px 10px; }
}
.cab__lims { display: inline-flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.cab__tag--lim { font-family: "Inter", system-ui, sans-serif; font-size: 15px; font-weight: 600; padding: 6px 14px; border-width: 2px; }
.cab__tag--lim.ok { background: rgba(95, 212, 138, .08); }
.cab__tag--lim.bad { background: rgba(255, 93, 93, .12); }
.ava--md { width: 56px; height: 56px; font-size: 22px; }
.ava--lg { width: 64px; height: 64px; font-size: 26px; }
.adm__who { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: 1px solid transparent; border-radius: 999px; cursor: pointer; transition: transform .35s cubic-bezier(.34,1.56,.64,1), color .2s, background .25s, border-color .25s, box-shadow .3s; }
.adm__who:empty { display: none; }
.adm__who .ava { transition: transform .45s cubic-bezier(.34,1.56,.64,1), box-shadow .3s; }
.adm__who:hover { color: var(--text); transform: scale(1.06); background: linear-gradient(90deg, rgba(255,122,26,.16), rgba(255,122,26,.04)); border-color: rgba(255,122,26,.3); box-shadow: 0 10px 28px -12px rgba(255,122,26,.6); }
.adm__who:hover .ava { transform: scale(1.12) rotate(-6deg); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.adm__who:active { transform: scale(.96); transition-duration: .1s; }
.prof__head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.prof__who { flex: 1; min-width: 180px; }
.prof__who .cab__title { margin: 0 0 4px; }
.prof__nums { display: flex; gap: 10px; flex-wrap: wrap; }
.prof__nums div { padding: 10px 16px; border: 1px solid var(--border); border-radius: 12px; text-align: center; min-width: 96px; }
.prof__nums span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.prof__form { margin-top: 18px; max-width: 640px; }
.prof__ava { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.prof__ava .btn { cursor: pointer; }

/* Безопасность */
.sec__sess { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); }
.sec__sess:first-child { border-top: 0; }
.sec__sess p { margin-top: 4px; }
.sec__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; }
.sec__row > span { display: flex; flex-direction: column; gap: 4px; }
.sec__sw { appearance: none; flex: none; width: 40px; height: 22px; border-radius: 11px; background: var(--bg-2); border: 1px solid var(--border); position: relative; cursor: pointer; transition: background .15s; }
.sec__sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; }
.sec__sw:checked { background: var(--accent); border-color: var(--accent); }
.sec__sw:checked::after { transform: translateX(18px); background: #fff; }

[hidden] { display: none !important; }

/* шапка кабинета: язык и лимит */
.cab__lim { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.cab__lim svg { width: 16px; height: 16px; color: var(--accent); }
.cab__lim b { color: var(--text); }
.cab__lim.low b, .cab__lim.low svg { color: #ff5b5b; }
.cab__lim:hover { border-color: var(--accent); }
@media (max-width: 640px) { .cab__lim span { display: none; } .adm__who span { display: none; } }

/* Кабинет — анимации */
@keyframes tpRise { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes tpGrow { from { transform: scaleX(0); } }
#view > * { animation: tpRise .5s cubic-bezier(.2,.8,.2,1) both; }
#view > *:nth-child(2) { animation-delay: .06s; }
#view > *:nth-child(3) { animation-delay: .12s; }
#view > *:nth-child(4) { animation-delay: .18s; }
#view > *:nth-child(5) { animation-delay: .24s; }
#view > *:nth-child(n+6) { animation-delay: .3s; }
.cab__side > * { animation: tpRise .45s cubic-bezier(.2,.8,.2,1) both; }
#view .adm__card { transition: border-color .3s, box-shadow .35s; }
#view .adm__card:hover { border-color: rgba(255,122,26,.28); box-shadow: 0 20px 50px -26px rgba(255,122,26,.4); }
.cab__strip > div { transition: background .25s, box-shadow .25s; }
.cab__strip > div:hover { background: #1a140e; box-shadow: inset 0 2px 0 var(--accent); }
.cab__meter-bar i, .cab__bar i { transform-origin: left center; animation: tpGrow 1s cubic-bezier(.2,.8,.2,1) .2s both; }
.chat__log > * { animation: tpRise .35s cubic-bezier(.2,.8,.2,1) both; }
.adm .btn:active { transform: scale(.96); transition-duration: .08s; }
.adm .btn--ghost:hover { background: var(--accent-dim); transform: translateY(-1px); }
.adm .chip { transition: transform .3s cubic-bezier(.34,1.56,.64,1), border-color .2s, background .2s; }
.adm .chip:hover { transform: translateY(-2px); }
.cab__lim { transition: transform .3s cubic-bezier(.34,1.56,.64,1), border-color .2s, color .2s, background .2s; }
.cab__lim:hover { transform: translateY(-1px) scale(1.04); }
@media (max-width: 860px), (hover: none) { .cab__nav:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .adm *, .adm *::before, .adm *::after { animation: none !important; transition-duration: .01s !important; }
  .cab__nav:hover, .cab__nav:hover svg { transform: none; }
}
.cab__live { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #3dd68c; vertical-align: 1px; animation: tpLive 1.8s ease-out infinite; }
@keyframes tpLive { 0% { box-shadow: 0 0 0 0 rgba(61,214,140,.55); } 100% { box-shadow: 0 0 0 9px rgba(61,214,140,0); } }
.cab__stat b.cab__bump { display: inline-block; animation: tpBump .6s cubic-bezier(.34,1.56,.64,1); }
@keyframes tpBump { 35% { transform: scale(1.25); color: var(--accent); } }
.cab__uacts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* окно «API-ключи любого объёма» на главной */
.promo { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(6, 4, 2, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .3s ease; }
.promo.open { opacity: 1; }
.promo__card { position: relative; overflow: hidden; width: min(440px, 100%); padding: 38px 34px 26px; text-align: center; border: 1px solid rgba(255, 122, 26, .28); border-radius: 24px; background: radial-gradient(120% 70% at 50% 0%, rgba(255, 122, 26, .22), transparent 60%), linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .01) 60%), #120d09; box-shadow: 0 30px 90px -20px rgba(255, 122, 26, .45), 0 0 0 1px rgba(255, 255, 255, .03) inset; transform: translateY(18px) scale(.96); transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.promo.open .promo__card { transform: none; }
.promo__card::before { content: ""; position: absolute; left: -40%; top: 0; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .08), transparent); animation: promoShine 3.2s ease-in-out 1s infinite; pointer-events: none; }
@keyframes promoShine { 0% { left: -40%; } 45%, 100% { left: 120%; } }
.promo__close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: rgba(255, 255, 255, .03); color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; transition: color .2s, border-color .2s, transform .2s; }
.promo__close:hover { color: var(--text); border-color: var(--accent); transform: rotate(90deg); }
.promo__badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--accent-dim); color: var(--accent); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.promo__badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: promoPulse 1.8s ease-out infinite; }
@keyframes promoPulse { 0% { box-shadow: 0 0 0 0 rgba(255, 122, 26, .6); } 100% { box-shadow: 0 0 0 9px rgba(255, 122, 26, 0); } }
.promo__title { margin: 18px 0 12px; font-family: var(--display); font-weight: 800; font-size: clamp(26px, 6vw, 34px); line-height: 1.12; letter-spacing: -.015em; }
.promo__title em { display: block; font-style: normal; background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.promo__text { color: var(--muted); font-size: 15px; line-height: 1.6; }
.promo__vols { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.promo__vols span { padding: 6px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); font-family: var(--mono); font-size: 13px; font-weight: 600; animation: tpRise .5s cubic-bezier(.2, .8, .2, 1) both; }
.promo__vols span:nth-child(2) { animation-delay: .08s; }
.promo__vols span:nth-child(3) { animation-delay: .16s; }
.promo__vols span:nth-child(4) { animation-delay: .24s; color: var(--accent); border-color: rgba(255, 122, 26, .4); }
.promo .btn--wide { margin-top: 24px; }
.promo__later { margin-top: 12px; padding: 6px 12px; background: none; border: 0; color: var(--muted); font-size: 14px; cursor: pointer; }
.promo__later:hover { color: var(--text); }
@media (prefers-reduced-motion: reduce) { .promo, .promo__card { transition: none; } .promo__card::before, .promo__badge i, .promo__vols span { animation: none; } }

/* генерация фото в кабинете */
.photo__form { display: grid; gap: 12px; }
.photo__form textarea { resize: vertical; min-height: 84px; }
.photo__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.photo__row .cab__chips { margin: 0; }
.photo__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 14px; }
.photo__item { display: grid; gap: 8px; align-content: start; padding: 10px; border: 1px solid var(--border); border-radius: 14px; background: rgba(255, 255, 255, .03); }
.photo__img { display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: rgba(0, 0, 0, .3); }
.photo__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.photo__item p { margin: 0; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.photo__acts { display: flex; gap: 6px; flex-wrap: wrap; }
.photo__acts .chip { padding: 6px 10px; font-size: 12px; }
.photo__item--wait .photo__img span { color: var(--muted); font-size: 13px; text-align: center; padding: 12px; animation: blink 1.4s steps(2) infinite; }

/* генерация фото: выбор модели справа */
.photo__wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.photo__wrap > div > .adm__card:last-child { margin-bottom: 0; }
.photo__models { margin-bottom: 0; position: sticky; top: 18px; }
.photo__mlist { display: grid; gap: 10px; margin-top: 12px; }
.photo__model { display: grid; gap: 3px; text-align: left; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: rgba(255, 255, 255, .03); color: var(--text); font: inherit; cursor: pointer; transition: border-color .2s, background .2s; }
.photo__model:hover { border-color: rgba(255, 122, 26, .45); }
.photo__model.active { border-color: var(--accent); background: var(--accent-dim); }
.photo__model b { font-size: 14px; }
.photo__price { font-size: 12px; color: var(--accent-2); }
@media (max-width: 1000px) { .photo__wrap { grid-template-columns: 1fr; } .photo__models { position: static; } }

/* генерация фото: анимации карточек моделей */
@keyframes phIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes phFlow { to { background-position: 0 0, 200% 0; } }
@keyframes phPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 122, 26, .55); } 50% { box-shadow: 0 0 0 6px rgba(255, 122, 26, 0); } }
.photo__model { position: relative; overflow: hidden; padding-right: 38px; animation: phIn .45s cubic-bezier(.2, .8, .2, 1) backwards, phFlow 3s linear infinite; transition: transform .25s cubic-bezier(.2, .8, .2, 1), border-color .25s, background .25s, box-shadow .3s; }
.photo__model:nth-child(2) { animation-delay: .06s, 0s; }
.photo__model:nth-child(3) { animation-delay: .12s, 0s; }
.photo__model:nth-child(4) { animation-delay: .18s, 0s; }
.photo__model:nth-child(5) { animation-delay: .24s, 0s; }
.photo__model:nth-child(n+6) { animation-delay: .3s, 0s; }
/* отблеск, пробегающий по карточке при наведении */
.photo__model::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 179, 71, .16) 50%, transparent 65%); transform: translateX(-120%); transition: transform .7s ease; pointer-events: none; }
.photo__model:hover::after { transform: translateX(120%); }
/* кружок выбора справа */
.photo__model::before { content: ""; position: absolute; top: 14px; right: 14px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .18); box-sizing: border-box; transition: border-color .25s, background .25s, transform .25s; }
.photo__model:hover { transform: translateY(-2px); border-color: rgba(255, 122, 26, .5); box-shadow: 0 10px 26px -14px rgba(255, 122, 26, .55); }
.photo__model:hover::before { border-color: rgba(255, 122, 26, .7); }
.photo__model:active { transform: translateY(0) scale(.98); }
.photo__model b, .photo__model .photo__price { transition: color .25s; }
.photo__model:hover b { color: #fff; }
/* выбранная: переливающаяся рамка, свечение и пульсирующая точка */
.photo__model.active {
  border-color: transparent;
  background: linear-gradient(rgba(36, 20, 8, .96), rgba(36, 20, 8, .96)) padding-box, linear-gradient(110deg, var(--accent), var(--accent-2), #ff5a1a, var(--accent)) border-box;
  background-size: 100% 100%, 200% 100%;
  box-shadow: 0 0 0 1px rgba(255, 122, 26, .15), 0 12px 30px -12px rgba(255, 122, 26, .6);
}
.photo__model.active::before { border-color: var(--accent); background: radial-gradient(circle, var(--accent-2) 0 3px, transparent 3.5px), var(--accent); transform: scale(1.1); animation: phPulse 1.8s ease-out infinite; }
.photo__model.active .photo__price { color: #ffd08a; }
@media (prefers-reduced-motion: reduce) {
  .photo__model, .photo__model.active, .photo__model.active::before { animation: none; }
  .photo__model::after { display: none; }
}


/* ===== Мобильная версия: крупные зоны нажатия, читаемый текст, без масштабирования при вводе ===== */
@media (max-width: 860px) {
  html { -webkit-text-size-adjust: 100%; }
  body { overflow-x: clip; }
  input:not([type="range"]):not([type="checkbox"]):not([type="radio"]), select, textarea { font-size: 16px; }
  .lang button, .burger, .header .keybtn { position: relative; }
  .lang button::after, .burger::after, .header .keybtn::after { content: ""; position: absolute; inset: -7px -3px; }
  .lang button { padding-top: 7px; padding-bottom: 7px; }
  .copy { padding: 9px 14px; font-size: 12px; }
  .nav a, .footer__nav a { display: inline-block; padding: 9px 0; }
  .footer__nav { gap: 2px 28px; }
  .footer__label, .footer__compat { font-size: 12px; }
  input[type="range"] { box-sizing: content-box; padding: 14px 0; background-clip: content-box; touch-action: pan-y; }
  .help { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); padding: 10px 16px; }
  .footer { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
@media (hover: none) {
  .lang:hover, .keybtn:hover, .help:hover { transform: none; }
}