/* Конкурентика — дизайн-система сайта, ЛК и админки.
   Палитра и компоненты повторяют приложение (renderer/styles.css). */

:root {
  --t50: #effcfa;
  --t100: #d3f6f0;
  --t200: #a7ece1;
  --t300: #6fdccd;
  --t400: #2fc4b2;
  --t500: #14a898;
  --t600: #0d8a7e;
  --t700: #0f6f67;
  --t800: #115a54;
  --t900: #0f4a46;
  --t950: #062e2c;

  --bg: #f2f8f7;
  --card: #ffffff;
  --line: #dcebe8;
  --line-soft: #e9f3f1;
  --ink: #0e2b29;
  --ink-2: #33514e;
  --muted: #6b8886;
  --coral: #f06b58;
  --coral-ink: #c2412f;
  --coral-bg: #fdeeeb;
  --amber: #e79a23;
  --amber-ink: #8a5a10;
  --amber-bg: #fdf4e3;
  --green: #17a673;
  --green-bg: #e3f7ee;

  --dark-grad: radial-gradient(120% 70% at 0% 0%, rgba(47, 196, 178, 0.28), transparent 60%),
    linear-gradient(180deg, #0c5a54 0%, #083f3c 55%, #062e2c 100%);

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(6, 46, 44, 0.06);
  --shadow: 0 1px 2px rgba(6, 46, 44, 0.05), 0 6px 20px -8px rgba(6, 46, 44, 0.14);
  --shadow-lg: 0 2px 4px rgba(6, 46, 44, 0.05), 0 24px 48px -20px rgba(6, 46, 44, 0.3);

  --font: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Unbounded", "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1160px;
  --gutter: 24px;
}

/* ── База ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
input, textarea, button, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--t700); text-decoration: none; }
a:hover { color: var(--t600); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0 0 12px; }
code, kbd, .mono { font-family: var(--font-mono); font-size: 0.92em; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--t400); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

svg.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
[data-icon] { display: inline-block; width: 16px; height: 16px; flex: none; }

.display { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 13px; }
.small { font-size: 13px; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Кнопки ──────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; font-weight: 550; color: var(--ink-2); white-space: nowrap; text-decoration: none;
  transition: background .12s, border-color .12s, box-shadow .12s, transform .08s, filter .12s;
}
.btn:hover { background: var(--t50); border-color: var(--t200); color: var(--t800); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn.primary {
  border: 0; color: #fff; background: linear-gradient(180deg, var(--t500), var(--t600));
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 8px 18px -10px rgba(13,138,126,.9);
}
.btn.primary:hover { background: linear-gradient(180deg, #17b8a6, var(--t700)); color: #fff; }
/* как .btn-new в приложении — светлый бирюзовый, для тёмного фона */
.btn.accent {
  border: 0; color: #05312e; background: linear-gradient(180deg, #7ff0e0, #3fd3c0);
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 10px 22px -12px rgba(63, 211, 192, .95);
}
.btn.accent:hover { filter: brightness(1.05); color: #05312e; background: linear-gradient(180deg, #7ff0e0, #3fd3c0); }
.btn.on-dark { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #e6fbf7; }
.btn.on-dark:hover { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.3); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--t50); }
.btn.danger { color: var(--coral-ink); }
.btn.danger:hover { background: var(--coral-bg); border-color: #f7c3ba; color: var(--coral-ink); }
.btn.big { height: 50px; padding: 0 24px; font-size: 16px; border-radius: 12px; }
.btn.sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 8px; gap: 6px; }
.btn.sm svg.i { width: 14px; height: 14px; }
.btn.icon { width: 36px; padding: 0; }
.btn.sm.icon { width: 32px; }
.btn.block { width: 100%; }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; animation: spin .8s linear infinite; flex: none; opacity: .8; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Поля ─────────────────────────────────── */
.field {
  width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: #fbfefd;
  padding: 0 12px; outline: none; transition: border-color .12s, box-shadow .12s, background .12s;
}
textarea.field { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
select.field { padding-right: 32px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b8886' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; }
.field:focus { border-color: var(--t400); background: #fff; box-shadow: 0 0 0 4px rgba(47,196,178,.16); }
.field.mono { font-family: var(--font-mono); font-size: 14px; letter-spacing: .02em; }
.field.sm { height: 34px; font-size: 13.5px; border-radius: 8px; }
.field[aria-invalid="true"] { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(240,107,88,.12); }
.label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.form-err { color: var(--coral-ink); font-size: 13.5px; background: var(--coral-bg); border: 1px solid #f5c6bd; border-radius: 10px; padding: 10px 12px; }
.form-ok { color: var(--t800); font-size: 13.5px; background: var(--t50); border: 1px solid var(--t200); border-radius: 10px; padding: 10px 12px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--t600); margin: 0; }
.search { position: relative; }
.search svg.i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search .field { padding-left: 36px; }

.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--t50); border: 1px solid var(--line); gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; height: 32px; padding: 0 12px; border-radius: 7px; font-size: 13.5px; font-weight: 550; color: var(--muted); }
.seg button:hover { color: var(--t800); }
.seg button.on { background: #fff; color: var(--t800); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fbfefd; overflow: hidden; }
.stepper button { width: 40px; height: 40px; border: 0; background: transparent; color: var(--t700); font-size: 18px; font-weight: 600; }
.stepper button:hover { background: var(--t50); }
.stepper input { width: 64px; height: 40px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; background: #fff; font-weight: 600; outline: none; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.toggle { position: relative; display: inline-block; width: 40px; height: 24px; flex: none; }
.toggle input { opacity: 0; position: absolute; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.toggle span { position: absolute; inset: 0; border-radius: 999px; background: #cfdedb; transition: background .15s; }
.toggle span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s; }
.toggle input:checked + span { background: var(--t500); }
.toggle input:checked + span::after { transform: translateX(16px); }

/* ── Карточки, бейджи ─────────────────────── */
.card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); border: 1px solid var(--line-soft); min-width: 0; }
.card-pad { padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-title { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 16px; }
.card-title svg.i { color: var(--t600); }

.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: #eef4f3; color: var(--ink-2); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.plain::before { display: none; }
.progress { height: 8px; border-radius: 999px; background: var(--t50); border: 1px solid var(--line); overflow: hidden; margin-top: 10px; }
.progress > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--t500), var(--t600)); transition: width .2s; }
.badge.ok { background: var(--green-bg); color: #0e7a53; }
.badge.warn { background: var(--amber-bg); color: var(--amber-ink); }
.badge.err { background: var(--coral-bg); color: var(--coral-ink); }
.badge.info { background: var(--t50); color: var(--t700); }
.badge.mute { background: #eef2f2; color: var(--muted); }

.tag { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px; border-radius: 5px; background: var(--t50); color: var(--t700); }

.banner { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; }
.banner.ok { background: linear-gradient(100deg, #e3faf5, #f3fdfb); border: 1px solid var(--t200); }
.banner.warn { background: linear-gradient(100deg, #fff4e3, #fffaf1); border: 1px solid #f6dcac; }
.banner.err { background: linear-gradient(100deg, #fdeae6, #fff6f4); border: 1px solid #f5c6bd; }
.banner-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff; background: var(--t500); }
.banner.warn .banner-ic { background: var(--amber); }
.banner.err .banner-ic { background: var(--coral); }
.banner-ic svg.i { width: 20px; height: 20px; }
.banner-title { font-weight: 650; }
.banner-sub { color: var(--ink-2); font-size: 14px; }

.empty { border: 1px dashed var(--line); border-radius: 14px; padding: 28px 20px; text-align: center; color: var(--muted); background: #fbfefd; }
.empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }

.skeleton { background: linear-gradient(90deg, #e9f3f1 0%, #f5faf9 50%, #e9f3f1 100%); background-size: 200% 100%; animation: sk 1.3s ease infinite; border-radius: 10px; min-height: 18px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ── Таблицы ──────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 10px 14px; background: #f6fbfa; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr.click { cursor: pointer; }
table.t tbody tr.click:hover td { background: var(--t50); }
table.t td.r, table.t th.r { text-align: right; }
table.t td.nowrap { white-space: nowrap; }
table.t .sub { display: block; font-size: 12.5px; color: var(--muted); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--muted); }

.token-str { font-family: var(--font-mono); font-size: 14px; font-weight: 500; letter-spacing: .03em; color: var(--ink); }

/* ── Шапка и подвал сайта ─────────────────── */
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand:hover { text-decoration: none; color: inherit; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none;
  color: #062e2c; background: linear-gradient(145deg, #7ff0e0, #2fc4b2);
  box-shadow: 0 6px 18px -6px rgba(47, 196, 178, 0.8), inset 0 1px 0 rgba(255,255,255,.5);
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -0.02em; }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(242, 248, 247, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.site-header.dark { background: rgba(8, 63, 60, .88); color: #fff; }
.site-header.dark.scrolled { border-bottom-color: rgba(255,255,255,.08); }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav a { color: var(--ink-2); font-weight: 500; font-size: 14.5px; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: var(--t50); color: var(--t800); text-decoration: none; }
.nav a.on { color: var(--t700); background: var(--t50); }
.site-header.dark .nav a { color: #cdeee8; }
.site-header.dark .nav a:hover, .site-header.dark .nav a.on { background: rgba(255,255,255,.08); color: #fff; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center; color: var(--ink); }
.site-header.dark .menu-btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
.mobile-nav { display: none; }

.site-footer { margin-top: 80px; background: var(--dark-grad); color: #bfe3dd; padding: 48px 0 32px; font-size: 14px; }
.site-footer a { color: #d9f5f0; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-grid h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; font-weight: 600; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #86c7bd; font-size: 13px; }
.site-footer .brand { color: #fff; }
.footer-about { margin-top: 14px; max-width: 320px; color: #9fd0c8; }

/* ── Секции лендинга ──────────────────────── */
.section { padding: 88px 0; }
.section.tight { padding: 56px 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--t600); margin-bottom: 14px; }
.h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 5vw, 54px); letter-spacing: -0.03em; line-height: 1.08; }
.h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3.4vw, 36px); letter-spacing: -0.025em; line-height: 1.15; }
.h3 { font-size: 19px; font-weight: 650; letter-spacing: -0.01em; }
.lead { font-size: clamp(16px, 1.8vw, 19px); color: var(--ink-2); line-height: 1.55; margin-top: 16px; }

.dark-section { background: var(--dark-grad); color: #e6fbf7; position: relative; overflow: hidden; }
.dark-section .lead { color: #bfe3dd; }
.dark-section .eyebrow { color: #7ff0e0; }
.dark-section .muted, .dark-section .hint { color: #9fd0c8; }

.hero { padding: 72px 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; text-align: center; }
.hero-copy { max-width: 820px; margin: 0 auto; }
.hero-copy .h1 { color: #fff; }
.hero-copy .h1 em { font-style: normal; color: #7ff0e0; }
.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-note { margin-top: 16px; font-size: 14px; color: #9fd0c8; }
.hero-shot { margin: 0 auto -1px; max-width: 1040px; width: 100%; }

.window {
  border-radius: 14px 14px 0 0; overflow: hidden; background: #0b3d3a;
  box-shadow: 0 -1px 0 rgba(255,255,255,.08) inset, 0 40px 80px -30px rgba(0,0,0,.6);
  border: 1px solid rgba(255,255,255,.1); border-bottom: 0;
}
.window.full { border-radius: 14px; border-bottom: 1px solid rgba(255,255,255,.1); }
.window-bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: rgba(255,255,255,.04); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.18); }
.window-bar i:nth-child(1) { background: #ff6159; } .window-bar i:nth-child(2) { background: #ffbd2e; } .window-bar i:nth-child(3) { background: #28c941; }

/* Скриншот с аккуратной заглушкой, пока файла нет */
.shot { position: relative; display: block; aspect-ratio: 1360 / 880; width: 100%; background:
    linear-gradient(90deg, #0c5a54 0 20%, transparent 20%),
    repeating-linear-gradient(180deg, transparent 0 46px, rgba(15,111,103,.07) 46px 47px),
    linear-gradient(180deg, #f6fbfa, #eef6f4); overflow: hidden; }
.shot img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.shot img.broken { display: none; }
.shot img:not(.broken) ~ .shot-ph { display: none; }
.shot .shot-ph { position: absolute; inset: 0; display: grid; place-items: center; padding-left: 20%; color: var(--muted); font-size: 13px; }
.shot .shot-ph span { background: rgba(255,255,255,.8); padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); }
.shot.framed { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.fact { padding: 22px; }
.fact-val { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; color: var(--t700); line-height: 1.1; }
.fact-lab { margin-top: 8px; color: var(--ink-2); font-size: 14px; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature { padding: 24px; }
.feature-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--t700); background: var(--t50); border: 1px solid var(--t100); margin-bottom: 16px; }
.feature-ic svg.i { width: 22px; height: 22px; }
.feature h3 { font-size: 17px; font-weight: 650; margin-bottom: 8px; }
.feature p { color: var(--ink-2); font-size: 14.5px; margin: 0; }
.feature ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.feature li { display: flex; gap: 8px; }
.feature li svg.i { color: var(--t500); margin-top: 3px; width: 15px; height: 15px; }

.showcase { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.showcase + .showcase { margin-top: 72px; }
.showcase.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.showcase.flip .showcase-copy { order: 2; }
.showcase-copy .h2 { font-size: clamp(22px, 2.8vw, 30px); }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; color: var(--ink-2); }
.ticks li svg.i { color: var(--t500); flex: none; margin-top: 3px; }
.dark-section .ticks li { color: #d4f1ec; }
.dark-section .ticks li svg.i { color: #7ff0e0; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: st; }
.step { padding: 24px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; }
.step-n { font-family: var(--font-display); font-weight: 700; font-size: 14px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(145deg, #7ff0e0, #2fc4b2); color: #062e2c; margin-bottom: 16px; }
.step h3 { color: #fff; font-size: 17px; margin-bottom: 8px; }
.step p { color: #bfe3dd; font-size: 14.5px; margin: 0; }

/* ── Тарифы ──────────────────────────────── */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tier { padding: 26px; position: relative; display: flex; flex-direction: column; }
.tier.best { border: 1px solid var(--t300); box-shadow: 0 0 0 3px rgba(47,196,178,.12), var(--shadow); }
.tier-ribbon { position: absolute; top: -12px; left: 24px; }
.tier-name { font-weight: 650; color: var(--ink-2); }
.tier-price { margin-top: 12px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.tier-price b { font-family: var(--font-display); font-weight: 700; font-size: 38px; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.tier-price span { color: var(--muted); font-size: 14px; }
.tier-save { margin-top: 8px; font-size: 13.5px; color: var(--t700); font-weight: 600; min-height: 20px; }
.tier .ticks { margin-top: 18px; font-size: 14px; flex: 1; }
.tier .btn { margin-top: 22px; }

.calc { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0; overflow: hidden; }
.calc-in { padding: 28px; display: grid; gap: 22px; align-content: start; }
.calc-out { padding: 28px; background: var(--dark-grad); color: #e6fbf7; display: flex; flex-direction: column; gap: 10px; }
.calc-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; color: #bfe3dd; }
.calc-line b { color: #fff; font-weight: 600; }
.calc-total { margin-top: 8px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); }
.calc-total .v { font-family: var(--font-display); font-weight: 700; font-size: 38px; letter-spacing: -0.03em; color: #fff; line-height: 1.1; }
.calc-total .l { font-size: 13px; color: #9fd0c8; }
.calc-save { color: #7ff0e0; font-weight: 600; font-size: 14px; min-height: 21px; }
.calc-out .btn { margin-top: auto; }
.qty-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.qty-row input[type="range"] { flex: 1; min-width: 160px; accent-color: var(--t600); }

.compare { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.compare th, .compare td { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.compare th { font-weight: 600; color: var(--muted); font-size: 13px; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 22%; }
.compare .yes { color: var(--t600); }
.compare .no { color: #a9bdbb; }

/* ── FAQ / документация ───────────────────── */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line-soft); border-radius: 14px; box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 18px; height: 18px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d8a7e' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/contain no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 20px 18px; color: var(--ink-2); }
.faq .ans p:last-child { margin-bottom: 0; }

.page-hero { padding: 56px 0 40px; }
.page-hero .lead { max-width: 720px; }
.crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }

.docs-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.docs-nav { position: sticky; top: 92px; display: grid; gap: 2px; font-size: 14.5px; }
.docs-nav .t { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 0 12px 8px; }
.docs-nav a { color: var(--ink-2); padding: 7px 12px; border-radius: 8px; }
.docs-nav a:hover { background: #fff; text-decoration: none; }
.docs-nav a.on { background: #fff; color: var(--t700); font-weight: 600; box-shadow: var(--shadow-sm); }
.docs-nav .sub { display: grid; gap: 2px; }
.docs-nav .sub a { padding-left: 24px; font-size: 13.5px; color: var(--muted); }

.prose { max-width: 760px; font-size: 16px; line-height: 1.65; }
.prose h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 44px 0 14px; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; font-weight: 650; margin: 28px 0 10px; scroll-margin-top: 90px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--t500); }
.prose b, .prose strong { color: var(--ink); }
.prose code { background: var(--t50); border: 1px solid var(--t100); border-radius: 6px; padding: 1px 6px; color: var(--t800); }
.prose .note { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--t50); border: 1px solid var(--t100); margin: 18px 0; color: var(--ink-2); }
.prose .note.warn { background: var(--amber-bg); border-color: #f7deb0; }
.prose .note svg.i { color: var(--t600); margin-top: 4px; }
.prose .note.warn svg.i { color: var(--amber); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 0 0 18px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 600; font-size: 13px; }

.guide-step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; margin-bottom: 56px; scroll-margin-top: 90px; }
.guide-step .n { font-family: var(--font-display); font-weight: 700; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--t600); color: #fff; font-size: 15px; }
.guide-step h2 { margin-top: 6px !important; }
.guide-step figure { margin: 18px 0 0; }
.guide-step figcaption { margin-top: 10px; font-size: 13.5px; color: var(--muted); }

.doc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.doc-card { padding: 22px; display: block; color: inherit; transition: box-shadow .15s, transform .15s, border-color .15s; }
.doc-card:hover { text-decoration: none; color: inherit; border-color: var(--t200); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.doc-card h3 { font-size: 17px; margin: 14px 0 6px; }
.doc-card p { color: var(--ink-2); margin: 0; font-size: 14.5px; }

/* ── Скачать ─────────────────────────────── */
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.dl-card { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.dl-card.rec { border-color: var(--t300); box-shadow: 0 0 0 3px rgba(47,196,178,.12), var(--shadow); }
.dl-os { display: flex; align-items: center; gap: 14px; }
.dl-os .os-ic { width: 52px; height: 52px; border-radius: 14px; background: var(--t50); border: 1px solid var(--t100); display: grid; place-items: center; color: var(--t700); }
.dl-os .os-ic svg { width: 26px; height: 26px; }
.dl-meta { font-size: 13px; color: var(--muted); display: grid; gap: 4px; }
.dl-meta .mono { word-break: break-all; font-size: 12px; }

/* ── Страницы входа ──────────────────────── */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side { background: var(--dark-grad); color: #e6fbf7; padding: 40px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.auth-side .brand { color: #fff; }
.auth-side .h2 { color: #fff; }
.auth-side .ticks li { color: #d4f1ec; }
.auth-side .ticks li svg.i { color: #7ff0e0; }
.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box h1 { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.auth-box .sub { color: var(--muted); margin-bottom: 26px; }
.auth-foot { margin-top: 20px; font-size: 14px; color: var(--muted); text-align: center; }
.pass-wrap { position: relative; }
.pass-wrap .field { padding-right: 44px; }
.pass-wrap button { position: absolute; right: 4px; top: 4px; width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); display: grid; place-items: center; }
.pass-wrap button:hover { background: var(--t50); color: var(--t700); }
.auth-mobile-brand { display: none; margin-bottom: 28px; }

/* ── Приложение (ЛК и админка) ────────────── */
.app { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 20px 14px 14px;
  color: #e6fbf7; background: var(--dark-grad); overflow-y: auto;
}
.sidebar .brand { color: #fff; padding: 4px 8px 22px; }
.sidebar .brand-sub { display: block; font-size: 12px; color: #9fd8cf; font-family: var(--font); font-weight: 400; letter-spacing: 0; }
.side-title { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #86c7bd; padding: 14px 10px 8px; font-weight: 600; }
.side-nav { display: grid; gap: 2px; }
.side-nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: #d9f5f0; font-weight: 500; font-size: 14.5px;
  transition: background .12s;
}
.side-nav a svg.i { color: #86c7bd; }
.side-nav a:hover { background: rgba(255,255,255,.07); text-decoration: none; color: #fff; }
.side-nav a.on { background: rgba(127, 240, 224, .16); box-shadow: inset 0 0 0 1px rgba(127, 240, 224, .25); color: #fff; }
.side-nav a.on svg.i { color: #7ff0e0; }
.side-nav .cnt { margin-left: auto; font-size: 12px; background: rgba(255,255,255,.12); padding: 1px 7px; border-radius: 999px; color: #e6fbf7; }
.side-nav .cnt.hot { background: var(--amber); color: #3b2503; font-weight: 600; }
.side-foot { margin-top: auto; padding-top: 14px; }
.user-card { padding: 12px; border-radius: 12px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.user-card .em { font-size: 13px; color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-card .rl { font-size: 12px; color: #9fd0c8; }
.user-card .acts { display: flex; gap: 6px; margin-top: 10px; }
.btn-side {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 32px; border-radius: 8px; border: 0;
  font-size: 12.5px; font-weight: 500; color: #e6fbf7; background: rgba(255,255,255,.1); transition: background .12s;
}
.btn-side:hover { background: rgba(255,255,255,.17); color: #fff; text-decoration: none; }
.btn-side svg.i { width: 14px; height: 14px; }

.main { min-width: 0; padding: 32px 36px 48px; }
.main-inner { max-width: 1200px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 22px; flex-wrap: wrap; }
.page-title { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.page-sub { color: var(--muted); margin-top: 4px; }
.topbar { display: none; }

.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpis.k3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi { padding: 16px 18px; }
.kpi-lab { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.kpi-lab svg.i { width: 14px; height: 14px; color: var(--t500); }
.kpi-val { font-family: var(--font-display); font-size: 26px; font-weight: 700; margin-top: 6px; letter-spacing: -0.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.kpi.alert .kpi-val { color: var(--amber-ink); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

/* Карточки токенов */
.tokens { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.tk { padding: 18px 18px 14px; display: flex; flex-direction: column; gap: 12px; }
.tk.expired { background: #fbfdfd; }
.tk-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.tk-label { font-weight: 650; font-size: 15px; display: flex; align-items: center; gap: 6px; min-width: 0; }
.tk-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-label button { border: 0; background: transparent; color: var(--muted); padding: 2px; border-radius: 6px; display: grid; place-items: center; }
.tk-label button:hover { color: var(--t700); background: var(--t50); }
.tk-code { display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 12px; border-radius: 10px; background: var(--t50); border: 1px solid var(--t100); }
.tk-code .token-str { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-code button { border: 0; background: transparent; width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; color: var(--t700); flex: none; }
.tk-code button:hover { background: #fff; }
.tk-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; font-size: 13px; }
.tk-meta .k { color: var(--muted); font-size: 12px; }
.tk-meta .v { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-bar { height: 6px; border-radius: 999px; background: #e6f1ef; overflow: hidden; }
.tk-bar div { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--t400), var(--t600)); }
.tk-bar.warn div { background: linear-gradient(90deg, #f3c16b, var(--amber)); }
.tk-bar.err div { background: var(--coral); }
.tk-acts { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line-soft); }

/* Модальные окна и тосты */
.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(6, 46, 44, .42); display: grid; place-items: center; padding: 20px 16px; overflow-y: auto; animation: fade .15s ease; }
.modal { width: 100%; max-width: 480px; padding: 24px; animation: pop .18s ease; margin: auto; }
.modal.wide { max-width: 760px; }
.modal-title { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; letter-spacing: -0.01em; }
.modal-title svg.i { color: var(--t600); width: 20px; height: 20px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }

.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: grid; gap: 8px; max-width: calc(100vw - 32px); }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--t950); color: #e6fbf7; box-shadow: var(--shadow-lg); font-size: 14px; animation: pop .18s ease; }
.toast svg.i { color: #7ff0e0; }
.toast.err { background: #4a1d16; }
.toast.err svg.i { color: #ff9a85; }

.dl-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.dl-row:last-child { border-bottom: 0; }

.kv { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 10px 16px; font-size: 14px; }
.kv .k { color: var(--muted); }
.kv .v { min-width: 0; overflow-wrap: anywhere; }

/* График (админка) */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid-line { stroke: var(--line-soft); stroke-width: 1; }
.chart .axis-t { font-size: 11px; fill: var(--muted); font-family: var(--font); }
.chart .bar { fill: var(--t500); }
.chart .bar.dim { fill: var(--t200); }
.chart .hit { fill: transparent; cursor: default; }
.chart-tip { position: absolute; pointer-events: none; background: var(--t950); color: #e6fbf7; font-size: 12.5px; padding: 7px 10px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, -100%); margin-top: -8px; box-shadow: var(--shadow-lg); }
.chart-tip b { color: #fff; font-size: 14px; display: block; }

/* ── Адаптив ─────────────────────────────── */
@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --gutter: 16px; }
  .nav, .header-actions .hide-m { display: none; }
  .menu-btn { display: inline-flex; }
  .site-header .wrap { justify-content: space-between; }
  .mobile-nav.open { display: grid; gap: 2px; padding: 8px var(--gutter) 16px; border-top: 1px solid var(--line); background: var(--bg); }
  .site-header.dark .mobile-nav.open { background: #083f3c; border-top-color: rgba(255,255,255,.08); }
  .mobile-nav a { padding: 12px 8px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line-soft); }
  .site-header.dark .mobile-nav a { color: #e6fbf7; border-bottom-color: rgba(255,255,255,.08); }
  .mobile-nav .btn { margin-top: 10px; }
  .section { padding: 60px 0; }
  .hero { padding-top: 48px; }
  .showcase, .showcase.flip { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .showcase.flip .showcase-copy { order: 0; }
  .steps, .tiers { grid-template-columns: minmax(0, 1fr); }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .docs-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  /* Узкий экран: то же оглавление списком, в карточке над текстом */
  .docs-nav { position: static; padding: 12px; background: #fff; border: 1px solid var(--line-soft); border-radius: 16px; box-shadow: var(--shadow-sm); }
  .docs-nav a.on { background: var(--t50); box-shadow: none; }
  .docs-nav .sub { max-height: 320px; overflow-y: auto; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-grid, .doc-cards, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .auth-page { grid-template-columns: minmax(0, 1fr); }
  .auth-side { display: none; }
  .auth-mobile-brand { display: inline-flex; }
  .auth-main { place-items: start center; padding-top: 32px; }

  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; z-index: 90; transform: translateX(-100%); transition: transform .2s ease; }
  .app.nav-open .sidebar { transform: none; box-shadow: 0 0 0 100vmax rgba(6,46,44,.4); }
  .topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 0; z-index: 50; height: 60px; padding: 0 16px; background: var(--dark-grad); color: #fff; }
  .topbar .brand { color: #fff; }
  .topbar .menu-btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
  .main { padding: 22px 16px 40px; }
  .page-title { font-size: 22px; }
  .kpis.k3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .kv .v { margin-bottom: 10px; }
}
@media (max-width: 560px) {
  .features, .facts, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .tokens { grid-template-columns: minmax(0, 1fr); }
  .guide-step { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 44px; }
  .guide-step .n { width: 36px; height: 36px; border-radius: 10px; font-size: 14px; }
  .kpis, .kpis.k3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 14px; }
  .kpi-val { font-size: 22px; }
  .banner { flex-wrap: wrap; }
  .banner > .btn { width: 100%; }
  .page-head .row, .page-head .row .btn { width: 100%; }
  .card-pad, .calc-in, .calc-out { padding: 18px; }
  .hero-actions .btn { width: 100%; }
  .compare th, .compare td { padding: 10px 8px; font-size: 13px; }
  .toasts { right: 16px; left: 16px; bottom: 16px; }
  .tier-price b, .calc-total .v { font-size: 32px; }
  .fact-val { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
