/* ============================================================
   Egaxo — Лендинг (стиль Opera GX)
   ============================================================ */

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

/* ---------- Header (floating glass pill) ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-top: 14px;
  transition: padding-top 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 22px;
  background: var(--glass-panel);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 40px -24px rgba(0, 0, 0, 0.9);
  transition: background 0.3s ease;
}

.site-header.scrolled .header-inner {
  background: rgba(11, 12, 17, 0.72);
}

.logo {
  font-size: 22px;
}

.nav-desktop {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}

.nav-desktop a {
  color: var(--text-soft);
}

.nav-desktop a:hover {
  color: var(--text);
}

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

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

.burger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: rgba(11, 11, 14, 0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  gap: 6px;
  padding: 18px 24px 26px;
  display: none;
}

.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 10px 0; color: var(--text-soft); font-weight: 500; }
.mobile-menu .btn { margin-top: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 72px) 0 80px;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.glow { position: absolute; border-radius: 50%; filter: blur(120px); }

.glow-1 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, var(--red-glow), transparent 70%);
  top: -140px; left: 50%; transform: translateX(-50%); opacity: 0.55;
}

.glow-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255, 45, 111, 0.25), transparent 70%);
  bottom: -80px; right: -80px; opacity: 0.5;
}

.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%);
  opacity: 0.6;
}

.scanlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(255, 255, 255, 0.015) 3px
  );
  mask-image: radial-gradient(ellipse 80% 60% at 50% 25%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 25%, #000 20%, transparent 80%);
}

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
}
.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-inner {
  position: relative; z-index: 1; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}

/* Hero visual: орбита + плавающие карточки */
.hero-visual { position: relative; height: 440px; }
.orbit {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.orbit-ring {
  position: absolute; border-radius: 50%; border: 1px solid var(--border-red);
}
.orbit-ring.r1 { width: 300px; height: 300px; box-shadow: 0 0 60px -10px var(--red-glow) inset; animation: spin 22s linear infinite; }
.orbit-ring.r2 { width: 220px; height: 220px; border-style: dashed; border-color: rgba(255,45,111,0.35); animation: spin 16s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit-core {
  width: 128px; height: 128px; border-radius: 30px;
  background: radial-gradient(circle at 30% 25%, #1c1c24, #0d0d12);
  border: 1px solid var(--border-red);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 60px -6px var(--red-glow), inset 0 0 30px -10px var(--red-glow);
  animation: floaty 5s ease-in-out infinite;
}
.core-mark {
  width: 62px; height: 62px;
  background: url('/favicon.svg') center / contain no-repeat;
  filter: drop-shadow(0 0 12px var(--red-glow));
}
.orbit-dot { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 14px var(--red); }
.orbit-dot.d1 { top: 60px; animation: spin 22s linear infinite; transform-origin: 6px 160px; }
.orbit-dot.d2 { bottom: 68px; background: var(--magenta); box-shadow: 0 0 14px var(--magenta); animation: spin 16s linear infinite reverse; transform-origin: 6px -152px; }

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

.float-card {
  position: absolute; background: rgba(20,20,28,0.72); backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px;
  box-shadow: var(--shadow-soft); animation: floaty 6s ease-in-out infinite;
}
.fc-code { top: 30px; right: -6px; width: 210px; animation-delay: -1s; }
.fc-head { font-family: var(--mono); font-size: 12px; color: var(--text-soft); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.fc-ico { color: var(--red); font-weight: 700; }
.fc-line { height: 8px; border-radius: 3px; background: var(--bg-elev); margin-bottom: 7px; }
.fc-line.w70 { width: 70%; } .fc-line.w90 { width: 90%; } .fc-line.w50 { width: 50%; }
.fc-chat { bottom: 34px; left: -10px; width: 240px; animation-delay: -3s; }
.fc-msg { font-size: 13px; color: var(--text); background: var(--bg-elev); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.fc-typing { display: flex; gap: 5px; padding-left: 4px; }
.fc-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: blink 1.2s infinite; }
.fc-typing i:nth-child(2) { animation-delay: 0.2s; } .fc-typing i:nth-child(3) { animation-delay: 0.4s; }

.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 10px var(--red);
  animation: pulse 2s infinite;
}

.eyebrow { margin-bottom: 24px; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero-title {
  margin-bottom: 22px;
  text-transform: uppercase;
  text-align: center;
}
.ht-main {
  display: block;
  font-size: clamp(4.5rem, 15vw, 10rem);
  font-weight: 900;
  color: #fff;
  line-height: 0.92;
  letter-spacing: -0.04em;
}
.ht-sub {
  display: block;
  font-size: clamp(1.5rem, 4.4vw, 3.1rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-top: 6px;
}

.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--text-soft);
  max-width: 640px; margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 16px; }

.hero-note { font-size: 14px; color: var(--text-mut); display: inline-flex; align-items: center; gap: 8px; }
.hero-note span { color: var(--red); }

/* Hero demo window (GX) */
.hero-demo { margin-top: 58px; width: 100%; max-width: 880px; perspective: 1600px; }

.gx-window {
  background: var(--bg-elev);
  border: 1px solid var(--border-red);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft), 0 0 60px -20px var(--red-glow);
  transform: rotateX(5deg);
  transform-origin: center top;
}

.demo-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 18px; background: var(--bg-soft); border-bottom: 1px solid var(--border);
}

.demo-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: #ff5f56; } .dot.yellow { background: #ffbd2e; } .dot.green { background: #27c93f; }
.demo-url { margin-left: 14px; font-size: 13px; color: var(--text-mut); font-family: var(--mono); }

.demo-body { display: grid; grid-template-columns: 1fr 1fr; min-height: 260px; }

.demo-prompt {
  padding: 26px 22px; border-right: 1px solid var(--border);
  font-family: var(--mono); font-size: 14px; color: var(--text-soft);
  display: flex; gap: 8px; align-items: flex-start;
}
.demo-caret { color: var(--red); font-weight: 700; }
.demo-cursor { color: var(--red); animation: blink 1s steps(2) infinite; }
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

.demo-output { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.demo-skeleton {
  height: 10px; border-radius: 4px;
  background: linear-gradient(90deg, var(--bg-card), rgba(255, 31, 61, 0.14), var(--bg-card));
  background-size: 200% 100%; animation: shimmer 1.8s infinite;
}
.line-1 { width: 70%; } .line-2 { width: 90%; } .line-3 { width: 55%; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.demo-preview { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.dp-hero { height: 46px; border-radius: 4px; background: var(--grad-red); opacity: 0.9; }
.dp-row { display: flex; gap: 8px; }
.dp-card { flex: 1; height: 42px; border-radius: 4px; background: var(--bg-card); border: 1px solid var(--border); }

/* ---------- Stats bar ---------- */
.stats-bar { position: relative; z-index: 3; margin-top: -46px; padding-bottom: 10px; }
.stats-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--glass-panel);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), var(--shadow-soft);
  overflow: hidden;
}
.stat { padding: 26px 16px; text-align: center; border-right: 1px solid var(--glass-border); }
.stat:last-child { border-right: none; }
.stat b { display: block; font-size: 2rem; font-weight: 900; line-height: 1; }
.stat span { font-size: 0.85rem; color: var(--text-mut); margin-top: 6px; display: block; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }

/* ---------- Blocks (alternating) ---------- */
.block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center;
  margin-bottom: 70px;
}
.block:last-child { margin-bottom: 0; }
.block.reverse .block-text { order: 2; }

.block-text .eyebrow { margin-bottom: 14px; }
.block-text h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 14px; }
.block-text p { color: var(--text-soft); font-size: 1.05rem; margin-bottom: 20px; }

.block-list { display: flex; flex-direction: column; gap: 10px; }
.block-list li { display: flex; align-items: center; gap: 10px; color: var(--text-soft); }

.block-visual { padding: 30px; min-height: 260px; display: flex; align-items: center; justify-content: center; }
.bv-inner { width: 100%; display: flex; flex-direction: column; gap: 14px; }
.bv-line { height: 14px; border-radius: 4px; background: var(--bg-elev); border: 1px solid var(--border); }
.bv-line.short { width: 60%; }
.bv-block { height: 70px; border-radius: 6px; background: var(--grad-red); opacity: 0.85; box-shadow: var(--glow-red); }
.bv-row { display: flex; gap: 12px; }
.bv-row span { flex: 1; height: 50px; border-radius: 6px; background: var(--bg-elev); border: 1px solid var(--border); }

.check { color: var(--red); font-weight: 800; flex-shrink: 0; }

/* ---------- Steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card { padding: 32px 28px; }
.step-num {
  font-size: 3rem; font-weight: 900; line-height: 1; margin-bottom: 16px;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.step-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step-card p { color: var(--text-soft); font-size: 0.95rem; }

/* ---------- Features grid ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { padding: 28px; }
.feature-icon { font-size: 28px; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-soft); font-size: 0.95rem; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 32px 28px; }
.price-card.featured {
  border-color: var(--red);
  background: linear-gradient(180deg, rgba(255, 31, 61, 0.08), var(--bg-card));
  box-shadow: 0 30px 70px -30px var(--red-glow);
}
.price-ribbon {
  position: absolute; top: 16px; right: 16px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; color: #fff; background: var(--grad-red);
  padding: 5px 12px; border-radius: 4px;
}
.price-head h3 { font-size: 1.4rem; margin-bottom: 6px; }
.price-desc { color: var(--text-mut); font-size: 0.9rem; min-height: 40px; }
.price-value { margin: 18px 0 6px; display: flex; align-items: baseline; gap: 6px; }
.price-num { font-size: 2.1rem; font-weight: 900; }
.price-period { color: var(--text-mut); font-size: 0.95rem; }
.price-limit {
  display: inline-block; font-size: 0.82rem; font-weight: 600; color: var(--red);
  background: rgba(255, 31, 61, 0.1); padding: 5px 12px; border-radius: 4px; margin-bottom: 22px; width: fit-content;
}
.price-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; flex: 1; }
.price-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.94rem; color: var(--text-soft); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 4px 20px; transition: border-color 0.2s ease;
}
.faq-item[open] { border-color: var(--border-red); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { color: var(--red); font-size: 1.4rem; font-weight: 400; transition: transform 0.25s ease; flex-shrink: 0; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 0 20px; color: var(--text-soft); }

/* ---------- CTA ---------- */
.cta-section { padding-bottom: 110px; }
.cta-box {
  position: relative; text-align: center; padding: 64px 32px; border-radius: var(--radius-lg);
  border: 1px solid var(--border-red); background: linear-gradient(180deg, var(--bg-elev), var(--bg-soft)); overflow: hidden;
}
.cta-glow {
  position: absolute; width: 420px; height: 420px;
  background: radial-gradient(circle, var(--red-glow), transparent 70%); filter: blur(90px);
  top: -190px; left: 50%; transform: translateX(-50%); pointer-events: none;
}
.cta-box h2 { position: relative; font-size: clamp(1.7rem, 4vw, 2.6rem); margin-bottom: 14px; }
.cta-box p { position: relative; color: var(--text-soft); margin-bottom: 28px; font-size: 1.05rem; }
.cta-box .btn { position: relative; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding-top: 56px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; padding-bottom: 40px; }
.footer-brand p { color: var(--text-mut); font-size: 0.95rem; margin-top: 12px; max-width: 280px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-mut); font-size: 0.92rem; padding: 5px 0; }
.footer-col a:hover { color: var(--red); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; padding: 22px 24px;
  border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--text-mut);
}
.footer-powered { color: var(--text-soft); font-family: var(--mono); font-size: 0.8rem; }
.footer-bottom-right { display: flex; align-items: center; gap: 20px; }
.footer-bottom-right a { color: var(--text-mut); }
.footer-bottom-right a:hover { color: var(--red); }

/* ---------- Mini browser (в блоках) ---------- */
.block-visual { padding: 20px; }
.mini-browser {
  width: 100%; background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.mb-bar {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  background: var(--bg-soft); border-bottom: 1px solid var(--border);
}
.mb-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f56; }
.mb-bar i:nth-child(2) { background: #ffbd2e; } .mb-bar i:nth-child(3) { background: #27c93f; }
.mb-bar span { margin-left: 10px; font-family: var(--mono); font-size: 11px; color: var(--text-mut); }
.mb-body { padding: 22px; }
.mb-hero { height: 60px; border-radius: 6px; background: var(--grad-red); opacity: 0.9; margin-bottom: 16px; box-shadow: var(--glow-red); }
.mb-line { height: 12px; border-radius: 4px; background: var(--bg-card); border: 1px solid var(--border); margin-bottom: 10px; }
.mb-line.short { width: 55%; }
.mb-row { display: flex; gap: 12px; margin-top: 16px; }
.mb-row span { flex: 1; height: 46px; border-radius: 6px; background: var(--bg-card); border: 1px solid var(--border); }

/* ---------- Showcase (реальные примеры в живом iframe) ---------- */
.showcase { max-width: 920px; margin: 0 auto; }
.showcase-window { transform: none; }
.live-badge {
  margin-left: auto; font-family: var(--mono); font-size: 11px; font-weight: 700;
  color: #4fd463; letter-spacing: 0.1em;
}
.live-badge::first-letter { color: #4fd463; }
.showcase-frame-wrap {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0c0c10;
}
.showcase-frame {
  position: absolute; top: 0; left: 0; border: 0;
  max-width: none; /* фрейму нужна фикс. ширина 1280px (перебиваем глобальный max-width:100%) */
  transform-origin: top left; transition: opacity 0.25s ease; background: #fff;
}
.showcase-frame.fading { opacity: 0; }

.showcase-tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.sc-tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px;
  color: var(--text-soft); font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s ease;
}
.sc-tab:hover { color: var(--text); }
.sc-tab.active { border-color: var(--red); color: var(--text); background: rgba(255,31,61,0.08); }
.sc-dot { width: 8px; height: 8px; border-radius: 50%; }

/* Подсказка для мобильных — на десктопе скрыта */
.showcase-note {
  display: none;
  margin-top: 16px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-mut);
}

/* ---------- Legal page ---------- */
.legal-page { padding: calc(var(--header-h) + 60px) 0 90px; }
.legal-page .eyebrow { margin-bottom: 14px; }
.legal-page h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 10px; }
.legal-updated { color: var(--text-mut); font-family: var(--mono); font-size: 0.85rem; margin-bottom: 36px; }
.legal-body { margin-bottom: 36px; }
.legal-body h2 { font-size: 1.25rem; margin: 30px 0 12px; }
.legal-body p, .legal-body li { color: var(--text-soft); }
.legal-body ul { padding-left: 20px; margin: 10px 0; }
.legal-body li { margin-bottom: 8px; list-style: disc; }
.legal-body a { color: var(--red); }

/* ---------- Auth ---------- */
.auth-page {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 100px 20px 60px; overflow: hidden;
}
.auth-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.auth-bg .glow-1 { top: -140px; }
.auth-card {
  position: relative; z-index: 1; width: 100%; max-width: 420px; background: var(--bg-card);
  border: 1px solid var(--border-red); border-radius: var(--radius); padding: 38px 34px;
  backdrop-filter: blur(14px); box-shadow: var(--shadow-soft), 0 0 50px -25px var(--red-glow);
}
.auth-logo { display: inline-block; margin-bottom: 22px; font-size: 24px; }
.auth-card h1 { font-size: 1.7rem; margin-bottom: 8px; }
.auth-sub { color: var(--text-soft); font-size: 0.95rem; margin-bottom: 24px; }
.auth-form { margin-bottom: 18px; }
.auth-form .btn { margin-top: 6px; }
.auth-alt { text-align: center; font-size: 0.92rem; color: var(--text-soft); }
.auth-alt a { color: var(--red); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { align-items: center; text-align: center; }
  .hero-visual { display: none; }
}

@media (max-width: 900px) {
  .features-grid, .steps-grid, .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .block { grid-template-columns: 1fr; gap: 26px; }
  .block.reverse .block-text { order: 0; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-desktop, .header-actions { display: none; }
  .burger { display: flex; }
  .demo-body { grid-template-columns: 1fr; }
  .demo-prompt { border-right: none; border-bottom: 1px solid var(--border); }
  .gx-window { transform: none; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .section { padding: 62px 0; }
  .section-head { margin-bottom: 38px; }
}

/* Телефоны */
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .section { padding: 50px 0; }
  .hero { padding-top: calc(var(--header-h) + 30px); }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 14px; }
  .stat { border-right: none !important; padding: 8px 0; }
  .footer-cols { grid-template-columns: 1fr; }
  .btn-lg { padding: 14px 24px; }
}

/* Крупные экраны — чуть просторнее (премиальнее) */
@media (min-width: 1400px) {
  :root { --container: 1240px; }
}

/* Кнопка-ссылка (например «Отправить код ещё раз») */
.link-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--red); font: inherit; font-weight: 600; text-decoration: underline;
}
.link-btn:hover { opacity: 0.85; }

/* ============================================================
   Хиро-визуал: ноутбук с нашим окном генерации на экране
   ============================================================ */
.hero-visual { height: auto; display: flex; align-items: center; justify-content: center; }

.laptop { position: relative; width: 100%; max-width: 560px; }
.laptop::after { /* мягкая тень-отражение под ноутбуком */
  content: ''; position: absolute; left: 8%; right: 8%; bottom: -26px; height: 60px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.55), transparent 70%);
  filter: blur(6px); z-index: -1;
}

.laptop-lid {
  position: relative;
  padding: 12px 12px 14px;
  background: linear-gradient(160deg, #26272e, #16171c);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px 16px 8px 8px;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.06);
}
.laptop-cam { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: #0a0a0d; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }

.laptop-screen {
  aspect-ratio: 16 / 10;
  border-radius: 7px;
  overflow: hidden;
  background: #0b0b10;
  border: 1px solid rgba(255,255,255,.05);
}

.laptop-base {
  position: relative;
  width: 118%; margin-left: -9%;
  height: 16px;
  background: linear-gradient(180deg, #3a3b43 0%, #202127 55%, #141419 100%);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 18px 30px -18px rgba(0,0,0,.8);
}
.laptop-notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 90px; height: 6px; background: #101015;
  border-radius: 0 0 8px 8px;
}

/* --- Окно генерации на экране --- */
.gen-mock { height: 100%; display: flex; flex-direction: column; background: #0b0c11; color: var(--text); }
.gm-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.02); }
.gm-dots { display: inline-flex; gap: 5px; }
.gm-dots i { width: 8px; height: 8px; border-radius: 50%; background: #33343c; }
.gm-dots i:first-child { background: #ff5f57; } .gm-dots i:nth-child(2){ background:#febc2e; } .gm-dots i:nth-child(3){ background:#28c840; }
.gm-url { font-family: var(--mono); font-size: 11px; color: var(--text-mut); }

.gm-body { flex: 1; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.gm-prompt {
  font-size: 13px; color: var(--text-soft); line-height: 1.4;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 10px; padding: 10px 12px;
}
.gm-status { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #ff8a97; font-weight: 600; }
.gm-orb { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 var(--red-glow); animation: gmPulse 1.4s ease-out infinite; }
@keyframes gmPulse { 0%{box-shadow:0 0 0 0 rgba(255,39,64,.55)} 100%{box-shadow:0 0 0 10px rgba(255,39,64,0)} }

.gm-progress { position: relative; height: 6px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.gm-progress span { position: absolute; top: 0; left: 0; height: 100%; width: 34%; border-radius: 999px; background: var(--grad-red); box-shadow: 0 0 12px var(--red-glow); animation: gmBar 1.5s cubic-bezier(.5,.15,.3,.9) infinite; }
@keyframes gmBar { 0%{transform:translateX(-110%)} 100%{transform:translateX(330%)} }

.gm-skel { display: flex; flex-direction: column; gap: 9px; margin-top: 2px; }
.gm-skel > * { position: relative; overflow: hidden; background: rgba(255,255,255,.045); border-radius: 8px; }
.gm-skel > *::after { content:''; position:absolute; inset:0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent); animation: gmShine 1.6s infinite; }
@keyframes gmShine { 100%{ transform: translateX(100%);} }
.gm-hero { height: 46px; background: linear-gradient(120deg, rgba(255,39,64,.22), rgba(255,58,107,.10)) !important; }
.gm-line { height: 8px; } .gm-line.l1 { width: 80%; } .gm-line.l2 { width: 60%; }
.gm-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; background: transparent !important; overflow: visible !important; }
.gm-cards::after { display: none; }
.gm-cards > div { height: 40px; background: rgba(255,255,255,.045); border-radius: 8px; position: relative; overflow: hidden; }
.gm-cards > div::after { content:''; position:absolute; inset:0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent); animation: gmShine 1.6s infinite; }

/* ============================================================
   МОБИЛЬНАЯ АДАПТАЦИЯ — финальный блок (побеждает по порядку в каскаде)
   ============================================================ */
@media (max-width: 940px) {
  /* Ноутбук-мокап прячем на планшетах/телефонах (перебиваем display:flex выше) */
  .hero-visual { display: none !important; }
  .hero-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  /* Заголовок hero — чуть компактнее, но всё ещё крупный */
  .ht-main { font-size: clamp(3.4rem, 17vw, 6rem); }
  .ht-sub { font-size: clamp(1.1rem, 5vw, 1.8rem); }
  /* Превью и на телефоне — тот же кадр 16:9 (aspect-ratio уже задан глобально) */
  .showcase-note { display: block; }
  /* URL в шапке мока не переносим — обрезаем с многоточием */
  .demo-bar { flex-wrap: nowrap; padding: 11px 14px; }
  .demo-url { margin-left: 10px; flex: 1 1 auto; min-width: 0; font-size: 12px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .live-badge { white-space: nowrap; flex-shrink: 0; }
  /* Табы примеров — горизонтальная прокрутка вместо переноса в столбик */
  .showcase-tabs {
    flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px;
  }
  .showcase-tabs::-webkit-scrollbar { display: none; }
  .sc-tab { flex: 0 0 auto; }
  /* Футер: нижняя строка в столбик, ссылки переносятся аккуратно */
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px 4px; }
  .footer-bottom-right { flex-wrap: wrap; gap: 12px 18px; }
}

/* Телефоны */
@media (max-width: 560px) {
  /* Декоративные подсветки могут давать горизонтальный скролл — гасим */
  .glow-2 { display: none; }
  .ht-main { font-size: clamp(3rem, 19vw, 5rem); letter-spacing: -0.03em; }
  .legal-page { padding: calc(var(--header-h) + 34px) 0 64px; }
  .legal-body h2 { font-size: 1.12rem; }
  .auth-card { padding: 30px 22px; }
  /* Комфортные тапы */
  .sc-tab { padding: 8px 14px; }
}

/* Совсем узкие экраны */
@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .ht-main { font-size: clamp(2.6rem, 18vw, 4rem); }
  .eyebrow { font-size: 11px; letter-spacing: 0.12em; }
}
