/* Разбор: тёмные панели и кремовые панели, акцент оранжевый, отметки лаймовые (как в исходном ролике) */
:root {
  --ink: #0b0b0b;
  --d1: #141414;
  --d2: #1c1c1c;
  --d3: #262626;
  --d4: #333333;
  --cream: #f4f3ee;
  --paper: #fbfbf8;
  --text: #121212;
  --muted: #5d5c57;
  --on-dark: #f4f3ee;
  --on-dark-muted: #a3a29c;
  --accent: #ff5a26;
  --accent-ink: #1a0800;
  --lime: #c9f23f;
  --lime-ink: #1b2400;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r-panel: 24px;
  --r-card: 16px;
  --sans: "Manrope", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--d4) var(--ink); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--accent);
}
::selection { background: var(--accent); color: var(--accent-ink); }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: 4px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { text-wrap: pretty; margin: 0; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 8px; }
.ph { line-height: 1; }

.skip {
  position: fixed; left: 16px; top: -64px; z-index: 100;
  background: var(--lime); color: var(--lime-ink); padding: 8px 12px; border-radius: 8px;
  font-weight: 600; text-decoration: none; transition: transform 300ms var(--ease);
}
.skip:focus { transform: translateY(80px); }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; border: 0; cursor: pointer;
  font-size: 16px; line-height: 24px; font-weight: 600; white-space: nowrap;
  transition: transform 300ms var(--ease), background-color 300ms var(--ease), opacity 300ms var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn-sm { padding: 8px 16px; font-size: 14px; line-height: 20px; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #ff6d3d; }
.btn-light { background: var(--on-dark); color: var(--ink); }
.btn-lime { background: var(--lime); color: var(--lime-ink); }
.btn-ghost { background: var(--d3); color: var(--on-dark); }
.btn-ghost:hover { background: var(--d4); }
.btn-ghost-dark { background: var(--d3); color: var(--on-dark); }
.btn .ph { font-size: 20px; }

/* Навигация */
.nav {
  position: fixed; top: 16px; left: 50%; z-index: 40;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 24px;
  padding: 8px 8px 8px 16px; border-radius: 999px;
  background: rgba(20, 20, 20, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--on-dark);
}
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--on-dark); }
.logo-mark { width: 16px; height: 16px; border-radius: 4px; background: var(--accent); position: relative; }
.logo-mark::after { content: ""; position: absolute; right: -4px; bottom: -4px; width: 8px; height: 8px; border-radius: 2px; background: var(--lime); }
.nav-links { display: flex; gap: 24px; font-size: 14px; line-height: 20px; }
.nav-links a { text-decoration: none; color: var(--on-dark-muted); transition: color 300ms var(--ease); }
.nav-links a:hover { color: var(--on-dark); }

/* Панели */
main { padding: 8px; display: grid; gap: 8px; }
.panel-dark, .panel-cream, .tagline { border-radius: var(--r-panel); padding: 96px 48px; }
.panel-dark { background: var(--d1); color: var(--on-dark); }
.panel-cream { background: var(--cream); color: var(--text); }
.h-hero {
  font-size: 60px; line-height: 1; font-weight: 700; letter-spacing: -0.03em;
  max-width: 680px; color: var(--on-dark);
}
.h2 { font-size: 48px; line-height: 1; font-weight: 700; letter-spacing: -0.03em; max-width: 680px; }
.sub { font-size: 18px; line-height: 28px; color: var(--on-dark-muted); max-width: 560px; margin-top: 24px; }
.sec-sub { font-size: 18px; line-height: 28px; color: var(--on-dark-muted); max-width: 560px; margin-top: 16px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }
.cta-note { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; color: var(--on-dark-muted); }
.cta-note .ph { font-size: 20px; color: var(--lime); }

/* Первый экран */
.hero { padding-top: 128px; padding-bottom: 48px; overflow: hidden; }
.hero-copy { max-width: 1200px; margin: 0 auto; }
.hero-demo { max-width: 1200px; margin: 64px auto 0; }

/* Каскад первого экрана */
.in { animation: rise 800ms var(--ease) both; animation-delay: calc(var(--d) * 90ms + 100ms); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Появление при прокрутке, только когда JS работает */
html.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
html.js .reveal.on { opacity: 1; transform: none; }

/* Бенто */
#benefits > .h2, #how > .h2, #faq > .h2, #phone > .h2, #phone > .sec-sub { margin-left: auto; margin-right: auto; max-width: 1200px; }
.bento {
  max-width: 1200px; margin: 48px auto 0;
  display: grid; gap: 8px;
  grid-template-columns: repeat(6, 1fr);
  grid-template-areas:
    "years years years years dups dups"
    "shots shots video video video video"
    "check check check free free free";
}
.b-years { grid-area: years; } .b-dups { grid-area: dups; } .b-shots { grid-area: shots; }
.b-video { grid-area: video; } .b-check { grid-area: check; } .b-free { grid-area: free; }
.card { border-radius: var(--r-card); padding: 32px; position: relative; overflow: hidden; min-height: 240px; display: flex; flex-direction: column; }
.card h3 { font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -0.02em; margin-top: 16px; }
.card p { margin-top: 8px; max-width: 40ch; }
.card .ico { font-size: 32px; }
.card-dark { background: var(--ink); color: var(--on-dark); }
.card-dark p { color: var(--on-dark-muted); }
.card-dark .ico { color: var(--accent); }
.card-lime { background: var(--lime); color: var(--lime-ink); }
.card-white { background: var(--paper); }
.card-white p { color: var(--muted); }
.card-white .ico { color: var(--accent); }
.mini-folders { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 24px; }
.mini-folders span {
  display: inline-flex; gap: 4px; align-items: center;
  font-family: var(--mono); font-size: 14px; line-height: 20px; padding: 4px 12px; border-radius: 8px;
  background: var(--d2); color: var(--on-dark); border: 1px solid var(--d4);
  transition: transform 500ms var(--ease);
}
html.js .b-years .mini-folders span { opacity: 0; }
.b-years.on .mini-folders span { animation: pop 600ms var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 300ms); }
.b-years:hover .mini-folders span:nth-child(odd) { transform: translateY(-4px); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.9); } to { opacity: 1; transform: none; } }
.dup-pair { display: flex; margin-top: auto; padding-top: 24px; }
.dup-pair img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; border: 2px solid var(--lime-ink); transition: transform 500ms var(--ease), opacity 500ms var(--ease); }
.dup-pair img + img { transform: translate(-40px, 8px) rotate(6deg); opacity: 0.85; }
.b-dups:hover .dup-pair img + img { transform: translate(24px, 8px) rotate(10deg); opacity: 0.35; }
.card-photo { padding: 0; color: var(--on-dark); background: var(--d2); }
.card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1200ms var(--ease); }
.card-photo:hover img { transform: scale(1.1); }
.card-photo-text { position: relative; margin-top: auto; padding: 32px; background: linear-gradient(0deg, rgba(0,0,0,0.78), rgba(0,0,0,0)); }
.card-photo-text .ico { color: var(--lime); }
.card-photo-text p { color: #e4e3dd; }
.free-meter { margin-top: auto; padding-top: 24px; }
.free-meter i { display: block; height: 8px; border-radius: 999px; background: var(--lime); transform-origin: left; transform: scaleX(0.15); transition: transform 1600ms var(--ease) 300ms; }
.b-free.on .free-meter i { transform: scaleX(1); }

/* Слоган по словам */
.tagline { background: var(--ink); color: var(--on-dark); padding: 128px 48px; }
.tag-text { max-width: 900px; margin: 0 auto; font-size: 48px; line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; }
.tag-text .w { opacity: 0.28; transition: opacity 600ms var(--ease), color 600ms var(--ease); }
.tag-text .w.on { opacity: 1; }
.tag-text .w.hl.on { color: var(--lime); }

/* Шаги */
.steps { list-style: none; padding: 0; max-width: 1200px; margin: 48px auto 0; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 8px; }
.step { background: var(--paper); border-radius: var(--r-card); padding: 32px; display: flex; flex-direction: column; gap: 8px; }
.step:first-child { background: var(--accent); color: var(--accent-ink); }
.step:first-child p { color: var(--accent-ink); }
.step .ph { font-size: 32px; margin-bottom: 48px; }
.step h3 { font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -0.02em; }
.step p { color: var(--muted); }

/* Вкладки */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; max-width: 1200px; margin: 40px auto 0; }
.tabs button {
  border: 1px solid var(--d4); background: transparent; color: var(--on-dark-muted);
  padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: 14px; line-height: 20px; font-weight: 600;
  transition: background-color 300ms var(--ease), color 300ms var(--ease), transform 300ms var(--ease);
}
.tabs button:hover { color: var(--on-dark); }
.tabs button:active { transform: scale(0.98); }
.tabs button[aria-selected="true"] { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.tab-panels { max-width: 1200px; margin: 24px auto 0; }
.tab-panel { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; counter-reset: s; }
.tab-panel[hidden] { display: none; }
.tab-panel li { counter-increment: s; background: var(--d2); border-radius: var(--r-card); padding: 24px; color: var(--on-dark); animation: rise 500ms var(--ease) both; }
.tab-panel li:nth-child(2) { animation-delay: 60ms; } .tab-panel li:nth-child(3) { animation-delay: 120ms; } .tab-panel li:nth-child(4) { animation-delay: 180ms; }
.tab-panel li::before { content: counter(s); display: block; font-family: var(--mono); font-size: 14px; line-height: 20px; color: var(--accent); margin-bottom: 24px; }
.tab-note { display: flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--on-dark-muted); font-size: 14px; line-height: 20px; }
.tab-note .ph { color: var(--accent); font-size: 20px; flex: none; }

/* Вопросы */
.faq { max-width: 800px; margin: 48px auto 0; display: grid; gap: 8px; }
.faq details { background: var(--paper); border-radius: var(--r-card); padding: 0 24px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 0; font-weight: 600; font-size: 18px; line-height: 28px;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 24px; color: var(--accent); transition: transform 300ms var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 24px; color: var(--muted); max-width: 65ch; }

.final .h-hero, .final .sub, .final .cta-row { max-width: 1200px; margin-left: auto; margin-right: auto; }

.foot {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center;
  padding: 32px 16px 40px; color: #8a8984; font-size: 14px; line-height: 20px;
}
.foot a { color: #8a8984; transition: color 300ms var(--ease); }
.foot a:hover { color: var(--on-dark); }

/* ============ ДАШБОРД (как в ролике) ============ */
.dash {
  background: var(--ink); color: var(--on-dark);
  border: 1px solid var(--d3); border-radius: var(--r-panel);
  padding: 32px; position: relative; overflow: hidden;
  font-variant-numeric: tabular-nums;
}
.dash-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; font-size: 12px; line-height: 16px; color: var(--on-dark-muted); }
.dash-label { display: inline-flex; gap: 8px; align-items: center; }
.dash-label .sq { width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.dash-status { display: inline-flex; gap: 8px; align-items: center; }
.dash-status .spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--d4); border-top-color: var(--on-dark); animation: spin 900ms linear infinite; }
.dash-status.ok .spin, .dash-status.idle .spin { display: none; }
.dash-status .ph { display: none; color: var(--lime); font-size: 16px; }
.dash-status.ok .ph { display: inline-block; }
.dash-title { font-size: 36px; line-height: 40px; font-weight: 700; letter-spacing: -0.02em; margin-top: 12px; }
.dash-title em { font-family: "Playfair Display", Georgia, serif; font-style: italic; font-weight: 600; color: var(--accent); padding-right: 2px; }
.dash-stats { display: grid; grid-template-columns: repeat(6, auto); justify-content: start; gap: 8px 40px; margin-top: 16px; }
.st span { display: block; font-size: 12px; line-height: 16px; color: var(--on-dark-muted); text-transform: uppercase; letter-spacing: 0.02em; }
.st b { display: block; font-family: var(--mono); font-weight: 600; font-size: 30px; line-height: 36px; letter-spacing: -0.02em; }
.dash-body { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 24px; margin-top: 24px; align-items: start; }
.years { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.yc {
  border: 1px solid var(--d3); border-radius: 12px; padding: 8px; background: var(--d1);
  transition: border-color 500ms var(--ease), opacity 500ms var(--ease);
  animation: rise 600ms var(--ease) both;
}
.yc.live { border-color: rgba(255, 90, 38, 0.75); }
.yc.ghost { animation: none; opacity: 0.45; }
.yc-h { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; margin-bottom: 8px; min-height: 20px; }
.yc-h .fold { color: var(--accent); font-size: 16px; }
.yc-h b { font-weight: 700; }
.yc-h .cnt { margin-left: auto; font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--on-dark-muted); }
.badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12px; line-height: 16px; font-weight: 700;
  background: var(--lime); color: var(--lime-ink); padding: 0 8px; border-radius: 999px; white-space: nowrap;
  opacity: 0; transform: scale(0.6); transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.yc.done .badge { opacity: 1; transform: none; }
.yc-g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.yc-g i { aspect-ratio: 1; border-radius: 4px; background: var(--d2); overflow: hidden; position: relative; }
.yc-g i img { width: 100%; height: 100%; object-fit: cover; animation: tilein 500ms var(--ease) both; }
@keyframes tilein { from { opacity: 0; transform: scale(1.3); } to { opacity: 1; transform: none; } }
.ph-tile { width: 100%; height: 100%; display: grid; place-items: center; font-size: 12px; line-height: 16px; font-family: var(--mono); color: var(--on-dark-muted); animation: tilein 500ms var(--ease) both; }
.ph-tile .ph { font-size: 16px; }

.side { display: grid; gap: 12px; }
.ring-wrap { position: relative; aspect-ratio: 1; container-type: size; }
.ring { position: absolute; inset: 0; animation: spin 70s linear infinite; transition: opacity 800ms var(--ease), scale 800ms var(--ease); }
.ring .rt {
  position: absolute; left: 50%; top: 50%; width: 14cqw; height: 14cqw; margin: -7cqw 0 0 -7cqw;
  border-radius: 6px; object-fit: cover; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45); background: var(--d3);
  transform: rotate(var(--a)) translateX(var(--rad)) rotate(var(--t));
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.ring .rt.off { opacity: 0; transform: rotate(var(--a)) translateX(calc(var(--rad) * 0.5)) rotate(var(--t)) scale(0.3); }
.ring-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; transition: opacity 600ms var(--ease); }
.ring-center b { font-family: var(--mono); font-weight: 600; font-size: 36px; line-height: 40px; letter-spacing: -0.02em; }
.ring-center span { font-size: 12px; line-height: 16px; color: var(--on-dark-muted); margin-top: 4px; }
.final-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; opacity: 0; transform: scale(0.9); transition: opacity 700ms var(--ease) 200ms, transform 700ms var(--ease) 200ms; pointer-events: none; }
.final-num b { font-family: var(--mono); font-weight: 600; font-size: 48px; line-height: 1; color: var(--lime); letter-spacing: -0.03em; }
.final-num span { font-size: 12px; line-height: 16px; color: var(--on-dark-muted); margin-top: 8px; }
.dash.finished .ring { opacity: 0; scale: 0.7; }
.dash.finished .ring-center { opacity: 0; }
.dash.finished .final-num { opacity: 1; transform: none; }
.disk { display: flex; align-items: center; gap: 12px; border: 1px solid var(--d3); border-radius: 12px; padding: 12px; background: var(--d1); transition: border-color 500ms var(--ease); }
.disk .ph { font-size: 32px; color: var(--on-dark-muted); transition: color 500ms var(--ease); }
.disk.active { border-color: rgba(201, 242, 63, 0.5); }
.disk.active .ph { color: var(--lime); }
.disk b { display: block; font-size: 14px; line-height: 20px; }
.disk span { display: block; font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--on-dark-muted); }
.dash-foot { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: end; margin-top: 24px; }
.free span { display: block; font-size: 12px; line-height: 16px; color: var(--on-dark-muted); }
.free b { display: block; font-family: var(--mono); font-weight: 600; font-size: 30px; line-height: 36px; letter-spacing: -0.02em; }
.bar { position: relative; padding-bottom: 20px; }
.bar-track { height: 6px; border-radius: 999px; background: var(--d3); overflow: hidden; }
.bar-fill { height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform 400ms var(--ease), background-color 600ms var(--ease); }
.dash.finished .bar-fill { background: var(--lime); }
.bar-text { position: absolute; left: 0; bottom: 0; font-size: 12px; line-height: 16px; color: var(--on-dark-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

.fly { position: fixed; left: 0; top: 0; z-index: 70; border-radius: 6px; object-fit: cover; pointer-events: none; box-shadow: 0 12px 28px rgba(0,0,0,0.5); will-change: transform; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ============ ПРИЛОЖЕНИЕ ============ */
.app { position: fixed; inset: 0; z-index: 60; background: var(--ink); color: var(--on-dark); overflow-y: auto; overscroll-behavior: contain; animation: appin 500ms var(--ease) both; }
@keyframes appin { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.app-top { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: rgba(11, 11, 11, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.app-body { max-width: 1240px; margin: 0 auto; padding: 8px 16px 64px; display: grid; gap: 16px; }
.app-panel { background: var(--d1); border: 1px solid var(--d3); border-radius: var(--r-panel); padding: 32px; }
.app-panel h3 { font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -0.02em; }
.app-panel p { color: var(--on-dark-muted); margin-top: 8px; max-width: 65ch; }
.app-panel .row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; align-items: center; }
.app-panel > * { animation: rise 500ms var(--ease) both; }
.notice { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; padding: 16px; border-radius: 12px; background: var(--d2); color: var(--on-dark); font-size: 14px; line-height: 20px; }
.notice .ph { font-size: 20px; color: var(--accent); flex: none; }
.notice.ok .ph { color: var(--lime); }
.opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.opt { background: var(--d2); border-radius: 12px; padding: 16px; }
.opt-t { font-size: 14px; line-height: 20px; font-weight: 600; margin-bottom: 12px; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; }
.seg label { cursor: pointer; position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 14px; line-height: 20px; border: 1px solid var(--d4); color: var(--on-dark-muted); transition: background-color 300ms var(--ease), color 300ms var(--ease); }
.seg input:checked + span { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.seg input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }
.chk { display: flex; gap: 8px; align-items: center; cursor: pointer; font-size: 14px; line-height: 20px; margin-top: 8px; }
.chk input { width: 16px; height: 16px; accent-color: var(--lime); margin: 0; }
.list-errors { margin: 12px 0 0; padding-left: 16px; font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--on-dark-muted); max-height: 160px; overflow: auto; }
.result-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.result-grid div { background: var(--d2); border-radius: 12px; padding: 16px; }
.result-grid span { display: block; font-size: 12px; line-height: 16px; color: var(--on-dark-muted); }
.result-grid b { display: block; font-family: var(--mono); font-size: 24px; line-height: 32px; font-weight: 600; margin-top: 4px; }
.skel { height: 20px; border-radius: 8px; background: var(--d2); position: relative; overflow: hidden; margin-top: 12px; }
.skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent); animation: shimmer 1400ms var(--ease) infinite; transform: translateX(-100%); }
@keyframes shimmer { to { transform: translateX(100%); } }

.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal[hidden], .app[hidden] { display: none; }
.modal-box { background: var(--d1); color: var(--on-dark); border: 1px solid var(--d3); border-radius: var(--r-panel); padding: 32px; max-width: 480px; animation: rise 400ms var(--ease) both; }
.modal-box h3 { font-size: 24px; line-height: 32px; font-weight: 700; }
.modal-box p { color: var(--on-dark-muted); margin-top: 12px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
body.locked { overflow: hidden; }

/* ============ АДАПТИВ ============ */
@media (max-width: 1024px) {
  .dash-stats { grid-template-columns: repeat(3, auto); }
  .dash-body { grid-template-columns: 1fr; }
  .side { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; order: -1; }
  .opts { grid-template-columns: 1fr; }
  .tab-panel { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav { left: 16px; right: 16px; transform: none; justify-content: space-between; }
  .nav-links { display: none; }
  main { padding: 4px; gap: 4px; }
  .panel-dark, .panel-cream { padding: 64px 16px; border-radius: 20px; }
  .hero { padding-top: 112px; padding-bottom: 16px; }
  .tagline { padding: 80px 16px; border-radius: 20px; }
  .h-hero { font-size: 36px; line-height: 40px; }
  .h-hero br { display: none; }
  .h2 { font-size: 30px; line-height: 36px; }
  .tag-text { font-size: 30px; line-height: 36px; }
  .sub, .sec-sub { font-size: 16px; line-height: 24px; }
  .hero-demo { margin-top: 40px; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "years" "dups" "shots" "video" "check" "free"; margin-top: 32px; }
  .card { padding: 24px; min-height: 0; }
  .card-photo { min-height: 280px; padding: 0; }
  .card-photo-text { padding: 24px; }
  .steps { grid-template-columns: 1fr; margin-top: 32px; }
  .step .ph { margin-bottom: 24px; }
  .tab-panel { grid-template-columns: 1fr; }
  .dash { padding: 16px; border-radius: 16px; }
  .dash-head .dash-status { display: none; }
  .dash-title { font-size: 24px; line-height: 32px; }
  .dash-stats { gap: 8px 16px; }
  .st b { font-size: 20px; line-height: 28px; }
  .years { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .side { grid-template-columns: 1fr; }
  .ring-wrap { width: min(100%, 320px); margin: 0 auto; }
  .dash-foot { grid-template-columns: 1fr; gap: 12px; }
  .free b { font-size: 24px; line-height: 32px; }
  .app-panel { padding: 20px; }
  .result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btn { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  html.js .reveal { transform: none; }
  .ring { animation: none; }
}
