/* Шрифты подключены через <link> в <head> каждой страницы (быстрее, чем @import) */

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { min-height: 100%; background-color: #0A0A0A; }

:root {
  --bg: #0A0A0A;
  --bg-card: #111111;
  --line: #1F1F1F;
  --text: #FAFAFA;
  --text-2: #999;
  --text-3: #666;
  --text-4: #444;
  --accent: #DC2626;
  --accent-bright: #FF5050;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
}

html { scroll-behavior: smooth; background: var(--bg); }

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  background-color: #0A0A0A;
  background-image: 
    radial-gradient(ellipse at 50% 0%, rgba(220, 38, 38, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(220, 38, 38, 0.03) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* === FIXED GRID BG === */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(220, 38, 38, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 38, 38, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* === GLOBAL HELPERS === */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

.mono { font-family: var(--font-mono); }

.label-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@keyframes blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent); }
  50% { opacity: 0.3; box-shadow: 0 0 0 var(--accent); }
}

/* === ANDROIDS COMMON === */
.android {
  position: relative;
  display: inline-block;
}
.android img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 2;
}
.android.v1 img {
  -webkit-mask-image: linear-gradient(to top, transparent 0%, transparent 14%, black 22%, black 100%);
          mask-image: linear-gradient(to top, transparent 0%, transparent 14%, black 22%, black 100%);
}
.android.v2 img {
  -webkit-mask-image: linear-gradient(to top, transparent 0%, transparent 12%, black 20%, black 100%);
          mask-image: linear-gradient(to top, transparent 0%, transparent 12%, black 20%, black 100%);
}
.android.v3 img {
  -webkit-mask-image: linear-gradient(to top, transparent 0%, transparent 22%, black 30%, black 100%);
          mask-image: linear-gradient(to top, transparent 0%, transparent 22%, black 30%, black 100%);
}
.android::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
  animation: glow-pulse 4s ease-in-out infinite;
  filter: blur(3px);
}
.android.v1::after {
  bottom: 30px; width: 80%; height: 50px;
  background: radial-gradient(ellipse at center 40%, rgba(220, 38, 38, 0.45) 0%, rgba(220, 38, 38, 0.15) 40%, transparent 70%);
}
.android.v2::after {
  bottom: 25px; width: 110%; height: 70px;
  background: radial-gradient(ellipse at center 30%, rgba(220, 38, 38, 0.5) 0%, rgba(220, 38, 38, 0.18) 35%, transparent 70%);
}
.android.v3::after {
  bottom: 35px; width: 130%; height: 80px;
  background: radial-gradient(ellipse at center 30%, rgba(220, 38, 38, 0.55) 0%, rgba(220, 38, 38, 0.2) 35%, transparent 70%);
}

/* === HERO === */
.hero {
  min-height: 100vh;
  padding: 32px 0 64px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.05em;
  margin-bottom: 64px;
}
.brand {
  border-left: 2px solid var(--accent);
  padding-left: 12px;
  line-height: 1.5;
}
.brand-name { color: var(--text); font-weight: 600; }
.signal {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}
.dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 1.5s infinite;
}

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

.hero-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}
.hero h1 .accent { color: var(--accent); }
.hero-sub {
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 300;
  color: var(--text-2);
  max-width: 540px;
  line-height: 1.55;
  margin-bottom: 16px;
}
.hero-sub strong { color: var(--text); font-weight: 500; }
.hero-not-prog {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  letter-spacing: 0.02em;
  border-left: 2px solid var(--accent);
  padding: 6px 0 6px 14px;
  margin-bottom: 40px;
  max-width: 480px;
  line-height: 1.5;
}
.hero-cta-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-bottom: 56px;
}

.btn {
  background: var(--accent);
  color: white;
  padding: 18px 36px;
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: var(--font-mono);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.btn:hover {
  background: var(--text);
  color: var(--bg);
}
.btn-large {
  padding: 22px 52px;
  font-size: 14px;
  box-shadow: 0 0 50px rgba(220, 38, 38, 0.35);
}
.btn-large:hover { box-shadow: 0 0 50px rgba(255, 255, 255, 0.2); }

.cta-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.05em;
}
.cta-meta .accent { color: var(--accent); margin: 0 4px; }

.architecture {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.9;
  border-left: 2px solid var(--line);
  padding-left: 16px;
  max-width: 540px;
}
.architecture .arrow { color: var(--accent); }
.architecture .label { color: var(--text); }

/* Лента задач: «> система собирает: …» — печатающийся тикер в hero */
.hero-ticker {
  max-width: 540px;
  margin: 10px 0 24px;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 8px;
  background: rgba(220, 38, 38, 0.05);
  min-height: calc(1.6em + 26px);
}
.hero-ticker__prompt { color: var(--accent); font-weight: 700; margin-right: 8px; }
.hero-ticker__lead { color: var(--text-3); margin-right: 6px; }
.hero-ticker__task { color: var(--text); font-weight: 600; }
.hero-ticker__cursor {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  margin-left: 1px;
  transform: translateY(2px);
  background: var(--accent);
  animation: ticker-blink 1s steps(1, end) infinite;
}
@keyframes ticker-blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero-ticker__cursor { animation: none; opacity: 1; }
}
/* На узких экранах строка переносится — резервируем высоту под 2 строки, чтобы блок не «прыгал» при смене задач */
@media (max-width: 600px) {
  .hero-ticker { min-height: calc(3.2em + 26px); }
}

.hero-android {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

/* === SECTIONS === */
section.block {
  padding: 96px 0;
  position: relative;
  z-index: 1;
}
section.block-divided {
  border-top: 1px solid var(--line);
}

.block-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.block-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  max-width: 880px;
}
.block-title .accent { color: var(--accent); }
.block-sub {
  font-size: clamp(16px, 1.6vw, 18px);
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 720px;
  margin-bottom: 56px;
}
.block-sub strong { color: var(--text); font-weight: 500; }

/* === VIDEO DEMO (Kinescope, ленивый facade + фирменная обложка) === */
.video-demo__heading {
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 4px 0 22px;
  color: var(--text);
}
.video-demo__heading .accent { color: var(--accent); }
.video-demo { max-width: 940px; margin: 0 auto 40px; }
.video-demo__facade {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
/* фирменная обложка (в стиле лендинга, без внешней картинки) */
.vcover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(16px, 3vw, 32px);
  background:
    radial-gradient(circle at 82% 24%, rgba(220,38,38,.20), transparent 46%),
    linear-gradient(135deg, #141414 0%, #0A0A0A 72%);
  transition: transform 0.5s ease;
}
.vcover__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 50% 44%, #000 48%, transparent 100%);
  mask-image: radial-gradient(circle at 50% 44%, #000 48%, transparent 100%);
  pointer-events: none;
}
.vcover__top {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: clamp(9px, 1vw, 12px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.vcover__tag { color: var(--accent); }
.vcover__brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text-3); white-space: nowrap; }
.vcover__bar { width: 3px; height: 13px; background: var(--accent); display: inline-block; font-style: normal; }
.vcover__foot { position: relative; display: flex; flex-direction: column; gap: clamp(8px, 1.4vw, 14px); }
.vcover__title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(26px, 5.2vw, 62px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--text);
}
.vcover__title .accent { color: var(--accent); }
.vcover__flow {
  font-family: var(--font-mono);
  font-size: clamp(9px, 1.15vw, 13px);
  letter-spacing: 0.04em;
  color: var(--text-2);
}
.video-demo__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(56px, 7vw, 84px);
  height: clamp(56px, 7vw, 84px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 44px rgba(220,38,38,.55);
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 2;
}
.video-demo__play svg { width: 42%; height: 42%; margin-left: 6%; }
.video-demo__facade:hover .vcover,
.video-demo__facade:focus-visible .vcover { transform: scale(1.02); }
.video-demo__facade:hover .video-demo__play,
.video-demo__facade:focus-visible .video-demo__play {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--accent-bright);
}
.video-demo__facade:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; }
.video-demo__frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #000;
}
@media (max-width: 600px) {
  .video-demo { margin-bottom: 32px; }
  .vcover__flow { display: none; }
  .vcover__title { font-size: clamp(22px, 7.4vw, 30px); }
  .video-demo__play { width: 48px; height: 48px; top: 44%; }
}

/* === BLOCK 2: WHAT IT IS === */
.manifesto {
  display: grid;
  gap: 24px;
  max-width: 760px;
}
.manifesto p {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--text-2);
  line-height: 1.6;
  font-weight: 300;
}
.manifesto p strong { color: var(--text); font-weight: 500; }

/* === BLOCK 3: 3 CASES === */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case-card {
  border: 1px solid var(--line);
  padding: 32px 28px;
  background: linear-gradient(180deg, transparent 0%, rgba(220, 38, 38, 0.025) 100%);
  display: flex;
  flex-direction: column;
}
.case-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}
.case-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.case-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: 24px;
  flex: 1;
}
.case-flow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.02em;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.case-flow .arrow { color: var(--accent); margin: 0 4px; }

/* === BLOCK 4: PROGRAMME === */
.programme-wrap {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  align-items: end;
}
.weeks {
  display: grid;
  gap: 24px;
}
.week {
  border: 1px solid var(--line);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  align-items: start;
  background: var(--bg-card);
}
.week-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding-top: 4px;
}
.week-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.week-result {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
}
.week-result strong { color: var(--text); font-weight: 500; }
.week-lessons {
  list-style: none;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
}
.week-lessons li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
}
.wl-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  padding-top: 3px;
}
.wl-text {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}
.wl-text strong { color: var(--text); font-weight: 600; }

/* === BLOCK 4.5: HOW IT WORKS === */
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 8px;
}
.how-card {
  border: 1px solid var(--line);
  padding: 32px 24px;
  background: var(--bg-card);
  text-align: center;
}
.how-card-wide { grid-column: 1 / -1; }
.how-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.how-card p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
  font-weight: 300;
}
.how-card p strong { color: var(--text); font-weight: 500; }

/* === BLOCK 5: WHAT SYSTEM CAN === */
.capabilities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.cap-col h3 {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.cap-list {
  list-style: none;
  display: grid;
  gap: 14px;
}
.cap-list li {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}
.cap-list li::before {
  content: '→';
  color: var(--accent);
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  font-weight: 600;
}
.cap-list li strong { color: var(--text); font-weight: 500; }

/* === BLOCK 6: NO PROGRAMMER === */
.big-claim {
  text-align: center;
  padding: 32px 0;
}
.big-claim h2 {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
.big-claim h2 .accent { color: var(--accent); }
.big-claim p {
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto;
}
.big-claim p strong { color: var(--text); font-weight: 500; }

/* === BLOCK 7: WHAT'S NOT IN === */
.not-list {
  list-style: none;
  display: grid;
  gap: 16px;
  max-width: 720px;
}
.not-list li {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text-2);
  padding: 16px 20px;
  border-left: 2px solid var(--text-4);
  background: rgba(31, 31, 31, 0.3);
}
.not-list li::before {
  content: '✕ ';
  color: var(--text-3);
  margin-right: 4px;
}

/* === BLOCK 8: WHO I AM === */
.about-wrap {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  align-items: center;
}
.about-text {
  display: grid;
  gap: 20px;
}
.about-text p {
  font-size: clamp(16px, 1.5vw, 17px);
  color: var(--text-2);
  line-height: 1.65;
  font-weight: 300;
}
.about-text p strong { color: var(--text); font-weight: 500; }

/* === BLOCK 9: PRICE === */
.price-wrap {
  text-align: center;
  padding: 24px 0 0;
}
.price-bracket {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}
.price-row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  font-family: var(--font-mono);
}
.price-current {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.price-old {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--text-3);
  text-decoration: line-through;
  font-weight: 500;
}
.price-deadline {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 40px;
}
/* Пометка «цена для участников практикума» — показывается только практиканту (JS). */
.price-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.04em;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 6px 14px;
  margin-top: 4px;
  margin-bottom: 8px;
}
.price-includes {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: left;
}
.price-includes li {
  font-size: 14px;
  color: var(--text-2);
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
}
.price-includes li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* === BLOCK 10: FAQ === */
.faq-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}
.faq-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
details.faq-item {
  background: var(--bg);
}
details.faq-item summary {
  cursor: pointer;
  padding: 24px 28px;
  font-size: 16px;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background 0.15s;
}
details.faq-item summary:hover {
  background: rgba(220, 38, 38, 0.04);
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: '+';
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.2s;
}
details.faq-item[open] summary::after {
  content: '−';
}
details.faq-item .faq-answer {
  padding: 0 28px 24px;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
}
details.faq-item .faq-answer p { margin-bottom: 12px; }
details.faq-item .faq-answer p:last-child { margin-bottom: 0; }
details.faq-item .faq-answer strong { color: var(--text); font-weight: 500; }

/* === BLOCK 11: FINAL CTA === */
.final {
  padding: 96px 32px 80px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.final .android {
  width: clamp(300px, 34vw, 380px);
  display: block;
  margin: 32px auto 0;
}
.final h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  margin-top: 24px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.final h2 .accent { color: var(--accent); }
.final-sub {
  font-size: 16px;
  color: var(--text-2);
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
  font-weight: 300;
}
.final .price-row { justify-content: center; }
.final .price-deadline { margin-bottom: 32px; }
.final-flow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  margin-top: 18px;
  letter-spacing: 0.05em;
}
.final-flow .step { color: var(--text-2); }
.final-flow .arrow { color: var(--accent); margin: 0 6px; }

/* === FOOTER === */
footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col p, .footer-col a {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.7;
  display: block;
}
.footer-col a:hover { color: var(--text); }
.footer-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-4);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px 24px;
  letter-spacing: 0.05em;
}
.footer-meta .accent { color: var(--accent); }
.footer-flow { justify-self: end; }
.made-by {
  color: var(--accent);
  font-weight: 700;
}
.footer-legal {
  grid-column: 1 / -1;
  max-width: 1080px;
  color: var(--text-4);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.03em;
}
.footer-legal a {
  color: inherit;
}
.footer-legal span {
  color: rgba(255, 255, 255, 0.18);
  margin: 0 4px;
}
.made-by .robot-emoji {
  display: inline-block;
  margin: 0 4px;
}


.photo-circle {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 0 1px #5B1818, 0 0 40px rgba(91, 24, 24, 0.35);
}
.photo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 980px) {
  .photo-circle { max-width: 220px; margin: 0 auto; }
}


/* === STATS BLOCK === */
.stats-block {
  border-top: 1px solid var(--line);
  padding: 96px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  margin-bottom: 56px;
}
.stat {
  padding: 56px 32px;
  text-align: center;
  border-right: 1px solid var(--line);
  position: relative;
  background: linear-gradient(180deg, transparent 0%, rgba(220, 38, 38, 0.03) 100%);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(56px, 9vw, 120px);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}
.stat-num .accent { color: var(--accent); }
.stat-unit {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.stat-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
  font-weight: 300;
}
.stats-cta {
  text-align: center;
}

/* === ARCHITECTURE DIAGRAM BLOCK === */
.arch-block {
  border-top: 1px solid var(--line);
  padding: 96px 0;
}
.arch-diagram {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin: 56px 0;
  position: relative;
}
.arch-node {
  border: 1px solid var(--line);
  padding: 32px 24px;
  background: var(--bg-card);
  position: relative;
  text-align: center;
}
.arch-node + .arch-node {
  margin-left: 0;
}
.arch-node-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.arch-node-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.arch-node-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
  font-weight: 300;
}
.arch-arrow {
  position: absolute;
  top: 50%;
  right: -31px;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  z-index: 1;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 22px;
  text-align: center;
  background: transparent;
  text-shadow: 0 0 14px rgba(220,38,38,.35);
  pointer-events: none;
}
.arch-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-top: none;
}
.arch-detail {
  padding: 20px 24px;
  border-right: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.7;
  letter-spacing: 0.02em;
}
.arch-detail:last-child { border-right: none; }
.arch-detail .accent { color: var(--accent); }

/* === INLINE CTA === */
.inline-cta {
  text-align: center;
  padding-top: 48px;
}

@media (max-width: 980px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; }
  .stat { padding: 40px 24px; }
  .arch-diagram { grid-template-columns: 1fr; gap: 0; }
  .arch-node + .arch-node { margin-left: 0; margin-top: -1px; }
  .arch-arrow { display: none; }
  .arch-bottom { grid-template-columns: 1fr; border-top: 1px solid var(--line); }
  .arch-detail { border-right: none; border-bottom: 1px solid var(--line); }
  .arch-detail:last-child { border-bottom: none; }
}


/* === SCREENSHOT PLACEHOLDER === */
.screenshot {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--bg);
  border: 1px dashed rgba(220, 38, 38, 0.4);
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.screenshot.real {
  border: 1px solid var(--line);
  border-radius: 2px;
}
.screenshot.real::before { display: none; }
.screenshot.real img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.pdf-thumb {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: rgba(31, 31, 31, 0.4);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
  letter-spacing: 0.03em;
}
.pdf-thumb img {
  width: 36px;
  height: 50px;
  object-fit: cover;
  object-position: top;
  display: block;
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: white;
}
.pdf-thumb .arrow {
  color: var(--accent);
  font-weight: 600;
}
.pdf-thumb .pdf-text strong {
  display: block;
  color: var(--text);
  font-size: 12px;
  margin-bottom: 2px;
}
.screenshot::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(220, 38, 38, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 38, 38, 0.06) 1px, transparent 1px);
  background-size: 16px 16px;
}
.screenshot-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.screenshot-name {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
}
/* Когда здесь будет настоящий скриншот — оборачиваем <img> в .screenshot и убираем плейсхолдеры */
.screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 2;
}



/* === CASE SCREENSHOT LIGHTBOX === */
.screenshot.real,
.pdf-thumb {
  cursor: zoom-in;
}
.screenshot.real::after,
.pdf-thumb::after {
  content: 'увеличить';
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  background: rgba(10,10,10,.76);
  border: 1px solid rgba(220,38,38,.35);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 3;
  pointer-events: none;
}
.pdf-thumb { position: relative; }
.screenshot.real:hover::after,
.pdf-thumb:hover::after,
.screenshot.real:focus-visible::after,
.pdf-thumb:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}
.screenshot.real:focus-visible,
.pdf-thumb:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.case-lightbox[hidden] { display: none; }
.case-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(10px);
}
.case-lightbox__inner {
  margin: 0;
  width: min(1040px, 92vw);
  max-height: 88vh;
  display: grid;
  gap: 12px;
  justify-items: center;
}
.case-lightbox__img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border: 1px solid var(--line);
  background: var(--bg-card);
  box-shadow: 0 24px 100px rgba(0,0,0,.65), 0 0 70px rgba(220,38,38,.12);
}
.case-lightbox__caption {
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
.case-lightbox__close,
.case-lightbox__nav {
  position: fixed;
  border: 1px solid var(--line);
  background: rgba(17,17,17,.86);
  color: var(--text);
  font-family: var(--font-mono);
  cursor: pointer;
  z-index: 10001;
}
.case-lightbox__close {
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  font-size: 30px;
  line-height: 1;
}
.case-lightbox__nav {
  top: 50%;
  width: 48px;
  height: 64px;
  transform: translateY(-50%);
  font-size: 42px;
  line-height: 1;
}
.case-lightbox__nav--prev { left: 18px; }
.case-lightbox__nav--next { right: 18px; }
.case-lightbox__close:hover,
.case-lightbox__nav:hover,
.case-lightbox__close:focus-visible,
.case-lightbox__nav:focus-visible {
  border-color: var(--accent);
  outline: none;
}
@media (max-width: 640px) {
  .screenshot.real::after,
  .pdf-thumb::after {
    opacity: 1;
    transform: none;
    font-size: 8px;
  }
  .case-lightbox { padding: 16px; }
  .case-lightbox__inner { width: 96vw; max-height: 86vh; }
  .case-lightbox__img { max-height: 76vh; }
  .case-lightbox__nav {
    top: auto;
    bottom: 18px;
    width: 46px;
    height: 46px;
    transform: none;
    font-size: 34px;
  }
  .case-lightbox__nav--prev { left: 18px; }
  .case-lightbox__nav--next { right: 76px; }
}

/* === RESPONSIVE === */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-android { max-width: 240px; order: -1; }
  .cases-grid { grid-template-columns: 1fr; gap: 16px; }
  .programme-wrap { grid-template-columns: 1fr; gap: 32px; }
  .programme-wrap .android { display: none; }
  .capabilities { grid-template-columns: 1fr; gap: 32px; }
  .how-grid { grid-template-columns: 1fr; gap: 16px; }
  .about-wrap { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .about-wrap .android { max-width: 200px; margin: 0 auto; }
  .price-includes { grid-template-columns: 1fr; gap: 12px; max-width: 480px; }
  .faq-wrap { grid-template-columns: 1fr; gap: 32px; }
  .faq-wrap .android { max-width: 180px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .hero { padding: 20px 20px 48px; }
  .hero-top { margin-bottom: 40px; font-size: 10px; flex-direction: column; gap: 16px; }
  .hero-not-prog { font-size: 12px; }
  section.block { padding: 64px 0; }
  .week { grid-template-columns: 1fr; gap: 12px; padding: 24px 20px; }
  .price-current { font-size: 44px; }
  details.faq-item summary { padding: 20px; font-size: 15px; }
  details.faq-item .faq-answer { padding: 0 20px 20px; font-size: 14px; }
  .final { padding: 64px 20px 56px; }
  .final .android { width: min(300px, 86vw); }
  .footer-meta { grid-template-columns: 1fr; align-items: start; }
  .footer-flow { justify-self: start; }
}
/* === LEGAL PAGES === */
.legal-hero {
  padding: 32px 32px 56px;
  min-height: auto;
}
.legal-hero .hero-top {
  margin-bottom: 72px;
}
.legal-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.legal-hero h1 {
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  max-width: 980px;
  margin-bottom: 24px;
}
.legal-hero p {
  max-width: 760px;
  color: var(--text-2);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
  margin-bottom: 28px;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(17, 17, 17, 0.7);
}
.legal-back:hover {
  color: var(--text);
  border-color: #5B1818;
}
.legal-main {
  padding-bottom: 72px;
}
.legal-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17,17,17,0.92), rgba(10,10,10,0.92));
  border-radius: 28px;
  padding: clamp(28px, 5vw, 64px);
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.04), 0 28px 80px rgba(0,0,0,0.35);
}
.legal-card h2 {
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}
.legal-card h3 {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 36px 0 14px;
}
.legal-card p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.82;
  margin: 0 0 14px;
}
.legal-card p strong,
.legal-card a {
  color: var(--text);
}

@media (max-width: 640px) {
  .legal-hero { padding-top: 24px; padding-bottom: 40px; }
  .legal-hero .hero-top { margin-bottom: 48px; }
  .legal-card { border-radius: 20px; }
  .legal-card p { font-size: 14px; line-height: 1.75; }
}

@media (max-width: 640px) {
  .legal-hero h1 {
    font-size: clamp(24px, 7vw, 30px);
    line-height: 1.05;
    letter-spacing: -0.035em;
  }
}

/* === MOTION ADD-ON: subtle AI/data background and interface motion === */
.ambient-code-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: .40;
  mix-blend-mode: screen;
}
.code-rain-labels {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: .42;
  mix-blend-mode: screen;
}
.code-rain-labels span {
  position: absolute;
  top: -18vh;
  color: rgba(220,38,38,.38);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(220,38,38,.28);
  animation: code-fall var(--fall-speed, 42s) linear infinite;
  animation-delay: var(--fall-delay, 0s);
}
@keyframes code-fall {
  from { transform: translate3d(0,-12vh,0); opacity: 0; }
  8% { opacity: .8; }
  86% { opacity: .55; }
  to { transform: translate3d(0,128vh,0); opacity: 0; }
}
.motion-enabled .motion-reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  transition: opacity .75s ease, transform .75s ease, filter .75s ease;
  transition-delay: var(--motion-delay, 0ms);
}
.motion-enabled .motion-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
/* Keep above-the-fold hero readable immediately; reveal animation is for lower sections. */
.motion-enabled .hero-text.motion-reveal,
.motion-enabled .hero-visual-shell.motion-reveal {
  opacity: 1;
  transform: none;
  filter: none;
}
.motion-enabled .motion-reveal.is-visible .stat-num,
.motion-enabled .motion-reveal.is-visible .arch-node-title,
.motion-enabled .motion-reveal.is-visible .case-name {
  animation: micro-glow 2.8s ease-in-out .2s both;
}
@keyframes micro-glow {
  0% { text-shadow: 0 0 0 rgba(220,38,38,0); }
  35% { text-shadow: 0 0 28px rgba(220,38,38,.42); }
  100% { text-shadow: 0 0 0 rgba(220,38,38,0); }
}
.hero-visual-shell {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: center;
}
.hero-visual-shell .hero-android { grid-area: 1 / 1; justify-self: center; }
.hero-hud {
  grid-area: 1 / 1;
  align-self: end;
  justify-self: start;
  width: min(355px, 92%);
  margin: 0 0 18px -18px;
  background: rgba(17,17,17,.78);
  border: 1px solid var(--line);
  box-shadow: 0 24px 90px rgba(0,0,0,.45), 0 0 46px rgba(220,38,38,.12);
  backdrop-filter: blur(14px);
  z-index: 4;
  overflow: hidden;
}
@media (min-width: 981px) {
  .hero-visual-shell {
    min-height: 640px;
    align-content: center;
    justify-items: center;
    row-gap: 12px;
  }
  .hero-visual-shell .hero-android {
    grid-area: auto;
  }
  .hero-hud {
    grid-area: auto;
    align-self: auto;
    justify-self: center;
    margin: -10px 0 0;
  }
}

.hero-hud::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0%, rgba(220,38,38,.12) 42%, transparent 70%);
  transform: translateX(-120%);
  animation: hud-sweep 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes hud-sweep { 0%, 38% { transform: translateX(-120%); } 62%, 100% { transform: translateX(120%); } }
.hud-head,
.hud-row,
.hud-mini-grid,
.hud-progress { position: relative; z-index: 1; }
.hud-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hud-lights { display: flex; gap: 6px; }
.hud-lights span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-4); }
.hud-lights span:first-child { background: var(--accent); box-shadow: 0 0 10px rgba(220,38,38,.65); }
.hud-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 15px;
  border-bottom: 1px solid rgba(31,31,31,.75);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
  text-transform: uppercase;
}
.hud-row strong { color: var(--text); font-weight: 600; }
.hud-row .live { color: var(--accent); animation: blink 1.65s infinite; }
.hud-progress {
  height: 4px;
  margin: 14px 15px 13px;
  background: var(--line);
  overflow: hidden;
}
.hud-progress span {
  display: block;
  width: 68%;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 22px rgba(220,38,38,.55);
  animation: hud-progress 4.2s ease-in-out infinite;
}
@keyframes hud-progress { 0%,100% { width: 62%; } 50% { width: 86%; } }
.hud-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}
.hud-mini-grid div {
  background: rgba(10,10,10,.74);
  padding: 12px 10px;
  min-height: 64px;
}
.hud-mini-grid span,
.flow-step span {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-3);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.hud-mini-grid b { font-size: 14px; line-height: 1.3; color: var(--text); font-weight: 700; }
.system-flow {
  margin-top: 64px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 330px 1fr;
  min-height: 430px;
  overflow: hidden;
}
.flow-sidebar {
  border-right: 1px solid var(--line);
  padding: 28px;
  background: rgba(10,10,10,.55);
}
.flow-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.flow-sidebar h3 {
  font-size: 24px;
  line-height: 1.08;
  margin-bottom: 16px;
}
.flow-sidebar p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 26px;
}
.flow-nav {
  display: grid;
  gap: 10px;
}
.flow-tab {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 11px;
  text-align: left;
  padding: 13px 14px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .08em;
  transition: border-color .2s, color .2s, background .2s;
}
.flow-tab.is-active {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(220,38,38,.08);
}
.flow-stage {
  padding: 32px;
  display: grid;
  align-content: center;
}
.flow-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.flow-track::before {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  top: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), rgba(220,38,38,.55), var(--line), transparent);
}
.flow-step {
  position: relative;
  border: 1px solid var(--line);
  background: rgba(10,10,10,.7);
  min-height: 180px;
  padding: 20px;
  cursor: pointer;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease, opacity .35s ease;
}
.flow-step:focus-visible,
.flow-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.flow-step::before {
  content: attr(data-num);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 12px;
}
.flow-step h4 {
  font-size: 16px;
  margin-bottom: 10px;
}
.flow-step p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.55;
}
.flow-step.is-active {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 22px 70px rgba(220,38,38,.12);
}
.flow-step.is-active::before {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 22px rgba(220,38,38,.2);
}
.flow-output {
  margin-top: 24px;
  border-left: 2px solid var(--accent);
  padding: 12px 0 12px 16px;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
}
.flow-output strong { color: var(--text); }
@media (max-width: 900px) {
  .hero-visual-shell { min-height: 420px; }
  .hero-hud { width: min(330px, 100%); margin-left: 0; justify-self: center; }
  .system-flow { grid-template-columns: 1fr; }
  .flow-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .flow-track { grid-template-columns: 1fr 1fr; }
  .flow-track::before { display: none; }
}
@media (max-width: 640px) {
  .hero.container { padding-left: 20px; padding-right: 20px; }
  .hero-sub { font-size: 15px; }
  .hero-not-prog { max-width: 100%; overflow-wrap: anywhere; }
  .architecture { overflow-wrap: anywhere; }
}
@media (max-width: 560px) {
  .ambient-code-canvas { opacity: .24; }
  .code-rain-labels { opacity: .24; }
  .code-rain-labels span { font-size: 9px; }
  .hero-visual-shell { min-height: auto; }
  .hero-hud { position: relative; margin: -18px auto 0; }
  .hud-mini-grid { grid-template-columns: 1fr; }
  .system-flow { margin-top: 44px; }
  .flow-sidebar, .flow-stage { padding: 22px; }
  .flow-track { grid-template-columns: 1fr; }
  .flow-step { min-height: auto; }
  .flow-step.is-active { transform: none; }
  .flow-output { margin-top: 18px; background: rgba(220,38,38,.05); padding: 14px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .ambient-code-canvas,
  .code-rain-labels { display: none; }
  .motion-enabled .motion-reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .hero-hud::before, .hud-progress span, .motion-enabled .motion-reveal.is-visible .stat-num,
  .motion-enabled .motion-reveal.is-visible .arch-node-title,
  .motion-enabled .motion-reveal.is-visible .case-name,
  .code-rain-labels span { animation: none; }
}

/* ===== Витрина платформы: единая шапка-переключатель + лента разделов ===== */
.site-nav {
  position: sticky; top: 0; z-index: 200;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 11px 24px;
  background: rgba(10,10,10,.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none;
  color: #FAFAFA; font-weight: 700; letter-spacing: .5px; font-size: 15px; white-space: nowrap; }
.site-nav__bar { width: 4px; height: 20px; background: var(--accent); border-radius: 2px; display: inline-block; }
.site-nav__logo { width: 32px; height: 32px; flex: none; }
.site-nav__brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.site-nav__brand-name { color: #FAFAFA; font-weight: 600; font-size: 15px; letter-spacing: -.2px; }
.site-nav__brand-sub { color: var(--text-2); font-weight: 400; font-size: 11px; letter-spacing: 0; }
.site-nav__links { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; font-size: 14px; }
.site-nav__links a { color: #9a9a9a; text-decoration: none; white-space: nowrap; transition: color .2s; }
.site-nav__links a:hover { color: #FAFAFA; }
.site-nav__links a.active { color: var(--accent); font-weight: 600; }
.site-nav__login { display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--accent); border-radius: 8px; padding: 6px 14px;
  color: var(--accent) !important; background: rgba(220,38,38,.10); font-weight: 600; }
.site-nav__login:hover { background: var(--accent); color: #fff !important; }
.site-nav__login-icon { width: 17px; height: 17px; display: none; flex: none; }
/* Узкие экраны: вместо текста «Личный кабинет» — компактная иконка входа (дверь со стрелкой) */
@media (max-width: 820px) {
  .site-nav__login-text { display: none; }
  .site-nav__login-icon { display: block; }
  .site-nav__login { padding: 7px 9px; }
}
/* Телефон: кнопка входа — в правый верхний угол (в строку с логотипом), разделы —
   отдельной строкой в один ряд (при нехватке ширины — горизонтальный свайп). Иначе
   кнопка уезжала под разделы и ломала вёрстку. Тот же принцип, что в шапке движка. */
@media (max-width: 767px) {
  .site-nav__login { position: absolute; top: 9px; right: 24px; }
  .site-nav__links {
    flex-basis: 100%; order: 2; flex-wrap: nowrap;
    overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
  }
  .site-nav__links::-webkit-scrollbar { display: none; }
}
@media (max-width: 600px) {
  .site-nav { padding: 9px 14px; }
  .site-nav__links { gap: 14px; font-size: 13px; }
  .site-nav__brand-name { font-size: 14px; }
  .site-nav__brand-sub { display: none; }
  .site-nav__login { top: 8px; right: 14px; }
}

.section-strip { padding: 36px 0 4px; }
.section-strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.section-card { display: block; text-decoration: none; background: var(--bg-card);
  border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 18px;
  transition: border-color .2s, transform .2s; }
.section-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.section-card--active { border-color: var(--accent); }
.section-card__icon { color: var(--accent); font-size: 12px; letter-spacing: 1px; font-family: var(--mono, monospace); }
.section-card__title { color: #FAFAFA; font-weight: 700; margin-top: 8px; font-size: 17px; }
.section-card__sub { color: #8a8a8a; font-size: 13px; margin-top: 4px; }
@media (max-width: 760px) { .section-strip__grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== Карусель «Результаты и отзывы учеников» ===== */
.reviews-carousel { position: relative; margin-top: 32px; }
.reviews-track {
  display: flex; gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px 2px 20px; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.reviews-track::-webkit-scrollbar { display: none; }
.review-card {
  flex: 0 0 calc((100% - 36px) / 3); scroll-snap-align: start;
  margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 16px;
  background: var(--bg-card); cursor: pointer; overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.review-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.review-card:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(220,38,38,.4); outline: none; }
.review-card img { display: block; width: 100%; height: auto; }
.reviews-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(10,10,10,.82);
  color: var(--text); font-size: 24px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: border-color .2s, color .2s;
}
.reviews-arrow:hover { border-color: var(--accent); color: var(--accent); }
.reviews-arrow--prev { left: -12px; }
.reviews-arrow--next { right: -12px; }
.reviews-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.reviews-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0;
  background: var(--line); cursor: pointer; transition: background .2s, transform .2s;
}
.reviews-dots button.active { background: var(--accent); transform: scale(1.25); }
@media (max-width: 900px) { .review-card { flex-basis: calc((100% - 18px) / 2); } }
@media (max-width: 600px) {
  .review-card { flex-basis: 84%; }
  .reviews-arrow { display: none; }
  .reviews-track { gap: 14px; }
}



/* === Мостик на практикум в блоке закрытых продаж === */
.price-bridge {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border, rgba(255,255,255,0.08));
  text-align: center;
}
.price-bridge p {
  color: var(--text-2, #a3a3a3);
  font-size: 15px;
  margin-bottom: 18px;
}
.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-secondary:hover {
  background: var(--accent);
  color: white;
}

/* === Форма «пришлю анонс потока» === */
.subscribe-form {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border, rgba(255,255,255,0.08));
  text-align: center;
}
.subscribe-title {
  color: var(--text-2, #a3a3a3);
  font-size: 15px;
  margin-bottom: 18px;
}
.subscribe-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.subscribe-row input[type="email"] {
  flex: 1 1 240px;
  max-width: 340px;
  padding: 14px 16px;
  font-size: 16px; /* 16px — чтобы iOS не зумил поле */
  font-family: var(--font-main, inherit);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border, rgba(255,255,255,0.12));
  color: var(--text-1, #fafafa);
  outline: none;
}
.subscribe-row input[type="email"]:focus { border-color: var(--accent); }
.subscribe-row .btn { padding: 14px 24px; }
.subscribe-consent {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-3, #737373);
  cursor: pointer;
  text-align: left;
  max-width: 420px;
}
.subscribe-consent input { margin-top: 2px; accent-color: var(--accent); }
.subscribe-consent a { color: inherit; text-decoration: underline; }
.subscribe-msg { margin-top: 12px; font-size: 14px; color: var(--text-2, #a3a3a3); min-height: 1em; }
