/* ============================================================
   «Hoja sobre mesa fría» — белый лист на прохладной серо-голубой
   столешнице. Янтарный корешок слева, дисплей Fraunces, единый
   бирюзовый CTA. Юр-разделы нумерует CSS-счётчик.
   ============================================================ */

@font-face { font-family: 'Fraunces'; font-weight: 500; font-display: swap; src: url('/fonts/fraunces-500.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-weight: 600; font-display: swap; src: url('/fonts/fraunces-600.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-weight: 400; font-display: swap; src: url('/fonts/publicsans-400.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-weight: 600; font-display: swap; src: url('/fonts/publicsans-600.woff2') format('woff2'); }
@font-face { font-family: 'Plex Mono'; font-weight: 400; font-display: swap; src: url('/fonts/plexmono-400.woff2') format('woff2'); }

:root {
  --bg: #e9edf1;
  --sheet: #ffffff;
  --ink: #16233a;
  --ink-soft: #45536b;
  --muted: #8a94a3;
  --teal: #0f8a7e;
  --teal-dark: #0b6f65;
  --amber: #e0912f;
  --field: #f2f5f8;
  --line: rgba(22, 35, 58, 0.12);
  --line-soft: rgba(22, 35, 58, 0.08);
  --bad: #c23b34;
  --f-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --sheet-w: 720px;
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
img, svg { display: inline-block; vertical-align: middle; max-width: 100%; }
a { color: var(--teal); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* ---------- лист на столе ---------- */
.table {
  max-width: var(--sheet-w);
  margin: 48px auto 40px;
  background: var(--sheet);
  border-radius: var(--radius);
  border-left: 4px solid var(--amber);
  box-shadow: 0 1px 2px rgba(22, 35, 58, 0.05), 0 30px 60px -30px rgba(22, 35, 58, 0.35);
  overflow: hidden;
}

.sheet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 40px;
  border-bottom: 1px solid var(--line-soft);
}
.brandmark { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brandmark__name { font: 600 18px var(--f-display); letter-spacing: -0.01em; }
.brandmark__nav { font: 400 12px var(--f-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal); text-decoration: none; }
.brandmark__nav:hover { color: var(--teal-dark); }

/* ---------- общий вертикальный поток внутри листа ---------- */
.stack { padding: 44px 40px 40px; }
.stack--center { text-align: center; }

.eyebrow { display: inline-block; font: 400 12px var(--f-mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.eyebrow--teal { color: var(--teal); }
.intro { text-align: center; max-width: 520px; margin: 0 auto; }
.headline { font: 600 clamp(34px, 5.4vw, 52px)/1.05 var(--f-display); letter-spacing: -0.02em; margin: 0 0 16px; }
.standfirst { font-size: 18px; color: var(--ink-soft); margin: 0; }

/* ---------- видео ---------- */
.screen { margin-top: 36px; }
.screen__frame {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 20px 44px -22px rgba(22, 35, 58, 0.55);
}
.screen__frame video { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--ink); }
.screen__cover {
  position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: 6px; padding: 0 24px 72px; text-align: center;
  color: #f3efe6; background: rgba(18, 32, 58, 0.42); font-family: inherit;
  transition: opacity 0.5s ease;
}
.screen__cover.is-gone { opacity: 0; pointer-events: none; }
.screen__play {
  width: 70px; height: 70px; border-radius: 50%; margin-bottom: 8px;
  display: grid; place-items: center; background: var(--teal);
  box-shadow: 0 10px 30px rgba(15, 138, 126, 0.5);
  animation: pulse 2.4s ease-out infinite;
}
.screen__play svg { fill: #fff; margin-left: 3px; }
.screen__title { font: 600 18px var(--f-display); }
.screen__hint { font: 400 12px var(--f-mono); letter-spacing: 0.05em; opacity: 0.85; }
.screen__caption { text-align: center; font-size: 15px; color: var(--muted); max-width: 480px; margin: 22px auto 0; }

/* ---------- форма ---------- */
.ask { margin-top: 44px; padding-top: 34px; border-top: 1px solid var(--line-soft); scroll-margin-top: 20px; }
.ask__top { margin-bottom: 24px; }
.ask__title { font: 600 27px/1.15 var(--f-display); margin: 6px 0 0; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fld { display: block; }
.fld__label { display: block; font: 600 13px var(--f-body); color: var(--ink); margin-bottom: 7px; }
.fld input[type="text"], .fld input[type="tel"] {
  width: 100%; font: 17px var(--f-body); color: var(--ink);
  background: var(--field); border: 1px solid transparent; border-radius: 10px;
  padding: 13px 14px; outline: none; transition: background 0.15s ease, border-color 0.15s ease;
}
.fld input::placeholder { color: var(--muted); }
.fld input:focus { background: #fff; border-color: var(--teal); }
.fld.is-bad input { background: #fbeeed; border-color: var(--bad); }
.fld__msg { display: block; font-size: 13px; color: var(--bad); margin-top: 6px; min-height: 0; }
.fld__msg:empty { display: none; }
.fld__msg--consent { margin: -6px 0 0; }

.phone { display: flex; }
.phone__cc {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  font: 16px var(--f-body); color: var(--ink);
  background: var(--field); border: 1px solid transparent; border-right: 0;
  border-radius: 10px 0 0 10px; padding: 0 12px;
}
.phone input { border-radius: 0 10px 10px 0 !important; }

.gotcha { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.agree { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin: 22px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-soft); cursor: pointer; }
.agree input { width: 22px; height: 22px; margin: 0; accent-color: var(--teal); }
.agree.is-bad span { color: var(--bad); }

.submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; margin-top: 22px; padding: 17px 22px;
  background: var(--teal); color: #fff; border: 0; border-radius: 999px;
  font: 600 17px var(--f-body); cursor: pointer; text-decoration: none;
  transition: background 0.18s ease, transform 0.1s ease;
}
.submit:hover { background: var(--teal-dark); }
.submit:active { transform: translateY(1px); }
.submit__arrow { transition: transform 0.18s ease; }
.submit:hover .submit__arrow { transform: translateX(4px); }
.submit--inline { width: auto; margin-top: 22px; }
.disclaimer { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 16px 0 0; }

.summary { background: #fbeeed; border: 1px solid #f0c9c5; border-radius: 12px; padding: 14px 16px; margin-bottom: 22px; }
.summary p { margin: 0 0 6px; font-weight: 600; color: var(--bad); font-size: 14px; }
.summary ul { margin: 0; padding-left: 18px; }
.summary a { color: var(--bad); font-size: 14px; }

/* ---------- доверие ---------- */
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0; margin: 34px 0 0; }
.chips li { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); background: var(--field); border-radius: 999px; padding: 8px 15px; }
.chips li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex: none; }

/* ---------- «стол» под листом: подвал ---------- */
.ground { max-width: var(--sheet-w); margin: 0 auto; padding: 8px 44px 56px; color: var(--ink-soft); font-size: 14px; }
.ground__lead { display: flex; flex-direction: column; gap: 6px; margin-bottom: 22px; }
.ground__lead p { margin: 0; color: var(--muted); }
.ground__nav { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.ground__nav a { color: var(--ink-soft); text-decoration: none; }
.ground__nav a:hover { color: var(--teal); }
.entity { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 20px; }
.entity dt { font: 400 11px/1.7 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.entity dd { margin: 0; color: var(--ink); }
.entity a { color: var(--teal); }
.ground__notes { border-top: 1px solid var(--line); padding-top: 18px; }
.ground__notes p { margin: 0 0 10px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.ground__notes b { color: var(--ink-soft); }
.ground__notes .tiny { font-size: 12px; }
.ground__copy { font: 400 12px var(--f-mono); color: var(--muted); margin: 18px 0 0; }

/* ---------- cookies: компактная карточка ---------- */
.cc { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 40; width: min(560px, calc(100% - 32px)); background: var(--ink); color: #f3efe6; border-radius: 14px; padding: 18px 20px; box-shadow: 0 20px 50px -12px rgba(22, 35, 58, 0.5); }
.cc[hidden] { display: none; }
.cc p { margin: 0 0 14px; font-size: 13px; line-height: 1.5; }
.cc a { color: #7fd8cd; }
.cc__row { display: flex; gap: 10px; justify-content: flex-end; }
.ghost, .solid { padding: 10px 18px; border-radius: 999px; font: 600 14px var(--f-body); cursor: pointer; }
.ghost { background: none; color: #f3efe6; border: 1px solid rgba(243, 239, 230, 0.4); }
.ghost:hover { border-color: #f3efe6; }
.solid { background: var(--teal); color: #fff; border: 1px solid var(--teal); }
.solid:hover { background: var(--teal-dark); border-color: var(--teal-dark); }

/* ---------- юр-документы: нумерация счётчиком ---------- */
.doc { padding: 44px 40px 40px; counter-reset: sec; }
.doc__head { border-bottom: 1px solid var(--line-soft); padding-bottom: 20px; margin-bottom: 22px; }
.doc__date { font: 400 12px var(--f-mono); letter-spacing: 0.08em; color: var(--muted); margin: 8px 0 0; }
.doc__lead { font-size: 17px; color: var(--ink-soft); margin: 0 0 12px; }
.doc__body section { padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.doc__body section:last-child { border-bottom: 0; }
.doc__body h2 { counter-increment: sec; position: relative; padding-left: 52px; font: 600 20px/1.3 var(--f-display); margin: 0 0 10px; }
.doc__body h2::before { content: counter(sec, decimal-leading-zero); position: absolute; left: 0; top: -2px; font: 600 22px var(--f-display); color: var(--amber); }
.doc__body p, .doc__body li { font-size: 16px; line-height: 1.7; color: var(--ink-soft); }
.doc__body p { margin: 0 0 10px; }
.doc__body a { color: var(--teal); }
.doc .entity { background: var(--field); border-radius: 12px; padding: 16px 18px; margin: 12px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 10px 0; }
.doc th, .doc td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; color: var(--ink-soft); }
.doc th { font: 400 11px/1.6 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.doc code { font: 14px var(--f-mono); background: var(--field); border-radius: 5px; padding: 1px 6px; }

/* ---------- gracias ---------- */
.receipt { max-width: 520px; margin: 0 auto; text-align: center; }
.receipt__seal { width: 72px; height: 72px; border-radius: 50%; display: inline-grid; place-items: center; background: #e4f2ef; color: var(--teal); margin-bottom: 16px; }
.receipt__contact { color: var(--ink-soft); margin: 10px 0 0; }

/* ---------- движение ---------- */
@keyframes pulse { 0%, 100% { box-shadow: 0 10px 30px rgba(15, 138, 126, 0.5), 0 0 0 0 rgba(15, 138, 126, 0.35); } 50% { box-shadow: 0 10px 30px rgba(15, 138, 126, 0.5), 0 0 0 16px rgba(15, 138, 126, 0); } }
@media (prefers-reduced-motion: reduce) { .screen__play, .screen__cover, .submit__arrow { animation: none; transition: none; } }

/* ---------- узкие экраны ---------- */
@media (max-width: 720px) {
  .table { margin: 20px 12px; border-radius: 14px; }
  .sheet-top { padding: 18px 22px; }
  .stack { padding: 32px 22px 30px; }
  .headline { font-size: 32px; }
  .standfirst { font-size: 16px; }
  .pair { grid-template-columns: 1fr; gap: 16px; }
  .ground { padding: 8px 22px 44px; }
  .doc { padding: 32px 22px 30px; }
  .doc__body h2 { padding-left: 42px; font-size: 18px; }
  .doc__body h2::before { font-size: 18px; }
  .cc { bottom: 12px; }
  .cc__row { justify-content: stretch; }
  .cc__row button { flex: 1; }
}
@media (max-width: 420px) {
  .brandmark__name { font-size: 16px; }
  .headline { font-size: 28px; }
}
