﻿:root {
  --bg: #07090d;
  --bg-2: #0b0e14;
  --surface: #0f131b;
  --surface-2: #141924;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eef1f6;
  --muted: #9aa3b2;
  --faint: #6b7385;
  --accent: #3d8bff;
  --accent-2: #2f74e8;
  --accent-soft: rgba(61, 139, 255, 0.14);
  --ok: #3ddc97;
  --radius: 14px;
  --wrap: 1180px;
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

p {
  margin: 0;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: 600 15px/1 var(--font);
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.18s,
    border-color 0.18s,
    transform 0.18s,
    box-shadow 0.18s;
}

.btn-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
}

.btn-lg {
  height: 52px;
  padding: 0 26px;
  font-size: 16px;
  border-radius: 12px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 8px 24px -8px rgba(61, 139, 255, 0.6);
}

.btn-primary:hover {
  background: #4f97ff;
  transform: translateY(-1px);
}

.btn-disabled,
.btn[aria-disabled='true'] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-2);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
}

/* ---------- header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 9, 13, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: var(--wrap);
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 14px;
  color: var(--muted);
}

.nav a:hover {
  color: var(--text);
}

.lang {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
}

.lang button {
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--faint);
  font: 600 12.5px/1 var(--font);
  cursor: pointer;
  transition:
    background 0.18s,
    color 0.18s;
}

.lang button:hover {
  color: var(--text);
}

.lang button[aria-pressed='true'] {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

html:lang(zh) {
  --font: 'Onest', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', system-ui, sans-serif;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 72px 24px 0;
  text-align: center;
  isolation: isolate;
}

.hero-glow {
  position: absolute;
  inset: 0 0 auto;
  height: 1100px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 46% at 50% 62%, rgba(61, 139, 255, 0.22), transparent 70%),
    radial-gradient(40% 30% at 50% 0%, rgba(61, 139, 255, 0.12), transparent 70%);
}

.hero-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  mask-image: radial-gradient(70% 55% at 50% 30%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 55% at 50% 30%, #000 10%, transparent 75%);
  opacity: 0.5;
}

.hero-copy {
  max-width: 820px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.15);
}

.hero h1 {
  margin-top: 24px;
  font-size: clamp(2rem, 5.4vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-sub {
  max-width: 620px;
  margin: 22px auto 0;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--muted);
  text-wrap: pretty;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.hero-note {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--faint);
}

.hero-note-sep {
  margin: 0 0.35em;
  color: var(--faint);
  opacity: 0.55;
  user-select: none;
}

.hero-note a,
.final-note a {
  color: var(--muted);
  border-bottom: 1px solid var(--line-2);
}

.hero-note a:hover,
.final-note a:hover {
  color: var(--text);
}

.trust-block {
  margin: 36px auto 0;
  text-align: center;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 44px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13.5px;
  color: var(--faint);
}

.trust strong {
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
}

.trust-note {
  margin: 12px auto 0;
  max-width: 36rem;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--faint);
}

.hero-shot {
  position: relative;
  max-width: var(--wrap);
  margin: 44px auto 0;
  border-radius: var(--radius) var(--radius) 0 0;
  border: 1px solid var(--line-2);
  border-bottom: 0;
  background: var(--bg-2);
  overflow: hidden;
  box-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.06) inset,
    0 40px 120px -30px rgba(61, 139, 255, 0.35),
    0 0 0 6px rgba(255, 255, 255, 0.02);
}

.hero-shot::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
  z-index: 2;
}

.hero-demo {
  position: relative;
  aspect-ratio: 2880 / 1280;
  background: #0b0e14;
  overflow: hidden;
}

.hero-demo-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

.window-bar {
  display: flex;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #0c0f15;
}

.window-bar span,
.code-head span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.hero-shot img {
  width: 100%;
}

/* ---------- niches ---------- */

.niches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 40px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px 24px 24px;
}

.niches p {
  font-size: 13px;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.niches ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.niches li {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #c3cad6;
  opacity: 0.7;
}

/* ---------- sections ---------- */

.section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 120px 24px 0;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}

.kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-head h2 {
  margin-top: 14px;
  font-size: clamp(2rem, 3.6vw, 3rem);
  text-wrap: balance;
}

.section-head .lead {
  margin-top: 18px;
  font-size: 17px;
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- features ---------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 64px;
}

.feature + .feature {
  margin-top: 112px;
}

.feature-flip .feature-copy {
  order: 2;
}

.feature-copy h3 {
  margin-top: 12px;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  text-wrap: balance;
}

.feature-copy > p:not(.kicker) {
  margin-top: 16px;
  color: var(--muted);
}

.checks {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.checks li {
  position: relative;
  padding-left: 28px;
}

.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d8bff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E")
      center / 12px no-repeat,
    var(--accent-soft);
}

.feature-media {
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9);
}

.feature-code {
  background: #0a0d12;
}

.code-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.code-head em {
  margin-left: 10px;
  font: normal 12px var(--mono);
  color: var(--faint);
}

.feature-code pre {
  margin: 0;
  padding: 24px 26px 28px;
  overflow-x: auto;
  font: 13.5px/1.75 var(--mono);
  color: #c9d1dd;
}

.feature-code .c {
  color: #5d6678;
}

.feature-code .k {
  color: #7fb2ff;
}

.feature-code .s {
  color: #8fdcb4;
}

/* Wider media column so label/value rows in coherence cards don't crumple.
   feature-flip places media first via order, so the wide track must be first. */
.feature:has(.feature-coherence) {
  grid-template-columns: minmax(0, 4fr) minmax(420px, 8fr);
  gap: 48px;
}

.feature-flip:has(.feature-coherence) {
  grid-template-columns: minmax(520px, 9fr) minmax(0, 3.5fr);
}

.feature-coherence {
  container-type: inline-size;
  container-name: coherence;
  padding: 32px 28px 28px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(61, 139, 255, 0.1), transparent 70%),
    var(--bg-2);
}

.coherence {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr);
  align-items: stretch;
  gap: 18px 22px;
}

.coherence-card {
  min-width: 0;
  padding: 24px 24px 22px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface);
}

.coherence-label {
  margin: 0 0 18px;
  font: 600 12px/1.2 var(--font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.coherence-card ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.coherence-card li {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 20px;
  align-items: baseline;
  font-size: 13.5px;
  line-height: 1.45;
}

.coherence-card li span {
  color: var(--faint);
  white-space: nowrap;
}

.coherence-card li em {
  font: 500 13px/1.45 var(--mono);
  color: var(--text);
  text-align: right;
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.coherence-card li.coherence-lead em {
  font-weight: 600;
  color: var(--ok);
}

.coherence-card li.coherence-secondary {
  opacity: 0.72;
}

.coherence-card li.coherence-secondary em {
  font-size: 12.5px;
}

.coherence-card code,
.coherence-foot code,
.feature-copy code,
.faq code {
  font: 500 0.92em/1.35 var(--mono);
  color: var(--text);
}

.coherence-card li em.coherence-options {
  font-size: 11.5px;
  white-space: normal;
  text-align: right;
}

.coherence-link {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  padding: 0 4px;
  font: 600 12px/1.2 var(--font);
  letter-spacing: 0.03em;
  text-transform: lowercase;
  color: var(--ok);
  text-align: center;
  position: relative;
  white-space: nowrap;
}

.coherence-link span {
  position: relative;
  z-index: 1;
  padding: 6px 0;
  background: transparent;
}

.coherence-link::before,
.coherence-link::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 1px;
  height: calc(50% - 16px);
  background: linear-gradient(var(--line-2), transparent);
  transform: translateX(-50%);
}

.coherence-link::before {
  top: 8px;
  background: linear-gradient(transparent, var(--ok));
  opacity: 0.55;
}

.coherence-link::after {
  bottom: 8px;
  background: linear-gradient(var(--ok), transparent);
  opacity: 0.55;
}

.coherence-foot {
  margin: 20px 2px 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
  text-wrap: pretty;
}

@container coherence (max-width: 540px) {
  .coherence {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .coherence-link {
    min-height: 2.25rem;
    min-width: 0;
    padding: 4px 0;
  }

  .coherence-link::before,
  .coherence-link::after {
    display: none;
  }
}

@media (max-width: 720px) {
  .coherence {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .coherence-link {
    min-height: 2.25rem;
    min-width: 0;
  }

  .coherence-link::before,
  .coherence-link::after {
    display: none;
  }
}

/* ---------- capabilities ---------- */

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.cap-grid li {
  padding: 32px 30px 34px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cap-grid svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cap-grid h4 {
  margin-top: 18px;
  font-size: 17px;
  letter-spacing: -0.015em;
}

.cap-grid p {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------- pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.plan-hot {
  border-color: rgba(61, 139, 255, 0.55);
  background:
    linear-gradient(180deg, rgba(61, 139, 255, 0.1), transparent 55%),
    var(--surface);
  box-shadow: 0 30px 80px -40px rgba(61, 139, 255, 0.55);
}

.badge {
  position: absolute;
  top: 26px;
  right: 22px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #8fbcff;
  font-size: 12px;
  font-weight: 600;
}

.plan h3 {
  font-size: 18px;
  letter-spacing: -0.01em;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 18px;
}

.price strong {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.price span {
  color: var(--faint);
  font-size: 15px;
}

.plan-for {
  margin: 8px 0 22px;
  font-size: 14px;
  color: var(--muted);
}

.plan ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 14.5px;
  color: var(--muted);
}

.plan ul b {
  color: var(--text);
  font-weight: 600;
}

.plans-note {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--faint);
}

/* ---------- faq ---------- */

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.faq .section-head {
  margin-bottom: 40px;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 22px 40px 22px 0;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '';
  position: absolute;
  right: 4px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -7px;
  border-right: 2px solid var(--faint);
  border-bottom: 2px solid var(--faint);
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: -2px;
}

.faq details p {
  padding: 0 40px 24px 0;
  color: var(--muted);
}

/* ---------- final ---------- */

.final {
  position: relative;
  max-width: var(--wrap);
  margin: 120px auto 0;
  padding: 88px 24px 80px;
  text-align: center;
  border-top: 1px solid var(--line);
  isolation: isolate;
  overflow: hidden;
}

.final-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(50% 70% at 50% 0%, rgba(61, 139, 255, 0.18), transparent 70%);
}

.final img {
  margin: 0 auto 24px;
}

.final h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  text-wrap: balance;
}

.final > p:not(.final-note) {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
}

.final-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.final-note {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--faint);
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 28px 24px;
  font-size: 14px;
  color: var(--faint);
}

.footer-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.footer-nav a:hover {
  color: var(--text);
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .feature,
  .feature-flip {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .feature-flip .feature-copy {
    order: 0;
  }

  .plans {
    grid-template-columns: repeat(2, 1fr);
  }

  .cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav {
    display: none;
  }

  .header-inner {
    gap: 12px;
  }

  .lang {
    margin-left: auto;
  }

  .hero {
    padding-top: 56px;
  }

  .hero-cta .btn,
  .final-cta .btn {
    width: 100%;
  }

  .trust {
    gap: 10px 24px;
  }

  .hero-shot {
    margin: 40px -24px 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .hero-demo {
    aspect-ratio: 16 / 9;
  }

  .hero-demo-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left top;
  }

  .section {
    padding-top: 88px;
  }

  .section-head {
    margin-bottom: 44px;
  }

  .plans,
  .cap-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-wrap: wrap;
  }

  .footer-nav {
    margin-left: 0;
    order: 3;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
    letter-spacing: -0.03em;
  }

  .hero-sub {
    font-size: 1rem;
  }
}

/* ---------- личный кабинет ---------- */

.lk-body {
  min-height: 100vh;
}

.lk {
  width: min(var(--wrap), calc(100% - 48px));
  margin: 0 auto;
  padding: 100px 0 72px;
}

.lk-banner {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(220, 80, 80, 0.35);
  background: rgba(220, 80, 80, 0.12);
  color: #ffb4b4;
  font-size: 0.92rem;
}

.lk-banner.notice {
  border-color: rgba(61, 139, 255, 0.35);
  background: var(--accent-soft);
  color: #c8dcff;
}

.lk-auth {
  display: grid;
  place-items: center;
  min-height: 60vh;
}

.lk-auth-card {
  width: min(420px, 100%);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(20, 25, 36, 0.95), rgba(12, 16, 24, 0.92));
}

.lk-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 1rem;
  padding: 4px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
}

.lk-tab {
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: 600 14px/1 var(--font);
  cursor: pointer;
}

.lk-tab.active {
  background: var(--accent-soft);
  color: var(--text);
}

.lk-auth-note {
  margin-bottom: 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.lk-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* .lk-form sets display:flex which beats UA [hidden]; force hide via class + attr */
.is-hidden,
.lk-form[hidden],
.lk-auth[hidden],
.lk-card[hidden],
.lk-banner[hidden],
.lk-cabinet[hidden],
.lk-form label[hidden],
[hidden] {
  display: none !important;
}

.lk-form label,
.lk-months-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.lk-months-label input,
.lk-promo-row input {
  height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--text);
  font: 500 15px/1 var(--font);
}

.lk-promo-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.85rem;
  align-items: center;
}

.lk-promo-row input {
  flex: 1;
  min-width: 0;
}

.lk-form input {
  height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--text);
  font: 500 15px/1 var(--font);
}

.lk-form input:focus {
  outline: 2px solid rgba(61, 139, 255, 0.35);
  border-color: var(--accent);
}

.btn-block {
  width: 100%;
}

.lk-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.lk-head h1 {
  margin-top: 0.2rem;
  font-size: 1.65rem;
}

.lk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.lk-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(28, 36, 52, 0.92), rgba(16, 22, 34, 0.88));
}

.lk-card-title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

.lk-stat-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.65rem;
}

.lk-stat-row strong {
  font-size: 1.2rem;
}

.lk-balance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.45rem;
}

.lk-balance-chip {
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
}

.lk-balance-chip strong {
  display: block;
  font-size: 0.98rem;
  font-variant-numeric: tabular-nums;
}

.lk-balance-chip span {
  color: var(--muted);
  font-size: 0.75rem;
}

.lk-balance-chip.is-empty strong {
  color: var(--faint);
}

.lk-balance-chip.is-active {
  border-color: rgba(61, 220, 151, 0.4);
}

.lk-dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1rem;
  margin: 0;
}

.lk-dl dt {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.lk-dl dd {
  margin: 0.1rem 0 0;
  font-size: 0.95rem;
  font-weight: 650;
}

.tabular {
  font-variant-numeric: tabular-nums;
  font-family: var(--mono);
}

.lk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.lk-amount {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.lk-amount strong {
  font-size: 1.35rem;
}

.lk-address {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  font: 500 12px/1.45 var(--mono);
  word-break: break-all;
}

.lk-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 6, 10, 0.72);
  backdrop-filter: blur(4px);
}

.lk-dialog {
  width: min(720px, 100%);
  max-height: min(92vh, 880px);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.lk-dialog header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.lk-dialog h2 {
  font-size: 1.2rem;
}

.lk-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
}

.lk-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.lk-plan-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  text-align: left;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.lk-plan-card.selected {
  border-color: rgba(61, 139, 255, 0.55);
  background: var(--accent-soft);
}

.lk-plan-price {
  font-size: 1.05rem;
  font-weight: 750;
}

.lk-chip {
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.lk-extend {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}

.lk-months {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.lk-months button {
  min-width: 4.5rem;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--text);
  font: 600 13px/1 var(--font);
  cursor: pointer;
}

.lk-months button.selected {
  background: var(--accent-soft);
  border-color: rgba(61, 139, 255, 0.45);
  color: #c8dcff;
}

.lk-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.muted {
  color: var(--muted);
}

/* ---------- cookie notice ---------- */

.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 16px 20px;
  padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: rgba(15, 19, 27, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
}

.cookie-bar[hidden] {
  display: none;
}

.cookie-bar-inner {
  display: flex;
  align-items: center;
  gap: 16px 20px;
  max-width: var(--wrap);
  margin: 0 auto;
}

.cookie-bar-text {
  flex: 1;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 720px) {
  .cookie-bar-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-bar-inner .btn {
    width: 100%;
  }
}

/* ---------- Download chooser (Windows / macOS) ---------- */

.dl-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 6, 10, 0.72);
  backdrop-filter: blur(5px);
}

.dl-overlay[hidden] {
  display: none;
}

.dl-dialog {
  width: min(560px, 100%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.35rem 1.4rem 1.45rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.dl-dialog header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.dl-kicker {
  margin: 0 0 0.25rem;
  font: 700 11px/1 var(--font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.dl-dialog h2 {
  font-size: 1.25rem;
}

.dl-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}

.dl-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.dl-note {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.dl-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.2rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
}

.dl-tab {
  flex: 1;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: 600 13px/1 var(--font);
  cursor: pointer;
}

.dl-tab.is-active {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--line-2);
}

.dl-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

.dl-panel[hidden] {
  display: none;
}

.dl-panel p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.dl-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  margin: 0;
  padding: 0.55rem 0.7rem;
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(61, 139, 255, 0.45);
  background: linear-gradient(180deg, rgba(61, 139, 255, 0.2), rgba(61, 139, 255, 0.08));
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
}

.dl-kbd {
  display: inline-flex;
  align-items: center;
  min-height: 1.7em;
  padding: 0.15em 0.5em;
  border-radius: 6px;
  border: 1px solid rgba(126, 182, 255, 0.55);
  background: rgba(61, 139, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(61, 139, 255, 0.12);
  color: #b9d6ff;
  font: 700 12px/1.2 var(--mono);
  letter-spacing: 0.01em;
}

.dl-steps-sep {
  color: #6ea8ff;
  font-weight: 600;
  user-select: none;
}

.dl-steps-action {
  color: #8ec0ff;
  font-weight: 800;
}

.dl-code {
  width: 100%;
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  padding: 0.75rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0a0c11;
}

.dl-code code {
  flex: 1;
  min-width: 0;
  font: 500 12.5px/1.45 var(--mono);
  color: #d7e0ef;
  word-break: break-all;
}

.dl-copy {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--text);
  font: 600 12px/1 var(--font);
  cursor: pointer;
}

.dl-copy:hover {
  border-color: rgba(61, 139, 255, 0.45);
  background: var(--accent-soft);
}

.dl-copy.is-copied {
  border-color: rgba(61, 220, 151, 0.45);
  color: var(--ok);
}

.dl-hint {
  font-size: 0.8rem !important;
  color: var(--faint) !important;
}

.dl-arch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  width: 100%;
}

.dl-arch .btn {
  flex: 1 1 12rem;
  justify-content: center;
  text-align: center;
}

.dl-arch .btn.btn-disabled,
.dl-arch a.btn-disabled {
  pointer-events: none;
  opacity: 0.45;
}

.lk-grid-cabinet {
  grid-template-columns: 1fr;
}

.lk-card-wide {
  width: 100%;
}

.lk-card-lead {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
}

.lk-gen-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}

.lk-form select,
.lk-form input[type='number'] {
  height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--text);
  font: 500 15px/1 var(--font);
}

.lk-form select:focus,
.lk-form input[type='number']:focus {
  outline: 2px solid rgba(61, 139, 255, 0.35);
  border-color: var(--accent);
}

.lk-form select:disabled,
.lk-form input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.lk-check {
  flex-direction: row !important;
  align-items: center;
  gap: 0.65rem !important;
  min-height: 44px;
  margin-top: 1.4rem;
}

.lk-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.lk-hint {
  font-size: 0.85rem;
  line-height: 1.45;
  margin: 0.25rem 0 0.5rem;
}

.lk-proxy-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.lk-proxy-row {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

.lk-proxy-meta {
  font-size: 0.82rem;
}

@media (max-width: 800px) {
  .lk-grid,
  .lk-plan-grid,
  .lk-gen-grid {
    grid-template-columns: 1fr;
  }

  .lk-head {
    flex-direction: column;
  }

  .lk-check {
    margin-top: 0;
  }

  .dl-copy span {
    display: none;
  }
}
