: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; }
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, .10), transparent 70%),
    radial-gradient(ellipse 55% 45% at 85% 60%, rgba(232, 80, 12, .09), transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(255, 161, 61, .08), transparent 70%);
}
/* огоньки создаются в script.js */
.blob { position: absolute; top: 0; left: 0; border-radius: 50%; filter: blur(40px); 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; backdrop-filter: blur(16px); background: rgba(11, 9, 7, .7); 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); }
.header__actions { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; padding: 3px; border: 1px solid var(--border); border-radius: 999px; font-size: 12px; font-weight: 600; }
.lang button { padding: 4px 9px; border-radius: 999px; color: var(--muted); }
.lang .active { background: var(--accent-dim); color: var(--accent); }
.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); }

/* аккаунты */
.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; }

/* почему мы */
.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__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; }

.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; }
.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; }

/* появление при прокрутке */
.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; }
}
@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 { padding: 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__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__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; }
}