:root {
  --blue: #3b82f6;
  --blue-d: #1e40af;
  --sidebar: #0f172a;
  --bg: #ffffff;
  --bg-gray: #f1f5f9;
  --bg-dark: #0f172a;
  --text: #1e293b;
  --text-muted: #64748b;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-light: #dbeafe;
  --border: #e2e8f0;
  --success: #10b981;
  --danger: #ef4444;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(59, 130, 246, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container--narrow { max-width: 720px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn--primary {
  background: var(--primary);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.btn--primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn--outline {
  background: #fff;
  color: var(--text) !important;
  border: 1px solid var(--border);
}

.btn--outline:hover { border-color: var(--primary); color: var(--primary) !important; }

.btn--lg { padding: 14px 28px; font-size: 1rem; }
.btn--sm { padding: 8px 16px; font-size: 0.88rem; }
.btn--block { width: 100%; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo:hover { text-decoration: none; }

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

.nav a:not(.btn) {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav a:not(.btn):hover { color: var(--text); text-decoration: none; }

.btn-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.btn-lang:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border: none;
  background: none;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Hero */
.hero {
  padding: 64px 0 80px;
  background:
    radial-gradient(ellipse at 90% 0%, rgba(59, 130, 246, 0.1), transparent 50%),
    radial-gradient(ellipse at 10% 80%, rgba(30, 64, 175, 0.06), transparent 40%),
    var(--bg);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__text h1 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero__lead {
  margin: 0 0 32px;
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__visual {
  position: relative;
  min-height: 320px;
}

/* Hero TV mockup — flat by default (mobile-first) */
.hero__visual .tv-mockup--hero {
  max-width: 100%;
  margin: 0 auto;
  transform: none;
  transform-origin: center center;
}

@media (min-width: 901px) {
  .hero__visual {
    perspective: 1200px;
    perspective-origin: 62% 44%;
  }

  .hero__visual .tv-mockup--hero {
    max-width: 480px;
    margin-left: auto;
    margin-right: 0;
    transform: rotateY(-15.5deg) rotateX(-1.25deg);
    transform-origin: center center;
    transform-style: preserve-3d;
  }

  .hero__visual .tv-mockup--hero .tv-mockup__glow,
  .hero__visual .tv-mockup--hero .tv-mockup__frame,
  .hero__visual .tv-mockup--hero .tv-mockup__pedestal,
  .hero__visual .tv-mockup--hero .tv-mockup__float--online {
    transform-style: preserve-3d;
  }

  .hero__visual .tv-mockup--hero .tv-mockup__bezel {
    box-shadow:
      0 32px 64px rgba(15, 23, 42, 0.22),
      0 16px 36px rgba(15, 23, 42, 0.14),
      0 10px 28px rgba(239, 68, 68, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .hero__visual .tv-mockup--hero .tv-mockup__pedestal {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0;
    transform: translateZ(-2px);
  }

  .hero__visual .tv-mockup--hero .tv-mockup__neck {
    width: 84px;
    height: 26px;
    margin: 0 auto;
    transform: translateZ(-1px);
  }

  .hero__visual .tv-mockup--hero .tv-mockup__stand {
    width: 210px;
    height: 11px;
    margin: 0 auto;
    transform: translateZ(-3px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.22);
  }

  /* Бейдж крутится вместе с TV + чуть вперёд по Z (без counter-rotate) */
  .hero__visual .tv-mockup__float--online {
    left: -28px;
    bottom: 52px;
    z-index: 3;
    transform: translateZ(36px);
  }
}

.tv-mockup__float--online {
  left: 12px;
  bottom: 16px;
}

.tv-mockup__float-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
  flex-shrink: 0;
}

.tv-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

.tv-slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  z-index: 1;
}

.tv-slide.is-leaving {
  opacity: 0;
  transform: translateY(100%);
  z-index: 0;
}

.tv-slide video,
.tv-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Legacy browser mockup (unused on hero, kept for reference blocks) */
.hero-mockup {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-left: auto;
  transform: perspective(1400px) rotateY(-10deg) rotateX(5deg);
  transform-origin: center right;
}

.hero-mockup--flat {
  max-width: 100%;
  margin: 0 auto;
  transform: none;
}

.hero-mockup__glow {
  position: absolute;
  inset: 8% 0 0 12%;
  border-radius: 28px;
  background:
    radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.35), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(30, 64, 175, 0.22), transparent 50%);
  filter: blur(28px);
  z-index: 0;
}

.hero-mockup__frame {
  position: relative;
  z-index: 1;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: #fff;
  box-shadow:
    0 28px 60px rgba(15, 23, 42, 0.16),
    0 8px 24px rgba(59, 130, 246, 0.12);
}

.hero-mockup__chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  border-bottom: 1px solid var(--border);
}

.hero-mockup__chrome span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.hero-mockup__chrome span:nth-child(1) { background: #f87171; }
.hero-mockup__chrome span:nth-child(2) { background: #fbbf24; }
.hero-mockup__chrome span:nth-child(3) { background: #34d399; }

.hero-mockup__chrome em {
  margin-left: auto;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 600;
  color: var(--text-muted);
}

.hero-mockup__screen img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-mockup__float {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(8px);
}

.hero-mockup__float--online {
  left: -24px;
  bottom: 48px;
}

.hero-mockup__float-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
  flex-shrink: 0;
}

.hero-mockup__float strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.hero-mockup__float em {
  display: block;
  font-size: 0.75rem;
  font-style: normal;
  color: var(--text-muted);
  font-weight: 600;
}

/* Screenshot (legacy) */
.screenshot-frame {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background: #fff;
}

.screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section--gray { background: var(--bg-gray); }

.section--contact {
  background: var(--bg-dark);
  color: #fff;
}

.section--contact .section-label { color: #93c5fd; }
.section--contact h2 { color: #fff; }
.section--contact p { color: #94a3b8; }

.section-title {
  margin-bottom: 48px;
  max-width: 560px;
}

.section-title--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-title h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-title p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Benefits */
.benefits {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.benefit-card--accent {
  border-color: rgba(59, 130, 246, 0.28);
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.icon-box--accent {
  background: var(--primary-light);
  color: var(--primary);
}

.benefit-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}

.benefit-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(59, 130, 246, 0.2);
  margin-bottom: 14px;
}

.icon-box svg { width: 24px; height: 24px; }

.icon-box--lg {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin: 0 auto 16px;
}

.icon-box--lg svg { width: 28px; height: 28px; }

.icon-box--sm {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  margin-bottom: 8px;
}

.icon-box--sm svg { width: 18px; height: 18px; }

.benefit-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.benefit-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.step {
  text-align: center;
  padding: 24px 16px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.step__num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.step p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Split blocks */
.split-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split-block--reverse .split-block__text { order: 2; }
.split-block--reverse .split-block__visual { order: 1; }

/* The TV-player section is informational; the only TV promotion stays in hero. */

.split-block h2 {
  margin: 8px 0 16px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.split-block p {
  margin: 0 0 24px;
  color: var(--text-muted);
  line-height: 1.6;
}

.check-list {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--text);
}

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

.tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  background: #fef3c7;
  color: #b45309;
  border-radius: 6px;
  vertical-align: middle;
}

.tag--beta {
  background: #dbeafe;
  color: #1d4ed8;
}

/* AI results — mock gallery under panel */
.ai-results {
  margin-top: 44px;
  padding: 28px;
  border-radius: 22px;
  border: 1px solid rgba(59, 130, 246, 0.16);
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  box-shadow: var(--shadow);
}

.ai-results__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.ai-results__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1d4ed8;
}

.ai-results__copy h3 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  letter-spacing: -0.03em;
}

.ai-results__copy p {
  margin: 0;
  max-width: 520px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.ai-results__compare {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ai-results__compare-item {
  min-width: 148px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
}

.ai-results__compare-item span {
  display: block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.ai-results__compare-item strong {
  font-size: 0.92rem;
  line-height: 1.35;
}

.ai-results__compare-item--old {
  opacity: 0.72;
  text-decoration: line-through;
  text-decoration-color: rgba(239, 68, 68, 0.45);
}

.ai-results__compare-item--old strong { color: #64748b; }

.ai-results__compare-item--new {
  border-color: rgba(59, 130, 246, 0.28);
  background: #eff6ff;
}

.ai-results__compare-item--new strong { color: #1d4ed8; }

.ai-results__gallery {
  display: grid;
  grid-template-columns: minmax(120px, 0.72fr) 56px repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: center;
}

.ai-results__card {
  margin: 0;
  min-width: 0;
}

.ai-results__thumb {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
}

.ai-results__thumb--wide {
  aspect-ratio: 16 / 9;
}

.ai-results__thumb img,
.ai-results__thumb video {
  display: block;
  width: 100%;
  height: auto;
}

.ai-results__thumb--wide img,
.ai-results__thumb--wide video {
  height: 100%;
  object-fit: cover;
}

.ai-results__card figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.ai-results__engine {
  display: grid;
  place-items: center;
}

.ai-results__engine span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  background: var(--primary);
  box-shadow: var(--shadow);
}

.ai-results__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.ai-results__note {
  margin: 0;
  max-width: 420px;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* TV mockup — 3D tilted screen */
.tv-mockup {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  transform: perspective(1400px) rotateY(11deg) rotateX(4deg) rotateZ(-1.5deg);
  transform-origin: center left;
}

.tv-mockup__glow {
  position: absolute;
  inset: 6% 8% 18% 0;
  border-radius: 32px;
  background:
    radial-gradient(circle at 25% 30%, rgba(239, 68, 68, 0.28), transparent 52%),
    radial-gradient(circle at 75% 65%, rgba(59, 130, 246, 0.24), transparent 48%);
  filter: blur(30px);
  z-index: 0;
}

.tv-mockup__frame {
  position: relative;
  z-index: 1;
}

.tv-mockup__bezel {
  padding: 14px 14px 10px;
  border-radius: 22px;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 55%, #020617 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 32px 64px rgba(15, 23, 42, 0.22),
    0 10px 28px rgba(239, 68, 68, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tv-mockup__screen {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
  line-height: 0;
}

.tv-mockup__screen img,
.tv-mockup__screen video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tv-player-preview {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  color: #e0edff;
  background:
    radial-gradient(circle at 72% 25%, rgba(59, 130, 246, 0.42), transparent 30%),
    linear-gradient(135deg, #10254b, #061426 68%);
  line-height: 1.2;
}

.tv-player-preview__top,
.tv-player-preview__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.tv-player-preview__top i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.16);
}

.tv-player-preview__content {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.tv-player-preview__icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  padding-left: 3px;
  border: 1px solid rgba(147, 197, 253, 0.48);
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.18);
  color: #fff;
  font-size: 1.3rem;
}

.tv-player-preview__content strong { font-size: 1rem; }
.tv-player-preview__content small { color: #9fb8d9; font-size: 0.75rem; }
.tv-player-preview__bottom span { width: 60%; height: 4px; border-radius: 999px; background: #2563eb; }
.tv-player-preview__bottom em { color: #86efac; font-style: normal; letter-spacing: 0; }

.tv-mockup__brand {
  margin-top: 10px;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
}

.tv-mockup__neck {
  width: 88px;
  height: 28px;
  margin: 0 auto;
  background: linear-gradient(180deg, #334155, #1e293b);
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
}

.tv-mockup__stand {
  width: 220px;
  height: 12px;
  margin: 0 auto;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, #475569, #1e293b);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}

.tv-mockup__float {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(8px);
}

.tv-mockup__float--promo {
  right: -18px;
  top: 56px;
}

.tv-mockup__float-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #ef4444;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.35);
}

.tv-mockup__float strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.tv-mockup__float em {
  display: block;
  font-size: 0.75rem;
  font-style: normal;
  color: var(--text-muted);
  font-weight: 600;
}

/* Device frames (legacy) */
.device-frame {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.device-frame--tv {
  max-width: 400px;
  margin: 0 auto;
}

.device-frame--tv .device-frame__screen {
  background: var(--bg-dark);
  aspect-ratio: 16/9;
  padding: 0;
  line-height: 0;
}

.device-frame--tv .device-frame__screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Platform cards */
.platform-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.platform-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow);
}

.platform-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.platform-card p {
  margin: 0 0 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.link-arrow {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Zones */
.zone-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 88px;
  justify-content: center;
  align-items: stretch;
  overflow: visible;
}

.zone-network-lines {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.zone-network-path {
  fill: none;
  stroke: url("#zone-network-gradient");
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 9 9;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.36));
  animation: zone-network-flow 2.2s linear infinite;
}

.zone-network-path:nth-of-type(2) { animation-delay: -0.35s; }
.zone-network-path:nth-of-type(3) { animation-delay: -0.7s; }
.zone-network-path:nth-of-type(4) { animation-delay: -1.05s; }

.zone-network-path--trunk {
  stroke-width: 3;
  stroke-dasharray: 7 7;
}

.zone-network-junction {
  fill: #fff;
  stroke: var(--primary);
  stroke-width: 4;
  vector-effect: non-scaling-stroke;
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 0 7px rgba(59, 130, 246, 0.65));
  animation: zone-network-pulse 1.8s ease-in-out infinite;
}

.zone-network-signal {
  fill: #3b82f6;
  stroke: #fff;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 7px rgba(59, 130, 246, 0.8));
}

.zone-pill {
  position: relative;
  z-index: 2;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 0;
  min-height: 136px;
  align-items: flex-start;
}

.zone-row > .zone-pill:not(.zone-pill--accent) {
  grid-row: 1;
}

@keyframes zone-network-flow {
  to { stroke-dashoffset: -36; }
}

@keyframes zone-network-pulse {
  0%,
  100% { transform: scale(0.82); opacity: 0.72; }
  50% { transform: scale(1.18); opacity: 1; }
}

@keyframes zone-mobile-flow {
  from { background-position: 0 200%; }
  to { background-position: 0 -20%; }
}

.zone-pill strong { font-size: 0.95rem; }
.zone-pill span { font-size: 0.8rem; color: var(--text-muted); }

.zone-pill--accent {
  grid-column: 2 / span 2;
  grid-row: 2;
  justify-self: center;
  width: min(100%, 300px);
  background: var(--primary-light);
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow:
    0 12px 28px rgba(59, 130, 246, 0.12),
    0 0 0 1px rgba(59, 130, 246, 0.06);
}

@media (prefers-reduced-motion: reduce) {
  .zone-network-path,
  .zone-network-junction {
    animation: none;
  }

  .zone-network-path {
    stroke-dasharray: none;
  }

  .zone-network-signal {
    display: none;
  }

  .zone-row::before {
    animation: none !important;
  }
}

/* Compare table */
.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.92rem;
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  background: var(--bg-gray);
  font-weight: 700;
}

.compare-table td.bad { color: var(--danger); }
.compare-table td.good { color: var(--success); font-weight: 600; }

.compare-table tr:last-child td { border-bottom: none; }

/* FAQ */
.faq { display: grid; gap: 10px; }

.faq__item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.faq__item summary {
  padding: 18px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Download */
.download-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.download-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow);
}

.download-box h3 { margin: 0 0 8px; }
.download-box p { margin: 0 0 20px; color: var(--text-muted); font-size: 0.9rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2 {
  margin: 8px 0 12px;
  font-size: 1.75rem;
  font-weight: 800;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.contact-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff !important;
  text-decoration: none;
}

.contact-link:hover {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.contact-link span { font-size: 0.78rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.05em; }
.contact-link strong { font-size: 1.05rem; }

.contact-phone-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: 4px;
}

.contact-phone-list a {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
}

.contact-phone-list a:hover {
  color: #bfdbfe;
  text-decoration: underline;
}

.contact-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form label span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.contact-form input {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: 0.95rem;
}

.contact-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.contact-form__note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: #94a3b8;
  padding: 48px 0 24px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__wordmark {
  margin-bottom: 10px;
}

.footer__brand p {
  margin: 0 0 16px;
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 320px;
}

.footer__phone {
  color: #fff !important;
  font-weight: 600;
  font-size: 1.1rem;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-content: start;
}

.footer__nav a {
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 500;
}

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

.footer__copy {
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
}

.footer__copy a { color: #94a3b8; }

/* Responsive */
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(3, 1fr); }

  .benefits {
    display: flex;
    gap: 16px;
    padding-bottom: 12px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .benefit-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
  }
}

@media (max-width: 900px) {
  .hero__grid,
  .split-block,
  .contact-grid,
  .footer__inner {
    grid-template-columns: 1fr;
  }

  .split-block--reverse .split-block__text,
  .split-block--reverse .split-block__visual { order: unset; }

  .ai-results__gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto auto auto;
  }

  .ai-results__card--source {
    grid-column: 1 / -1;
    max-width: 220px;
    margin: 0 auto;
  }

  .ai-results__engine {
    grid-column: 1 / -1;
  }

  .hero__visual { order: -1; }

  .hero-mockup {
    max-width: 100%;
    margin: 0 auto;
    transform: none;
  }

  .hero-mockup__float--online {
    left: 12px;
    bottom: 16px;
  }

  .tv-mockup {
    max-width: 100%;
    transform: none;
  }

  .tv-mockup__float--promo {
    right: 12px;
    top: 12px;
  }

  .platform-cards,
  .download-row {
    grid-template-columns: 1fr;
  }

  .zone-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 42px;
    padding: 0;
    overflow: visible;
  }

  .zone-row::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 68px;
    bottom: 68px;
    left: calc(50% - 1px);
    width: 2px;
    background: linear-gradient(
      180deg,
      rgba(59, 130, 246, 0.18),
      rgba(59, 130, 246, 0.95),
      rgba(16, 185, 129, 0.8),
      rgba(59, 130, 246, 0.18)
    );
    background-size: 100% 220%;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.28);
    animation: zone-mobile-flow 2.2s linear infinite;
  }

  .zone-network-lines {
    display: none;
  }

  .zone-pill {
    flex: none;
    width: min(100%, 320px);
    min-width: 0;
    min-height: 126px;
  }

  .zone-pill--accent {
    width: min(100%, 340px);
  }

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

@media (max-width: 768px) {
  .burger { display: flex; }

  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 24px 24px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav--open { display: flex; }

  .nav a:not(.btn) {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav .btn { margin-top: 12px; }

  .nav .btn-lang {
    margin-top: 8px;
    align-self: flex-start;
  }

  .header__inner { position: relative; }

  .hero { padding: 40px 0 56px; }

  .hero__actions .btn { width: 100%; }

  .section { padding: 56px 0; }

  .ai-results {
    padding: 20px;
  }

  .ai-results__gallery {
    grid-template-columns: 1fr;
  }

  .ai-results__card--source {
    max-width: none;
  }

  .ai-results__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .ai-results__footer .btn { width: 100%; }

  .contact-phone-list {
    grid-template-columns: 1fr;
    gap: 5px;
  }

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