/* =========================================================
   VibeRoom — design system
   Тёмная неоновая тема. Минималка, без лишнего.
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  background: #07060d;
}

:root {
  --bg-0: #07060d;
  --bg-1: #0f0d1e;
  --bg-2: #181530;
  --bg-3: #221d44;
  --line: rgba(255,255,255,0.07);
  --line-2: rgba(255,255,255,0.12);

  --text: #f5f3ff;
  --text-soft: #b9b3d3;
  --text-mute: #7c769a;

  --accent: #ff3b8d;
  --accent-2: #8b5cf6;
  --accent-grad: linear-gradient(135deg, #ff3b8d 0%, #8b5cf6 100%);
  --accent-grad-soft: linear-gradient(135deg, rgba(255,59,141,0.18), rgba(139,92,246,0.18));

  --ok: #2ee599;
  --warn: #ffb547;
  --err: #ff5d5d;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow: 0 12px 40px rgba(0,0,0,0.5);
  --shadow-pink: 0 10px 40px rgba(255,59,141,0.25);
}

body {
  background: radial-gradient(ellipse at top, #1a0e3a 0%, var(--bg-0) 60%);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }

img { max-width: 100%; height: auto; display: block; }

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

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

/* === Шапка === */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7,6,13,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.logo-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--accent-grad);
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.logo-mark svg { width: 18px; height: 18px; }
.logo-text {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.main-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
}
.main-nav a {
  color: var(--text-soft);
  font-weight: 500;
  font-size: 15px;
  transition: color .2s;
}
.main-nav a:hover { color: var(--text); }

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

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--text);
  width: 40px; height: 40px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
}

/* === Кнопки === */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: var(--shadow-pink);
}
.btn-primary:hover { transform: translateY(-2px); color: #fff; }
.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-lg {
  padding: 17px 36px;
  font-size: 17px;
  border-radius: 14px;
}
.btn-xl {
  padding: 22px 56px;
  font-size: 19px;
  border-radius: 16px;
}
.btn-block { display: flex; width: 100%; }

/* === Hero === */

.hero {
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero-centered {
  padding: 120px 0 100px;
  text-align: center;
}
.hero-centered .hero-text { max-width: 760px; margin: 0 auto; }
.hero-centered .hero-sub { max-width: 580px; margin-left: auto; margin-right: auto; }
.hero-centered .hero-ctas { justify-content: center; }
.hero-centered .hero-stats { justify-content: center; }
.hero-centered h1 { font-size: clamp(40px, 6vw, 76px); }
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(139,92,246,0.25), transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -300px; left: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(255,59,141,0.18), transparent 70%);
  pointer-events: none;
  filter: blur(60px);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-soft);
  margin-bottom: 22px;
  letter-spacing: 0.005em;
}
.hero-eyebrow b { color: var(--text); font-weight: 600; }
.hero-eyebrow .live-dot {
  width: 7px; height: 7px;
  background: var(--ok);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(46,229,153,0.6);
  animation: pulse 1.8s infinite;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
}
.hero h1 .grad {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 19px;
  color: var(--text-soft);
  line-height: 1.55;
  margin-bottom: 32px;
  max-width: 540px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-stats {
  display: flex;
  gap: 38px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  flex-direction: column;
}
.hero-stat-num {
  font-size: 28px;
  font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stat-label {
  font-size: 13px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* === Hero card (видео-превью собеседника) === */

.hero-card-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
}

.hero-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  background-color: #1a0d3a;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
  z-index: 2;
}
/* Слайды (фото и видео) */
.hero-card-media {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0;
  transition: opacity .8s ease;
  z-index: 1;
  overflow: hidden;
}
.hero-card-media.active {
  opacity: 1;
  animation: kenburns 8s ease-out forwards;
}
.hero-card-media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
@keyframes kenburns {
  0%   { transform: scale(1) translateY(0); }
  100% { transform: scale(1.08) translateY(-2%); }
}
.hero-card::before {
  /* лёгкий тинт чтобы фото вписывалось в палитру + текст инфо читался */
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(255,59,141,0.2), transparent 60%),
    linear-gradient(180deg, transparent 45%, rgba(10,5,25,0.7) 100%);
  pointer-events: none;
  z-index: 2;
}

.hero-card-figure { display: none; }
.hero-card-top, .hero-card-info { z-index: 4; }

.hero-card-top {
  position: absolute;
  top: 18px; left: 18px; right: 18px;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 3;
}
.hero-card-live {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px 6px 10px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
}
.hero-card-time {
  padding: 6px 11px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  font-variant-numeric: tabular-nums;
}

.hero-card-info {
  position: absolute;
  left: 18px; right: 18px; bottom: 18px;
  display: flex; align-items: center; gap: 12px;
  z-index: 3;
}
.hero-card-info-text {
  flex: 1;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.45));
}
.hero-card-name {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.hero-card-name small {
  font-weight: 500;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-left: 4px;
}
.hero-card-loc {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  display: flex; align-items: center; gap: 6px;
  margin-top: 4px;
}

.hero-card-action {
  width: 46px; height: 46px;
  background: var(--accent-grad);
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  box-shadow: var(--shadow-pink);
  flex-shrink: 0;
}
.hero-card-action svg { width: 20px; height: 20px; }

/* Кольцо снаружи — иллюзия активного соединения */
.hero-card-ring {
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(255,59,141,0.3);
  border-radius: 36px;
  z-index: 1;
  animation: ringPulse 2.4s ease-in-out infinite;
}
.hero-card-ring.r2 {
  inset: -22px;
  border-color: rgba(139,92,246,0.18);
  border-radius: 44px;
  animation-delay: -1.2s;
}
@keyframes ringPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0.15; transform: scale(1.04); }
}

/* Плавающие мини-аватарки вокруг карточки */
.hero-pill {
  position: absolute;
  background: rgba(15,13,30,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 10px 14px 10px 10px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  animation: floatY 7s ease-in-out infinite;
  z-index: 4;
  white-space: nowrap;
}
.hero-pill.p1 { top: 10%; right: -10%; }
.hero-pill.p2 { bottom: 14%; left: -16%; animation-delay: -3.5s; }
.hero-pill-avatar {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-weight: 700;
  color: #fff;
  font-size: 13px;
  flex-shrink: 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.hero-pill-name { font-weight: 700; color: var(--text); }
.hero-pill-sub { color: var(--text-mute); font-size: 11.5px; margin-top: 1px; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.live-pulse {
  width: 7px; height: 7px;
  background: #ff3b8d;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255,59,141,0.6);
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* === Sections === */

section { padding: 80px 0; }

.section-eyebrow {
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  line-height: 1.1;
}
.section-sub {
  font-size: 18px;
  color: var(--text-soft);
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

/* === Features (3 columns) === */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: linear-gradient(180deg, var(--bg-1), rgba(15,13,30,0.6));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .25s, border-color .25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139,92,246,0.4);
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(139,92,246,0.10);
  border: 1px solid rgba(139,92,246,0.25);
  display: grid; place-items: center;
  color: #c4b5fd;
  margin-bottom: 22px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card:nth-child(2) .feature-icon { background: rgba(56,189,248,0.10); border-color: rgba(56,189,248,0.25); color: #7dd3fc; }
.feature-card:nth-child(3) .feature-icon { background: rgba(46,229,153,0.10); border-color: rgba(46,229,153,0.25); color: #5eead4; }
.feature-card:nth-child(4) .feature-icon { background: rgba(255,180,71,0.10); border-color: rgba(255,180,71,0.25); color: #fcd34d; }
.feature-card:nth-child(5) .feature-icon { background: rgba(255,59,141,0.10); border-color: rgba(255,59,141,0.25); color: #fda4af; }
.feature-card:nth-child(6) .feature-icon { background: rgba(99,102,241,0.10); border-color: rgba(99,102,241,0.25); color: #a5b4fc; }
.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.feature-card p {
  color: var(--text-soft);
  margin: 0;
  font-size: 15px;
}

/* === How it works (steps) === */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step {
  text-align: center;
  position: relative;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-pink);
}
.step h4 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}
.step p {
  color: var(--text-soft);
  margin: 0;
  font-size: 14px;
}

/* === CTA big banner === */

.cta-banner {
  background: linear-gradient(135deg, rgba(255,59,141,0.15), rgba(139,92,246,0.15));
  border: 1px solid rgba(255,59,141,0.3);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.cta-banner p {
  font-size: 18px;
  color: var(--text-soft);
  margin: 0 0 32px;
  max-width: 540px;
  margin-left: auto; margin-right: auto;
}

/* === FAQ === */

.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-q::after {
  content: '+';
  font-size: 22px;
  color: var(--text-mute);
  transition: transform .2s;
}
.faq-item.open .faq-q::after {
  transform: rotate(45deg);
  color: var(--accent);
}
.faq-a {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  color: var(--text-soft);
  transition: max-height .3s ease, padding .3s ease;
}
.faq-item.open .faq-a {
  padding: 0 24px 22px;
  max-height: 400px;
}

/* === Footer === */

.site-footer {
  background: var(--bg-0);
  border-top: 1px solid var(--line);
  padding: 64px 0 28px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin: 0 0 18px;
}
.footer-col ul {
  list-style: none;
  margin: 0; padding: 0;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--text-soft);
  font-size: 14px;
  transition: color .2s;
}
.footer-col a:hover { color: var(--text); }
.footer-about p {
  color: var(--text-soft);
  font-size: 14px;
  margin: 14px 0;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-mute);
  font-size: 13px;
}

/* === Modal === */

.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.show {
  display: flex;
  animation: fadein .2s;
}
@keyframes fadein { from { opacity: 0 } to { opacity: 1 } }

.modal {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  width: 100%;
  max-width: 440px;
  padding: 40px 36px;
  box-shadow: var(--shadow);
  position: relative;
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text-soft);
  cursor: pointer;
  font-size: 18px;
}
.modal-close:hover { color: var(--text); border-color: var(--line-2); }
.modal-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  text-align: center;
}
.modal-sub {
  color: var(--text-soft);
  font-size: 15px;
  margin: 0 0 28px;
  text-align: center;
}

/* === Forms === */

.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-soft);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 15px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  color: var(--text);
  font-size: 16px;
  outline: none;
  transition: border-color .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent-2);
  background: rgba(139,92,246,0.05);
}
.field input::placeholder { color: var(--text-mute); }

.field-error {
  color: var(--err);
  font-size: 13px;
  margin-top: 6px;
  display: none;
}
.field.error .field-error { display: block; }
.field.error input { border-color: var(--err); }

.form-hint {
  font-size: 13px;
  color: var(--text-mute);
  text-align: center;
  margin-top: 18px;
}
.form-hint a { color: var(--accent); }

/* === Code input (6 digits) === */

.code-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 16px 0 24px;
}
.code-input {
  width: 48px;
  height: 60px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  color: var(--text);
}
.code-input:focus {
  border-color: var(--accent-2);
  background: rgba(139,92,246,0.08);
  outline: none;
}

.resend {
  text-align: center;
  font-size: 14px;
  color: var(--text-mute);
}
.resend a { color: var(--accent); cursor: pointer; }
.resend a.disabled { color: var(--text-mute); cursor: default; pointer-events: none; }

/* === VR Auth modal (Max-flow) === */
.vr-auth-modal { padding: 36px 32px 28px; }
.vr-auth-head { text-align: center; margin-bottom: 26px; }
.vr-auth-avatar {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--accent-grad);
  display: grid; place-items: center;
  color: #fff;
  box-shadow: var(--shadow-pink);
}
.vr-auth-avatar svg { width: 30px; height: 30px; }

.vr-auth-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.vr-auth-bar span {
  flex: 1; height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.06);
  transition: background .25s;
}
.vr-auth-bar span.on { background: var(--accent); }

.vr-auth-err {
  background: rgba(255,93,93,0.12);
  border: 1px solid rgba(255,93,93,0.32);
  color: #ff8888;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 14px;
  display: none;
}
.vr-auth-err.on { display: block; animation: vrShake .35s ease; }
@keyframes vrShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.vr-step { display: none; }
.vr-step.on { display: block; }

.vr-lbl {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.vr-hint {
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.25);
  color: #c4b5fd;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 14px;
}

.btn-block.btn-lg.ld {
  color: transparent !important;
  pointer-events: none;
  position: relative;
}
.btn-block.btn-lg.ld::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 20px; height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.vr-ok { text-align: center; padding: 8px 0 20px; }
.vr-ok-circle {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--ok);
  display: grid; place-items: center;
  color: #0a0a14;
  box-shadow: 0 12px 28px rgba(46,229,153,0.35);
  animation: popIn .4s ease-out;
}
.vr-ok-circle svg { width: 28px; height: 28px; }
.vr-ok-text {
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
}

/* === Static content pages === */

.static-page {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 56px 56px;
  margin: 40px 0 80px;
}
.static-page h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.static-page h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 36px 0 14px;
}
.static-page h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 24px 0 10px;
}
.static-page p { color: var(--text-soft); }
.static-page ul, .static-page ol { color: var(--text-soft); padding-left: 22px; }
.static-page a { color: var(--accent); }
.static-page .breadcrumbs {
  font-size: 13px;
  color: var(--text-mute);
  margin-bottom: 24px;
}
.static-page .breadcrumbs a { color: var(--text-mute); }
.static-page .breadcrumbs span { margin: 0 8px; opacity: 0.5; }
.static-page .updated {
  color: var(--text-mute);
  font-size: 13px;
  margin-bottom: 30px;
}
.static-page .callout {
  background: var(--accent-grad-soft);
  border: 1px solid rgba(255,59,141,0.3);
  border-radius: 12px;
  padding: 18px 22px;
  margin-top: 28px;
  font-size: 14px;
}

/* === Chat page (flexbox-based — надёжно на iOS) === */

html:has(body.chat-mode) { height: 100%; overflow: hidden; }
body.chat-mode {
  background: #050409;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  /* JS-переменная — реальный window.innerHeight (без Safari toolbar) */
  height: var(--real-vh, 100vh) !important;
  max-height: var(--real-vh, 100vh) !important;
}
.chat-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  overflow: hidden;
}
.chat-topbar { flex: 0 0 auto; }
.chat-main { flex: 1 1 0; min-height: 0; overflow: hidden; display: grid; grid-template-columns: 1fr 360px; }
.chat-bottombar { flex: 0 0 auto; }
.chat-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(7,6,13,0.85);
  border-bottom: 1px solid var(--line);
  height: 64px;
}
.chat-main {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 0;
  overflow: hidden;
}
.chat-stage {
  position: relative;
  background: #000;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.cam-box {
  position: relative;
  background: var(--bg-2);
  overflow: hidden;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
}
.cam-box video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.cam-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0;
  transition: opacity .5s ease;
  z-index: 1;
  overflow: hidden;
}
.cam-media.active {
  opacity: 1;
}
.cam-media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.cam-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.cam-empty {
  text-align: center;
  color: var(--text-soft);
  padding: 20px;
}
.cam-empty .silhouette {
  width: 100px;
  height: 100px;
  margin: 0 auto 14px;
  color: rgba(255,255,255,0.18);
}
.cam-empty .silhouette svg { width: 100%; height: 100%; display: block; }
.cam-label {
  position: absolute;
  top: 14px; left: 14px;
  padding: 6px 12px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cam-search {
  position: absolute;
  inset: 0;
  background: rgba(7,6,13,0.85);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  z-index: 5;
}
.cam-blur {
  position: absolute;
  inset: -30px;
  background-size: cover;
  background-position: center;
  filter: blur(14px) brightness(0.8);
  opacity: 0;
  transition: opacity .25s ease;
  z-index: 4;
}
.cam-blur.show { opacity: 1; }
.cam-blur-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  z-index: 6;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.cam-blur-label.show { opacity: 1; }
.cam-blur-label .check {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--ok);
  display: grid; place-items: center;
  margin: 0 auto 12px;
  box-shadow: 0 8px 24px rgba(46,229,153,0.4);
  animation: popIn .4s ease-out;
}
@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cam-blur-label .check svg { width: 26px; height: 26px; color: #0a0a14; stroke-width: 3; }
.cam-search-spinner {
  width: 60px; height: 60px;
  border: 4px solid rgba(255,255,255,0.1);
  border-top: 4px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 22px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cam-search h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px;
}
.cam-search p { color: var(--text-soft); }

.chat-side {
  background: var(--bg-1);
  border-left: 1px solid var(--line);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}
.chat-side-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-side-head h3 { margin: 0; font-size: 16px; }
.chat-messages {
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.msg {
  max-width: 80%;
  padding: 9px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
}
.msg.me {
  background: var(--accent-grad);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.msg.them {
  background: var(--bg-3);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.msg.sys {
  align-self: center;
  background: transparent;
  color: var(--text-mute);
  font-size: 12px;
  font-style: italic;
}
.chat-input {
  border-top: 1px solid var(--line);
  padding: 14px 16px;
  display: flex;
  gap: 10px;
}
.chat-input input {
  flex: 1;
  padding: 11px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line-2);
  border-radius: 22px;
  font-size: 14px;
  color: var(--text);
  outline: none;
}
.chat-input button {
  background: var(--accent-grad);
  border: 0;
  color: #fff;
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.chat-input button svg { width: 18px; height: 18px; }

.chat-bottombar {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 14px;
  background: rgba(7,6,13,0.92);
  border-top: 1px solid var(--line);
}
.chat-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--text);
  transition: transform .15s, background .2s, border-color .2s;
  padding: 0;
}
.chat-btn svg { width: 22px; height: 22px; }
.chat-btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.2); }
.chat-btn.muted { background: rgba(255,93,93,0.15); border-color: rgba(255,93,93,0.4); color: var(--err); }

.chat-btn-next {
  background: var(--accent-grad);
  border: 0;
  color: #fff;
  width: auto;
  height: 52px;
  padding: 0 24px;
  border-radius: 26px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-pink);
  white-space: nowrap;
}
.chat-btn-next:hover { transform: translateY(-1px); color: #fff; }
.chat-btn-next svg { width: 18px; height: 18px; }

@media (max-width: 600px) {
  .chat-btn-next { padding: 0 18px; font-size: 13px; }
}

.chat-btn-stop {
  background: transparent;
  border: 1px solid rgba(255,93,93,0.35);
  color: var(--err);
}
.chat-btn-stop:hover { background: rgba(255,93,93,0.12); }

/* === Mobile === */

@media (max-width: 980px) {
  .hero { padding: 48px 0 32px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-ctas { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-card-wrap { padding: 20px; }
  .hero-card { max-width: 320px; }
  .hero-pill.p1 { right: -2%; }
  .hero-pill.p2 { left: -2%; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .static-page { padding: 36px 28px; }
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--bg-1);
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    transition: transform .25s;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; padding: 18px 24px; gap: 0; }
  .main-nav li { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .header-cta .btn:not(.btn-primary) { display: none; }
  section { padding: 56px 0; }
  .cta-banner { padding: 36px 24px; }

  .chat-main { grid-template-columns: 1fr; }
  .chat-side { display: none; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .static-page { padding: 28px 20px; }
  .modal { padding: 32px 24px; }
  .code-input { width: 40px; height: 52px; font-size: 22px; }
  .chat-stage { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }

  /* === Mobile hero === */
  .hero { padding: 32px 0 20px; }
  .hero h1 { font-size: clamp(30px, 8vw, 44px); }
  .hero-sub { font-size: 15px; }
  .hero-eyebrow { font-size: 12px; padding: 5px 11px; }
  .hero-stats { gap: 22px; margin-top: 28px; }
  .hero-stat-num { font-size: 22px; }
  .hero-stat-label { font-size: 11px; }
  .btn-xl { padding: 16px 24px; font-size: 16px; }
  .btn-lg { padding: 14px 20px; font-size: 14px; }
  .hero-ctas { flex-direction: column; gap: 10px; width: 100%; }
  .hero-ctas .btn { width: 100%; text-align: center; }

  /* Hero-card в мобиле — pills прячем чтобы не вылазили */
  .hero-card { max-width: 280px; aspect-ratio: 4/5; }
  .hero-pill { display: none; }
  .hero-card-name { font-size: 18px; }
  .hero-card-name small { font-size: 12px; }
  .hero-card-loc { font-size: 12px; }

  /* ============== MOBILE CHAT (flexbox rebuild) ============== */

  /* main = всё пространство между topbar и bottombar (без padding!) */
  body.chat-mode .chat-main {
    display: flex !important;
    flex-direction: column;
    flex: 1 1 0 !important;
    min-height: 0 !important;
    padding: 0 !important;          /* убираем любые остатки от прошлых правок */
    grid-template-columns: unset !important;
  }
  body.chat-mode .chat-stage {
    display: flex !important;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    height: auto !important;
    grid-template-columns: unset !important;
    grid-template-rows: unset !important;
    gap: 0;
    overflow: hidden;
  }
  body.chat-mode .cam-box {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    height: 0 !important;            /* ВАЖНО: flex children с height:0 + flex:1 = идеально делят высоту */
    border-right: 0 !important;
    border-bottom: 1px solid var(--line);
    overflow: hidden !important;
    position: relative !important;
  }
  body.chat-mode .cam-box:last-child { border-bottom: 0; }

  /* ВСЕ дочерние элементы cam-box → absolute, чтобы НЕ растягивали контейнер.
     БЕЗ !important на display — inline style="display:none" должен побеждать. */
  body.chat-mode .cam-empty,
  body.chat-mode .cam-search,
  body.chat-mode .cam-blur,
  body.chat-mode .cam-blur-label {
    position: absolute !important;
    inset: 0 !important;
    margin: 0 !important;
    place-items: center;
    overflow: hidden;
    text-align: center;
  }
  /* Дефолтное состояние для тех, что показываются — grid */
  body.chat-mode .cam-empty:not([style*="display:none"]):not([style*="display: none"]),
  body.chat-mode .cam-blur,
  body.chat-mode .cam-blur-label {
    display: grid;
  }
  body.chat-mode .cam-box video {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;          /* ВСЁ видео видно */
    object-position: center !important;
    background: #0a0712;
  }

  /* Топбар — фиксирован, компактный */
  .chat-topbar {
    padding: 10px 12px !important;
    height: 56px !important;
    flex: 0 0 auto !important;
    gap: 8px;
  }
  .chat-topbar .logo { font-size: 15px; gap: 7px; min-width: 0; }
  .chat-topbar .logo-mark { width: 28px; height: 28px; flex-shrink: 0; }
  .chat-topbar .logo-mark svg { width: 17px; height: 17px; }
  .chat-topbar > div:last-child { gap: 8px !important; flex-shrink: 0; }
  #onlineCount { display: none !important; }
  #countryFilter {
    font-size: 12px !important;
    padding: 6px 8px !important;
    max-width: 105px;
    height: 34px;
  }
  .chat-topbar a.btn-ghost {
    padding: 0 12px !important;
    font-size: 12px !important;
    height: 34px;
    line-height: 34px;
  }

  /* Боттомбар — FIXED поверх видео (надёжно, привязан к viewport). */
  .chat-bottombar {
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom)) !important;
    gap: 8px;
    background: transparent !important;
    border-top: 0 !important;
    z-index: 100;
    pointer-events: none;
  }
  .chat-bottombar > * { pointer-events: auto; }
  /* Кнопки видны на любом фоне (тёмный полупрозрачный + обводка) */
  body.chat-mode .chat-btn {
    background: rgba(7, 6, 13, 0.65) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  body.chat-mode .chat-btn.muted {
    background: rgba(255, 93, 93, 0.25) !important;
    border-color: rgba(255, 93, 93, 0.5) !important;
  }
  body.chat-mode .chat-btn-next {
    background: var(--accent-grad) !important;
    border: 0 !important;
    box-shadow: 0 6px 20px rgba(255, 59, 141, 0.45), 0 0 0 1px rgba(255,255,255,0.12) inset;
  }
  body.chat-mode .chat-btn-stop {
    background: rgba(255, 93, 93, 0.2) !important;
    border-color: rgba(255, 93, 93, 0.5) !important;
  }
  /* chat-wrapper становится контейнером для absolute bottombar */
  body.chat-mode .chat-wrapper { position: relative; }
  .chat-btn {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
  }
  .chat-btn svg { width: 20px; height: 20px; }
  .chat-btn-next {
    flex: 1 1 auto !important;
    height: 48px;
    padding: 0 12px;
    font-size: 13px;
    min-width: 0;
    max-width: none;
    width: auto;
  }
  .chat-btn-next span { white-space: nowrap; }

  /* === Mobile auth modal === */
  .vr-auth-modal { padding: 24px 18px 18px; }
  .vr-auth-avatar { width: 52px; height: 52px; }
  .vr-auth-avatar svg { width: 24px; height: 24px; }
  .modal-title { font-size: 21px; }
  .modal-sub { font-size: 13px; }
  .field input { font-size: 16px; padding: 13px 14px; }  /* 16px чтобы iOS не зумил */
  .vr-step .btn { font-size: 15px; padding: 14px; }
  .form-hint { font-size: 11px; }

  /* === Mobile cam-empty в чате — компактные надписи === */
  .cam-empty { padding: 16px 12px; }
  .cam-empty .silhouette { width: 64px; height: 64px; margin-bottom: 10px; }
  .cam-empty div[style*="font-weight"] { font-size: 14px !important; }

  /* === Mobile features === */
  .feature-card { padding: 24px 20px; }
  .feature-icon { width: 42px; height: 42px; margin-bottom: 16px; }
  .feature-icon svg { width: 20px; height: 20px; }
  .feature-card h3 { font-size: 17px; }
  .feature-card p { font-size: 14px; }

  /* === Mobile header — простой и надёжный === */
  .header-inner {
    height: 56px;
    padding: 0 14px;
    gap: 8px;
  }
  .site-header .logo-mark { width: 28px; height: 28px; }
  .site-header .logo-text { font-size: 16px; }

  /* НА МОБИЛЕ ПОЛНОСТЬЮ СКРЫВАЕМ навигацию — оставляем только лого + одну кнопку */
  .site-header .main-nav,
  .site-header .menu-toggle,
  .site-header .header-cta .btn-ghost { display: none !important; }

  .header-cta { gap: 6px; }
  .header-cta .btn-primary {
    padding: 7px 14px;
    font-size: 13px;
    height: 36px;
    line-height: 36px;
  }

  /* === Hero-card — фикс отображения на мобиле === */
  .hero-card-wrap {
    padding: 10px;
    min-height: 320px;
    width: 100%;
  }
  .hero-card {
    max-width: 240px;
    margin: 0 auto;
    aspect-ratio: 3/4;
  }

  /* === Mobile FAQ === */
  .faq-q { padding: 16px 18px; font-size: 14px; }

  /* === Mobile footer === */
  .site-footer { padding: 40px 0 20px; }
  .footer-grid { gap: 24px; margin-bottom: 30px; }
  .footer-col h4 { font-size: 13px; }
  .footer-col a { font-size: 13px; }

  /* === Section sizes === */
  .section-title { font-size: clamp(22px, 6vw, 32px); }
  .section-sub { font-size: 14px; }
  .cta-banner h2 { font-size: 22px; }
  .cta-banner p { font-size: 14px; }
}

/* === Очень узкие экраны (320-380px) === */
@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .hero h1 { font-size: 28px; }
  .chat-topbar { padding: 8px 10px !important; }
  #countryFilter { max-width: 80px; }
  .chat-btn { width: 44px; height: 44px; }
  .chat-btn-next { padding: 0 14px; font-size: 12px; }
  .vr-auth-modal { padding: 22px 16px 16px; }
}

/* === iOS Safari fixes === */
@supports (-webkit-touch-callout: none) {
  /* предотвращаем зум при фокусе на input */
  .field input, .field select, .field textarea, .code-input {
    font-size: 16px;
  }
  /* фикс 100vh — учитываем safe-area */
  body.chat-mode .chat-wrapper {
    height: 100vh;
    height: -webkit-fill-available;
  }
}
