/* ============================================================
   Kotik VPN — Design System
   Dark warm theme. Fraunces (display) + Manrope (body).
   ============================================================ */

:root {
  /* Palette */
  --bg:           #0e0c0a;
  --bg-elev-1:   #15110d;
  --bg-elev-2:   #1c1813;
  --bg-card:     #181410;
  --border:      #2d2823;
  --border-soft: #221d18;

  --text:        #f5ede0;
  --text-mid:    #d9cdba;
  --text-muted:  #a89c8a;
  --text-dim:    #6e6558;

  --primary:        #f4a649;   /* warm amber */
  --primary-hover:  #ffb648;
  --primary-dim:    #c98736;
  --accent:         #e8c896;   /* soft cream */
  --rose:           #e88a6a;   /* warm coral as second accent */
  --success:        #82c97c;
  --danger:         #e8745a;

  --shadow-glow: 0 14px 60px -16px rgba(244, 166, 73, 0.35);
  --shadow-soft: 0 8px 28px -10px rgba(0, 0, 0, 0.6);

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  /* Layout */
  --content-max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

/* ── Reset ─────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(244, 166, 73, 0.10), transparent 60%),
    radial-gradient(900px 500px at 110% 30%, rgba(232, 138, 106, 0.06), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 160ms;
}
a:hover { color: var(--primary); }

input, textarea, select {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(244, 166, 73, 0.35);
  color: var(--text);
}

/* ── Grain texture ─────────────────────────────────────────── */

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
}

/* ── Layout primitives ─────────────────────────────────────── */

.site-header,
.site-main,
.site-footer,
.hero-inner,
.features,
.prices,
.faq,
.auth-wrap,
.dash {
  position: relative;
  z-index: 2;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  max-width: var(--content-max);
  width: 100%;
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  text-decoration: none;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.logo-text span {
  color: var(--primary);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: inline-block;
  padding: 10px 16px;
  font-weight: 500;
  font-size: 15px;
  color: var(--text-mid);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: color 160ms, background 160ms;
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav-link--cta {
  color: var(--bg);
  background: var(--primary);
  font-weight: 600;
}
.nav-link--cta:hover {
  color: var(--bg);
  background: var(--primary-hover);
}
.nav-link--button {
  display: inline-block;
  cursor: pointer;
}

.site-main {
  flex: 1;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter) 80px;
}

/* ── Hero ──────────────────────────────────────────────────── */

.hero {
  position: relative;
  margin-top: 30px;
  padding: clamp(40px, 8vw, 80px) 0 clamp(60px, 10vw, 100px);
  overflow: hidden;
  isolation: isolate;
}

.hero-inner {
  position: relative;
  max-width: 880px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.02);
}
.hero-eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(130, 201, 124, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.7; transform: scale(1.15); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 6.5vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--text);
}
.hero-title em {
  font-style: italic;
  font-weight: 600;
  color: var(--primary);
}

.hero-lead {
  margin-top: 24px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.65;
  color: var(--text-mid);
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-quickfacts {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
  margin-top: 48px;
  padding: 0;
  list-style: none;
}
.hero-quickfacts li {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}
.hero-quickfacts strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

/* Decorative orbs in hero */
.hero-bg {
  position: absolute;
  inset: -10% -10% 0 -10%;
  z-index: -1;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 14s ease-in-out infinite;
}
.orb--amber {
  width: 380px; height: 380px;
  top: 5%; right: 6%;
  background: radial-gradient(circle at 35% 35%, #f4a649 0%, transparent 70%);
}
.orb--rose {
  width: 320px; height: 320px;
  bottom: -10%; left: 30%;
  background: radial-gradient(circle at 50% 50%, #e88a6a 0%, transparent 70%);
  animation-delay: -7s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-30px, 20px); }
}

/* ── Buttons ───────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms, background 160ms, color 160ms, box-shadow 200ms;
  user-select: none;
  border: 1px solid transparent;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn--primary {
  background: var(--primary);
  color: #1c140a;
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover:not(:disabled) {
  background: var(--primary-hover);
  box-shadow: 0 18px 70px -14px rgba(244, 166, 73, 0.5);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--text-muted);
}

.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--xl {
  padding: 20px 32px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.005em;
  gap: 10px;
}
.btn--full { width: 100%; padding: 16px 22px; }
.btn--wide { width: 100%; }

.btn-arrow {
  display: inline-block;
  transition: transform 0.18s ease;
  font-weight: 500;
}
.btn:hover:not(:disabled) .btn-arrow {
  transform: translateX(4px);
}

/* ── Section heads ─────────────────────────────────────────── */

.section-head {
  margin: clamp(50px, 8vw, 90px) 0 clamp(28px, 4vw, 44px);
  max-width: 760px;
}
.section-eyebrow {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.section-head h2 em {
  font-style: italic;
  font-weight: 600;
  color: var(--primary);
}
.section-sub {
  margin-top: 14px;
  font-size: 16px;
  color: var(--text-muted);
}

/* ── Features grid ─────────────────────────────────────────── */

.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.feat-card {
  position: relative;
  padding: 28px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 200ms, border-color 200ms;
}
.feat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 60px; height: 1px;
  background: var(--primary);
  transition: width 300ms;
}
.feat-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-dim);
}
.feat-card:hover::before {
  width: 100%;
}
.feat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.feat-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.3;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.feat-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ── Prices ────────────────────────────────────────────────── */

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.price-card {
  position: relative;
  padding: 32px 24px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform 200ms, border-color 200ms;
}
.price-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-dim);
}
.price-card--accent {
  background: linear-gradient(180deg, rgba(244, 166, 73, 0.08), transparent 60%), var(--bg-card);
  border-color: rgba(244, 166, 73, 0.35);
}
.price-card--best {
  background: linear-gradient(180deg, rgba(232, 200, 150, 0.10), transparent 60%), var(--bg-card);
  border-color: rgba(232, 200, 150, 0.4);
}
.price-badge {
  position: absolute;
  top: -10px; left: 22px;
  padding: 5px 12px;
  background: var(--primary);
  color: var(--bg);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
}
.price-badge--gold { background: var(--accent); }

.price-period {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.price-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--text-mid);
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 10px;
}
.price-value span {
  font-size: 52px;
  color: var(--text);
  line-height: 1;
}
.price-hint {
  font-size: 13px;
  color: var(--text-dim);
}

.prices-cta {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

/* ── FAQ ───────────────────────────────────────────────────── */

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-width: 800px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 22px;
  transition: border-color 160ms;
}
.faq-item[open] {
  border-color: var(--primary-dim);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--primary);
  transition: transform 200ms;
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-item p {
  margin-top: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 15px;
}

/* ── Footer ────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px var(--gutter);
}
.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
}
.footer-brand strong span { color: var(--primary); }
.footer-brand p {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 4px;
}
.footer-nav {
  display: flex;
  gap: 24px;
}
.footer-nav a {
  color: var(--text-muted);
  font-size: 14px;
}
.footer-legal {
  width: 100%;
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 12px;
}

/* ── Auth forms (login/register) ───────────────────────────── */

.auth-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 0 80px;
}
.auth-card {
  width: 100%;
  max-width: 460px;
  padding: 40px clamp(24px, 4vw, 40px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-soft);
}
.auth-eyebrow {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--primary);
  background: rgba(244, 166, 73, 0.1);
  border-radius: 999px;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.auth-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.auth-lead {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 28px;
  line-height: 1.55;
}

.field {
  display: block;
  margin-bottom: 18px;
}
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.field input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 15px;
  transition: border-color 160ms, background 160ms;
}
.field input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-elev-1);
}
.field input::placeholder {
  color: var(--text-dim);
}
.field-hint {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-dim);
}

.captcha-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.captcha-image {
  position: relative;
  background: #0a0807;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 4px;
  flex-shrink: 0;
}
.captcha-image img {
  display: block;
  border-radius: 10px;
}
.captcha-refresh {
  position: absolute;
  top: 6px; right: 6px;
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  color: var(--accent);
  border-radius: 50%;
  font-size: 16px;
  transition: transform 200ms;
}
.captcha-refresh:hover { transform: rotate(180deg); }
.captcha-input {
  flex: 1;
  margin-bottom: 0;
}

.code-field { margin-bottom: 24px; }
.code-input {
  text-align: center;
  font-family: "Courier New", monospace;
  font-size: 28px !important;
  font-weight: 700;
  letter-spacing: 0.4em;
  padding: 18px !important;
}

.auth-altline {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}
.auth-altline a {
  font-weight: 600;
}
.auth-altline--row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.auth-altline--right {
  text-align: right;
  margin-top: -8px;
  margin-bottom: 4px;
}

.link-btn {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-btn:hover { color: var(--primary); }
.link-btn--muted { color: var(--text-muted); }

/* ── Dashboard ─────────────────────────────────────────────── */

.dash {
  padding: 28px 0 60px;
}
.dash-head {
  margin-bottom: 32px;
}
.dash-eyebrow {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--primary);
  background: rgba(244, 166, 73, 0.1);
  border-radius: 999px;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.dash-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.dash-title span {
  color: var(--primary);
  font-style: italic;
  font-weight: 600;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.card--hero {
  grid-column: 1 / -1;
  background:
    linear-gradient(135deg, rgba(244, 166, 73, 0.10), transparent 50%),
    var(--bg-card);
  border-color: rgba(244, 166, 73, 0.25);
}
.card--hero-active {
  background:
    radial-gradient(ellipse at top left, rgba(130, 201, 124, 0.14), transparent 60%),
    var(--bg-card);
  border-color: rgba(130, 201, 124, 0.30);
}
.card--hero-inactive {
  background:
    radial-gradient(ellipse at top left, rgba(232, 138, 106, 0.10), transparent 60%),
    var(--bg-card);
  border-color: rgba(232, 138, 106, 0.30);
}

/* Prominent feature card — main action on dashboard ("Инструкция и подключение").
   Полная ширина, выраженный амбер-акцент, лёгкий glow. */
.card--feature {
  grid-column: 1 / -1;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top left, rgba(244, 166, 73, 0.16), transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(220, 92, 92, 0.08), transparent 60%),
    var(--bg-card);
  border-color: rgba(244, 166, 73, 0.45);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.02) inset,
    0 24px 60px -32px rgba(244, 166, 73, 0.35);
}
.card--feature::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(244, 166, 73, 0.55), rgba(244, 166, 73, 0));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.card--feature .card-text {
  max-width: 56ch;
  margin-bottom: 22px;
}

.card-eyebrow--accent {
  color: var(--primary);
}
.card-title--xl {
  font-size: clamp(24px, 3vw, 30px);
  margin-bottom: 10px;
}
.card-eyebrow {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.card-text {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}
.card-text strong { color: var(--text); }
.card-hint {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-dim);
}
.card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.sub-status {
  margin: 8px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.sub-status-loader {
  color: var(--text-dim);
  font-size: 14px;
}

/* 1) Status badge — компактный pill со светящейся точкой */
.sub-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: flex-start;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}
.sub-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sub-badge--active {
  color: var(--success);
  background: rgba(130, 201, 124, 0.10);
  border-color: rgba(130, 201, 124, 0.30);
}
.sub-badge--active .sub-badge-dot {
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(130, 201, 124, 0.18);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(130, 201, 124, 0.18); }
  50%      { box-shadow: 0 0 0 7px rgba(130, 201, 124, 0.05); }
}
@media (prefers-reduced-motion: reduce) {
  .sub-badge--active .sub-badge-dot { animation: none; }
}

.sub-badge--inactive {
  color: var(--rose);
  background: rgba(232, 138, 106, 0.10);
  border-color: rgba(232, 138, 106, 0.30);
}
.sub-badge--inactive .sub-badge-dot {
  background: var(--rose);
}

/* 2) Большая строка с остатком времени */
.sub-time {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sub-time-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.sub-time-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--text);
}
.sub-time-num {
  color: var(--primary);
}
.sub-time-word {
  color: var(--text);
  font-weight: 600;
}
.sub-time-sep {
  color: var(--text-dim);
  font-weight: 500;
}
.sub-time-value--muted {
  color: var(--text-mid);
  font-size: clamp(26px, 4vw, 36px);
}

.sub-meta {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
}
.sub-meta strong {
  color: var(--text);
  font-weight: 600;
}

.devices-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.dev-pill {
  padding: 10px 16px;
  background: var(--bg);
  color: var(--text-mid);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 140ms, color 140ms, border-color 140ms;
}
.dev-pill:hover {
  border-color: var(--primary-dim);
  color: var(--text);
}
.dev-pill[aria-checked="true"] {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
  font-weight: 600;
}

.kv {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px 14px;
  margin: 6px 0 22px;
  font-size: 14px;
}
.kv dt { color: var(--text-dim); }
.kv dd { color: var(--text); word-break: break-all; }

/* ── Modal ─────────────────────────────────────────────────── */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
  animation: fadeIn 200ms ease;
}
.modal[hidden] { display: none; }
.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-soft);
}
.modal-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.modal-card p {
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.55;
}
.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Toasts ────────────────────────────────────────────────── */

.toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  min-width: 260px;
  max-width: 360px;
  padding: 14px 18px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-radius: var(--r-md);
  color: var(--text);
  font-size: 14px;
  box-shadow: var(--shadow-soft);
  animation: slideIn 220ms ease;
}
.toast--ok    { border-left-color: var(--success); }
.toast--err   { border-left-color: var(--danger); }
.toast--info  { border-left-color: var(--primary); }
@keyframes slideIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Mobile ────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .site-header {
    padding: 16px var(--gutter);
  }
  .logo-text {
    font-size: 18px;
  }
  .nav-link {
    padding: 8px 12px;
    font-size: 14px;
  }
  .hero {
    margin-top: 10px;
  }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-quickfacts { gap: 18px 24px; margin-top: 32px; }
  .hero-quickfacts strong { font-size: 22px; }

  .captcha-row { flex-direction: column; align-items: stretch; }
  .captcha-image { align-self: flex-start; }

  .footer-inner { flex-direction: column; align-items: flex-start; }

  .toast-container { bottom: 12px; right: 12px; left: 12px; }
  .toast { min-width: 0; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .orb { animation: none; }
}
