/* ============================================================
   StreamLynx — Landing & Support
   Тёмная тема + 6 акцентов
   ============================================================ */

/* ============================================================
   Фирменный шрифт Nunito (заголовки) — хостится локально,
   без зависимости от Google Fonts: ~50 КБ, работает в РФ без VPN.
   font-display: swap — текст виден сразу, шрифт подменяется.
   ============================================================ */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('assets/fonts/nunito-cyrillic-800.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('assets/fonts/nunito-latin-800.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('assets/fonts/nunito-cyrillic-900.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('assets/fonts/nunito-latin-900.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Заголовки и акцентные элементы — фирменный шрифт.
   Запасной вариант: системные шрифты (автоматически, если woff2 не загрузился). */
h1, h2, h3,
.hero-title, .logo-text, .support-title, .error-code, .error-title,
.cl-version, .card-title, .card-title-sm, .cta-title, .maintenance-title {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

:root {
  --bg: #0E1116;
  --bg-2: #0A0D12;
  --surface: #1A1F26;
  --surface-2: #232A33;
  --surface-3: #2A323D;
  --border: #2A323D;
  --border-2: #363E4A;
  --text: #E8EDF2;
  --text-dim: #8B95A3;
  --text-mute: #6B7280;
  --success: #34D399;
  --warn: #FBBF24;
  --danger: #F43F5E;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);

  --accent: #22D3EE;
  --accent-dim: #0E7490;
  --accent-glow: rgba(34, 211, 238, 0.35);
}

/* Акцентные переменные зарегистрированы как <color> — иначе автосмена тем
   (каждые 5 с) переключала бы их рывком, без перехода. */
@property --accent     { syntax: '<color>'; inherits: true; initial-value: #22D3EE; }
@property --accent-dim  { syntax: '<color>'; inherits: true; initial-value: #0E7490; }
@property --accent-glow { syntax: '<color>'; inherits: true; initial-value: rgba(34, 211, 238, 0.35); }

/* Плавное перетекание акцентных цветов при смене темы (~1.2 с). */
html {
  transition: --accent 1.2s ease, --accent-dim 1.2s ease, --accent-glow 1.2s ease;
}
@media (prefers-reduced-motion: reduce) {
  html { transition: none; }
}

html[data-theme="cyan"]   { --accent: #22D3EE; --accent-dim: #0E7490; --accent-glow: rgba(34,211,238,0.35); }
html[data-theme="violet"] { --accent: #A78BFA; --accent-dim: #5B21B6; --accent-glow: rgba(167,139,250,0.35); }
html[data-theme="green"]  { --accent: #34D399; --accent-dim: #047857; --accent-glow: rgba(52,211,153,0.35); }
html[data-theme="orange"] { --accent: #FB923C; --accent-dim: #9A3412; --accent-glow: rgba(251,146,60,0.35); }
html[data-theme="pink"]   { --accent: #F472B6; --accent-dim: #9D174D; --accent-glow: rgba(244,114,182,0.35); }
html[data-theme="red"]    { --accent: #F43F5E; --accent-dim: #881337; --accent-glow: rgba(244,63,94,0.35); }

* { box-sizing: border-box; margin: 0; padding: 0; }

/* === Скроллбар === */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--surface-3) transparent;
}
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover { background: var(--border-2); background-clip: padding-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

a { color: inherit; text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 900px; }

/* === Canvas фон === */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 17, 22, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 35px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.logo-text { color: var(--text); }
.logo-accent {
  background: linear-gradient(135deg, var(--accent), #A78BFA);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo-icon { flex-shrink: 0; width: 64px; height: 64px; transition: filter 1.2s ease; }

/* Рысь на иконке перекрашивается под выбранную тему.
   Исходный глаз/контур рыси — бирюзовый (#22D3EE, hue ~187°);
   hue-rotate сдвигает только цветные пиксели, чёрный фон и белый
   текст значка не меняются. */
html[data-theme="cyan"]   .logo-icon { filter: none; }
html[data-theme="violet"] .logo-icon { filter: hue-rotate(68deg) saturate(1.05); }
html[data-theme="green"]  .logo-icon { filter: hue-rotate(-35deg) saturate(1.05); }
html[data-theme="orange"] .logo-icon { filter: hue-rotate(-160deg) saturate(1.1); }
html[data-theme="pink"]   .logo-icon { filter: hue-rotate(143deg) saturate(1.1); }
html[data-theme="red"]    .logo-icon { filter: hue-rotate(163deg) saturate(1.15); }

.site-nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--text-dim);
}
.site-nav a {
  position: relative;
  padding: 6px 0;
}
/* Степпер для number-полей (− / + вместо нативных стрелок) */
.num-wrap { position: relative; display: block; }
.num-wrap input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
  padding-right: 72px;
  width: 100%;
}
.num-wrap input[type="number"]::-webkit-outer-spin-button,
.num-wrap input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.num-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.num-btn:hover { border-color: var(--accent); color: var(--accent); }
.num-minus { right: 40px; }
.num-plus { right: 6px; }

.site-nav a:hover { color: var(--text); }
.site-nav a.nav-pro { color: var(--accent); font-weight: 700; }
.site-nav a.active { color: var(--accent); }
.site-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Бургер — базово скрыт, включается в адаптиве */
.burger-btn {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s ease;
}
.burger-btn:hover { border-color: var(--accent); }
.burger-btn span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.burger-btn.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger-btn.open span:nth-child(2) { opacity: 0; }
.burger-btn.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Мобильное меню — панель под шапкой */
.mobile-nav {
  display: none;
}

/* === Переключатель языка === */
/* Партнёрская программа выключена в админке: aff.js ставит класс aff-off
   на <html> по флагу affiliate:false из /api/prices. */
.aff-off [data-aff] { display: none !important; }
#affOffNote { display: none; }
.aff-off #partnerMain > .container:not(#affOffNote) { display: none; }
.aff-off #affOffNote { display: block; }

.lang-btn {
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.5px;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.lang-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(34, 211, 238, 0.06);
  transform: translateY(-1px);
}
.lang-btn:active { transform: scale(0.94); }

/* === Кнопки === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    filter 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
  position: relative;
  overflow: hidden;
  will-change: transform;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn:active { transform: translateY(0) scale(0.97); }

/* Иконка/стрелка в кнопке — плавно двигается за ховером */
.btn .btn-icon,
.btn svg:last-child {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn:hover .btn-icon,
.btn:hover svg:last-child { transform: translateX(3px); }

.btn-primary {
  background: var(--accent);
  color: #0E1116;
  border-color: var(--accent);
  box-shadow: 0 4px 16px -4px var(--accent-glow);
}
.btn-primary::after {
  /* Блик, пробегающий по кнопке при наведении */
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -4px var(--accent-glow), 0 0 0 1px var(--accent);
  filter: brightness(1.06);
  color: #0E1116;
}
.btn-primary:hover::after { left: 130%; }
.btn-primary:active { box-shadow: 0 4px 14px -4px var(--accent-glow); }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.45);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
  border-radius: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .btn, .btn *, .btn::after { transition: none !important; }
}


/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 80px 0 100px;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid var(--accent-dim);
  border-radius: 99px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent), #A78BFA);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}
.stat-value span {
  font-size: 16px;
  color: var(--text-dim);
  font-weight: 500;
}
.stat-label {
  font-size: 13px;
  color: var(--text-mute);
  margin-top: 4px;
}

/* === Визуал hero — мокапы === */
.hero-visual {
  position: relative;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 24px);
  margin: 0 clamp(-40px, -3vw, 0px);
}

.phone-mockup {
  position: relative;
  flex-shrink: 1;
  width: clamp(160px, 14vw, 210px);
  aspect-ratio: 1 / 2;
  height: auto;
  background: linear-gradient(135deg, #F5F6F8, #D9DDE3);
  border-radius: 32px;
  padding: 10px;
  border: 2px solid #C4CAD2;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7), 0 0 60px -20px var(--accent-glow);
  transform: rotate(-6deg);
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 8px; height: 8px;
  background: #1A1F26;
  border-radius: 50%;
  box-shadow: inset 0 0 2px 1px rgba(255,255,255,0.08);
  z-index: 3;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

.screen-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

.screen-header {
  padding: 8px 16px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: white;
  font-weight: 600;
  position: relative;
  z-index: 2;
}
.screen-icos {
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0.85;
}

/* Интерфейс StreamLynx на экране телефона */
.app-ui {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px 16px;
  background: linear-gradient(160deg, #10151C 0%, #0B0F14 100%);
  color: #E6EDF3;
}
.app-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.app-brand b { color: var(--accent); }
.app-brand-dot {
  width: 14px; height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  box-shadow: 0 0 8px var(--accent-glow);
}
.app-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #34D399;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 8px;
  padding: 5px 8px;
  width: fit-content;
}
.app-status i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 6px #34D399;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.app-addr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
}
.app-addr-info { display: flex; flex-direction: column; gap: 1px; }
.app-addr-info small {
  font-size: 8px;
  color: #8B98A9;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.app-addr-info b { font-size: 12px; letter-spacing: 0.3px; }
.app-qr {
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.app-srcs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.src-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  padding: 7px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.switch {
  width: 26px; height: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
  transition: background 0.2s;
}
.switch::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #8B98A9;
  transition: all 0.2s;
}
.switch.on { background: color-mix(in srgb, var(--accent) 50%, transparent); }
.switch.on::after { left: 14px; background: #fff; }
.app-cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  color: #06202A;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  border: none;
  border-radius: 11px;
  padding: 11px 10px;
  box-shadow: 0 6px 18px -6px var(--accent-glow);
}

.desktop-mockup {
  position: relative;
  flex-shrink: 1;
  width: clamp(300px, 32vw, 440px);
  aspect-ratio: 22 / 15;
  min-height: 230px;
  height: auto;
  background: linear-gradient(160deg, #141A22 0%, #0C1016 100%);
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.7),
    0 0 60px -20px var(--accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: rotate(2deg);
  z-index: 1;
  animation: float 6s ease-in-out infinite 0.5s;
  overflow: hidden;
}

.desktop-header {
  height: 30px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
}
.desktop-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--surface-3);
}
.desktop-dot:nth-child(1) { background: #F43F5E; }
.desktop-dot:nth-child(2) { background: #FBBF24; }
.desktop-dot:nth-child(3) { background: #34D399; }

.desktop-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.desktop-title {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
}
.desktop-title b { color: var(--accent); }
.desktop-live {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #F43F5E;
}
.desktop-live i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #F43F5E;
  animation: pulse 1.2s ease-in-out infinite;
}

.desktop-toolbar {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 10px;
  flex-wrap: nowrap;
}
.dt-status {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-weight: 600;
  color: var(--text-dim);
}
.dt-status i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 6px #34D399;
  animation: pulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
.dt-sep {
  width: 1px;
  height: 16px;
  background: var(--border-2);
  flex-shrink: 0;
}
.dt-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-dim);
  flex-shrink: 0;
}
.dt-toggle b {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}
.dt-toggle.on { color: var(--text); }
.dt-toggle.on b {
  background: #34D399;
  box-shadow: 0 0 5px #34D399;
}
.dt-chip {
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-2);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.dt-chip.active {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  color: var(--accent);
}

.desktop-content {
  flex: 1;
  min-height: 0;
  display: flex;
}

.desktop-video {
  position: relative;
  flex: 1;
  background: #05070A;
  overflow: hidden;
}
.stream-slides {
  position: absolute;
  inset: 0;
}
.stream-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.stream-slides img.active {
  opacity: 1;
}
.desktop-stats {
  position: absolute;
  left: 12px; bottom: 10px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: rgba(230, 237, 243, 0.75);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 3px 7px;
}
.desktop-rec {
  position: absolute;
  right: 12px; bottom: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #F43F5E;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(244, 63, 94, 0.4);
  border-radius: 6px;
  padding: 3px 7px;
}
.desktop-rec i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #F43F5E;
  animation: pulse 1s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-14px) rotate(-6deg); }
}
.desktop-mockup { animation-name: float-desktop; }
@keyframes float-desktop {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
}

/* ============================================================
   SECTIONS — общие
   ============================================================ */
section { padding: 100px 0; position: relative; }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
  line-height: 1.15;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.6;
}
.section-subtitle a { color: var(--accent); }

/* ============================================================
   VIDEO (промо-ролик на главной)
   ============================================================ */
.video-section {
  padding: 90px 0;
}

.video-frame {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 20px 60px -20px var(--accent-glow),
    0 8px 30px rgba(0, 0, 0, 0.45);
  transition: box-shadow 0.4s ease, border-color 0.3s ease;
}

.video-frame:hover {
  border-color: var(--accent-dim);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 24px 70px -18px var(--accent-glow),
    0 10px 34px rgba(0, 0, 0, 0.5);
}

.video-holder {
  position: absolute;
  inset: 0;
}

.video-sound {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(14, 17, 22, 0.82);
  backdrop-filter: blur(8px);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease,
              box-shadow 0.2s ease;
}

.video-sound:hover {
  transform: scale(1.08);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 18px var(--accent-glow);
}

.video-sound .ico-on { display: none; }
.video-frame.sound-on .video-sound .ico-on { display: block; }
.video-frame.sound-on .video-sound .ico-off { display: none; }

.video-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text-dim);
  text-align: center;
  padding: 24px;
}

.video-empty svg {
  color: var(--accent);
  opacity: 0.8;
  filter: drop-shadow(0 0 14px var(--accent-glow));
}

.video-empty span {
  font-size: 14px;
  max-width: 320px;
  line-height: 1.5;
}

/* ============================================================
   КАБИНЕТ ПАРТНЁРА (partner.html)
   ============================================================ */
.cabinet-balances {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.cabinet-balance {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.cab-b-top {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

.cab-b-sub {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
  line-height: 1.5;
}

select.buy-input {
  appearance: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  .video-section { padding: 60px 0; }
  .video-sound { right: 10px; bottom: 10px; width: 40px; height: 40px; }
}

/* ============================================================
   FEATURES
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover {
  border-color: var(--border-2);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid var(--accent-dim);
  display: grid;
  place-items: center;
  color: var(--accent);
  margin-bottom: 20px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.25s ease;
}
.feature-card:hover .feature-icon {
  transform: scale(1.08) rotate(-3deg);
  background: rgba(34, 211, 238, 0.14);
}
.feature-icon svg { width: 24px; height: 24px; }

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.feature-card p {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.6;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.6;
  padding-left: 18px;
  position: relative;
}

.feature-list li + li { margin-top: 10px; }

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.feature-list strong { color: var(--text); }

.feature-text {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0;
}
.feature-text strong { color: var(--text); }

/* ============================================================
   USB — НОВОЕ ПОКОЛЕНИЕ
   ============================================================ */
.usb-panel {
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(34, 211, 238, 0.10), transparent 60%),
    radial-gradient(600px 300px at 85% 100%, rgba(34, 211, 238, 0.07), transparent 60%),
    var(--surface);
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.usb-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.usb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
  margin-top: 8px;
}

@media (max-width: 760px) {
  .usb-grid { grid-template-columns: 1fr; }
}

.usb-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.usb-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid var(--accent-dim);
  display: grid;
  place-items: center;
  color: var(--accent);
}

.usb-icon svg { width: 22px; height: 22px; }

.usb-item h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.usb-item p {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .usb-panel { padding: 32px 20px; }
}

/* ============================================================
   DOWNLOAD
   ============================================================ */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.download-grid-single {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.download-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.2s ease,
    background-color 0.2s ease;
  position: relative;
}
.download-card:hover {
  border-color: var(--accent);
  background: var(--surface-2);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -20px var(--accent-glow);
}

.download-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
  transition: all 0.25s;
}
.download-card:hover .download-icon {
  background: rgba(34, 211, 238, 0.1);
  border-color: var(--accent);
}

.download-info { flex: 1; min-width: 0; }
.download-os {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 2px;
}
.download-meta {
  font-size: 13px;
  color: var(--text-mute);
}

.download-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  color: var(--text-dim);
}
.download-action > svg {
  align-self: center;
}
.download-size {
  font-size: 12px;
  color: var(--text-mute);
}
.download-card:hover .download-action { color: var(--accent); }

/* Заглушка «Скоро» — файлы ещё не выложены на /download/ */
.download-soon {
  opacity: 0.75;
}
.download-soon:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border);
  background: var(--surface);
}
.download-soon .download-size {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
}
.download-soon:hover .download-size { color: var(--accent); }

.download-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13.5px;
  color: var(--text-dim);
}
.download-note a { color: var(--accent); font-weight: 600; }
.download-note svg { flex-shrink: 0; color: var(--text-mute); }
.download-note-text { flex: 1 1 220px; min-width: 0; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  transition: border-color 0.2s ease, background-color 0.25s ease;
  overflow: hidden;
}
.faq-item:hover { border-color: var(--border-2); background: var(--surface-2); }
.faq-item[open] { border-color: var(--accent-dim); background: var(--surface); }

.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238B95A3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") center/contain no-repeat;
  transition: transform 0.25s;
  flex-shrink: 0;
}
.faq-item[open] summary::after {
  transform: rotate(180deg);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322D3EE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
}
.faq-item[open] summary { color: var(--accent); }

.faq-item p {
  padding: 0 24px 22px;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.7;
}
.faq-item ul {
  margin: -12px 0 0;
  padding: 0 24px 16px 46px;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.7;
  list-style: none;
}
.faq-item ul li { position: relative; margin-bottom: 10px; }
.faq-item ul li:last-child { margin-bottom: 0; }
.faq-item ul li::before {
  content: '•';
  position: absolute;
  left: -18px;
  color: var(--accent);
}
.faq-item ul li strong { color: var(--text); }

/* Футер: логотип и слоган — ссылка наверх главной */
.footer-brand { display: inline-block; text-decoration: none; }
.footer-brand:hover .logo-text { color: var(--text); }
.footer-brand:hover .logo-accent { filter: brightness(1.25); }
.footer-brand .footer-desc { transition: color .2s; }
.footer-brand:hover .footer-desc { color: var(--text); }

/* ============================================================
   CTA
   ============================================================ */
.cta-box {
  text-align: center;
  padding: 60px 40px;
  background:
    radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.15), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.cta-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.cta-subtitle {
  color: var(--text-dim);
  font-size: 17px;
  margin-bottom: 32px;
}
.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-mute);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 14px;
  color: var(--text-dim);
}
.footer-col ul a:hover { color: var(--accent); }

.footer-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-top: 16px;
  max-width: 320px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-mute);
  gap: 16px;
  flex-wrap: wrap;
}

.footer-social {
  display: flex;
  gap: 8px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text-dim);
  transition: all 0.15s;
}
.footer-social a:hover {
  background: rgba(34, 211, 238, 0.08);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ============================================================
   SUPPORT PAGE
   ============================================================ */
.support-main {
  padding: 60px 0 100px;
}

.support-header {
  text-align: center;
  margin-bottom: 48px;
}

.support-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text), var(--text-dim));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.support-subtitle {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.6;
}

.support-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  align-items: start;
}

.support-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
  min-width: 0;
  transition: border-color 0.25s ease;
}
.support-card:hover { border-color: var(--border-2); }
.support-side .support-card:last-child { margin-bottom: 0; }

.card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.3px;
}

.card-title-sm {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-mute);
  margin-bottom: 16px;
}

/* === Форма === */
.support-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}
.required { color: var(--danger); }

.form-field input,
.form-field textarea,
.form-field select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--text);
  transition: all 0.15s;
  width: 100%;
  outline: none;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-mute);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.5;
}

.form-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
}

.select-wrap {
  position: relative;
}
.select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-mute);
}

.field-hint {
  font-size: 12.5px;
  color: var(--text-mute);
}

/* === Чекбокс === */
.checkbox-field {
  padding-top: 4px;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.5;
}
.checkbox-label input[type="checkbox"] { display: none; }
.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--border-2);
  border-radius: 6px;
  flex-shrink: 0;
  position: relative;
  transition: all 0.15s;
  margin-top: 1px;
}
.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--accent);
  border-color: var(--accent);
}
.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E1116' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/70% no-repeat;
}
.checkbox-label code {
  background: var(--bg);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--accent);
  font-family: 'SF Mono', Monaco, monospace;
}

/* === Вложения === */
.btn-sm {
  padding: 8px 14px;
  font-size: 13.5px;
}
.attach-box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.attach-hint {
  font-size: 12.5px;
  color: var(--text-mute);
}
.attach-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.attach-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  padding: 7px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-dim);
}
.attach-item-name {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 12.5px;
}
.attach-item-remove {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-mute);
  font-size: 13px;
  cursor: pointer;
  line-height: 1;
  transition: all 0.15s;
}
.attach-item-remove:hover {
  background: rgba(244, 63, 94, 0.15);
  color: #F43F5E;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
}

.form-status {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  display: none;
}
.form-status.ok {
  display: block;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: var(--success);
}
.form-status.err {
  display: block;
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: var(--danger);
}

#submitBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* === Боковая панель === */
.email-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 13.5px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 12px;
  transition: all 0.15s;
  word-break: break-all;
}
.email-link:hover {
  border-color: var(--accent);
  background: rgba(34, 211, 238, 0.06);
}
.email-link svg { flex-shrink: 0; }

.side-note {
  font-size: 12.5px;
  color: var(--text-mute);
  line-height: 1.5;
}
.side-note a { color: var(--text-dim); }

.help-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.help-list li {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}
.help-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.help-list strong {
  color: var(--text);
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}
.help-list span {
  color: var(--text-mute);
  font-size: 12.5px;
  font-family: 'SF Mono', Monaco, monospace;
}

.quick-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.quick-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.25s ease;
}
.quick-link:hover {
  border-color: var(--accent);
  background: rgba(34, 211, 238, 0.06);
  color: var(--text);
  transform: translateX(4px);
  box-shadow: -4px 0 12px -6px var(--accent-glow);
}
.quick-link svg:first-child { color: var(--accent); flex-shrink: 0; }
.quick-link span { flex: 1; }
.quick-link .arrow {
  color: var(--text-mute);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s ease;
}
.quick-link:hover .arrow {
  color: var(--accent);
  transform: translateX(3px);
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
/* Ноутбуки: компактнее колонки hero */
@media (max-width: 1280px) {
  .hero-inner { gap: 40px; }
}

/* Планшеты горизонтально / небольшие ноутбуки: hero в одну колонку */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { flex-direction: column; height: auto; gap: 28px; margin: 0; padding: 20px 0; }
  .phone-mockup { flex-shrink: 0; width: 210px; animation: none; }
  .desktop-mockup { flex-shrink: 0; width: 100%; max-width: 440px; aspect-ratio: auto; height: 300px; animation: none; }
  .support-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* Планшеты вертикально / узкие окна: бургер-меню с 880px */
@media (max-width: 880px) {
  .site-nav { display: none; }
  .header-inner { height: 60px; gap: 10px; }
  .logo { gap: 8px; font-size: 22px; }
  .logo-icon { width: 36px; height: 36px; }
  .header-actions { gap: 8px; margin-left: auto; }
  .header-actions .btn { display: none; }
  .burger-btn { display: flex; }

  .mobile-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(14, 17, 22, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 4px 16px 16px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  }
  .mobile-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .mobile-nav a {
    padding: 13px 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
  }
  .mobile-nav a:last-of-type { border-bottom: none; }
  .mobile-nav a:hover { color: var(--text); }
  .mobile-nav a.active { color: var(--accent); }
  .mobile-nav .mobile-nav-cta {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px;
    font-size: 15px;
    font-weight: 700;
    color: #0E1116;
    background: linear-gradient(135deg, var(--accent), var(--accent-dim));
    border: none;
    border-radius: 12px;
  }
  section { padding: 60px 0; }
  .hero { padding: 40px 0 60px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .stat { min-width: 100px; }
  .stat-value { font-size: 22px; }
  .form-row { grid-template-columns: 1fr; }
  .support-card { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .footer-grid .footer-col:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  .faq-item summary { padding: 16px 18px; font-size: 15px; }
  .faq-item p { padding: 0 18px 18px; }
  .faq-item ul { padding: 0 18px 14px 40px; }
}

/* Большие телефоны */
@media (max-width: 560px) {
  .phone-mockup { width: 180px; transform: none; }
  .desktop-mockup { max-width: 400px; height: 260px; }
  .desktop-toolbar { gap: 6px; padding: 5px 10px; font-size: 9px; }
  .dt-chip { padding: 2px 8px; }
  .dt-sep { height: 14px; }
  .hero-title { letter-spacing: -1px; }
}

/* Телефоны */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .btn-lg { padding: 12px 20px; font-size: 14px; }
  .header-inner { gap: 8px; height: 54px; }
  .logo { gap: 8px; font-size: 20px; }
  .logo-icon { width: 34px; height: 34px; }
  .header-actions { gap: 8px; }
  .header-actions .btn { padding: 7px 12px; font-size: 12px; border-radius: 10px; }
  .lang-btn { height: 32px; padding: 0 8px; font-size: 12px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stat { min-width: 0; }
  .stat-label { font-size: 11px; }
  .phone-mockup { width: 160px; }
  .desktop-mockup { height: 240px; }
  .desktop-header { height: 26px; padding: 0 10px; }
  .desktop-dot { width: 8px; height: 8px; }
  .desktop-stats { font-size: 8px; left: 8px; bottom: 8px; padding: 2px 6px; }
  .desktop-rec { font-size: 8px; right: 8px; bottom: 8px; padding: 2px 6px; }
  .dt-status { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .desktop-toolbar { overflow: hidden; }
  .cta-box { padding: 40px 24px; }
}

/* Маленькие телефоны */
@media (max-width: 360px) {
  .header-inner { gap: 6px; }
  .logo { font-size: 18px; }
  .logo-icon { width: 50px; height: 50px; }
  .header-actions { gap: 6px; }
  .header-actions .btn { padding: 6px 10px; font-size: 12px; }
  .lang-btn { height: 30px; padding: 0 7px; }
  .phone-mockup { width: 140px; }
  .desktop-mockup { height: 215px; }
  .desktop-toolbar { font-size: 8px; gap: 5px; padding: 4px 8px; }
  .dt-status { gap: 4px; }
  .app-addr { padding: 6px 8px; gap: 6px; }
  .app-addr-info b { font-size: 10px; }
  .app-qr { width: 24px; height: 24px; }
}
/* ============================================================
   PRO — тарифы
   ============================================================ */
.pro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}

.pro-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.2s ease;
}

.pro-card:hover { border-color: var(--border-2); transform: translateY(-2px); }

.pro-card-featured {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 1px var(--accent-dim), 0 16px 48px rgba(0,0,0,.35);
}

.pro-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #0D1117;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pro-plan {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.pro-price {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.pro-price-note { font-size: 14px; font-weight: 400; color: var(--text-dim, #8B98A5); }

.pro-price-old {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-dim, #8B98A5);
  text-decoration: line-through;
  text-decoration-color: var(--accent, #22D3EE);
}

.pro-price-launch {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--accent, #22D3EE);
  background: rgba(34, 211, 238, 0.10);
  border: 1px solid var(--accent-dim, rgba(34, 211, 238, 0.35));
  border-radius: 999px;
  padding: 4px 12px;
  transform: translateY(-4px);
}

.buy-old-price {
  opacity: 0.65;
  font-weight: 400;
  text-decoration: line-through;
  margin-right: 6px;
}

.pro-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.pro-list li {
  position: relative;
  padding-left: 26px;
  line-height: 1.5;
}

.pro-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.pro-btn { width: 100%; justify-content: center; }

/* ============================================================
   BUY — оформление PRO
   ============================================================ */
.buy-steps { counter-reset: step; }
.buy-steps li { padding-left: 0; }
.buy-steps li::before { display: none; }
.buy-steps strong { display: block; margin-bottom: 4px; color: var(--accent); }
.buy-steps strong::before {
  counter-increment: step;
  content: counter(step) ". ";
}
.buy-steps code {
  background: var(--surface-2, rgba(255,255,255,.06));
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: .9em;
}

.buy-pay { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.buy-pay-btn { width: 100%; justify-content: center; margin-bottom: 10px; }
.buy-pay-btn:disabled { opacity: .6; cursor: wait; }
.buy-pay-hint { font-size: 13px; color: var(--text-dim); text-align: center; }
.buy-form { display: flex; flex-direction: column; gap: 10px; }
.buy-label { font-size: 13px; color: var(--text-dim); }
.buy-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 2px 0 4px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-mute);
  cursor: pointer;
}
.buy-check input {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}
.buy-check a { color: var(--accent); }
.buy-row { display: flex; flex-direction: column; gap: 10px; }
.buy-input {
  width: 100%; padding: 12px 14px; font-size: 15px; color: var(--text);
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  outline: none; transition: border-color .2s;
}
.buy-input:focus { border-color: var(--accent); }
.buy-paid-ok, .buy-paid-fail {
  padding: 14px 16px; border-radius: 10px; font-size: 14px; line-height: 1.55; margin-bottom: 14px;
}
.buy-paid-ok { background: rgba(52, 211, 153, .12); border: 1px solid rgba(52, 211, 153, .4); color: #6EE7B7; }
.buy-paid-fail { background: rgba(251, 146, 60, .12); border: 1px solid rgba(251, 146, 60, .4); color: #FDBA74; }
@media (min-width: 560px) {
  .buy-row { flex-direction: row; }
  .buy-pay-btn { width: auto; white-space: nowrap; margin-bottom: 0; }
}

/* ============================================================
   LEGAL — правовые документы
   ============================================================ */
.legal-doc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 40px;
  line-height: 1.7;
  font-size: 15px;
}

.legal-doc h1 { font-size: 26px; margin: 0 0 18px; color: var(--accent); }
.legal-doc h2 { font-size: 19px; margin: 28px 0 12px; }
.legal-doc h3 { font-size: 16px; margin: 20px 0 8px; }
.legal-doc p, .legal-doc li { color: var(--text); }
.legal-doc ul, .legal-doc ol { padding-left: 22px; margin: 8px 0; }
.legal-doc li { margin-bottom: 6px; }
.legal-doc strong { color: var(--text); }
.legal-doc a { color: var(--accent); }
.legal-doc code {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: .9em;
}
.legal-doc hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.legal-doc blockquote {
  margin: 14px 0;
  padding: 10px 16px;
  border-left: 3px solid var(--accent-dim);
  background: rgba(255,255,255,.03);
  border-radius: 0 8px 8px 0;
}

@media (max-width: 640px) {
  .legal-doc { padding: 22px 18px; }
}

/* ============================================================
   ПОЯВЛЕНИЕ БЛОКОВ ПРИ ПРОКРУТКЕ (добавляется из script.js)
   ============================================================ */
.reveal {
  opacity: 0;
  /* Свойство translate (не transform!) — иначе конфликтует с hover-эффектами
     карточек, которые анимируют именно transform. */
  translate: 0 26px;
  transition:
    opacity 0.6s ease,
    translate 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, translate;
}
.reveal.visible {
  opacity: 1;
  translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    translate: 0 0;
    transition: none;
  }
}

/* ============================================================
   ПРОМО-МАТЕРИАЛЫ (партнёрская программа)
   ============================================================ */
.promo-details { margin-top: 20px; }
.promo-body { padding: 0 24px 22px; }
.promo-post { margin: 0 0 18px; }
.promo-post:last-child { margin-bottom: 0; }
.promo-post-label { font-size: 12.5px; font-weight: 600; color: var(--text-dim); margin-bottom: 6px; }
.promo-text {
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0 0 10px;
}
.promo-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ============================================================
   МЕНЮ ВЫБОРА ИСТОЧНИКА УСТАНОВКИ (Android)
   ============================================================ */
.download-card[role="button"] { cursor: pointer; }
.download-size-active {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 99px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}
/* При наведении на карточку кнопка заливается акцентом */
.download-card:hover .download-size-active {
  background: var(--accent);
  color: #fff;
}
.dl-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}
.dl-modal[hidden] { display: none; }
.dl-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 11, 0.72);
  backdrop-filter: blur(6px);
}
.dl-modal-card {
  position: relative;
  width: 100%;
  max-width: 430px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
  animation: dl-modal-in 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes dl-modal-in {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
.dl-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 0.2s, border-color 0.2s;
}
.dl-modal-close:hover { color: var(--text); border-color: var(--accent); }
.dl-modal-title { margin: 0 0 4px; font-size: 18px; }
.dl-modal-sub { margin: 0 0 18px; color: var(--text-dim); font-size: 13.5px; }
.dl-stores { display: flex; flex-direction: column; gap: 10px; }
.dl-store {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease;
}
.dl-store:hover {
  border-color: var(--accent);
  background: var(--surface);
  transform: translateY(-2px);
}
.dl-store.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}
.dl-store-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.dl-store-icon svg { width: 22px; height: 22px; }
.dl-store-play { background: linear-gradient(135deg, #00A0FF, #00E676); }
.dl-store-rustore { background: linear-gradient(135deg, #5A3DF0, #A78BFA); }
.dl-store-github { background: #1c2128; border: 1px solid var(--border); }
.dl-store-direct {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
}
.dl-store-info { flex: 1; min-width: 0; }
.dl-store-name { display: block; font-weight: 600; font-size: 14.5px; }
.dl-store-desc { display: block; font-size: 12.5px; color: var(--text-mute); }
.dl-store-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent);
  border: 1px solid var(--accent);
  flex-shrink: 0;
}

/* Плашка-ссылка на промо-материалы внутри карточки партнёра */
.promo-link-in {
  display: block;
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px dashed var(--border-2);
  border-radius: var(--radius);
  background: var(--bg);
  text-decoration: none;
  transition: border-color 0.25s ease;
}
.promo-link-in:hover { border-color: var(--accent); }
.promo-link-in-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text);
}
.promo-link-in:hover .promo-link-in-title { color: var(--accent); }
.promo-link-in-desc {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--text-mute);
  line-height: 1.5;
}

/* Плашка промо как самостоятельная карточка в боковой панели */
a.support-card.promo-link-in { margin-top: 0; }
