/* Mr.Cat — полярная ночь над Финляндией. Один яркий момент — сияние на линии кота. */

@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded-cyrillic-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-cyrillic-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JB Mono"; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --night: #070b1a;
  --night-2: #0a1024;
  --fjord: #0e1734;
  --fjord-2: #142049;
  --ice: #9cc3ff;
  --blue: #3d7bff;
  --cyan: #35e0d0;
  --lilac: #a58bff;
  --text: #e8eeff;
  --muted: #8c9ac4;
  --faint: #5d6a93;
  --line: rgba(156, 195, 255, .12);
  --line-2: rgba(156, 195, 255, .22);
  --ok: #35e0a0;
  --warn: #ffc56b;
  --bad: #ff7a8a;
  --aurora: linear-gradient(115deg, var(--blue) 0%, var(--cyan) 48%, var(--lilac) 100%);
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JB Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --r-lg: 26px;
  --r-md: 16px;
  --r-sm: 11px;
  --wrap: 1120px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; min-height: 100vh; background: var(--night); color: var(--text);
  font: 400 16px/1.6 var(--body); font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--ice); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(61, 123, 255, .45); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------- небо: полярное сияние за всей страницей ---------------- */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background: radial-gradient(120% 80% at 70% -10%, #13235a 0%, transparent 60%), var(--night); }
.sky::before, .sky::after { content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.sky::before { width: 70vw; height: 38vw; left: 30vw; top: -14vw; background: linear-gradient(100deg, rgba(61,123,255,.7), rgba(53,224,208,.45) 55%, transparent);
  transform: rotate(-8deg); animation: drift 38s var(--ease) infinite alternate; }
.sky::after { width: 55vw; height: 30vw; left: -10vw; top: 8vw; background: linear-gradient(80deg, rgba(165,139,255,.45), rgba(61,123,255,.25) 60%, transparent);
  animation: drift 52s var(--ease) infinite alternate-reverse; }
.stars { position: absolute; inset: 0; background-image:
  radial-gradient(1px 1px at 12% 18%, #fff8, transparent 60%), radial-gradient(1px 1px at 78% 12%, #fff6, transparent 60%),
  radial-gradient(1px 1px at 33% 64%, #fff5, transparent 60%), radial-gradient(1.5px 1.5px at 88% 46%, #fff7, transparent 60%),
  radial-gradient(1px 1px at 56% 30%, #fff4, transparent 60%), radial-gradient(1px 1px at 22% 86%, #fff4, transparent 60%),
  radial-gradient(1px 1px at 64% 82%, #fff5, transparent 60%), radial-gradient(1.5px 1.5px at 6% 52%, #fff5, transparent 60%); }
@keyframes drift { from { transform: translate3d(-4vw, 0, 0) rotate(-8deg); } to { transform: translate3d(6vw, 3vw, 0) rotate(-3deg); } }

/* ---------------- каркас ---------------- */
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.top { position: sticky; top: 0; z-index: 30; backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: linear-gradient(rgba(7,11,26,.82), rgba(7,11,26,.55)); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 600 17px/1 var(--display); letter-spacing: -.01em; }
.brand .mark { width: 30px; height: 30px; }
.brand .back { color: var(--muted); margin-right: 2px; transition: transform .2s, color .2s; }
.brand:hover .back { transform: translateX(-3px); color: var(--text); }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: rgba(156,195,255,.08); }
.top .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; }
.who { display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: rgba(14,23,52,.6);
  text-decoration: none; color: var(--text); cursor: pointer; }
.who .bal { font-weight: 700; font-size: 14px; padding-right: 6px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center;
  font: 600 12px/1 var(--display); background: var(--aurora); color: #06102b; }
.avatar.lg { width: 64px; height: 64px; font-size: 20px; }
.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; padding: 6px; border-radius: var(--r-md);
  background: var(--fjord); border: 1px solid var(--line-2); box-shadow: 0 24px 60px -20px #000c; display: none; }
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a, .dropdown-menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; border: 0;
  background: none; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; cursor: pointer; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: rgba(156,195,255,.08); }
.dropdown-menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }

main { padding-bottom: 80px; }
.announce { background: linear-gradient(90deg, rgba(61,123,255,.18), rgba(53,224,208,.12)); border-bottom: 1px solid var(--line); }
.announce .wrap { padding: 10px 0; font-weight: 600; font-size: 15px; }

/* ---------------- типографика ---------------- */
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(38px, 6.2vw, 74px); font-weight: 700; letter-spacing: -.035em; }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 19px; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: #c6d2f2; max-width: 34em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-family: var(--mono); font-size: .92em; }
.page-head { padding: 56px 0 28px; }
.page-head h1 { font-size: clamp(32px, 4.6vw, 52px); }
.section { padding: 72px 0 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }

/* ---------------- кнопки и поля ---------------- */
.btn { --bg: rgba(156,195,255,.1); display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font-weight: 700; font-size: 16px;
  text-decoration: none; cursor: pointer; transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { color: #fff; border-color: rgba(156,195,255,.4); background: rgba(156,195,255,.16); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn.primary { border: 0; color: #041027; background: var(--aurora); background-size: 160% 100%; background-position: 0 0;
  box-shadow: 0 10px 30px -10px rgba(61,123,255,.8); }
.btn.primary:hover { background-position: 100% 0; color: #041027; box-shadow: 0 14px 36px -10px rgba(53,224,208,.7); }
.btn.small { min-height: 38px; padding: 0 15px; font-size: 14px; }
.btn.ghost { background: transparent; }
.btn.danger { color: #ffd0d6; border-color: rgba(255,122,138,.35); background: rgba(255,122,138,.08); }
.btn.tg { background: #2aabee; border: 0; color: #fff; }
.btn.tg:hover { background: #229ed9; color: #fff; }
.btn.google { background: #eef2ff; border: 0; color: #0a1230; }
.btn.google:hover { background: #fff; color: #0a1230; }
.auth-card .btn.block + .btn.block { margin-top: 10px; }
.btn[disabled], .btn.loading { opacity: .6; pointer-events: none; }
.btn.loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn svg { width: 19px; height: 19px; flex: none; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field > span { font-weight: 600; font-size: 14px; color: #c6d2f2; }
.input, select.input, textarea.input { width: 100%; min-height: 48px; padding: 12px 15px; border-radius: var(--r-sm); border: 1px solid var(--line-2);
  background: rgba(7,11,26,.6); color: var(--text); outline: none; transition: border-color .2s, box-shadow .2s; }
textarea.input { min-height: 110px; resize: vertical; line-height: 1.5; }
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(61,123,255,.18); }
.input::placeholder { color: var(--faint); }
.hint { font-size: 13px; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-weight: 600; }
.check input { width: 20px; height: 20px; accent-color: var(--blue); margin: 2px 0 0; flex: none; }
.form-error { display: none; padding: 11px 14px; border-radius: var(--r-sm); background: rgba(255,122,138,.1); border: 1px solid rgba(255,122,138,.3);
  color: #ffd0d6; font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.form-error.show { display: block; }
.notice { padding: 13px 16px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: rgba(14,23,52,.7); margin-bottom: 18px; font-weight: 600; }
.notice.ok { border-color: rgba(53,224,160,.35); background: rgba(53,224,160,.08); }
.notice.bad { border-color: rgba(255,122,138,.35); background: rgba(255,122,138,.08); }

/* ---------------- поверхности ---------------- */
.panel { position: relative; padding: 26px; border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(20,32,73,.72), rgba(14,23,52,.72));
  border: 1px solid var(--line); }
.panel.flat { background: rgba(14,23,52,.5); }
.panel h3 { margin-bottom: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-cab { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.stack { display: grid; gap: 22px; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: rgba(156,195,255,.1); color: #c6d2f2; border: 1px solid var(--line); white-space: nowrap; }
.pill.ok { color: #b8ffe3; background: rgba(53,224,160,.1); border-color: rgba(53,224,160,.28); }
.pill.warn { color: #ffe3b4; background: rgba(255,197,107,.1); border-color: rgba(255,197,107,.3); }
.pill.bad { color: #ffd0d6; background: rgba(255,122,138,.1); border-color: rgba(255,122,138,.3); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent); }

/* ---------------- главная: герой ---------------- */
.hero { padding: 64px 0 24px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .glow { background: var(--aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .row { margin-top: 30px; }
.status-line { margin-top: 26px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; font-size: 15px; min-height: 24px; }
.status-line .dot { color: var(--faint); }
.status-line.ok .dot { color: var(--ok); animation: beat 2.4s ease-in-out infinite; }
.status-line.bad .dot { color: var(--warn); }
@keyframes beat { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, currentColor 6%, transparent); } }

.cat-stage { position: relative; aspect-ratio: 1 / 1; max-width: 520px; justify-self: end; width: 100%; perspective: 900px; }
.cat-stage .halo { position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(61,123,255,.38), rgba(53,224,208,.12) 60%, transparent 72%); filter: blur(10px); }
.cat-stage .ground { position: absolute; left: 6%; right: 6%; bottom: 13.5%; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
.cat { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .5s var(--ease); }
.cat-line { position: absolute; inset: 0;
  -webkit-mask: url("../img/cat-mark.png") center / contain no-repeat; mask: url("../img/cat-mark.png") center / contain no-repeat;
  background: linear-gradient(115deg, #8fb4ff 0%, #9cc3ff 30%, #ffffff 46%, #35e0d0 52%, #9cc3ff 66%, #a58bff 100%);
  background-size: 300% 100%; background-position: 100% 0; animation: shimmer 2.6s .3s var(--ease) both, breathe 14s 3s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(61,123,255,.55)); }
@keyframes shimmer { from { background-position: 100% 0; opacity: 0; } 15% { opacity: 1; } to { background-position: 0 0; } }
@keyframes breathe { 0%, 100% { background-position: 0 0; } 50% { background-position: 60% 0; } }

/* ---------------- главная: спокойный вариант ---------------- */
.hero-quiet { padding: 56px 0 8px; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); }
.hero-quiet h1 { font-size: clamp(34px, 4.4vw, 54px); margin-bottom: 18px; }
.hero-quiet .lead { font-size: clamp(16px, 1.4vw, 18px); }
.hero-quiet .row { margin-top: 24px; }
.hero-quiet .cat-stage { max-width: 440px; }
/* живой кот (static/js/cat.js): canvas поверх, статичная маска остаётся запасным вариантом */
.cat-stage.live { cursor: pointer; touch-action: pan-y; }
.cat-canvas { position: absolute; left: -30%; top: -22%; width: 160%; height: 144%; pointer-events: none; }
.cat-stage.live .cat, .cat-stage.live .ground { display: none; }
.cat-stage.live .halo { opacity: .55; }
.cat-hint { position: absolute; left: 0; right: 0; bottom: -4px; text-align: center; font-size: 13px; color: var(--faint);
  opacity: 0; transition: opacity .8s var(--ease); pointer-events: none; user-select: none; }
.cat-stage.live .cat-hint { opacity: 1; transition-delay: 2.5s; }
.cat-stage.live.petted .cat-hint { opacity: 0; transition-delay: 0s; }
.cat-stage.live.hunter { cursor: none; }
.cat-canvas.soft { -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 74%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 74%, transparent 100%); }
.cat-canvas.framed { border-radius: 28px; border: 1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(61,123,255,.45); }
.cat-corner { position: absolute; width: 44px; height: 44px; z-index: 2; pointer-events: none; opacity: .9;
  -webkit-mask: url("../img/cat-mark.png") center / contain no-repeat; mask: url("../img/cat-mark.png") center / contain no-repeat;
  background: linear-gradient(115deg, #9cc3ff, #35e0d0 55%, #a58bff); filter: drop-shadow(0 0 8px rgba(61,123,255,.55)); }
.cat-corner.br { right: 4%; bottom: 4%; } .cat-corner.bl { left: 4%; bottom: 4%; }
.cat-corner.tr { right: 4%; top: 4%; } .cat-corner.tl { left: 4%; top: 4%; }
.cat-stage.live:has(.cat-corner) .halo { opacity: .3; }
/* текстовые страницы (конфиденциальность) */
.prose { max-width: 70ch; }
.prose h2 { font-size: 22px; margin: 34px 0 10px; }
.prose ul { padding-left: 20px; display: grid; gap: 8px; color: #c6d2f2; }
.prose p { color: #c6d2f2; }
/* лаборатория котов (только локально) */
.lab-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.lab-card { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: rgba(10,16,36,.45); }
.lab-stage-wrap { display: grid; place-items: center; padding: 70px 40px 40px; min-height: 440px; position: relative; overflow: hidden; }
.lab-stage-wrap .cat-stage { width: 100%; max-width: 330px; justify-self: center; }
.lab-meta { padding: 18px 24px 22px; border-top: 1px solid var(--line); }
.lab-meta h2 { font-size: 20px; margin: 0; }
.lab-meta p { margin: 10px 0 0; font-size: 15px; }
@media (max-width: 920px) { .lab-grid { grid-template-columns: 1fr; } }
.hero-note { margin: 14px 0 0; }
.quiet .section { padding-top: 60px; }
.quiet .section-head { margin-bottom: 14px; }
.quiet .section-head h2 { font-size: clamp(22px, 2.4vw, 28px); }
.about { padding-top: 48px; }
.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.about-grid > div { padding: 26px 32px 0 0; }
.about-grid > div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.about-grid h3 { font-size: 17px; margin-bottom: 8px; }
.about-grid p { color: var(--muted); margin: 0; max-width: 46ch; }
@media (max-width: 920px) {
  .hero-quiet .cat-stage { max-width: 250px; margin-left: -12px; }
}
@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-grid > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 22px; }
}

/* ---------------- главная: тариф ---------------- */
.price-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border-radius: var(--r-lg); border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(20,32,73,.8), rgba(10,16,36,.8)); overflow: hidden; }
.price-block > div { padding: 34px; }
.price-block .side { border-left: 1px solid var(--line); background: rgba(7,11,26,.35); }
.price { font: 700 clamp(56px, 7vw, 92px)/.95 var(--display); letter-spacing: -.04em; margin: 6px 0 10px; }
.price small { font: 600 20px/1 var(--body); letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.facts { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.facts li { display: flex; gap: 11px; align-items: flex-start; color: #c6d2f2; }
.facts svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--cyan); }
.months { margin: 6px 0 20px; }
.months-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-weight: 700; }
.months-top output { font: 600 22px/1 var(--display); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--blue) var(--p, 0%), rgba(156,195,255,.18) var(--p, 0%)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(156,195,255,.18); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--blue); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff;
  border: 5px solid var(--blue); box-shadow: 0 4px 14px -2px #3d7bffaa; }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 5px solid var(--blue); }
.calc { display: grid; gap: 8px; padding: 16px 18px; border-radius: var(--r-md); background: rgba(7,11,26,.5); border: 1px solid var(--line); margin-bottom: 20px; }
.calc div { display: flex; justify-content: space-between; gap: 12px; }
.calc b { font-weight: 800; }

/* ---------------- шаги ---------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: s; border-top: 1px solid var(--line); }
.steps li { list-style: none; counter-increment: s; padding: 28px 28px 8px 0; position: relative; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; margin-bottom: 16px;
  font: 600 16px/1 var(--display); color: var(--ice); border: 1px solid var(--line-2); }
.steps p { color: var(--muted); }
ol.steps { padding: 0; margin: 0; }

/* ---------------- новости: лента с датами ---------------- */
.feed { display: grid; }
.post { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 26px; padding: 26px 0; border-top: 1px solid var(--line); }
.post:last-child { border-bottom: 1px solid var(--line); }
.post time { font: 600 14px/1.4 var(--display); color: var(--muted); padding-top: 3px; }
.post .pin { display: inline-block; margin-top: 6px; font: 600 12px/1 var(--body); color: var(--cyan); }
.post-body { min-width: 0; max-width: 680px; }
.post-text { color: #d6e0fb; overflow-wrap: anywhere; }
.post-text.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.post-text a { color: var(--ice); }
.post-text blockquote { margin: 10px 0; padding: 4px 0 4px 14px; border-left: 2px solid var(--blue); color: #c6d2f2; }
.post-text pre { white-space: pre-wrap; background: rgba(7,11,26,.6); padding: 12px; border-radius: 10px; border: 1px solid var(--line); }
.post-text code { font-family: var(--mono); font-size: .9em; }
.post-text .tag { color: var(--cyan); }
.spoiler { background: #8c9ac4; color: transparent; border-radius: 4px; cursor: pointer; transition: all .2s; }
.spoiler.shown { background: rgba(140,154,196,.18); color: inherit; }
.post-media { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; margin-top: 14px; }
.post-media img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); background: var(--fjord); }
.post-media .video { position: relative; }
.post-media .video::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; color: #fff; text-shadow: 0 4px 16px #000; }
.post-foot { margin-top: 12px; display: flex; gap: 16px; font-size: 14px; font-weight: 600; }
.empty { padding: 34px; border-radius: var(--r-lg); border: 1px dashed var(--line-2); color: var(--muted); text-align: center; }

/* ---------------- спасибо ---------------- */
.thanks { display: flex; flex-wrap: wrap; gap: 10px; }
.thanks li { list-style: none; display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px;
  background: rgba(14,23,52,.6); border: 1px solid var(--line); font-weight: 700; }
.thanks li .avatar { width: 34px; height: 34px; }
.thanks li span { color: var(--muted); font-weight: 600; font-size: 14px; }
ul.thanks { padding: 0; margin: 0; }

/* ---------------- FAQ ---------------- */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 11px; height: 11px; border-right: 2px solid var(--ice);
  border-bottom: 2px solid var(--ice); transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--muted); max-width: 46em; padding-bottom: 8px; }

/* ---------------- клубная карта (подписка) ---------------- */
.club { position: relative; border-radius: 28px; padding: 26px 28px 24px; min-height: 250px; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, #1b3a9a 0%, #1a2a6c 38%, #0f1a44 70%, #2a1e66 100%); border: 1px solid rgba(156,195,255,.28);
  box-shadow: 0 30px 70px -30px rgba(61,123,255,.65), inset 0 1px 0 rgba(255,255,255,.12); }
.club::before { content: ""; position: absolute; inset: -30% -10% auto 30%; height: 90%; z-index: -1; filter: blur(40px); opacity: .7;
  background: linear-gradient(100deg, rgba(53,224,208,.7), rgba(61,123,255,.3) 50%, transparent); transform: rotate(-12deg); }
.club.off { background: linear-gradient(135deg, #1d2440 0%, #141a33 60%, #1c1838 100%); box-shadow: none; }
.club.off::before { opacity: .15; }
.club .cat-mini { position: absolute; right: 18px; bottom: 6px; width: 150px; height: 150px; opacity: .9;
  -webkit-mask: url("../img/cat-mark.png") center / contain no-repeat; mask: url("../img/cat-mark.png") center / contain no-repeat;
  background: linear-gradient(160deg, #fff, #9cc3ff 50%, #35e0d0); }
.club.off .cat-mini { background: #5d6a93; opacity: .5; }
.club-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.club-name { font: 600 15px/1 var(--display); letter-spacing: .02em; color: #dbe6ff; }
.club-days { margin: 30px 0 4px; font: 700 54px/1 var(--display); letter-spacing: -.04em; }
.club-days small { font: 600 17px/1 var(--body); letter-spacing: 0; color: #c6d2f2; margin-left: 8px; }
.club-until { color: #c6d2f2; font-weight: 600; }
.club-holder { margin-top: 26px; display: flex; gap: 26px; flex-wrap: wrap; font-size: 13px; color: #a9b8e2; position: relative; z-index: 1; max-width: 70%; }
.club-holder b { display: block; color: #fff; font-size: 15px; margin-top: 2px; }
.meter { height: 4px; border-radius: 4px; background: rgba(255,255,255,.14); margin-top: 18px; max-width: 60%; overflow: hidden; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, #35e0d0, #fff); border-radius: inherit; transition: width 1s var(--ease); }

.linkbox { display: flex; gap: 8px; align-items: stretch; }
.linkbox .input { font-family: var(--mono); font-size: 14px; min-width: 0; color: #c6d2f2; }
.apps-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }

.balance { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.balance .sum { font: 700 40px/1 var(--display); letter-spacing: -.03em; }
.buy { display: grid; gap: 14px; }
.seg { display: inline-grid; grid-auto-flow: column; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(7,11,26,.6); border: 1px solid var(--line); }
.seg button, .seg label { border: 0; background: none; padding: 9px 15px; border-radius: 999px; font-weight: 700; color: var(--muted); cursor: pointer; font-size: 14px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg button[aria-pressed="true"], .seg input:checked + span, .seg label:has(input:checked) { background: var(--fjord-2); color: var(--text); }

.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 13px; padding: 0 12px 10px 0; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plus { color: #b8ffe3; }
.minus { color: #c6d2f2; }
.list { display: grid; gap: 2px; }
.list-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }

/* ---------------- вход ---------------- */
.auth { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 40px 0; }
.auth-card { width: min(440px, 100% - 32px); padding: 34px; border-radius: 30px; background: linear-gradient(180deg, rgba(20,32,73,.85), rgba(14,23,52,.85));
  border: 1px solid var(--line-2); box-shadow: 0 40px 90px -40px #000; }
.auth-card .cat-mark { width: 64px; height: 64px; margin-bottom: 20px; -webkit-mask: url("../img/cat-mark.png") center / contain no-repeat;
  mask: url("../img/cat-mark.png") center / contain no-repeat; background: var(--aurora); }
.auth-card h1 { font-size: 30px; margin-bottom: 8px; }
.or { display: flex; align-items: center; gap: 14px; color: var(--faint); font-size: 14px; margin: 20px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn.block { width: 100%; }

/* ---------------- инструкции ---------------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 5px; border-radius: 999px; background: rgba(14,23,52,.6); border: 1px solid var(--line); width: fit-content; max-width: 100%; }
.tabs button { border: 0; background: none; padding: 10px 16px; border-radius: 999px; font-weight: 700; color: var(--muted); cursor: pointer; display: flex; gap: 8px; align-items: center; }
.tabs button svg { width: 17px; height: 17px; }
.tabs button[aria-selected="true"] { background: var(--aurora); color: #041027; }
.tab-panel[hidden] { display: none; }
.guide { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 34px; margin-top: 30px; align-items: start; }
.guide ol { padding: 0; margin: 0; counter-reset: g; display: grid; gap: 4px; }
.guide ol li { list-style: none; counter-increment: g; display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.guide ol li::before { content: counter(g); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 600 15px/1 var(--display);
  border: 1px solid var(--line-2); color: var(--ice); }
.app { padding: 18px 0; border-bottom: 1px solid var(--line); }
.app:first-child { padding-top: 0; }
.app:last-child { border-bottom: 0; }
.app-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.app-head b { font-size: 17px; }
.app p { color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.app .row { gap: 8px; }

/* ---------------- модалка и тосты ---------------- */
dialog { border: 1px solid var(--line-2); border-radius: 26px; padding: 0; background: var(--fjord); color: var(--text); width: min(460px, 100% - 32px);
  box-shadow: 0 40px 100px -30px #000; }
dialog::backdrop { background: rgba(4,7,18,.72); backdrop-filter: blur(4px); }
dialog[open] { animation: pop .22s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.dialog-body { padding: 26px; }
.dialog-body h3 { font-size: 21px; }
.qr { background: #fff; border-radius: 18px; padding: 10px; width: 100%; max-width: 300px; margin: 6px auto 16px; }
.toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; width: min(420px, 100% - 32px); }
.toast { padding: 13px 18px; border-radius: 16px; background: #182654; border: 1px solid var(--line-2); font-weight: 700; box-shadow: 0 20px 40px -14px #000;
  animation: pop .25s var(--ease); }
.toast.bad { background: #3a1a2c; border-color: rgba(255,122,138,.4); }
.toast.ok { background: #10352f; border-color: rgba(53,224,160,.4); }

/* ---------------- подвал ---------------- */
.foot { border-top: 1px solid var(--line); margin-top: 40px; }
.foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 28px 0 40px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--muted); text-decoration: none; font-weight: 600; }
.foot a:hover { color: var(--text); }

.error-page { text-align: left; padding: 90px 0; max-width: 640px; }
.error-page .code { font: 700 120px/1 var(--display); letter-spacing: -.05em; background: var(--aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------- адаптив ---------------- */
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; gap: 8px; }
  .cat-stage { order: -1; max-width: 300px; justify-self: start; margin-left: -20px; }
  .price-block { grid-template-columns: 1fr; }
  .price-block .side { border-left: 0; border-top: 1px solid var(--line); }
  .grid-cab, .grid-2, .guide { grid-template-columns: 1fr; }
  /* кабинет в одну колонку: карта, баланс, продление, подключение, устройства, история */
  .grid-cab > .stack { display: contents; }
  .grid-cab [data-order="1"] { order: 1; } .grid-cab [data-order="2"] { order: 2; } .grid-cab [data-order="3"] { order: 3; }
  .grid-cab [data-order="4"] { order: 4; } .grid-cab [data-order="5"] { order: 5; } .grid-cab [data-order="6"] { order: 6; }
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .steps li, .steps li + li { padding: 20px 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; padding: 10px 16px 16px; gap: 2px;
    background: rgba(7,11,26,.97); border-bottom: 1px solid var(--line); margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 17px; }
  .menu-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: none; cursor: pointer; }
  .menu-btn svg { width: 22px; height: 22px; }
  .who .bal { display: none; }
  .who { padding: 3px; }
  .top .right .btn.small { padding: 0 12px; }
  .post { grid-template-columns: 1fr; gap: 8px; }
  .panel, .price-block > div { padding: 22px; }
  .club { padding: 22px; min-height: 230px; }
  .club .cat-mini { width: 110px; height: 110px; }
  .club-days { font-size: 44px; }
  .club-holder { max-width: 62%; gap: 16px; }
  .linkbox { flex-wrap: wrap; }
  .linkbox .input { flex-basis: 100%; }
  .linkbox .btn { flex: 1; }
  .hide-sm { display: none; }
  .table .hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .cat-line { background-position: 30% 0; }
}

/* ---------------- прокси для Telegram ---------------- */
.proxy-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.proxy { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.proxy-main { min-width: 0; flex: 1 1 260px; }
.proxy-main p { margin: 6px 0 0 20px; }
.proxy-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.proxy-title h3 { margin: 0; font-size: 18px; }
.proxy-actions { gap: 8px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); flex: none; }
.status-dot.ok { background: var(--ok); box-shadow: 0 0 0 4px rgba(53,224,160,.15); }
.status-dot.bad { background: var(--warn); box-shadow: 0 0 0 4px rgba(255,197,107,.15); }
.locked { max-width: 640px; }
.proxy-names { list-style: none; padding: 0; margin: 4px 0 22px; display: grid; gap: 8px; }
.proxy-names li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; }
.proxy-names .dot { color: var(--faint); }
.proxy-teaser { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); padding: 18px 22px; }
.proxy-teaser:hover { color: var(--text); border-color: var(--line-2); }
.proxy-teaser > span:first-child { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(42,171,238,.15); color: #6cc6f5; flex: none; }
.proxy-teaser svg { width: 22px; height: 22px; }
.personal-proxy { max-width: 760px; margin-bottom: 44px; position: relative; overflow: hidden; }
.personal-proxy::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--aurora); opacity: .8; }
.personal-proxy h2 { margin: 0; font-size: 24px; }
.personal-proxy > p { margin: 12px 0 20px; max-width: 60ch; }
.pp-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.pill.accent { color: #d6f6ff; background: rgba(53,224,208,.1); border-color: rgba(53,224,208,.3); }
.proxy-shared-head { margin-bottom: 10px; }
@media (max-width: 720px) {
  .proxy-actions { width: 100%; }
  .proxy-actions .btn { flex: 1; }
  .pp-foot .btn { width: 100%; }
}

/* оплата переводом: предупреждение перед QR */
.notice.warn { border-color: rgba(255,196,92,.4); background: rgba(255,196,92,.08); font-weight: 500; }
.pay-code { font-size: 1.15em; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.pay-steps { margin: 0 0 16px; padding-left: 20px; line-height: 1.7; }
.pay-reveal > summary { list-style: none; cursor: pointer; }
.pay-reveal > summary::-webkit-details-marker { display: none; }
.pay-reveal[open] > summary { display: none; }
