/* patifot.app — лендинг по дизайн-хендоффу (тёмный, Archivo + IBM Plex Mono).
   Внутренние страницы используют style.css и этим файлом не трогаются. */

:root {
  --accent: #c8f542;
  --bg: #0c0d10;
  --surface: #111217;
  --border-strong: #34343c;
  --border: #3a3a42;
  --hair-card: #26262c;
  --hair-panel: #1e1e24;
  --text: #f2f2ef;
  --text-2: #c9c9cf;
  --text-3: #a9a9b2;
  --text-4: #8b8b94;
  --text-muted: #6f6f78;
  --text-faint: #55555e;
  --inert: #2a2b32;
  --error: #e05555;
  --paper: #f2f2ef;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

/* Плейсхолдеры и глифы размечены span-ами: без блочности высоты схлопываются. */
.mini-print, .mini-print .ph, .printer-glyph, .printer-glyph .slot,
.dash-sample, .dash-dots span, .privacy-glyph .qr i, .timeline-item .dot {
  display: block;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

s { color: inherit; }
.cable-chip s, .print-cap s { color: var(--text-muted); }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--bg);
  padding: .5rem 1rem;
  z-index: 100;
  font-weight: 700;
}
.skip:focus { left: 0; color: var(--bg); }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.section { padding-top: 120px; }

/* --- заголовки секций --- */

.eyebrow {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.h2 {
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 46px);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: balance;
}

.lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-3);
  max-width: 640px;
  margin: 18px 0 0;
  text-wrap: pretty;
}

/* --- навигация --- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 13, 16, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hair-panel);
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 32px;
  max-width: 1240px;
  margin: 0 auto;
  min-height: 59px;
}

.wordmark {
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -.02em;
  color: var(--text);
}
.wordmark b { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 24px;
  font-weight: 500;
  font-size: 14px;
  color: var(--text-3);
}
.nav-links a { color: var(--text-3); padding: 10px 0; }
.nav-links a:hover { color: var(--accent); }

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-lang {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav-lang a { color: var(--text-muted); padding: 8px 0; }
.nav-lang a:hover { color: var(--accent); }
.nav-lang [aria-current] { color: var(--text); font-weight: 600; }

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  color: var(--bg);
  font-weight: 700;
  font-size: 13px;
  padding: 11px 18px;
  border-radius: 8px;
  white-space: nowrap;
}
.btn-store:hover { color: var(--bg); filter: brightness(1.08); }
.btn-store svg { flex: none; }

/* мобильное меню */
.nav-menu { display: none; position: relative; }
.nav-menu summary {
  list-style: none;
  cursor: pointer;
  padding: 10px;
  margin: -10px;
  display: inline-flex;
  border-radius: 6px;
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu .burger { display: block; width: 20px; }
.nav-menu .burger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  margin: 4px 0;
}
.nav-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 14px);
  background: var(--surface);
  border: 1px solid var(--hair-card);
  border-radius: 12px;
  padding: 10px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
}
.nav-menu-panel a {
  padding: 12px 14px;
  font-weight: 500;
  font-size: 15px;
  color: var(--text-2);
  border-radius: 8px;
}
.nav-menu-panel a:hover { background: var(--bg); color: var(--accent); }
.nav-menu-panel .nav-lang {
  padding: 12px 14px 6px;
  border-top: 1px solid var(--hair-card);
  margin-top: 6px;
}

/* --- герой --- */

.hero { padding-top: 88px; }

.hero-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  max-width: 900px;
}

.hero-badge {
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 7px 12px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .03em;
  color: var(--accent);
}

h1 {
  font-weight: 800;
  font-size: clamp(42px, 7.4vw, 82px);
  line-height: 1.0;
  letter-spacing: -.03em;
  margin: 0;
  text-wrap: balance;
}
h1 .accent { color: var(--accent); }

.hero-sub {
  font-size: 21px;
  line-height: 1.5;
  color: var(--text-3);
  max-width: 640px;
  margin: 0;
  text-wrap: pretty;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 16px;
  padding: 17px 28px;
  border-radius: 10px;
}
.btn-primary:hover { color: var(--bg); filter: brightness(1.06); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
  padding: 17px 28px;
  border-radius: 10px;
}
.btn-secondary:hover { color: var(--text); border-color: var(--accent); }

.fineprint {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--text-4);
}

/* --- панели с диаграммами --- */

.panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hair-panel);
  border-radius: 18px;
}

.fig-label {
  position: absolute;
  top: 17px;
  left: 21px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--text-faint);
}

/* FIG.01 — герой */

.fig1 {
  margin-top: 64px;
  padding: 52px 48px 40px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.device-caption {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .03em;
  color: var(--text-4);
  text-align: center;
  margin-top: 14px;
}

.ipad { width: 360px; flex: none; }
.ipad-body {
  position: relative;
  background: #1a1b21;
  border: 2px solid var(--border-strong);
  border-radius: 18px;
  padding: 8px 10px 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
  animation: floaty 5s ease-in-out infinite;
}
.ipad-cam {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4a4a52;
}
.ipad-screen {
  background: var(--bg);
  border-radius: 10px;
  height: 210px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background-image: repeating-linear-gradient(45deg, #1c1d24 0 10px, #22232b 10px 20px);
}
.shutter {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s ease-in-out infinite;
}
.shutter::after {
  content: "";
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
}
.ipad-hint {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--accent);
}

.cable-track {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.cable-chip {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px 14px;
  background: var(--bg);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
}
.cable-chip .yes { color: var(--accent); }
.cable {
  align-self: stretch;
  height: 5px;
  border-radius: 3px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 18px, var(--inert) 18px 48px);
  background-size: 48px 5px;
  animation: flow .5s linear infinite;
}
.cable-caption {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .05em;
  color: var(--text-faint);
}

.printer { width: 280px; flex: none; }
.printer-body {
  background: #1a1b21;
  border: 2px solid var(--border-strong);
  border-radius: 14px;
  padding: 18px 18px 0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
}
.printer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.printer-name { font-weight: 700; font-size: 13px; color: var(--text-3); }
.led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1s ease-in-out infinite;
}
.printer-slot {
  background: var(--bg);
  height: 14px;
  border-radius: 6px 6px 0 0;
  border-bottom: 2px solid var(--accent);
}
.printer-window {
  height: 175px;
  overflow: hidden;
  display: flex;
  justify-content: center;
}
.print {
  width: 150px;
  height: 205px;
  background: var(--paper);
  padding: 8px 8px 0;
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .6);
  animation: emerge 4.5s ease-in-out infinite;
}
.print-photo {
  height: 125px;
  border-radius: 2px;
  background: repeating-linear-gradient(45deg, #d8d8d2 0 8px, #e8e8e2 8px 16px);
}
.print-cap {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 10px;
  color: #6f6f78;
  text-align: center;
  padding: 6px 0;
}

/* --- статистика --- */

.stats { margin-top: 56px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hair-panel);
  border: 1px solid var(--hair-panel);
  border-radius: 14px;
  overflow: hidden;
}
.stat {
  background: var(--bg);
  padding: 30px 32px;
}
.stat-num {
  font-weight: 800;
  font-size: 42px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -.02em;
}
.stat-label {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  color: var(--text-4);
  margin-top: 10px;
}

/* --- режимы --- */

.modes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.mode-card {
  background: var(--surface);
  border: 1px solid var(--hair-card);
  border-radius: 14px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mode-visual {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.mini-print {
  position: relative;
  width: 74px;
  height: 98px;
  background: var(--paper);
  border-radius: 2px;
  padding: 5px 5px 0;
}
.mini-print .ph {
  height: 74px;
  border-radius: 1px;
  background: repeating-linear-gradient(45deg, #d8d8d2 0 6px, #e8e8e2 6px 12px);
}
.mini-print.ai .ph { background: repeating-linear-gradient(45deg, #cfd8b8 0 6px, #e0e6cc 6px 12px); }
.mini-print.wide { width: 70px; height: 52px; padding: 4px 4px 0; }
.mini-print.wide .ph { height: 36px; }
.ai-badge {
  position: absolute;
  top: -9px;
  right: -9px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 4px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 10px;
  padding: 3px 6px;
  display: flex;
  align-items: center;
  gap: 3px;
  line-height: 1;
}
.ai-badge svg { flex: none; }
.mode-card h3 { font-weight: 700; font-size: 18px; line-height: 1.3; margin: 0; }
.mode-card p { font-size: 14px; line-height: 1.5; color: var(--text-3); margin: 0; }

/* --- ИИ-секция --- */

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

.checklist {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.checklist li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-2);
}
.checklist .tick { color: var(--accent); font-weight: 700; flex: none; }

.fig2 { padding: 56px 36px 36px; }
.fig2-row {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}
.fig2 .print2 {
  background: var(--paper);
  padding: 7px 7px 0;
  border-radius: 2px;
  flex: 1;
  max-width: 180px;
}
.fig2 .print2 .ph {
  height: 190px;
  border-radius: 2px;
  background: repeating-linear-gradient(45deg, #d8d8d2 0 8px, #e8e8e2 8px 16px);
}
.fig2 .print2.ai .ph { background: repeating-linear-gradient(45deg, #cfd8b8 0 8px, #e0e6cc 8px 16px); }
.print2-cap {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 10px;
  color: #6f6f78;
  padding: 6px 2px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
}
.fig2-link {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.fig2-cable {
  width: 44px;
  height: 4px;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 12px, var(--inert) 12px 32px);
  background-size: 32px 4px;
  animation: flow .4s linear infinite;
}
.fig2-time {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 12px;
  color: var(--accent);
  white-space: nowrap;
}
.ai-progress { margin-top: 28px; }
.ai-progress-track {
  height: 6px;
  border-radius: 3px;
  background: var(--hair-panel);
  overflow: hidden;
}
.ai-progress-fill {
  height: 100%;
  width: 100%;
  border-radius: 3px;
  background: var(--accent);
  animation: tickfill 4.5s linear infinite;
}
.ai-progress-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--text-faint);
}

/* --- прямая печать --- */

.printing-panel {
  margin-top: 40px;
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.pill {
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 8px 14px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 12px;
  color: var(--text-4);
}
.pill.yes {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.printer-cards { display: flex; flex-direction: column; gap: 16px; }
.printer-card {
  border: 1px solid var(--hair-card);
  border-radius: 14px;
  padding: 24px;
  background: var(--bg);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.printer-glyph {
  flex: none;
  width: 64px;
  height: 44px;
  background: #1a1b21;
  border: 2px solid var(--border-strong);
  border-radius: 8px;
  padding: 8px 8px 0;
}
.printer-glyph.tall { height: 52px; }
.printer-glyph .slot {
  height: 10px;
  background: var(--bg);
  border-radius: 3px;
  border-bottom: 2px solid var(--accent);
}
.printer-card h3 { font-weight: 700; font-size: 18px; margin: 0 0 6px; }
.printer-card p { font-size: 14px; line-height: 1.5; color: var(--text-3); margin: 0; }

/* --- офлайн --- */

.status-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 52px 28px 28px;
}
.status-row {
  border: 1px solid var(--hair-card);
  border-radius: 10px;
  padding: 16px 18px;
  background: var(--bg);
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 13px;
}
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
.status-dot.err { background: var(--error); animation: pulse 1.4s ease-in-out infinite; }
.status-label { font-weight: 600; color: var(--text-4); letter-spacing: .03em; }
.status-value { margin-left: auto; font-weight: 600; color: var(--accent); letter-spacing: .03em; }
.status-value.err { color: var(--error); }

/* --- кабинет --- */

.dash-mock {
  margin-top: 40px;
  overflow: hidden;
}
.dash-titlebar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--hair-panel);
}
.dash-dots { display: flex; gap: 6px; }
.dash-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--inert); }
.dash-url {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  color: var(--text-faint);
}
.dash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hair-panel);
}
.dash-col {
  background: var(--surface);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dash-col-title {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--text-4);
}
.dash-frame {
  height: 120px;
  border-radius: 8px;
  background: repeating-linear-gradient(45deg, #1c1d24 0 10px, #22232b 10px 20px);
  display: flex;
  align-items: flex-end;
  padding: 10px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  color: var(--text-4);
}
.dash-checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  color: var(--text-4);
}
.dash-checks .tick { color: var(--accent); font-weight: 700; margin-right: 8px; }
.dash-prompt {
  border: 1px solid var(--hair-card);
  border-radius: 8px;
  padding: 14px;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
}
.dash-samples { display: flex; gap: 10px; }
.dash-sample {
  width: 74px;
  height: 74px;
  border-radius: 6px;
  background: repeating-linear-gradient(45deg, #d8d8d2 0 8px, #e8e8e2 8px 16px);
}
.dash-sample.ai { background: repeating-linear-gradient(45deg, #cfd8b8 0 8px, #e0e6cc 8px 16px); }
.dash-note {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--text-faint);
}
.dash-device {
  border: 1px solid var(--hair-card);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  color: var(--text-4);
}
.dash-device .on { color: var(--accent); }
.dash-publish {
  margin-top: auto;
  display: block;
  width: 100%;
  border: 0;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .04em;
  padding: 13px;
  border-radius: 8px;
  text-align: center;
  cursor: default;
}
.dash-fineprint {
  margin-top: 22px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--text-4);
}

/* --- приватность --- */

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.privacy-card {
  background: var(--surface);
  border: 1px solid var(--hair-card);
  border-radius: 14px;
  padding: 28px;
}
.privacy-glyph {
  width: 52px;
  height: 52px;
  border: 2px solid var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 14px;
}
.privacy-glyph.circle { border-radius: 50%; }
.privacy-glyph .qr {
  display: grid;
  grid-template-columns: 12px 12px;
  grid-template-rows: 12px 12px;
  gap: 4px;
}
.privacy-glyph .qr i { background: var(--inert); border-radius: 2px; }
.privacy-glyph .qr i:first-child, .privacy-glyph .qr i:last-child { background: var(--accent); }
.privacy-card h3 { font-weight: 700; font-size: 18px; margin: 0 0 8px; }
.privacy-card p { font-size: 14px; line-height: 1.5; color: var(--text-3); margin: 0; }

/* --- история --- */

.story-panel { padding: 56px 48px; margin-top: 0; }
.timeline { margin-top: 48px; }
.timeline-rail {
  height: 3px;
  border-radius: 2px;
  background: var(--hair-card);
  margin: 0 10px 20px;
}
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.timeline-item .dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--surface);
  margin: -28px 0 16px 4px;
}
.timeline-item .year {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 16px;
  color: var(--accent);
}
.timeline-item p {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-3);
  margin: 8px 0 0;
}

/* --- цены --- */

.plans-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}
.plan-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hair-card);
  border-radius: 16px;
  padding: 32px;
}
.plan-card.featured { border-color: var(--accent); }
.plan-flag {
  position: absolute;
  top: -11px;
  right: 24px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .04em;
  padding: 3px 9px;
  border-radius: 4px;
}
.plan-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.plan-head h3 { font-weight: 700; font-size: 20px; margin: 0; }
.plan-price { font-weight: 800; font-size: 38px; line-height: 1; letter-spacing: -.02em; white-space: nowrap; }
.plan-price small { font-weight: 500; font-size: 16px; color: var(--text-4); letter-spacing: 0; }
.plan-sub {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--text-4);
  margin-top: 8px;
}
.plan-div { border: 0; border-top: 1px solid var(--hair-card); margin: 20px 0; }

.credits-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.credit-card {
  background: var(--bg);
  border: 1px solid var(--hair-card);
  border-radius: 16px;
  padding: 28px;
}
.credit-label {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--text-4);
}
.credit-price { font-weight: 800; font-size: 32px; line-height: 1; margin-top: 12px; letter-spacing: -.02em; }
.credit-detail { font-size: 14px; color: var(--text-3); margin-top: 10px; }

.pricing-callout {
  margin-top: 16px;
  border: 1px solid var(--hair-card);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 18px 22px;
  background: var(--surface);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-2);
}
.pricing-fineprint { margin-top: 18px; }

/* --- CTA и подвал --- */

.cta-band {
  background: var(--accent);
  border-radius: 20px;
  padding: 64px 56px;
  color: var(--bg);
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 {
  font-weight: 800;
  font-size: clamp(34px, 4.8vw, 48px);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0;
}
.cta-band .cta-sub {
  font-weight: 500;
  font-size: 17px;
  line-height: 1.5;
  opacity: .75;
  margin: 14px 0 0;
  max-width: 560px;
}
.cta-buttons {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cta-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--bg);
  color: var(--paper);
  font-weight: 700;
  font-size: 16px;
  padding: 16px 26px;
  border-radius: 10px;
  white-space: nowrap;
}
.cta-dark:hover { color: var(--accent); }
.cta-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
  color: var(--bg);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: 10px;
  white-space: nowrap;
}
.cta-outline:hover { color: var(--bg); background: rgba(255, 255, 255, .18); }
.cta-band :focus-visible { outline-color: var(--bg); }

.footer {
  border-top: 1px solid var(--hair-panel);
  margin-top: 120px;
  padding: 56px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-tag {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-4);
  max-width: 280px;
  margin: 12px 0 0;
}
.footer h2 {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--text-4);
  text-transform: uppercase;
  margin: 0 0 14px;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 9px 0; font-size: 14px; color: var(--text-3); }
.footer li a { color: var(--text-3); }
.footer li a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 48px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .03em;
  color: var(--text-4);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-bottom a { color: var(--text-4); padding: 6px 0; }
.footer-bottom a:hover { color: var(--accent); }
.footer-bottom [aria-current] { color: var(--text-3); }

/* --- анимации --- */

@keyframes flow { to { background-position: -48px 0; } }
@keyframes flow-y { to { background-position: 0 -48px; } }
@keyframes emerge {
  0%, 12% { transform: translateY(-104%); }
  55%, 88%, 100% { transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes tickfill {
  0% { width: 0; }
  100% { width: 100%; }
}

/* Отпечаток не выезжает из слота, а мягко проявляется на месте:
   версия без крупного перемещения для спокойного режима. */
@keyframes emerge-soft {
  0%, 10% { opacity: 0; transform: translateY(-6%); }
  45%, 90%, 100% { opacity: 1; transform: translateY(0); }
}

/* Спокойный режим вместо полной остановки. Стандарт просит уменьшить движение,
   а не превратить страницу в статичный кадр: убираем только то, что реально
   дёргается (покачивание планшета и рывок отпечатка), остальное продолжает
   жить втрое медленнее. Так диаграммы читаются как живые при любых настройках. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .ipad-body { animation: none; }

  .cable { animation-duration: 1.8s; }
  .fig2-cable { animation-duration: 1.5s; }
  .shutter { animation-duration: 4s; }
  .led { animation-duration: 3s; }
  .status-dot.err { animation-duration: 3.5s; }

  /* пара emerge + tickfill остаётся синхронной, как требует хендофф */
  .print { animation: emerge-soft 9s ease-in-out infinite; }
  .ai-progress-fill { animation-duration: 9s; }
}

/* --- адаптив --- */

@media (max-width: 980px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .modes-grid { grid-template-columns: repeat(2, 1fr); }
  .privacy-grid { grid-template-columns: 1fr; }
  .split, .printing-panel { grid-template-columns: 1fr; gap: 40px; }
  .split.media-last > .split-media { order: 2; }
  .timeline-rail { display: none; }
  .timeline-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .timeline-item .dot { margin: 0 0 12px 0; border-color: var(--accent); }
  .dash-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-buttons { margin-left: 0; flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 860px) {
  .nav-links, .nav-right .nav-lang { display: none; }
  .nav-menu { display: block; }
}

@media (max-width: 700px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .section { padding-top: 72px; }
  .hero { padding-top: 48px; }
  .hero-sub { font-size: 18px; }
  .nav-row { padding: 12px 20px; gap: 16px; }
  .fig1 {
    flex-direction: column;
    padding: 52px 24px 32px;
    gap: 20px;
  }
  .ipad { width: 100%; max-width: 360px; }
  .cable-track { align-self: center; width: auto; }
  .cable {
    align-self: center;
    width: 5px;
    height: 64px;
    background: repeating-linear-gradient(180deg, var(--accent) 0 18px, var(--inert) 18px 48px);
    background-size: 5px 48px;
    animation-name: flow-y;
  }
  .printer { width: 100%; max-width: 280px; }
  .stats-grid, .modes-grid, .timeline-grid, .plans-row, .credits-row { grid-template-columns: 1fr; }
  .printing-panel, .story-panel { padding: 48px 24px; }
  .fig2 { padding: 52px 20px 28px; }
  .fig2 .print2 .ph { height: 140px; }
  .cta-band { padding: 44px 28px; }
  .cta-buttons { flex-direction: column; align-items: stretch; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .hero-ctas { width: 100%; }
}

/* Ширины отдельных заголовков из макета. Заданы классами, а не инлайном:
   CSP страницы запрещает style-атрибуты. */
.w-700 { max-width: 700px; }
.w-720 { max-width: 720px; }
.w-760 { max-width: 760px; }
.w-820 { max-width: 820px; }
