/* ===== labVoice — design tokens ===== */
:root {
  --bg: #0b0a12;
  --bg-alt: #100e1a;
  --surface: #17141f;
  --surface-2: #1e1a2b;
  --text: #f5f3fb;
  --text-muted: #a9a3bd;
  --accent-1: #7b5cfa;
  --accent-2: #26d9c9;
  --accent-grad: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --border: rgba(255, 255, 255, 0.09);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 20px 50px -20px rgba(123, 92, 250, 0.35);
  --font-heading: "Golos Text", "Manrope", sans-serif;
  --font-body: "Manrope", sans-serif;
  --container-w: 1160px;
  --header-h: 72px;
}

/* ===== reset ===== */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; color: var(--text-muted); }
button { font: inherit; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent-1);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

/* ===== buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-accent {
  background: var(--accent-grad);
  color: #0b0a12;
  box-shadow: var(--shadow);
}
.btn-accent:hover { box-shadow: 0 24px 60px -18px rgba(38, 217, 201, 0.5); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border-color: var(--accent-2);
  color: var(--accent-2);
}
.btn-outline:hover { background: rgba(38, 217, 201, 0.1); transform: translateY(-2px); }
.btn-ghost {
  background: rgba(255,255,255,0.05);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ===== header ===== */
/* Note: the blur layer lives on ::before, not on .site-header itself.
   backdrop-filter/filter on an element creates a new containing block for
   its position:fixed descendants — the mobile nav panel is one of them,
   and it needs to stay anchored to the viewport, not to the 72px header. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 10, 18, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: -1;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }

.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-icon { border-radius: 9px; }
.logo-text { font-family: var(--font-heading); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; }
.logo-lab {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  padding: 0;
  align-items: center;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  overflow-y: auto;
  padding: 24px 0;
  transform: translateX(100%);
  transition: transform .35s ease;
  z-index: 400;
}
.main-nav.is-open { transform: translateX(0); }
.main-nav ul { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.main-nav a { font-weight: 600; font-size: 1.3rem; }
.main-nav a:hover, .main-nav a:focus-visible, .main-nav a.is-active { color: var(--accent-2); }
.nav-cta { display: inline-flex; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .main-nav {
    position: static;
    inset: auto;
    background: none;
    flex-direction: row;
    transform: none;
    gap: 34px;
    justify-content: flex-end;
    flex: 1;
    margin-left: 40px;
  }
  .main-nav ul { flex-direction: row; gap: 30px; }
  .main-nav a { font-size: 0.98rem; font-weight: 600; }
}

/* ===== hero ===== */
.hero {
  position: relative;
  padding: 76px 0 64px;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(123, 92, 250, 0.28), transparent),
    radial-gradient(50% 40% at 10% 10%, rgba(38, 217, 201, 0.18), transparent),
    var(--bg);
}
.hero-inner { position: relative; z-index: 2; }
.hero-copy { max-width: 640px; }

.hero-visual { display: none; }

.hero-waves {
  position: absolute;
  inset: auto 0 0 0;
  height: 140px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  padding-bottom: 0;
  opacity: 0.45;
  mask-image: linear-gradient(to top, black, transparent);
  -webkit-mask-image: linear-gradient(to top, black, transparent);
  z-index: 1;
}
.hero-waves span {
  width: 8px;
  border-radius: 6px;
  background: var(--accent-grad);
  animation: eq 1.6s ease-in-out infinite;
}
.hero-waves span:nth-child(1) { height: 30%; animation-delay: -1.4s; }
.hero-waves span:nth-child(2) { height: 60%; animation-delay: -0.2s; }
.hero-waves span:nth-child(3) { height: 90%; animation-delay: -0.9s; }
.hero-waves span:nth-child(4) { height: 45%; animation-delay: -1.1s; }
.hero-waves span:nth-child(5) { height: 100%; animation-delay: -0.4s; }
.hero-waves span:nth-child(6) { height: 55%; animation-delay: -1.6s; }
.hero-waves span:nth-child(7) { height: 85%; animation-delay: -0.7s; }
.hero-waves span:nth-child(8) { height: 40%; animation-delay: -1.3s; }
.hero-waves span:nth-child(9) { height: 70%; animation-delay: -0.1s; }
.hero-waves span:nth-child(10) { height: 25%; animation-delay: -1.8s; }
@keyframes eq {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.eyebrow-center { display: flex; justify-content: center; text-align: center; width: 100%; }

.hero h1 {
  font-size: clamp(2.1rem, 8vw, 3.6rem);
  font-weight: 800;
  max-width: 14ch;
  letter-spacing: -0.02em;
}
.text-gradient {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead { font-size: 1.05rem; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 40px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 28px 40px; }
.hero-stats li { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-heading); font-weight: 800; font-size: 1.8rem; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { color: var(--text-muted); font-size: 0.85rem; }

/* hero visual — fills the empty space on wide screens, mobile stays single-column */
@media (min-width: 960px) {
  .hero { padding: 100px 0 84px; }
  .hero-inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 40px;
  }
  .hero-copy { max-width: none; }
  .hero-visual { display: flex; align-items: center; justify-content: center; }
}

.hero-orb {
  position: relative;
  width: min(360px, 100%);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(123, 92, 250, 0.35);
  animation: orb-pulse 3.6s ease-out infinite;
}
.ring-2 { animation-delay: 1.1s; border-color: rgba(38, 217, 201, 0.3); }
.ring-3 { animation-delay: 2.2s; }
@keyframes orb-pulse {
  0% { transform: scale(0.55); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}
.orb-mic {
  position: relative;
  z-index: 2;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  background: var(--accent-grad);
  box-shadow: 0 30px 70px -20px rgba(123, 92, 250, 0.55);
  animation: orb-float 5s ease-in-out infinite;
}
@keyframes orb-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.orb-bars {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 46px;
  z-index: 1;
}
.orb-bars span {
  width: 5px;
  border-radius: 4px;
  background: var(--accent-grad);
  opacity: 0.55;
  animation: eq 1.4s ease-in-out infinite;
}
.orb-bars span:nth-child(1) { height: 30%; animation-delay: -1.2s; }
.orb-bars span:nth-child(2) { height: 70%; animation-delay: -0.6s; }
.orb-bars span:nth-child(3) { height: 45%; animation-delay: -1.6s; }
.orb-bars span:nth-child(4) { height: 100%; animation-delay: -0.2s; }
.orb-bars span:nth-child(5) { height: 55%; animation-delay: -1.0s; }
.orb-bars span:nth-child(6) { height: 80%; animation-delay: -0.4s; }
.orb-bars span:nth-child(7) { height: 35%; animation-delay: -1.4s; }

/* ===== sections ===== */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  font-weight: 800;
  text-align: center;
}
.section-lead {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto 48px;
}

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ===== feature grid ===== */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .25s ease, border-color .25s ease;
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--accent-1); }
.feature-icon { font-size: 1.8rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { margin: 0; font-size: 0.92rem; }

/* ===== pricing ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 780px;
  margin: 0 auto;
}
@media (min-width: 720px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); align-items: stretch; } }

.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease;
}
.price-card:hover { transform: translateY(-6px); }
.price-card-featured {
  background: linear-gradient(180deg, rgba(123,92,250,0.14), var(--surface) 40%);
  border-color: var(--accent-1);
  box-shadow: var(--shadow);
}
.price-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-grad);
  color: #0b0a12;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.price-name { font-size: 1.4rem; margin-bottom: 6px; }
.price-desc { font-size: 0.92rem; min-height: 44px; }
.price-value { display: flex; align-items: baseline; gap: 6px; margin-bottom: 20px; }
.price-amount { font-family: var(--font-heading); font-size: 2.4rem; font-weight: 800; }
.price-currency { color: var(--text-muted); font-weight: 600; }
.price-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; flex: 1; }
.price-features li {
  position: relative;
  padding-left: 26px;
  font-size: 0.94rem;
  color: var(--text);
}
.price-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-grad);
  mask: radial-gradient(circle 3px at 5px 8px, transparent 98%, black 100%) , linear-gradient(black,black);
}

/* ===== narrators / flip cards ===== */
.narrators-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) { .narrators-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .narrators-grid { grid-template-columns: repeat(3, 1fr); } }

.narrator-card {
  perspective: 1200px;
  height: 280px;
  border-radius: var(--radius);
  outline-offset: 4px;
}
.narrator-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform .7s cubic-bezier(.4,.2,.2,1);
  transform-style: preserve-3d;
  border-radius: var(--radius);
}
.narrator-card:hover .narrator-card-inner,
.narrator-card:focus-visible .narrator-card-inner,
.narrator-card.is-flipped .narrator-card-inner {
  transform: rotateY(180deg);
}
.narrator-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.narrator-front {
  color: #fff;
}
.narrator-avatar-1 { background: linear-gradient(155deg, #7b5cfa, #3a2b8f); }
.narrator-avatar-2 { background: linear-gradient(155deg, #26d9c9, #146b64); }
.narrator-avatar-3 { background: linear-gradient(155deg, #fa5c8d, #7a2b4b); }
.narrator-avatar-4 { background: linear-gradient(155deg, #fabc5c, #8a5c17); }
.narrator-avatar-5 { background: linear-gradient(155deg, #5ca0fa, #26418f); }
.narrator-avatar-6 { background: linear-gradient(155deg, #9c5cfa, #43217a); }
.narrator-photo-icon { font-size: 2.6rem; margin-bottom: 14px; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.35)); }
.narrator-name { font-size: 1.1rem; margin-bottom: 4px; }
.narrator-role { font-size: 0.85rem; opacity: 0.85; margin: 0; color: inherit; }
.narrator-back {
  background: var(--surface-2);
  transform: rotateY(180deg);
}
.narrator-back .narrator-name { color: var(--text); }
.narrator-bio { font-size: 0.9rem; margin: 0; }

/* ===== contacts ===== */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 900px) { .contacts-grid { grid-template-columns: 1fr 1.2fr; align-items: start; } }

.contact-list { display: flex; flex-direction: column; gap: 22px; margin-bottom: 26px; }
.contact-list li { display: flex; align-items: flex-start; gap: 14px; }
.contact-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.contact-label { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 3px; }
.contact-value { display: block; font-weight: 600; }
a.contact-value:hover { color: var(--accent-2); }

.social-row { display: flex; gap: 12px; }
.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.social-btn:hover { transform: translateY(-3px); background: var(--accent-grad); color: #0b0a12; }

.contacts-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 320px;
}
.contacts-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; filter: grayscale(0.3) invert(0.92) contrast(0.9); }

/* ===== footer ===== */
.site-footer { padding: 44px 0 34px; border-top: 1px solid var(--border); background: var(--bg); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.footer-note, .footer-copy { font-size: 0.85rem; margin: 0; }
.footer-note a { color: var(--accent-2); font-weight: 600; }
.footer-copy { color: #6f6a80; }

/* ===== modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 4, 10, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 900;
  opacity: 0;
  transition: opacity .25s ease;
}
.modal-overlay[hidden] { display: none; }
.modal-overlay.is-visible { opacity: 1; }

.modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px 28px;
  transform: translateY(16px) scale(0.97);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
}
.modal-overlay.is-visible .modal { transform: translateY(0) scale(1); opacity: 1; }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
}
.modal-close:hover { color: var(--text); background: rgba(255,255,255,0.06); }

.modal h3 { font-size: 1.25rem; padding-right: 30px; }
#modal-tariff-name { color: var(--accent-2); }
.modal-sub { font-size: 0.9rem; margin-bottom: 22px; }

.form-honeypot { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-field { display: block; margin-bottom: 16px; font-size: 0.85rem; font-weight: 600; }
.form-field span { display: block; margin-bottom: 6px; color: var(--text-muted); font-weight: 600; }
.form-field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
}
.form-field input:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(38, 217, 201, 0.18);
}
.form-field input:invalid:not(:placeholder-shown) { border-color: #fa5c5c; }

.form-status { min-height: 20px; margin: 12px 0 0; font-size: 0.88rem; text-align: center; }
.form-status.is-success { color: var(--accent-2); }
.form-status.is-error { color: #fa7a7a; }

/* focus visibility across the site */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}
