/* «Книговерст» — архитектурный минимализм: графит, молочный, бежевый, приглушённый золотой */
@font-face { font-family: "Cormorant"; src: url("/static/fonts/CormorantGaramond.ttf") format("truetype"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Golos"; src: url("/static/fonts/GolosText.ttf") format("truetype"); font-weight: 400 800; font-display: swap; }

:root {
  --graphite: #161616;
  --graphite-2: #24231f;
  --milky: #f7f5f0;
  --paper: #ffffff;
  --beige: #eae4d8;
  --beige-2: #dfd7c8;
  --gold: #b89b67;
  --gold-dim: #9e8250;
  --ink: #1f1e1c;
  --muted: #6f6a62;
  --line: rgba(22, 22, 22, 0.12);
  --line-light: rgba(247, 245, 240, 0.18);
  --serif: "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Golos", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 18px 50px -28px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--sans); background: var(--milky); color: var(--ink); line-height: 1.55; overflow-x: hidden; }

/* фактура бумаги */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; }

.container { width: min(1240px, 92vw); margin-inline: auto; }

/* ---------- typography ---------- */
.eyebrow { font-size: 0.72rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.display { font-family: var(--serif); font-weight: 600; line-height: 1.02; letter-spacing: -0.02em; }
.display em { font-style: italic; color: var(--gold); font-weight: 400; }
h1 { font-size: clamp(2.6rem, 5.4vw, 5rem); }
h2 { font-family: var(--serif); font-size: clamp(1.9rem, 3.4vw, 3rem); font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; }
h3 { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.tabnum { font-variant-numeric: tabular-nums; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(247,245,240,0.86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; }
.brand-mark { width: 34px; height: 34px; border: 1px solid var(--gold); display: grid; place-items: center; color: var(--gold); font-size: 1rem; border-radius: 4px; }
.nav-links { display: flex; gap: 28px; align-items: center; font-size: 0.92rem; }
.nav-links a { color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 3px; font-weight: 600; font-size: 0.95rem; transition: all .35s var(--ease); border: 1px solid transparent; white-space: nowrap; }
.btn-primary { background: var(--graphite); color: var(--milky); position: relative; overflow: hidden; }
.btn-primary::after { content:""; position:absolute; inset:0; background: var(--gold); transform: scaleY(0); transform-origin: bottom; transition: transform .4s var(--ease); z-index:-1; }
.btn-primary:hover { color: var(--graphite); }
.btn-primary:hover::after { transform: scaleY(1); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-dim); }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- grid ---------- */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--milky); padding: 34px; transition: background .35s var(--ease); position: relative; }
.card:hover { background: var(--paper); }
.card .idx { position:absolute; top: 22px; right: 26px; font-size: 0.75rem; color: var(--gold); letter-spacing: 0.2em; }

.section { padding: clamp(70px, 9vw, 130px) 0; }
.section-dark { background: var(--graphite); color: var(--milky); }
.section-dark h2 { color: var(--milky); }
.section-dark .eyebrow { color: var(--gold); }
.rule { height: 1px; background: var(--line); border: none; }
.rule-dark { background: var(--line-light); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }

/* line drawing */
.line-draw { transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); }
.line-draw.in { transform: scaleX(1); }

/* ---------- book mock ---------- */
.book-stage { perspective: 1400px; }
.book { position: relative; width: 300px; height: 430px; margin-inline: auto; transform-style: preserve-3d; transition: transform .1s linear; }
.book-page { position: absolute; inset: 0; background: #fff; border: 1px solid #ddd5c6; border-radius: 2px 6px 6px 2px; padding: 34px 28px; box-shadow: 0 24px 60px -30px rgba(0,0,0,.5); overflow: hidden; }
.book-page::before { content:""; position:absolute; left:14px; top:0; bottom:0; width:1px; background: var(--line); }
.book-spine { position:absolute; left:-16px; top:6px; bottom:6px; width:16px; background: linear-gradient(90deg,#24231f,#3a3833); border-radius:3px; box-shadow: -4px 0 14px rgba(0,0,0,.3); }
.book-serif { font-family: var(--serif); }
.book-page .t { font-family: var(--serif); font-size: 1.4rem; line-height:1.1; margin-bottom: 14px; }
.book-page .body { font-family: var(--serif); font-size: .82rem; line-height:1.55; color:#333; }
.book-page .body p { margin-bottom:.5em; text-indent: 1em; }
.book-page .body p:first-child{ text-indent:0; }
.kicker { font-size:.6rem; letter-spacing:.28em; text-transform:uppercase; color: var(--gold); margin-bottom: 8px; }
.dropcap { float:left; font-family: var(--serif); font-size: 2.1em; line-height: .85; padding-right:6px; padding-top:3px; color: var(--gold); }
.folio { position:absolute; bottom:14px; left:0; right:0; text-align:center; font-size:.62rem; color:#a39c8f; letter-spacing:.1em; }

/* ---------- before/after slider ---------- */
.ba { position: relative; user-select:none; border:1px solid var(--line); border-radius:4px; overflow:hidden; background:#fff; }
.ba-pane { position:absolute; inset:0; }
.ba-before { z-index:1; clip-path: inset(0 50% 0 0); }
.ba-after { z-index:0; }
.ba-handle { position:absolute; top:0; bottom:0; left:50%; width:2px; background: var(--gold); z-index:3; transform: translateX(-50%); cursor: ew-resize; }
.ba-knob { position:absolute; top:50%; left:50%; width:44px; height:44px; border-radius:50%; background: var(--milky); border:1px solid var(--gold); transform: translate(-50%,-50%); display:grid; place-items:center; color: var(--gold-dim); font-size: 1rem; box-shadow: var(--shadow); }
.ba-tag { position:absolute; top:12px; z-index:4; font-size:.66rem; letter-spacing:.15em; text-transform:uppercase; padding:5px 10px; background: rgba(22,22,22,.72); color:#fff; border-radius:3px; }
.ba-tag-l { left:12px; } .ba-tag-r { right:12px; background: rgba(184,155,103,.92); color: var(--graphite); }

/* ---------- calculator ---------- */
.calc { border:1px solid var(--line); border-radius:4px; background: var(--paper); }
.calc-head { padding: 26px 30px; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; align-items:center; }
.calc-body { padding: 30px; }
.field { display:flex; flex-direction:column; gap:8px; margin-bottom: 20px; }
.field label { font-size:.78rem; letter-spacing:.08em; text-transform:uppercase; color: var(--muted); }
input, select, textarea { font-family: inherit; font-size: 1rem; padding: 12px 14px; border:1px solid var(--line); border-radius:3px; background: var(--milky); color: var(--ink); width:100%; transition: border-color .2s; }
input:focus, select:focus, textarea:focus { outline:none; border-color: var(--gold); }
textarea { resize: vertical; }
.range-row { display:flex; align-items:center; gap: 14px; }
.range-row input[type=range] { padding:0; }
.total-row { display:flex; justify-content:space-between; align-items:baseline; padding-top: 22px; border-top:1px solid var(--line); margin-top: 6px; }
.total { font-family: var(--serif); font-size: 2.2rem; font-weight:600; color: var(--gold-dim); }
.chip { display:inline-flex; align-items:center; gap:8px; padding:8px 14px; border:1px solid var(--line); border-radius:100px; font-size:.82rem; cursor:pointer; transition: all .2s; }
.chip input { width:auto; }
.chip:has(input:checked) { border-color: var(--gold); background: var(--beige); }

/* ---------- pricing ---------- */
.price-card { background: var(--milky); padding: 34px; display:flex; flex-direction:column; gap: 18px; }
.price-card.featured { background: var(--graphite); color: var(--milky); }
.price-card.featured .muted { color: rgba(247,245,240,.6); }
.price-num { font-family: var(--serif); font-size: 2.6rem; font-weight:600; }
.feat { list-style:none; display:flex; flex-direction:column; gap:10px; font-size:.92rem; }
.feat li::before { content: "—"; color: var(--gold); margin-right: 10px; }

/* ---------- footer ---------- */
.footer { background: var(--graphite); color: rgba(247,245,240,.7); padding: 70px 0 40px; }
.footer h3 { color: var(--milky); }

/* ---------- studio ---------- */
.studio { display:grid; grid-template-columns: 380px 1fr; min-height: calc(100vh - 72px); }
.studio-panel { border-right:1px solid var(--line); background: var(--paper); padding: 24px; overflow-y:auto; max-height: calc(100vh - 72px); }
.studio-work { padding: 28px; overflow:auto; background:
  linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 28px, var(--beige-2); }
.page-preview { background:#fff; box-shadow: var(--shadow); border-radius:2px; width: min(720px, 100%); margin-inline:auto; min-height: 400px; }
.panel-section { border-bottom:1px solid var(--line); padding: 18px 0; }
.panel-section h4 { font-size:.74rem; letter-spacing:.18em; text-transform:uppercase; color: var(--muted); margin-bottom: 14px; }
.two { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.mode-tabs { display:flex; gap:6px; flex-wrap:wrap; margin-bottom: 16px; }
.mode-tabs button { padding:8px 12px; border:1px solid var(--line); border-radius:3px; font-size:.82rem; }
.mode-tabs button.active { background: var(--graphite); color: var(--milky); border-color: var(--graphite); }
.dropzone { border:1.5px dashed var(--line); border-radius:4px; padding: 30px 20px; text-align:center; transition: all .25s; background: var(--milky); }
.dropzone.drag { border-color: var(--gold); background: var(--beige); }
.kv { display:flex; justify-content:space-between; font-size:.85rem; padding:6px 0; border-bottom:1px dashed var(--line); }
.kv b { font-weight:600; }

@media (max-width: 900px) {
  .studio { grid-template-columns: 1fr; }
  .studio-panel { max-height: none; border-right:none; border-bottom:1px solid var(--line); }
  .nav-links { display:none; }
}

/* ---------- надиктовка ---------- */
.dict-rec-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold); display: inline-block;
  box-shadow: 0 0 0 3px rgba(184, 155, 103, 0.18); transition: box-shadow .3s;
}
#dictOpenBtn:hover .dict-rec-dot { box-shadow: 0 0 0 5px rgba(184, 155, 103, 0.22); }

.dict-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px; }
.dict-modal[hidden] { display: none; }
.dict-backdrop {
  position: absolute; inset: 0; background: rgba(22, 22, 22, 0.66);
  backdrop-filter: blur(10px); animation: dictFade .35s var(--ease);
}
.dict-sheet {
  position: relative; width: min(780px, 100%); max-height: 92vh; overflow: auto;
  background: var(--milky); border: 1px solid rgba(247, 245, 240, 0.28); border-radius: 6px;
  padding: clamp(26px, 4vw, 48px); box-shadow: 0 40px 120px -40px #000;
  animation: dictRise .45s var(--ease);
}
.dict-close {
  position: absolute; top: 16px; right: 20px; font-size: 1.7rem; line-height: 1;
  color: var(--muted); transition: color .2s, transform .3s var(--ease);
}
.dict-close:hover { color: var(--ink); transform: rotate(90deg); }
.dict-title { font-size: clamp(2rem, 4.4vw, 3.2rem); margin: 10px 0 18px; max-width: 14ch; }
.dict-meta-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 10px 0; margin-bottom: 24px;
}
.dict-state { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.dict-state.live { color: var(--gold-dim); }
.dict-timer { font-size: .85rem; color: var(--muted); }
.dict-orb-wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-bottom: 24px; }
.dict-orb {
  position: relative; width: 92px; height: 92px; border-radius: 50%; border: 1px solid var(--gold);
  background: var(--paper); color: var(--gold-dim); display: grid; place-items: center;
  box-shadow: 0 14px 34px -22px rgba(0, 0, 0, 0.55); transition: all .35s var(--ease);
}
.dict-orb:hover { transform: translateY(-2px); border-color: var(--graphite); color: var(--graphite); }
.dict-orb.live { background: var(--graphite); border-color: var(--graphite); color: var(--gold); }
.dict-orb.live::after {
  content: ""; position: absolute; inset: -9px; border-radius: 50%;
  border: 1px solid rgba(184, 155, 103, 0.5); animation: dictPulse 1.8s ease-out infinite;
}
.dict-bars { display: flex; align-items: center; gap: 3px; height: 38px; opacity: .22; transition: opacity .3s; }
.dict-bars.live { opacity: 1; }
.dict-bars i {
  display: block; width: 3px; height: var(--h, 10px); background: var(--gold); border-radius: 2px;
  transform-origin: center; animation: dictBar var(--d, 1s) ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s); animation-play-state: paused;
}
.dict-bars.live i { animation-play-state: running; }
.dict-text {
  font-family: var(--serif); font-size: 1.22rem; line-height: 1.55; min-height: 168px;
  background: var(--paper); padding: 18px 20px;
}
.dict-text[readonly] { color: var(--ink); }
.dict-hint { font-size: .78rem; color: var(--muted); margin-top: 12px; line-height: 1.65; }
.dict-hint.error { color: #a34b3f; }
.dict-browser { display: block; color: var(--gold-dim); margin-top: 4px; }
.dict-actions {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
}
.dict-saved { font-size: .8rem; color: var(--gold-dim); margin-left: auto; }

@keyframes dictFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dictRise { from { opacity: 0; transform: translateY(22px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes dictPulse { 0% { transform: scale(.96); opacity: .8; } 100% { transform: scale(1.22); opacity: 0; } }
@keyframes dictBar { from { transform: scaleY(.45); } to { transform: scaleY(1.9); } }

@media (max-width: 640px) {
  .dict-modal { padding: 12px; }
  .dict-sheet { padding: 24px 20px; max-height: 94vh; }
  .dict-actions .btn { flex: 1 1 100%; justify-content: center; }
  .dict-saved { margin-left: 0; width: 100%; text-align: center; }
}

/* ============================================================
   VISUAL REFRESH 2026 — понятнее, теплее, структурнее
   ============================================================ */

:root {
  --graphite: #171714;
  --graphite-2: #23221e;
  --milky: #f8f6f1;
  --paper: #fffdf9;
  --beige: #efe8db;
  --beige-2: #e5dccd;
  --gold: #b08d52;
  --gold-dim: #86663a;
  --ink: #20201c;
  --muted: #6b665d;
  --line: rgba(32, 32, 28, 0.13);
  --line-strong: rgba(32, 32, 28, 0.22);
  --line-light: rgba(248, 246, 241, 0.16);
  --shadow: 0 26px 76px -44px rgba(25, 24, 20, 0.48);
  --shadow-soft: 0 18px 50px -34px rgba(25, 24, 20, 0.24);
  --radius: 10px;
  --radius-sm: 7px;
}

body { background: var(--milky); line-height: 1.62; }
body::before { opacity: 0.018; }
.container { width: min(1200px, 90vw); }
::selection { background: rgba(176, 141, 82, 0.24); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }

h2 { max-width: 22ch; }
.section { padding: clamp(70px, 8vw, 112px) 0; }
.section-paper { background: var(--paper); border-block: 1px solid var(--line); }
.section-dark { background: radial-gradient(circle at 82% 18%, rgba(176,141,82,.13), transparent 34%), var(--graphite); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: end; margin-bottom: 38px; }
.section-head .lead { max-width: 56ch; margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.7; }
.section-head h2 { margin-top: 12px; }
.section-foot { margin-top: 30px; }

/* ---------- nav ---------- */
.nav { background: rgba(248, 246, 241, 0.92); border-bottom: 1px solid var(--line); }
.nav-inner { height: 76px; gap: 20px; }
.brand { font-size: 1.55rem; }
.brand-mark { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 253, 249, .8); box-shadow: var(--shadow-soft); }
.nav-links { gap: 21px; font-size: .9rem; font-weight: 500; }
.nav-links a { position: relative; white-space: nowrap; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav-links a:not(.btn):hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav-links a.is-active { color: var(--ink); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 50%; align-items: center; justify-content: center; flex-direction: column; gap: 4px; background: var(--paper); flex-shrink: 0; }
.nav-toggle span { width: 16px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn { padding: 13px 22px; border-radius: var(--radius-sm); font-weight: 650; letter-spacing: -.01em; }
.btn-primary { background: var(--graphite); box-shadow: 0 14px 30px -22px rgba(0,0,0,.68); }
.btn-primary::after { display: none; }
.btn-primary:hover { background: var(--gold); color: var(--graphite); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 253, 249, .42); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--paper); color: var(--gold-dim); box-shadow: var(--shadow-soft); }
.btn-sm { padding: 9px 14px; }

/* ---------- hero ---------- */
.hero {
  padding-top: clamp(54px, 7vw, 96px); padding-bottom: clamp(54px, 7vw, 92px);
  position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 32%, rgba(176, 141, 82, .16), transparent 31%),
    radial-gradient(circle at 8% 88%, rgba(176, 141, 82, .08), transparent 28%),
    var(--milky);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); gap: clamp(34px, 6vw, 78px); align-items: center; }
.hero-copy .display { font-size: clamp(2.9rem, 5.8vw, 5.6rem); max-width: 12ch; margin: 18px 0 24px; }
.hero-badge { display: inline-flex; align-items: center; gap: 9px; padding: 7px 13px 7px 10px; border: 1px solid rgba(176,141,82,.38); border-radius: 999px; background: rgba(255,253,249,.65); color: var(--gold-dim); font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hero-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(176,141,82,.16); }
.hero .lead { max-width: 53ch; font-size: clamp(1rem, 1.15vw, 1.14rem); line-height: 1.72; color: var(--muted); }
.hero .lead b { color: var(--ink); font-weight: 650; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-note { margin-top: 14px; color: var(--muted); font-size: .8rem; }
.hero-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 38px; max-width: 650px; }
.proof { display: flex; align-items: flex-start; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line-strong); min-width: 0; }
.proof-icon { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border: 1px solid rgba(176,141,82,.4); border-radius: 50%; color: var(--gold-dim); font-size: .62rem; font-weight: 800; letter-spacing: .04em; background: rgba(255,253,249,.6); }
.proof b { display: block; font-size: .82rem; line-height: 1.3; }
.proof span { display: block; color: var(--muted); font-size: .72rem; line-height: 1.45; margin-top: 2px; }

/* book */
.book-stage { position: relative; display: grid; place-items: center; min-height: 500px; }
.book-stage::before { content: ""; position: absolute; width: min(92%, 480px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(176,141,82,.2), rgba(176,141,82,0) 68%); filter: blur(2px); }
.book { position: relative; z-index: 1; }
.book-caption { position: absolute; z-index: 2; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,253,249,.78); color: var(--muted); font-size: .72rem; backdrop-filter: blur(8px); }
.book-caption-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* ---------- output strip ---------- */
.output-strip { background: var(--paper); border-bottom: 1px solid var(--line); }
.output-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.output-item { display: flex; align-items: baseline; gap: 10px; padding: 18px 24px; border-right: 1px solid var(--line); }
.output-item:first-child { border-left: 1px solid var(--line); }
.output-item b { font-family: var(--serif); font-size: 1.14rem; color: var(--gold-dim); }
.output-item span { color: var(--muted); font-size: .78rem; }

/* ---------- before / after ---------- */
.ba { aspect-ratio: 16 / 9; max-width: 1040px; margin-inline: auto; box-shadow: var(--shadow-soft); }
.ba-page-wrap { height: 100%; display: flex; align-items: center; justify-content: center; padding: 5%; background: #faf9f5; }
.ba-page { background: #fff; border: 1px solid #e3ddd0; border-radius: 4px; padding: clamp(18px, 3.2vw, 42px); max-width: 78%; box-shadow: 0 20px 50px -34px rgba(0,0,0,.45); }
.ba-raw { height: 100%; background: #fbfaf7; color: #3a3833; padding: 6%; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .82rem; line-height: 1.55; white-space: pre-wrap; border-right: 2px solid var(--gold); }

/* ---------- cards ---------- */
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.surface { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-soft); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.surface:hover { transform: translateY(-4px); border-color: rgba(176,141,82,.42); box-shadow: var(--shadow); }
.service-card { display: flex; flex-direction: column; gap: 13px; min-height: 232px; }
.service-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(176,141,82,.46); border-radius: 50%; background: var(--milky); color: var(--gold-dim); font-size: .72rem; font-weight: 750; letter-spacing: .06em; }
.service-card h3 { margin-top: 4px; }
.service-card p { color: var(--muted); font-size: .9rem; line-height: 1.66; }
.card-arrow { margin-top: auto; padding-top: 10px; color: var(--gold-dim); font-size: .78rem; font-weight: 650; letter-spacing: .04em; display: inline-flex; gap: 8px; align-items: center; }
.card-arrow span { transition: transform .25s var(--ease); }
.card-arrow:hover span, .surface:hover .card-arrow span { transform: translateX(4px); }

/* features dark */
.features-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature-card { background: linear-gradient(155deg, rgba(255,255,255,.035), transparent 58%), #1c1b18; border: 1px solid rgba(248,246,241,.13); border-radius: var(--radius); padding: 28px; transition: border-color .3s, transform .35s var(--ease); }
.feature-card:hover { border-color: rgba(176,141,82,.55); transform: translateY(-3px); }
.feature-card h3 { color: var(--milky); margin: 16px 0 9px; }
.feature-card p { color: rgba(248,246,241,.62); font-size: .9rem; line-height: 1.68; }
.feature-icon { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(176,141,82,.48); border-radius: 50%; color: var(--gold); font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
.section-dark .section-head .lead { color: rgba(248,246,241,.6); }

/* process */
.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.step-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px 30px; box-shadow: var(--shadow-soft); overflow: hidden; }
.step-card::after { content: ""; position: absolute; right: -18px; bottom: -42px; width: 100px; height: 100px; border: 1px solid rgba(176,141,82,.15); border-radius: 50%; }
.step-number { font-family: var(--serif); font-size: 2.9rem; color: var(--gold); line-height: 1; display: block; margin-bottom: 22px; }
.step-card h3 { margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: .88rem; line-height: 1.66; }

/* calculator */
.calc-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 22px; align-items: start; }
.calc { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.calc-head { padding: 22px 28px; background: var(--paper); }
.calc-body { padding: 28px; background: var(--paper); }
.calc-aside { padding: 30px; }
.calc-aside h3 { margin: 12px 0 18px; font-size: 1.55rem; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 11px; font-size: .9rem; color: var(--muted); }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list li::before { content: "✓"; flex: 0 0 auto; color: var(--gold-dim); font-weight: 700; }
.aside-note { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .86rem; }
.aside-note b { display: block; color: var(--ink); margin-bottom: 5px; }
.aside-note p { color: var(--muted); line-height: 1.65; }

/* pricing */
.pricing-grid { grid-template-columns: repeat(auto-fit, minmax(222px, 1fr)); align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; gap: 16px; background: var(--paper); padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.price-card.featured { background: var(--graphite-2); border-color: rgba(176,141,82,.7); color: var(--milky); transform: translateY(-6px); box-shadow: var(--shadow); }
.price-card.featured .muted { color: rgba(248,246,241,.62); }
.price-card .btn { margin-top: auto; justify-content: center; }
.price-badge { position: absolute; top: -12px; left: 24px; padding: 5px 11px; border-radius: 999px; background: var(--gold); color: var(--graphite); font-size: .63rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.price-card .feat li::before { content: "—"; }

/* faq */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; transition: border-color .25s, box-shadow .25s; }
.faq details[open] { border-color: rgba(176,141,82,.4); box-shadow: var(--shadow-soft); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 19px 0; cursor: pointer; list-style: none; font-family: var(--serif); font-size: 1.16rem; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: 0 0 auto; color: var(--gold); font-family: var(--sans); font-size: 1.45rem; font-weight: 400; line-height: 1; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 75ch; padding: 0 0 20px; color: var(--muted); font-size: .92rem; line-height: 1.7; }

/* cta */
.cta-band { background: radial-gradient(circle at 84% 18%, rgba(176,141,82,.2), transparent 36%), var(--graphite); color: var(--milky); padding: clamp(52px, 7vw, 86px) 0; }
.cta-inner { display: grid; grid-template-columns: 1.2fr auto; gap: 30px; align-items: center; }
.cta-inner h2 { margin: 10px 0 12px; max-width: 18ch; }
.cta-inner p { max-width: 56ch; color: rgba(248,246,241,.64); font-size: .95rem; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.cta-actions .btn-ghost { color: var(--milky); border-color: rgba(248,246,241,.26); background: transparent; }
.cta-actions .btn-ghost:hover { color: var(--graphite); background: var(--milky); }
.cta-actions .btn-primary { background: var(--gold); color: var(--graphite); }
.cta-actions .btn-primary:hover { background: var(--milky); }

/* footer */
.footer { padding: 76px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 34px; margin-bottom: 44px; }
.footer-note { max-width: 38ch; margin-top: 16px; color: rgba(248,246,241,.56); font-size: .85rem; line-height: 1.7; }
.footer-title { font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--milky); margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 7px; color: rgba(248,246,241,.58); font-size: .86rem; }
.footer-links a { width: fit-content; transition: color .2s; }
.footer-links a:hover { color: var(--milky); }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; margin-top: 22px; color: rgba(248,246,241,.42); font-size: .76rem; flex-wrap: wrap; }

/* ---------- auth ---------- */
.auth-page { min-height: calc(100vh - 76px); display: grid; place-items: center; padding: clamp(30px, 5vw, 64px) 0; background: radial-gradient(circle at 18% 22%, rgba(176,141,82,.12), transparent 30%), var(--milky); }
.auth-card { width: min(940px, 90vw); display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .84fr); background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.auth-form { padding: clamp(28px, 4vw, 52px); }
.auth-form .display { margin: 10px 0 8px; }
.auth-form .auth-sub { color: var(--muted); margin-bottom: 26px; font-size: .92rem; }
.auth-form .field { margin-bottom: 15px; }
.auth-actions { display: flex; gap: 10px; margin-top: 8px; }
.auth-actions .btn { flex: 1; justify-content: center; }
.auth-aside { background: radial-gradient(circle at 80% 18%, rgba(176,141,82,.22), transparent 40%), var(--graphite); color: var(--milky); padding: clamp(30px, 4vw, 46px); display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.auth-aside h2 { color: var(--milky); font-size: 1.65rem; line-height: 1.15; }
.auth-aside p { color: rgba(248,246,241,.64); font-size: .88rem; line-height: 1.7; }
.auth-list { display: grid; gap: 10px; padding-top: 8px; color: rgba(248,246,241,.76); font-size: .84rem; }
.auth-list span { display: flex; gap: 9px; }
.auth-list span::before { content: "—"; color: var(--gold); }

/* ---------- cabinet / partners shared ---------- */
.page-shell { padding: clamp(34px, 5vw, 60px) 0 90px; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 30px; }
.page-head .display { margin-top: 10px; }
.page-head .lead { color: var(--muted); max-width: 52ch; margin-top: 10px; }
.dashboard-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px; margin-bottom: 20px; }
.dash-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-soft); }
.dash-card h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.dash-card h3 .small { font-family: var(--sans); font-weight: 500; letter-spacing: 0; }
.dash-list .kv { padding: 12px 0; align-items: baseline; gap: 16px; }
.dash-list .kv a { font-weight: 600; }
.dash-list .kv span:last-child { white-space: nowrap; color: var(--muted); font-size: .8rem; }
.dash-empty { padding: 18px 0; color: var(--muted); font-size: .88rem; }
.quick-bar { display: flex; gap: 10px; flex-wrap: wrap; }
.stat-strip { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }
.stat-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.stat-box b { display: block; font-family: var(--serif); font-size: 1.9rem; line-height: 1; margin-bottom: 5px; }
.stat-box span { color: var(--muted); font-size: .76rem; }

.partner-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 24px; align-items: start; margin-bottom: 30px; }
.partner-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-soft); }
.partner-panel h3 { margin-bottom: 8px; }
.partner-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.partner-step { padding-top: 16px; border-top: 1px solid var(--line-strong); }
.partner-step b { display: block; color: var(--gold-dim); font-family: var(--serif); font-size: 1.4rem; margin-bottom: 5px; }
.partner-step span { color: var(--muted); font-size: .86rem; line-height: 1.6; display: block; }
.copy-row { display: flex; gap: 8px; align-items: center; }
.copy-row input { background: var(--milky); font-size: .82rem; }

/* ---------- order ---------- */
.order-shell { padding: clamp(34px, 5vw, 56px) 0 90px; }
.order-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 28px; }
.order-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 0 0 30px; }
.order-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-soft); }
.order-section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; margin: 30px 0 14px; }
.order-section-title h3 { font-size: 1.3rem; }
.order-section-title .small { color: var(--muted); }

/* ---------- studio ---------- */
.studio { grid-template-columns: 408px 1fr; }
.studio-panel { background: #fbfaf7; padding: 24px 24px 0; max-height: calc(100vh - 76px); }
.studio-work { padding: clamp(18px, 2.4vw, 34px); background: radial-gradient(circle at 50% 0%, rgba(255,255,255,.4), transparent 42%), var(--beige-2); }
.studio-guide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-bottom: 18px; }
.studio-guide div { padding: 8px 6px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); color: var(--muted); font-size: .65rem; text-align: center; line-height: 1.35; }
.studio-guide b { display: block; color: var(--gold-dim); font-size: .68rem; letter-spacing: .08em; }
.panel-section { padding: 19px 0; }
.panel-section h4 { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: .71rem; letter-spacing: .14em; }
.panel-section h4::before { content: ""; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--gold); }
.mode-tabs button { border-radius: 999px; background: var(--paper); padding: 8px 12px; }
.mode-tabs button.active { background: var(--graphite); }
.dropzone { border-radius: 10px; background: var(--paper); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }
.studio-build { position: sticky; bottom: 0; z-index: 4; margin-top: 10px; padding: 14px 0 18px; background: linear-gradient(to bottom, rgba(251,250,247,0), #fbfaf7 32%); }
.studio-build .btn { width: 100%; justify-content: center; }
.studio-build .build-hint { text-align: center; color: var(--muted); font-size: .68rem; margin-top: 8px; }
.work-head { background: rgba(255,253,249,.78); border: 1px solid var(--line); border-radius: 12px; padding: 15px 18px; margin-bottom: 16px; box-shadow: var(--shadow-soft); }
.work-title { display: flex; align-items: center; gap: 10px; }
.work-title h2 { font-family: var(--sans); font-size: 1rem; font-weight: 650; letter-spacing: -.01em; }
.work-status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .8rem; margin-top: 4px; }
.work-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: 0 0 6px; }
.work-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.preview-shell { position: relative; height: 78vh; min-height: 420px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: var(--shadow); }
.preview-shell iframe { width: 100%; height: 100%; border: none; display: block; }
.preview-empty { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 30px; background: radial-gradient(circle at 50% 26%, rgba(176,141,82,.1), transparent 42%), var(--paper); text-align: center; transition: opacity .3s, visibility .3s; }
.preview-empty.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preview-empty .empty-inner { max-width: 430px; }
.preview-empty h3 { font-size: clamp(1.6rem, 2.7vw, 2.15rem); margin: 8px 0 10px; }
.preview-empty p { color: var(--muted); font-size: .9rem; line-height: 1.65; margin-bottom: 20px; }
.empty-actions { display: flex; gap: 9px; flex-wrap: wrap; justify-content: center; }
.metrics-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.metrics-row .kv { display: inline-flex; gap: 8px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,253,249,.62); border-bottom: 1px solid var(--line); font-size: .76rem; }
.metrics-row .kv .muted { color: var(--muted); }
.order-box { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-soft); margin-top: 26px; }
.order-status-value { font-family: var(--serif); font-size: clamp(1.45rem, 2.2vw, 1.9rem); line-height: 1.1; margin-top: 6px; }
.stage-toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.stage-tip { margin-left: auto; }
.revision-form { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 10px; align-items: end; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.revision-form .field { margin-bottom: 0; }
.revision-form .btn { white-space: nowrap; }
.order-card .kv { padding: 12px 0; gap: 16px; align-items: baseline; }
.order-card .kv a { color: var(--gold-dim); font-weight: 650; }

/* ---------- admin ---------- */
.admin-login { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr); gap: 0; max-width: 760px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-soft); }
.admin-login-copy { padding: 34px; background: radial-gradient(circle at 84% 16%, rgba(176,141,82,.18), transparent 42%), var(--graphite); color: var(--milky); }
.admin-login-copy h2 { color: var(--milky); margin: 12px 0 10px; font-size: 1.7rem; }
.admin-login-copy p { color: rgba(248,246,241,.62); }
.admin-login-copy code { color: var(--gold); }
.admin-login-form { padding: 34px; display: flex; flex-direction: column; justify-content: center; }
.admin-login-form .field { margin-bottom: 16px; }
.admin-section-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 16px; }
.admin-section-head h3 { font-size: 1.45rem; }
.admin-section-head p { margin-top: 4px; }
.admin-table-wrap { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .86rem; min-width: 860px; }
.admin-table th { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line-strong); color: var(--muted); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.admin-table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: rgba(234, 228, 216, .25); }
.admin-actions { display: flex; flex-wrap: wrap; gap: 5px; white-space: normal; min-width: 230px; }
.admin-pricing { margin-top: 4px; }
.admin-pricing input[type="text"] { background: var(--milky); }
#stats.stat-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); }
#stats .stat-box b { font-size: clamp(1.35rem, 2.2vw, 1.8rem); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(290px, .8fr); gap: 34px; }
  .book-stage { min-height: 430px; }
  .book { transform: scale(.9); }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-layout { grid-template-columns: 1fr; }
  .calc-aside { position: static; }
}

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav-inner { position: relative; }
  .nav-links { display: none; position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 3px; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
  .nav-open .nav-links { display: flex; }
  .nav-links a, .nav-links button { padding: 11px 12px; border-radius: 7px; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links a:not(.btn):hover { background: var(--milky); }
  .nav-links a.btn { justify-content: center; margin-top: 4px; }
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero-copy .display { max-width: 14ch; }
  .book-stage { min-height: 380px; order: 2; }
  .book { transform: scale(.82); }
  .hero-proof { max-width: none; }
  .output-grid { grid-template-columns: 1fr 1fr; }
  .output-item:nth-child(2) { border-right: none; }
  .output-item:nth-child(1), .output-item:nth-child(2) { border-bottom: 1px solid var(--line); }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .section-head .head-action { align-self: start; }
  .studio { grid-template-columns: 1fr; }
  .studio-panel { max-height: none; border-right: none; border-bottom: 1px solid var(--line); padding-bottom: 0; }
  .studio-build { position: static; }
  .auth-card { grid-template-columns: 1fr; }
  .auth-aside { order: -1; padding: 26px 30px; }
  .auth-aside h2 { font-size: 1.35rem; }
  .auth-list { display: none; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .partner-hero { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-actions { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .container { width: min(1200px, 92vw); }
  .nav-inner { height: 68px; }
  .brand { font-size: 1.35rem; }
  .brand-mark { width: 32px; height: 32px; }
  .hero { padding-top: 40px; }
  .hero-copy .display { font-size: clamp(2.45rem, 12vw, 3.7rem); }
  .hero-proof { grid-template-columns: 1fr; gap: 0; }
  .proof { padding: 13px 0; }
  .proof:first-child { border-top: 1px solid var(--line-strong); }
  .book-stage { min-height: 330px; }
  .book { transform: scale(.68); }
  .book-caption { bottom: -6px; }
  .output-item { padding: 14px 14px; display: block; }
  .output-item b { display: block; }
  .output-item span { font-size: .72rem; }
  .ba { aspect-ratio: auto; min-height: 320px; }
  .ba-page { max-width: 92%; padding: 20px; }
  .ba-raw { padding: 22px 18px; font-size: .72rem; }
  .ba-tag { font-size: .58rem; padding: 4px 7px; }
  .process-grid, .partner-steps, .stat-strip { grid-template-columns: 1fr; }
  .step-card { padding: 24px; }
  .step-number { font-size: 2.3rem; margin-bottom: 14px; }
  .calc-head, .calc-body, .calc-aside { padding: 22px 20px; }
  .price-card { padding: 26px 22px; }
  .price-card.featured { transform: none; }
  .faq details { padding: 0 17px; }
  .faq summary { font-size: 1.06rem; padding: 16px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { display: block; }
  .footer-bottom p + p { margin-top: 6px; }
  .studio-work { padding: 14px; }
  .preview-shell { height: 64vh; min-height: 340px; }
  .work-head { padding: 13px 14px; }
  .studio-guide { margin-bottom: 12px; }
  .auth-page { padding: 20px 0 40px; }
  .auth-card { width: 92vw; }
  .auth-form { padding: 26px 22px 30px; }
  .auth-aside { padding: 22px; }
  .page-head, .order-head { display: block; }
  .page-head .quick-bar, .order-head .quick-bar { margin-top: 16px; }
  .order-cards { grid-template-columns: 1fr; }
  .dash-card { padding: 22px; }
  .metrics-row .kv { font-size: .72rem; }
}

/* ---------- responsive ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .reveal { opacity:1; transform:none; }
}

/* ============================================================
   PREMOTIO SKIN — светлая монохромная система:
   Snow #F5F5F7 · Charcoal #1D1D1F · Mist #EFEFEF · White
   Inter Tight, плотные заголовки, пилюли, плоские слои без теней.
   ============================================================ */

@font-face {
  font-family: "Inter Tight";
  src: url("/static/fonts/InterTight-Cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter Tight";
  src: url("/static/fonts/InterTight-Latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --graphite: #1D1D1F;
  --graphite-2: #000000;
  --milky: #F5F5F7;
  --paper: #FFFFFF;
  --beige: #EFEFEF;
  --beige-2: #EFEFEF;
  --gold: #1D1D1F;
  --gold-dim: #6E6E73;
  --ink: #1D1D1F;
  --muted: #6E6E73;
  --line: #1D1D1F1A;
  --line-strong: #1D1D1F33;
  --line-light: #FFFFFF2B;
  --shadow: none;
  --shadow-soft: none;
  --radius: 20px;
  --radius-sm: 999px;
  --accent: #B89B67;
  --accent-soft: #F3EAD8;
  --sans: "Inter Tight", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
}

body { background: var(--milky); color: var(--ink); line-height: 1.5; -webkit-font-smoothing: antialiased; }
html { color-scheme: light; scroll-padding-top: 84px; }
body::before { display: none; }
::selection { background: #1D1D1F; color: #FFFFFF; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* типографика premotio: одна семья, крупный display, плотный трекинг */
.display, h1, h2, h3, .brand, .price-num, .stat-box b, .step-number,
.order-status-value, .faq summary, .work-title h2, .partner-step b {
  font-family: var(--sans);
}
.display { font-weight: 500; line-height: .9; letter-spacing: -.055em; }
.display em { font-style: normal; color: #6E6E73; font-weight: 500; }
h1 { font-size: clamp(3.2rem, 7.2vw, 6.5rem); line-height: .9; }
h2 { font-size: clamp(2.1rem, 3.7vw, 3.25rem); font-weight: 500; line-height: 1; letter-spacing: -.045em; max-width: 20ch; }
h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.1; letter-spacing: -.03em; }
.subhead { font-size: 1.5rem; font-weight: 600; line-height: 1.15; letter-spacing: -.03em; max-width: none; }
.eyebrow { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.eyebrow::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); margin-right: 8px; vertical-align: 1px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* навигация */
.nav { background: rgba(245,245,247,.88); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.nav-inner { height: 68px; }
.brand { font-size: 1.35rem; font-weight: 600; letter-spacing: -.04em; gap: 10px; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: #fff; border: 0; box-shadow: none; font-size: .85rem; font-weight: 600; }
.nav-links { gap: 20px; font-size: .9rem; font-weight: 500; }
.nav-inner { min-width: 0; gap: 16px; }
@media (max-width: 1100px) { .nav-links { gap: 13px; font-size: .82rem; } }
.nav-links a { color: var(--ink); }
.nav-links a:not(.btn)::after { background: var(--accent); height: 1px; bottom: -5px; }
.nav-links a.is-active { color: var(--ink); }
.nav-links a.btn-primary { color: #fff; }
.nav-links a.btn-primary:hover { color: #fff; }
.nav-links a.btn-ghost { background: transparent; }
.nav-links a.btn-ghost:hover { background: #EFEFEF; }
.nav-toggle { border-radius: 999px; border-color: var(--line-strong); background: #fff; width: 40px; height: 40px; }
.nav-toggle span { background: var(--ink); }

/* кнопки и чипы — только пилюли */
.btn { padding: 12px 20px; border-radius: 999px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; box-shadow: none; }
.btn::after { display: none; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: #EFEFEF; color: var(--ink); box-shadow: none; }
.btn-sm { padding: 9px 15px; font-size: 14px; }
.arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* поверхности и сетки: тональные шаги вместо теней */
.container { width: min(1312px, 92vw); }
.section { padding: 64px 0; }
.section-paper { background: #EFEFEF; border-block: 1px solid var(--line); }
.section-dark { background: #1D1D1F; color: #F5F5F7; }
.section-dark h2, .section-dark .display { color: #F5F5F7; }
.section-dark .eyebrow, .section-dark .section-head .lead { color: #A1A1A6; }
.section-head { margin-bottom: 36px; align-items: end; }
.section-head .lead { color: var(--muted); font-size: .96rem; line-height: 1.6; }
.rule { background: var(--line); }
.rule-dark { background: var(--line-light); }

.surface, .step-card, .feature-card, .dash-card, .partner-panel, .order-card,
.stat-box, .admin-table-wrap, .calc, .price-card, .faq details, .preview-shell,
.work-head, .dict-sheet, .auth-card, .admin-login {
  border-radius: var(--radius);
  box-shadow: none;
}
.surface { background: #fff; border: 1px solid var(--line); padding: 28px; }
.surface:hover { background: #EFEFEF; transform: none; border-color: var(--line-strong); box-shadow: none; }
.cards { gap: 12px; }
.service-icon, .feature-icon, .proof-icon { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font-weight: 600; }
.service-card p, .step-card p, .feature-card p { color: var(--muted); font-size: .9rem; line-height: 1.6; }
.card-arrow { color: var(--ink); font-weight: 600; }
.step-card { background: #fff; border: 1px solid var(--line); padding: 28px; }
.step-card::after { display: none; }
.step-number { font-size: 3.6rem; font-weight: 500; line-height: 1; letter-spacing: -.07em; color: var(--ink); margin-bottom: 20px; }
.feature-card { background: #242427; border: 1px solid #FFFFFF1A; }
.feature-card h3 { color: #F5F5F7; }
.feature-card p { color: #A1A1A6; }
.feature-card:hover { border-color: #FFFFFF4D; transform: none; }
.section-dark .feature-icon { border-color: #FFFFFF33; background: transparent; color: #F5F5F7; }

/* hero */
.hero { background: #F5F5F7; border-bottom: 1px solid var(--line); padding: 64px 0; }
.hero-grid { gap: 56px; }
.hero-copy .display { font-size: clamp(3.2rem, 7.2vw, 6.5rem); max-width: 12ch; margin: 20px 0 26px; }
.hero-badge { border: 1px solid var(--line-strong); background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 14px; font-size: .68rem; font-weight: 600; letter-spacing: .14em; }
.hero-badge-dot { background: var(--ink); box-shadow: none; }
.hero .lead { color: var(--muted); font-size: 1.05rem; line-height: 1.65; }
.hero .lead b { color: var(--ink); font-weight: 600; }
.hero-actions { margin-top: 30px; }
.hero-note { color: var(--muted); }
.hero-proof { gap: 12px; margin-top: 40px; }
.proof { border-top: 1px solid var(--line-strong); padding-top: 14px; }
.proof b { font-size: .85rem; font-weight: 600; }
.proof span { color: var(--muted); font-size: .75rem; }
.book-stage::before { background: radial-gradient(circle, #E4E4E7, rgba(228,228,231,0) 68%); filter: none; }
.book { transform-style: preserve-3d; }
.book-page { background: #fff; border: 1px solid var(--line); border-radius: 2px 14px 14px 2px; box-shadow: none; }
.book-spine { background: #1D1D1F; box-shadow: none; }
.book-page::before { background: #1D1D1F14; }
.folio { color: var(--muted); }
.kicker, .dropcap { color: var(--gold-dim); }
.book-caption { background: #fff; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); backdrop-filter: none; }
.book-caption-dot { background: var(--ink); }

/* до / после */
.ba { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; background: #fff; }
.ba-handle { background: var(--ink); }
.ba-knob { background: #fff; border-color: var(--ink); color: var(--ink); box-shadow: none; border-radius: 999px; }
.ba-tag { border-radius: 999px; background: var(--ink); color: #fff; }
.ba-tag-r { background: var(--ink); color: #fff; }
.ba-page-wrap { background: #F5F5F7; }
.ba-page { border-color: var(--line); border-radius: 12px; box-shadow: none; }
.ba-raw { background: #fff; border-right: 2px solid var(--ink); }

/* output strip */
.output-strip { background: #fff; }
.output-item { border-color: var(--line); }
.output-item b { font-family: var(--sans); font-size: 1.15rem; font-weight: 600; color: var(--ink); letter-spacing: -.03em; }
.output-item span { color: var(--muted); }

/* бегущая типографическая строка */
.type-marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #F5F5F7;
  padding: 18px 0;
  white-space: nowrap;
}
.type-marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-left: 28px;
  animation: typeMarquee 38s linear infinite;
  will-change: transform;
}
.type-marquee span {
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.05em;
  color: var(--ink);
}
.type-marquee i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #C7C7CC;
  flex: none;
}
@keyframes typeMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .type-marquee-track { animation: none; }
}

/* калькулятор, чипы, поля */
.calc { border: 1px solid var(--line); background: #fff; overflow: hidden; }
.calc-head { padding: 20px 26px; background: #fff; border-bottom: 1px solid var(--line); }
.calc-body { padding: 26px; background: #fff; }
.calc-aside { background: #EFEFEF; border: 1px solid var(--line); padding: 26px; }
.field label { color: var(--muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
input, select, textarea { background: #F5F5F7; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--ink); font-size: .95rem; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; }
.chip { border: 1px solid var(--line-strong); background: #fff; border-radius: 999px; font-size: .85rem; font-weight: 500; color: var(--ink); padding: 8px 13px; }
.chip:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input { accent-color: #fff; }
.total-row { border-top: 1px solid var(--line); }
.total { font-family: var(--sans); font-size: 2.6rem; font-weight: 500; letter-spacing: -.05em; color: var(--ink); }
.check-list li::before { color: var(--muted); }
.aside-note { border-top: 1px solid var(--line-strong); }
.aside-note b { color: var(--ink); font-weight: 600; }

/* тарифы и FAQ */
.price-card { background: #fff; border: 1px solid var(--line); padding: 28px; }
.price-card.featured { background: #1D1D1F; color: #F5F5F7; border-color: #1D1D1F; transform: none; }
.price-card.featured .muted { color: #A1A1A6; }
.price-card.featured .eyebrow { color: #C7C7CC; }
.price-card.featured .btn-primary { background: #F5F5F7; color: #1D1D1F; }
.price-card.featured .btn-ghost { color: #F5F5F7; border-color: #FFFFFF40; }
.price-num { font-size: 2.6rem; font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.price-badge { background: var(--accent); color: #1D1D1F; border-radius: 999px; }
.price-card.featured .price-badge { background: #F5F5F7; color: #1D1D1F; }
.promo-banner { display:flex; align-items:center; gap:12px; margin:0 0 22px; padding:14px 18px; background:#fff; border:1px solid var(--line); border-radius:20px; }
.promo-banner[hidden] { display:none; }
.promo-tag { display:inline-flex; align-items:center; padding:6px 12px; border-radius:999px; background:var(--accent); color:#1D1D1F; font-size:.85rem; font-weight:600; letter-spacing:.02em; white-space:nowrap; }
.promo-text { color: var(--ink); font-size:.95rem; }
.promo-text #promoUntil { color: var(--muted); }
.feat li::before { color: var(--muted); }
.faq details { background: #fff; border: 1px solid var(--line); padding: 0 22px; }
.faq details[open] { border-color: var(--line-strong); box-shadow: none; }
.faq summary { font-family: var(--sans); font-size: 1.18rem; font-weight: 600; letter-spacing: -.02em; }
.faq summary::after { color: var(--ink); }
.faq details p { color: var(--muted); }

/* CTA и футер */
.cta-band { background: #1D1D1F; color: #F5F5F7; padding: 64px 0; }
.cta-inner .eyebrow { color: #A1A1A6; }
.cta-inner p { color: #A1A1A6; }
.cta-card { border-radius: 20px; }
.cta-card .cta-inner { padding: 0 clamp(18px, 3vw, 36px); }
.cta-actions .btn-primary { background: #F5F5F7; color: #1D1D1F; }
.cta-actions .btn-primary:hover { background: #fff; color: #1D1D1F; }
.cta-actions .btn-ghost { color: #F5F5F7; border-color: #FFFFFF40; background: transparent; }
.cta-actions .btn-ghost:hover { color: #1D1D1F; background: #F5F5F7; }
.footer { background: #1D1D1F; color: #A1A1A6; padding: 64px 0 28px; }
.footer h3 { color: #F5F5F7; }
.footer-title { color: #F5F5F7; font-family: var(--sans); letter-spacing: .14em; font-weight: 600; }
.footer-links, .footer-note, .footer-bottom { color: #A1A1A6; }
.footer-links a:hover { color: #fff; }
.footer .brand { color: #F5F5F7; }

/* анимация: медленный scroll-storytelling без library */
.reveal { opacity: 0; transform: translateY(34px) scale(.985); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.line-draw { transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease); }
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--ink); z-index: 300; pointer-events: none; transition: width .1s linear; }
.tilt-card { transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s var(--ease); will-change: transform; }
.is-tiltable { transition: transform .35s var(--ease); will-change: transform; }

/* кабинет, партнёры, заказ, админка */
.auth-page { background: #F5F5F7; }
.auth-card { border: 1px solid var(--line); overflow: hidden; }
.auth-form { background: #fff; }
.auth-aside { background: #1D1D1F; color: #F5F5F7; }
.auth-aside h2 { color: #F5F5F7; font-family: var(--sans); font-weight: 500; letter-spacing: -.03em; max-width: 18ch; }
.auth-aside .eyebrow { color: #C7C7CC; }
.auth-aside p, .auth-list { color: #A1A1A6; }
.auth-list span::before { color: #A1A1A6; }
.page-shell, .order-shell { padding: 56px 0 88px; }
.page-head .display { font-size: clamp(2.8rem, 5vw, 5rem); max-width: 16ch; }
.order-head .display { font-size: clamp(2.8rem, 5vw, 5rem); max-width: 18ch; }
.auth-form .display { font-size: clamp(2.6rem, 4.4vw, 4.4rem); max-width: 12ch; }
.partner-hero .display { font-size: clamp(2.9rem, 5vw, 4.4rem); max-width: 18ch; }
.page-head .lead, .order-head .muted { color: var(--muted); }
.dash-card, .partner-panel, .order-card, .admin-table-wrap { background: #fff; border: 1px solid var(--line); }
.dash-card h3, .order-section-title h3, .admin-section-head h3 { font-family: var(--sans); font-weight: 600; letter-spacing: -.03em; }
.dash-list .kv { border-bottom: 1px solid var(--line); }
.dash-list .kv a { color: var(--ink); font-weight: 600; }
.stat-box { background: #fff; border: 1px solid var(--line); }
.stat-box b { font-size: 2.1rem; font-weight: 500; line-height: 1; letter-spacing: -.05em; }
.stat-box span { color: var(--muted); }
.partner-step { border-top: 1px solid var(--line-strong); }
.partner-step b { font-size: 1.6rem; font-weight: 500; color: var(--ink); letter-spacing: -.05em; }
.partner-step span { color: var(--muted); }
.copy-row input { background: #F5F5F7; }
.order-card .kv a { color: var(--ink); font-weight: 600; }
.order-status-value { font-family: var(--sans); font-size: 1.9rem; font-weight: 500; letter-spacing: -.04em; }
.price-num[style*="gold-dim"] { color: var(--ink) !important; }
#pageStage { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.admin-login { border: 1px solid var(--line); overflow: hidden; }
.admin-login-copy { background: #1D1D1F; color: #F5F5F7; }
.admin-login-copy .eyebrow { color: #C7C7CC; }
.admin-login-copy p { color: #A1A1A6; }
.admin-login-copy code { color: #F5F5F7; background: #FFFFFF1A; border-radius: 6px; padding: 2px 6px; }
.admin-login-form code { color: #1D1D1F; background: #EFEFEF; border-radius: 6px; padding: 2px 6px; }
.admin-login-form { background: #fff; }
.admin-table th { color: var(--muted); border-bottom: 1px solid var(--line-strong); letter-spacing: .12em; }
.admin-table td { border-bottom: 1px solid var(--line); }
.admin-table tbody tr:hover { background: #EFEFEF; }
#stats.stat-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* студия: плоская symmetric surface, без «бумажного» бежевого */
.studio { grid-template-columns: 400px 1fr; }
.studio-panel { background: #F5F5F7; border-right: 1px solid var(--line); padding: 22px 22px 0; }
.studio-work { background: #EFEFEF; scroll-margin-top: 74px; }
.panel-section { border-bottom: 1px solid var(--line); }
.panel-section h4 { font-family: var(--sans); font-size: .7rem; font-weight: 600; letter-spacing: .14em; color: var(--ink); }
.panel-section h4::before { background: var(--ink); }
.studio-guide div { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.studio-guide b { color: var(--ink); }
.mode-tabs button { border: 1px solid var(--line-strong); background: #fff; border-radius: 999px; font-weight: 500; }
.mode-tabs button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.dropzone { background: #fff; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); }
.dropzone.drag { background: #EFEFEF; border-color: var(--ink); }
#warn, .dict-saved, .dict-browser { color: var(--muted) !important; }
#warn.is-warn { margin-top:10px; padding:10px 12px; border-radius:12px; background:#F7F3EA; border:1px solid #E6DBC6; color:#6B5E3E !important; font-size:.85rem; line-height:1.5; display:flex; flex-direction:column; gap:6px; }
.studio-build { background: linear-gradient(to bottom, rgba(245,245,247,0), #F5F5F7 32%); }
.work-head { background: #fff; border: 1px solid var(--line); }
.work-title h2 { font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: -.02em; }
.work-status::before { background: var(--ink); }
.metrics-row .kv { background: #fff; border: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 999px; }
.preview-empty { background: #fff; }
.preview-empty h3 { font-family: var(--sans); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.preview-empty p { color: var(--muted); }
.order-box { border: 1px solid var(--line); }

/* надиктовка */
.dict-backdrop { background: rgba(29,29,31,.72); }
.dict-sheet { background: #fff; border: 1px solid var(--line); box-shadow: none; border-radius: var(--radius); }
.dict-close { color: var(--muted); }
.dict-title { font-family: var(--sans); font-weight: 500; letter-spacing: -.045em; }
.dict-meta-row { border-color: var(--line); }
.dict-state.live { color: var(--ink); }
.dict-orb { background: #F5F5F7; border-color: var(--ink); color: var(--ink); box-shadow: none; }
.dict-orb.live { background: var(--ink); color: #fff; }
.dict-orb.live::after { border-color: var(--line-strong); }
.dict-bars i { background: var(--ink); }
.dict-text { background: #F5F5F7; border-radius: 12px; font-family: var(--sans); font-size: 1.1rem; }
.dict-hint, .dict-timer { color: var(--muted); }
.dict-hint.error { color: #B3261E; }

/* адаптив поверх skin */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(280px, .8fr); gap: 34px; }
  .book-stage { min-height: 430px; }
  .book { transform: scale(.9); }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-layout { grid-template-columns: 1fr; }
  #stats.stat-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .nav-links { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; }
  .nav-links a:not(.btn):hover { background: #EFEFEF; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy .display { max-width: 14ch; }
  .book-stage { order: 2; min-height: 380px; }
  .output-grid { grid-template-columns: 1fr 1fr; }
  .studio { grid-template-columns: 1fr; }
  .studio-panel { border-right: none; border-bottom: 1px solid var(--line); padding-bottom: 0; }
  .studio-build { position: static; }
  .auth-card { grid-template-columns: 1fr; }
  .auth-aside { order: -1; }
  .dashboard-grid, .partner-hero, .cta-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .container { width: 92vw; }
  .nav-inner { height: 62px; }
  .hero { padding-top: 44px; }
  .hero-copy .display { font-size: clamp(2.9rem, 14.4vw, 4.1rem); }
  .hero-proof { grid-template-columns: 1fr; gap: 0; }
  .book-stage { min-height: 330px; }
  .book { transform: scale(.68); }
  .output-item { padding: 14px; }
  .process-grid, .partner-steps, .stat-strip, #stats.stat-strip { grid-template-columns: 1fr; }
  .calc-head, .calc-body, .calc-aside { padding: 22px 20px; }
  .price-card { padding: 26px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { display: block; }
  .workspace, .studio-work { padding: 14px; }
  .preview-shell { height: 64vh; min-height: 340px; }
  .auth-card { width: 92vw; }
  .order-cards { grid-template-columns: 1fr; }
  .page-head, .order-head { display: block; }
}

/* компактный мобильный поток студии: настройки раскрываются по кнопке */
.settings-toggle { display: none; }
@media (max-width: 920px) {
  .settings-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 12px 0 2px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: .88rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
  }
  .settings-toggle-hint {
    margin-left: auto;
    color: var(--muted);
    font-size: .68rem;
    font-weight: 400;
    letter-spacing: 0;
  }
  .settings-toggle-icon {
    position: relative;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
  }
  .settings-toggle-icon::before,
  .settings-toggle-icon::after {
    content: "";
    position: absolute;
    left: 4px;
    right: 4px;
    top: 50%;
    height: 1.5px;
    border-radius: 2px;
    background: var(--ink);
    transform: translateY(-50%);
  }
  .settings-toggle-icon::after {
    transform: translateY(-50%) rotate(90deg);
    transition: transform .25s var(--ease);
  }
  .settings-toggle[aria-expanded="true"] .settings-toggle-icon::after {
    transform: translateY(-50%) rotate(0deg);
  }
  .studio-settings.is-collapsed { display: none; }
  .studio-settings .panel-section:first-child { border-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
  .tilt-card { transform: none !important; }
}

/* логотип «Книговерст» в шапке */
.brand { flex: 0 0 auto; }
.brand-logo { display: block; height: 56px; width: auto; max-width: none; flex: 0 0 auto; }
@media (max-width: 1100px) { .brand-logo { height: 42px; } }
@media (max-width: 920px)  { .brand-logo { height: 48px; } }
@media (max-width: 680px)  { .brand-logo { height: 38px; } }

/* логотип в подвале (для тёмного фона) */
.footer-logo { height: 44px; }
@media (max-width: 680px) { .footer-logo { height: 34px; } }

/* юридические документы */
.legal { max-width: 820px; padding: 44px 0 80px; }
.legal > .display { font-size: clamp(2rem, 4.4vw, 3rem); margin: 6px 0 6px; }
.legal h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; max-width: none; margin: 30px 0 8px; }
.legal p { color: #3a3a3c; line-height: 1.7; margin: 10px 0; }
.legal ul { margin: 10px 0 10px 22px; color: #3a3a3c; line-height: 1.7; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal .lead { color: var(--muted); }
.legal-table { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 14px 0; }
.legal-table > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.legal-table > div:last-child { border-bottom: 0; }
.legal-table span { color: var(--muted); }
.legal-table b { font-weight: 600; text-align: right; }
.legal-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.legal-links a { color: var(--muted); font-size: .85rem; }
.legal-links a:hover { color: var(--ink); }
.footer .legal-links a { color: #C7C7CC; }
.footer .legal-links a:hover { color: #FFFFFF; }

/* cookie-баннер */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 220; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px; max-width: 980px; margin-inline: auto; }
.cookie-banner p { margin: 0; color: #3a3a3c; font-size: .9rem; line-height: 1.5; max-width: 62ch; }
.cookie-banner a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 680px) { .cookie-banner { left: 12px; right: 12px; bottom: 12px; } }

/* печать юридических документов */
@media print {
  .nav, .footer, .cookie-banner, .no-print, .scroll-progress { display: none !important; }
  body { background: #fff; }
  .legal { max-width: none; padding: 0; }
  .legal a { color: #000; text-decoration: none; }
  .legal h2 { page-break-after: avoid; }
}
