/* ══════════════════════════════════════
   Visiology — 3 июня · Для аналитиков
   Стилистика тизерной страницы
   ══════════════════════════════════════ */

/* ── RESET ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── VARIABLES ── */
:root {
  --bg: #08080c;
  --text-primary: rgba(255, 255, 255, 0.92);
  --text-secondary: rgba(255, 255, 255, 0.82);
  --text-muted: rgba(255, 255, 255, 0.62);
  --text-dim: rgba(255, 255, 255, 0.32);
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.22);
  --surface: rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.1);
  --surface-strong: rgba(0, 0, 0, 0.55);
  --accent: #FEE121;

  --side-padding: 3.5rem;
  --top-padding: 2.5rem;
  --container-max: 1200px;
}

/* ── BASE ── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 60px;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Onest', sans-serif;
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 6rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ══════════════════════════════════════
   TOPBAR
   ══════════════════════════════════════ */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(8, 8, 12, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 14px max(15px, 1.5rem);
}

.topbar-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 15.2px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.topbar-logo-link {
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s ease;
}

.topbar-logo-link:hover {
  opacity: 0.75;
}

.topbar-logo {
  height: 16px;
  width: auto;
  display: block;
}

.topbar-event {
  color: var(--text-muted);
  white-space: nowrap;
}

.topbar-event-name {
  color: var(--text-secondary);
  font-weight: 600;
  white-space: nowrap;
}

.topbar-event-name .topbar-event-ai {
  color: var(--accent);
  font-weight: 700;
}

.topbar-date {
  color: var(--text-secondary);
  white-space: nowrap;
}

.topbar-format {
  color: var(--text-muted);
  white-space: nowrap;
}

.topbar-plus {
  color: var(--accent);
  font-size: 1.6em;
  line-height: 0;
  position: relative;
  top: 0.12em;
  margin: 0 1px;
}

.topbar-sep {
  color: var(--text-dim);
  font-size: 2.45em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  position: relative;
  top: 0;
}

/* ══════════════════════════════════════
   HERO
   ══════════════════════════════════════ */
.hero {
  position: relative;
  text-align: center;
  padding: 160px max(15px, 1.5rem) 4rem;
  overflow: hidden;
  min-height: 720px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  background: var(--bg);
  opacity: 0;
}

.hero canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
  opacity: 0.7;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 110% 90% at 50% 50%, transparent 35%, rgba(8, 8, 12, 0.7) 95%, var(--bg) 100%),
    linear-gradient(to bottom, rgba(8, 8, 12, 0.35) 0%, rgba(8, 8, 12, 0.45) 55%, rgba(8, 8, 12, 0.7) 88%, var(--bg) 100%),
    rgba(0, 0, 0, 0.35);
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
}

h1 {
  font-size: 49.7px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.sub1 {
  font-size: 23.5px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0.6rem 0 2rem;
}

.sub2 {
  font-size: 49.7px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-top: calc(7rem - 50px);
  margin-bottom: 0.6rem;
  white-space: nowrap;
}

.hero-event-accent {
  color: var(--accent);
  font-weight: 600;
}

.sub3 {
  font-size: 23.5px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0.6rem 0 2rem;
}

.cta-note {
  font-size: 16.1px;
  color: var(--text-muted);
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin-top: 1.2rem;
}

.date-pill {
  display: inline-block;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.35em 0.9em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: var(--surface);
  white-space: nowrap;
  font-weight: 500;
  font-size: 1.5em;
  margin-bottom: 0.6rem;
}

.program {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 28px;
  margin: 0 auto 2.2rem;
  max-width: 560px;
  padding: 1.1rem 1.6rem;
  background: rgba(8, 8, 12, 0.55);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.prog-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.prog-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(254, 225, 33, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(254, 225, 33, 0.85);
}

.prog-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prog-text {
  font-size: 17.9px;
  color: var(--text-secondary);
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  font-family: 'Onest', sans-serif;
  font-size: 19.3px;
  font-weight: 500;
  border-radius: 10px;
  padding: 13px 28px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.01em;
  display: inline-block;
  transition: background 0.3s, border-color 0.3s, transform 0.2s;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-primary {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(254, 225, 33, 0.45);
}

.btn-primary:hover {
  background: rgba(254, 225, 33, 0.08);
  border-color: rgba(254, 225, 33, 0.75);
  color: #fff;
  transform: translateY(-1px);
}

.btn-secondary {
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border-hover);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
}

/* ══════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════ */
section {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 max(15px, 1.5rem);
  position: relative;
  z-index: 2;
}

.section--narrow {
  max-width: 800px;
}

.divider {
  width: 40px;
  height: 1px;
  background: var(--border-hover);
  margin: 4rem auto;
}

h2 {
  font-size: 35.9px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
  line-height: 1.35;
  text-align: center;
  letter-spacing: -0.005em;
}

p {
  font-size: 19.3px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

/* ══════════════════════════════════════
   COMPARE "ВЧЕРА → ЗАВТРА"
   ══════════════════════════════════════ */
.compare-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.flow-arrow {
  display: inline-flex;
  align-items: center;
  width: 72px;
  height: 16px;
  color: var(--text-muted);
}

.flow-arrow svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.flow-arrow-track {
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.25;
}

.flow-arrow-pulse {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 10 38;
  filter: drop-shadow(0 0 4px rgba(254, 225, 33, 0.6));
  animation: flow-arrow-pulse 1.8s linear infinite;
}

.flow-arrow-head {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 5px rgba(254, 225, 33, 0.55));
  animation: flow-arrow-head 1.8s ease-in-out infinite;
}

@keyframes flow-arrow-pulse {
  from { stroke-dashoffset: 48; }
  to   { stroke-dashoffset: 0; }
}

@keyframes flow-arrow-head {
  0%, 100% { opacity: 0.65; }
  50%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .flow-arrow-pulse,
  .flow-arrow-head {
    animation: none;
  }
}

.compare-title-sub {
  font-size: 16.6px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.85;
  text-align: center;
  margin: -0.6rem 0 1.5rem;
  font-weight: 500;
}

.compare-title-sub--row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.flow-arrow--sm {
  width: 44px;
  height: 10px;
}

.compare-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 1.2rem;
}

.compare-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.3rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s, background 0.3s;
}

.compare-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
}

.compare-card--past {
  opacity: 0.55;
}

.compare-card--past:hover {
  opacity: 0.85;
}

.compare-label {
  font-size: 16.6px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.compare-sub {
  font-size: 16.6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1.8rem;
}

.compare-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem;
}

.compare-list li {
  font-size: 17.2px;
  color: var(--text-muted);
  line-height: 1.55;
  padding: 3px 0 3px 14px;
  position: relative;
}

.compare-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.compare-list--icons {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.compare-list--icons li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
}

.compare-list--icons li::before {
  display: none;
}

.compare-list-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid rgba(254, 225, 33, 0.45);
  color: rgba(254, 225, 33, 0.85);
}

.compare-list-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.compare-desc {
  font-size: 17.2px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0;
}

.conclusion {
  margin-top: 1.6rem;
  padding: 1.3rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
  font-size: 20px;
  color: var(--text-secondary);
  line-height: 1.65;
  transition: border-color 0.3s, background 0.3s;
}

.conclusion:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
}

/* ══════════════════════════════════════
   THESES
   ══════════════════════════════════════ */
.theses {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 1rem;
}

.thesis {
  border-left: 1px solid var(--accent);
  padding-left: 16px;
}

.thesis p {
  margin-bottom: 0;
  font-size: 18.6px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ══════════════════════════════════════
   CARDS
   ══════════════════════════════════════ */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 1.2rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s, background 0.3s;
}

.card:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
}

.card-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(254, 225, 33, 0.45);
  color: rgba(254, 225, 33, 0.85);
  margin-bottom: 0.9rem;
}

.card-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-size: 19.3px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 17.2px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0;
}

/* ══════════════════════════════════════
   PROGRAM TIMELINE — three-step program
   ══════════════════════════════════════ */
.program-timeline {
  position: relative;
  height: 12px;
  margin: 1.2rem 0 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 14%;
}

.program-line {
  position: absolute;
  top: 50%;
  left: 14%;
  right: 14%;
  height: 2px;
  background: rgba(254, 225, 33, 0.35);
  transform: translateY(-50%);
  overflow: hidden;
}

.program-line::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 22%;
  background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent);
  filter: drop-shadow(0 0 6px rgba(254, 225, 33, 0.7));
  animation: program-line-pulse 2.4s linear infinite;
}

@keyframes program-line-pulse {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(550%); }
}

@media (prefers-reduced-motion: reduce) {
  .program-line::before {
    animation: none;
    opacity: 0;
  }
}

.program-dot {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(254, 225, 33, 0.55);
}

/* План события — нумерованные карточки в 3 колонки */
.cards--plan {
  grid-template-columns: 1fr 1fr 1fr;
}

.card--plan {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card-num {
  font-size: 40px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 1rem;
}

.card--plan h3 {
  margin-bottom: 0.5rem;
}

.card--plan p {
  margin-bottom: 1rem;
}

.card-time {
  font-size: 19.3px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  margin-top: auto;
}

@media (max-width: 768px) {
  .cards--plan {
    grid-template-columns: 1fr;
  }
}

.text-dot {
  display: inline-block;
  color: var(--text-dim);
  font-size: 2.6em;
  line-height: 0;
  position: relative;
  top: 0.04em;
  margin: 0 0.18em;
  vertical-align: middle;
}

/* ══════════════════════════════════════
   CORTEX VIZY
   ══════════════════════════════════════ */
.vizy {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 max(15px, 1.5rem);
  position: relative;
  z-index: 2;
}

.vizy-inner {
  background: var(--surface);
  border: 1px solid var(--border-hover);
  border-radius: 14px;
  padding: 1.6rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.vizy-tag {
  display: inline-block;
  font-size: 15.2px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 1rem;
  background: var(--surface);
}

.vizy-name {
  font-size: 35.9px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.7rem;
  letter-spacing: -0.005em;
}

.vizy-name span {
  color: var(--accent);
}

.vizy-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  align-items: stretch;
  margin-bottom: 1.6rem;
}

.vizy-inner > .vizy-intro:last-child {
  margin-bottom: 0;
}

.vizy-intro .vizy-intro-text {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.vizy-intro .vizy-intro-text > .vizy-tag {
  align-self: flex-start;
}

.vizy-intro .vizy-benefits {
  gap: 20px;
  margin-top: auto;
  margin-bottom: 0;
}

.vizy-intro-image,
.vizy-features-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  border: 1px dashed var(--border-hover);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 16.8px;
  font-style: italic;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 1rem;
}

img.vizy-intro-image,
img.vizy-features-image {
  display: block;
  object-fit: contain;
  border: 1px solid var(--border);
  padding: 0;
  font-size: 0;
  background: rgba(0, 0, 0, 0.22);
}

img.vizy-intro-image {
  object-fit: cover;
  object-position: top;
}

img.vizy-features-image {
  object-fit: cover;
  object-position: center;
}

.vizy-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  align-items: center;
}

.vizy-features-text > .vizy-speed,
.vizy-features-text > .vizy-benefits {
  margin-bottom: 0;
}

.vizy-features-text > .vizy-speed {
  margin-bottom: 1rem;
}

/* Второй блок Cortex Визы — центрированный intro + полноширинная картинка + нумерованные пункты */
.vizy-intro--centered {
  grid-template-columns: 1fr;
  text-align: center;
  margin-bottom: 1.6rem;
}

.vizy-intro--centered .vizy-intro-text {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.vizy-intro--centered .vizy-tag,
.vizy-intro--centered .vizy-name,
.vizy-intro--centered .vizy-speed {
  text-align: center;
}

.vizy-features-image--full {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 540px;
  margin: 0 auto 1.6rem;
}

img.vizy-features-image--full {
  display: block;
  object-fit: contain;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0;
  font-size: 0;
}

img.vizy-features-image--fit-height {
  object-fit: contain;
  background: rgba(0, 0, 0, 0.22);
}

.vizy-features-image--full-width {
  width: 100%;
  margin: 0 auto 1.6rem;
}

img.vizy-features-image--full-width {
  width: 100%;
  height: 580px;
  aspect-ratio: auto;
  max-height: none;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--border);
  background: transparent;
  padding: 0;
  font-size: 0;
  display: block;
}

.vizy-benefits.vizy-benefits--numbered {
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 0;
  isolation: isolate;
}

.vizy-benefits--numbered .vizy-benefit > span:last-child {
  font-size: 1.2em;
  line-height: 1.45;
}

.vizy-benefits--numbered .vizy-benefit {
  padding: 0.8rem;
}

@media (max-width: 768px) {
  .vizy-benefits.vizy-benefits--numbered {
    grid-template-columns: 1fr;
  }
}

.vizy-benefit-num {
  flex-shrink: 0;
  font-size: 24.2px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
  min-width: 36px;
}

.vizy-speed--standalone {
  text-align: center;
  margin: 0;
}

@media (max-width: 768px) {
  .vizy-intro,
  .vizy-features {
    grid-template-columns: 1fr;
  }

  .vizy-intro-image,
  .vizy-features-image {
    aspect-ratio: 4 / 3;
    order: -1;
  }

  img.vizy-intro-image {
    object-fit: contain;
    object-position: center top;
    background: rgba(0, 0, 0, 0.28);
  }
}

.vizy-text {
  font-size: 18.6px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.vizy-speed {
  font-size: 35.9px;
  font-weight: 500;
  text-align: left;
  margin: 0 0 1.2rem;
  letter-spacing: -0.005em;
}

.vizy-speed span {
  color: var(--accent);
}

.vizy-speed .vizy-speed-prefix {
  color: var(--text-primary);
}

.vizy-benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 1.2rem;
}

.vizy-benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16.6px;
  color: var(--text-muted);
  line-height: 1.5;
  padding: 0.7rem 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.3s, background 0.3s;
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: background, border-color;
}

.vizy-benefit:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
}

.vizy-benefit-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(254, 225, 33, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(254, 225, 33, 0.85);
}

.vizy-benefit-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vizy-benefit-icon img {
  width: 22px;
  height: 22px;
  display: block;
}

.vizy-chain-label {
  font-size: 14.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
  margin: 0 0 0.5rem;
}

.vizy-chain {
  font-size: 16.6px;
  color: var(--text-muted);
  line-height: 1.7;
  text-align: center;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border);
  border-radius: 10px;
  margin: 0 0 1.2rem;
}

.vizy-chain .arrow {
  color: var(--accent);
  margin: 0 0.4em;
  opacity: 0.8;
}

.vizy-note {
  font-size: 16.6px;
  color: var(--text-dim);
  line-height: 1.5;
  text-align: center;
  margin: 0;
}

/* ══════════════════════════════════════
   FORMAT cards
   ══════════════════════════════════════ */
.format-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 1.2rem;
}

.f-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.3rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.f-card h3 {
  font-size: 20.7px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}

.f-card ul {
  list-style: none;
  padding: 0;
}

.f-card li {
  font-size: 17.2px;
  color: var(--text-muted);
  line-height: 1.55;
  padding: 3px 0 3px 14px;
  position: relative;
}

.f-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

/* ══════════════════════════════════════
   LIVE block
   ══════════════════════════════════════ */
.studio-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6em;
  font-size: 16.6px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.85;
  text-align: center;
  margin: -0.4rem 0 1.4rem;
}

.live-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff3b3b;
  box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.7);
  animation: livePulse 1.4s ease-out infinite;
  flex-shrink: 0;
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.7);
    opacity: 1;
  }
  70% {
    box-shadow: 0 0 0 12px rgba(255, 59, 59, 0);
    opacity: 0.85;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 59, 59, 0);
    opacity: 1;
  }
}

.studio-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  border: 1px dashed var(--border-hover);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 16.6px;
  font-style: italic;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 1rem;
  margin-bottom: 1.2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.studio-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 1.2rem;
  background: var(--surface);
  transform-origin: center center;
  transition: transform 0.35s ease, filter 0.35s ease, border-color 0.35s ease;
  will-change: transform;
}

.studio-image:hover {
  border-color: var(--border-hover);
  filter: saturate(1.06) brightness(1.03);
  animation: studio-selfie-360 2.4s ease-in-out infinite;
}

@keyframes studio-selfie-360 {
  0% {
    transform: perspective(1200px) rotateY(0deg) scale(1);
  }
  25% {
    transform: perspective(1200px) rotateY(-4deg) scale(1.015);
  }
  50% {
    transform: perspective(1200px) rotateY(0deg) scale(1.03);
  }
  75% {
    transform: perspective(1200px) rotateY(4deg) scale(1.015);
  }
  100% {
    transform: perspective(1200px) rotateY(0deg) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .studio-image:hover {
    animation: none;
    transform: scale(1.01);
  }
}

.live-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.3rem 1.5rem;
  margin-top: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s, background 0.3s;
}

.live-block:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
}

.live-block p {
  color: var(--text-secondary);
  margin-bottom: 0;
  font-size: 18.6px;
  line-height: 1.65;
}

/* ══════════════════════════════════════
   AUDIENCE tags
   ══════════════════════════════════════ */
.audience {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1rem;
  justify-content: center;
}

.tag {
  font-size: 16.6px;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  letter-spacing: 0.01em;
  transition: border-color 0.3s, background 0.3s;
}

.tag:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
}

/* ══════════════════════════════════════
   FORM
   ══════════════════════════════════════ */
.form-area {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.6rem;
  margin-top: 1.2rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.toggle {
  display: flex;
  gap: 0;
  margin-bottom: 1.2rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.toggle-btn {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 17.9px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: 'Onest', sans-serif;
  transition: background 0.25s, color 0.25s;
}

.toggle-btn.active {
  background: var(--surface-hover);
  color: var(--text-primary);
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.field.full,
.form-grid > .full {
  grid-column: 1 / -1;
}

.form-grid input,
.form-grid textarea {
  font-family: 'Onest', sans-serif;
  font-size: 17.9px;
  font-weight: 400;
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.25s, background 0.25s;
  width: 100%;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.form-grid input::placeholder,
.form-grid textarea::placeholder {
  color: var(--text-dim);
  font-weight: 300;
}

.form-grid input:focus,
.form-grid textarea:focus {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.07);
}

.form-grid input.is-invalid,
.form-grid textarea.is-invalid {
  border-color: rgba(255, 95, 95, 0.55);
  background: rgba(255, 95, 95, 0.06);
}

.form-grid input.is-invalid:focus,
.form-grid textarea.is-invalid:focus {
  border-color: rgba(255, 95, 95, 0.8);
}

.field-error {
  font-size: 15.9px;
  color: rgba(255, 120, 120, 0.9);
  line-height: 1.4;
  padding-left: 2px;
  display: none;
}

.field-error.is-visible {
  display: block;
}

.form-grid textarea {
  min-height: 60px;
  resize: vertical;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  padding: 2px 0;
}

.checkbox-field input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.checkbox-mark {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1px solid var(--border-hover);
  border-radius: 4px;
  background: var(--surface);
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}

.checkbox-field:hover .checkbox-mark {
  border-color: rgba(254, 225, 33, 0.55);
}

.checkbox-field input[type="checkbox"]:focus-visible + .checkbox-mark {
  outline: 2px solid rgba(254, 225, 33, 0.45);
  outline-offset: 2px;
}

.checkbox-field input[type="checkbox"]:checked + .checkbox-mark {
  border-color: var(--accent);
}

.checkbox-field input[type="checkbox"]:checked + .checkbox-mark::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
}

.checkbox-field input[type="checkbox"].is-invalid + .checkbox-mark {
  border-color: rgba(255, 95, 95, 0.65);
  background: rgba(255, 95, 95, 0.06);
}

.checkbox-text {
  font-size: 16.6px;
  color: var(--text-muted);
  line-height: 1.55;
}

.checkbox-text a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.checkbox-text a:hover {
  color: var(--accent);
}

.form-submit {
  display: block;
  font-family: 'Onest', sans-serif;
  font-size: 19.3px;
  font-weight: 500;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(254, 225, 33, 0.45);
  border-radius: 10px;
  padding: 13px 24px;
  cursor: pointer;
  text-align: center;
  margin-top: 8px;
  width: 100%;
  letter-spacing: 0.01em;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.2s;
}

.form-submit:hover {
  background: rgba(254, 225, 33, 0.08);
  border-color: rgba(254, 225, 33, 0.75);
  color: #fff;
  transform: translateY(-1px);
}

.form-submit.is-ready {
  background: var(--accent);
  color: #08080c;
}

.form-submit.is-ready:hover {
  background: #fff04a;
  border-color: #fff04a;
  color: #08080c;
}

.form-submit:active {
  transform: translateY(0);
}

.form-consent {
  font-size: 16.6px;
  font-weight: 400;
  color: var(--text-dim);
  line-height: 1.55;
  margin-top: 1rem;
  text-align: center;
}

.form-consent a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--text-dim);
  transition: opacity 0.3s ease, color 0.3s ease;
}

.form-consent a:hover {
  color: var(--text-secondary);
  opacity: 0.85;
}

/* ══════════════════════════════════════
   FAQ
   ══════════════════════════════════════ */
.faq {
  margin-top: 1.2rem;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 18.6px;
  font-weight: 500;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.faq-q:hover {
  color: var(--accent, #fff);
}

.faq-icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.faq-q:hover .faq-icon {
  opacity: 1;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.faq-icon::before {
  width: 14px;
  height: 1.5px;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 1.5px;
  height: 14px;
  transform: translate(-50%, -50%);
}

.faq-item.is-open .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-a-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.faq-item.is-open .faq-a-wrap {
  grid-template-rows: 1fr;
}

.faq-a {
  overflow: hidden;
  font-size: 17.2px;
  color: var(--text-muted);
  line-height: 1.55;
  padding-bottom: 0;
  transition: padding-bottom 0.35s ease;
}

.faq-item.is-open .faq-a {
  padding-bottom: 16px;
}

/* ══════════════════════════════════════
   FINAL CTA
   ══════════════════════════════════════ */
.final-cta {
  text-align: center;
  padding: 2rem max(15px, 1.5rem) 4rem;
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.final-cta p {
  color: var(--text-secondary);
  font-size: 19.3px;
  max-width: 500px;
  margin: 0 auto 1.5rem;
  line-height: 1.65;
}

/* ══════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════ */

/* ── max 1920px: large desktops ── */
@media (max-width: 1920px) {
  :root {
    --side-padding: 3rem;
    --top-padding: 2.5rem;
    --container-max: 1200px;
  }
}

/* ── max 1600px: mid-size desktops ── */
@media (max-width: 1600px) {
  :root {
    --side-padding: 2.75rem;
    --top-padding: 2.25rem;
    --container-max: 1200px;
  }

  h1 {
    font-size: 44.2px;
  }

  h2 {
    font-size: 33.1px;
  }

  .sub2 {
    font-size: 44.2px;
  }
}

/* ── max 1200px: small desktops ── */
@media (max-width: 1200px) {
  :root {
    --side-padding: 2.5rem;
    --top-padding: 2rem;
    --container-max: 1200px;
  }

  h1 {
    font-size: 41.4px;
  }

  h2 {
    font-size: 30.4px;
  }

  .sub1 {
    font-size: 22.1px;
  }

  .sub2 {
    font-size: 41.4px;
  }
}

/* ── max 1024px: tablets landscape ── */
@media (max-width: 1024px) {
  :root {
    --side-padding: 2rem;
    --top-padding: 1.8rem;
    --container-max: 900px;
  }

  h1 {
    font-size: 38.6px;
  }

  h2 {
    font-size: 29px;
  }

  .sub2 {
    font-size: 38.6px;
  }

  .hero {
    padding-top: 6.5rem;
    padding-bottom: 3rem;
    min-height: 640px;
  }
}

/* ── max 992px ── */
@media (max-width: 992px) {
  :root {
    --side-padding: 1.5rem;
    --top-padding: 1.5rem;
    --container-max: 860px;
  }

  h1 {
    font-size: 35.9px;
  }

  h2 {
    font-size: 27.6px;
  }

  .sub1 {
    font-size: 20.7px;
  }

  .sub2 {
    font-size: 35.9px;
  }

  .vizy-name,
  .vizy-speed {
    font-size: 24.8px;
  }
}

/* ── max 768px: tablets portrait ── */
@media (max-width: 768px) {
  :root {
    --side-padding: 1.25rem;
    --top-padding: 1.25rem;
  }

  h1 {
    font-size: 33.1px;
    line-height: 1.35;
  }

  h2 {
    font-size: 26.2px;
  }

  .hero {
    padding-top: 5rem;
    padding-bottom: 2.5rem;
    min-height: auto;
  }

  .hero-video {
    object-fit: cover;
    object-position: center top;
  }

  .topbar-inner {
    font-size: 13.8px;
    letter-spacing: 0.08em;
  }

  .compare-cards,
  .vizy-benefits {
    gap: 10px;
  }
}

/* ── max 480px: large phones ── */
@media (max-width: 480px) {
  :root {
    --side-padding: 15px;
    --top-padding: 1rem;
  }

  .topbar {
    padding: 12px 15px;
  }

  .hero {
    padding: 6.5rem 15px 2.5rem;
  }

  section,
  .vizy,
  .final-cta {
    padding-left: 15px;
    padding-right: 15px;
  }

  h1 {
    font-size: 30.4px;
  }

  h2 {
    font-size: 24.8px;
  }

  .sub1 {
    font-size: 19.3px;
  }

  .sub2 {
    font-size: 30.4px;
    white-space: normal;
  }

  .studio-caption {
    font-size: 14.5px;
    letter-spacing: 0.1em;
    gap: 0.35em;
  }

  .cards,
  .format-cards,
  .compare-cards,
  .vizy-benefits {
    grid-template-columns: 1fr;
  }

  .program {
    grid-template-columns: 1fr;
    max-width: 260px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid .full {
    grid-column: 1;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .divider {
    margin: 2.5rem auto;
  }

  .vizy-chain {
    font-size: 15.9px;
    line-height: 1.8;
  }
}

/* ── max 900px: топбар становится двухстрочным (когда контент
   перестаёт умещаться в одну строку) ── */
@media (max-width: 900px) {
  html {
    scroll-padding-top: 90px;
  }

  .topbar {
    padding: 10px max(15px, 1.5rem);
  }

  .topbar-inner {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
}

/* Поднятие hero padding-top для двухстрочного топбара в диапазоне 768–900 */
@media (max-width: 900px) and (min-width: 768px) {
  .hero {
    padding-top: 170px;
  }
}

/* ── max 480px: убираем длинный заголовок события из верхней строки,
   когда он перестаёт там умещаться ── */
@media (max-width: 480px) {
  .topbar-event,
  .topbar-sep--event {
    display: none;
  }
}

/* ── max 400px: ещё компактнее ── */
@media (max-width: 400px) {
  .topbar-inner {
    gap: 0.4rem;
  }

  .topbar-left,
  .topbar-right {
    gap: 0.4rem;
  }
}


/* ── max 320px: small phones ── */
@media (max-width: 320px) {
  :root {
    --side-padding: 15px;
    --top-padding: 0.8rem;
  }

  .topbar {
    padding: 10px 15px;
  }

  .topbar-inner {
    font-size: 12.4px;
    letter-spacing: 0.06em;
  }

  .topbar-logo {
    height: 14px;
  }

  .hero {
    padding: 6rem 15px 2rem;
  }

  section,
  .vizy,
  .final-cta {
    padding-left: 15px;
    padding-right: 15px;
  }

  h1 {
    font-size: 27.6px;
    line-height: 1.35;
  }

  h2 {
    font-size: 23.5px;
  }

  .sub1 {
    font-size: 17.9px;
  }

  .sub2 {
    font-size: 22.1px;
    white-space: normal;
  }

  .btn-primary,
  .btn-secondary,
  .form-submit {
    font-size: 17.9px;
    padding: 12px 16px;
  }

  .compare-card,
  .card,
  .f-card,
  .vizy-inner,
  .form-area {
    padding: 1.1rem;
  }

  .vizy-chain {
    font-size: 15.2px;
    padding: 0.8rem;
  }

  .prog-text {
    font-size: 16.6px;
  }

  .divider {
    margin: 2rem auto;
  }
}
