/* Max Landing: минимализм. Один шрифт (Geologica), один акцент, тонкие линии, много воздуха. */
:root {
  --paper: oklch(0.975 0.004 250);
  --card: oklch(0.995 0.002 250);
  --ink: oklch(0.2 0.02 265);
  --ink-soft: oklch(0.45 0.015 265);
  --line: oklch(0.88 0.008 265);
  --accent: oklch(0.45 0.17 262);
  --accent-hover: oklch(0.38 0.17 262);
  --on-accent: oklch(0.99 0.002 250);
  --error: oklch(0.5 0.18 28);
  --font: "Geologica", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 300 1rem/1.6 var(--font); }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration-color: color-mix(in oklch, currentColor 35%, transparent); text-underline-offset: 0.25em; transition: text-decoration-color 0.2s var(--ease), color 0.2s var(--ease); }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--ink); color: var(--paper); padding: 0.5rem 1rem; z-index: 10; }

/* ---------- Главная ---------- */
.wrap { width: min(100% - 2 * var(--gutter), 60rem); margin-inline: auto; }

.top { display: flex; align-items: center; justify-content: space-between; min-height: 4.5rem; }
.logo { display: inline-flex; align-items: center; gap: 0.75rem; min-height: 2.75rem; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; }
.logo__mark { width: 1.5rem; height: 1.5rem; flex: none; background: var(--ink); position: relative; }
.logo__mark::after { content: ""; position: absolute; left: 0.3125rem; right: 0.3125rem; top: 0.6875rem; height: 2px; background: var(--paper); }
.top__link { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: 0.9375rem; color: var(--ink-soft); }

.hero { padding-block: clamp(4rem, 12vw, 9rem) clamp(3.5rem, 8vw, 6rem); }
.hero h1 { margin: 0; max-width: 14ch; font-weight: 300; font-size: clamp(2.5rem, 8.5vw, 5.75rem); line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; }
.hero__lead { margin-top: 2rem; max-width: 34rem; font-size: clamp(1.0625rem, 2.2vw, 1.25rem); line-height: 1.55; color: var(--ink-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.5rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0.75rem 1.75rem; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font: 400 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease); }
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn:disabled { opacity: 0.55; cursor: progress; }

.block { padding-block: clamp(3rem, 8vw, 5.5rem); border-top: 1px solid var(--line); display: grid; gap: 2rem; }
.block h2 { margin: 0; font-size: 0.9375rem; font-weight: 400; letter-spacing: 0.02em; color: var(--ink-soft); }
@media (min-width: 56rem) { .block { grid-template-columns: 12rem 1fr; gap: 3rem; } }

.prices { margin: 0; padding: 0; list-style: none; }
.prices li { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.prices li:first-child { padding-top: 0; }
.prices li:last-child { border-bottom: 0; padding-bottom: 0; }
.prices__name { font-size: clamp(1.0625rem, 2.4vw, 1.375rem); letter-spacing: -0.01em; }
.prices__price { flex: none; font-weight: 400; font-size: clamp(1.0625rem, 2.4vw, 1.375rem); white-space: nowrap; }
.note { margin-top: 1.5rem; font-size: 0.9375rem; color: var(--ink-soft); }

.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 1.75rem; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3rem 1fr; align-items: baseline; font-size: 1.0625rem; }
.steps li::before { content: "0" counter(s); font-size: 0.875rem; color: var(--accent); font-weight: 400; letter-spacing: 0.04em; }

.text { display: grid; gap: 1rem; max-width: 38rem; font-size: 1.0625rem; }

address { font-style: normal; }
.facts { margin: 0; display: grid; gap: 0; }
.facts > div { display: grid; gap: 0.125rem; padding: 0.875rem 0; border-bottom: 1px solid var(--line); }
.facts > div:first-child { padding-top: 0; }
.facts > div:last-child { border-bottom: 0; }
.facts dt { font-size: 0.875rem; color: var(--ink-soft); }
.facts dd { margin: 0; }
@media (min-width: 40rem) { .facts > div { grid-template-columns: 10rem 1fr; gap: 1.5rem; align-items: baseline; } }

.foot { padding-block: 2.5rem 3rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; font-size: 0.875rem; color: var(--ink-soft); }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.foot a { display: inline-flex; align-items: center; min-height: 2.75rem; }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .block { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 30%; }
    @keyframes rise { from { opacity: 0; transform: translateY(1.25rem); } to { opacity: 1; transform: none; } }
  }
  .hero > * { animation: fade 0.9s var(--ease) both; }
  .hero > :nth-child(2) { animation-delay: 0.12s; }
  .hero > :nth-child(3) { animation-delay: 0.24s; }
  @keyframes fade { from { opacity: 0; transform: translateY(0.75rem); } to { opacity: 1; transform: none; } }
}

/* ---------- Страница оплаты, «спасибо», юридические страницы ---------- */
body.page { min-height: 100dvh; display: grid; place-items: center; padding: 1.25rem; }
.box { width: 100%; max-width: 30rem; background: var(--card); border: 1px solid var(--line); padding: clamp(1.5rem, 5vw, 2.5rem); }
.box .brand { display: flex; align-items: center; gap: 0.625rem; margin: 0 0 2rem; font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.01em; }
.box .brand::before { content: ""; width: 1.125rem; height: 1.125rem; background: var(--ink); flex: none; }
.box h1 { margin: 0 0 0.75rem; font-size: clamp(1.625rem, 6vw, 2rem); line-height: 1.12; letter-spacing: -0.03em; font-weight: 300; text-wrap: balance; }
.sum { margin: 1.75rem 0; padding: 1.25rem 0; border-block: 1px solid var(--line); }
.sum dt { font-size: 0.875rem; color: var(--ink-soft); }
.sum dd { margin: 0 0 1rem; }
.sum dd:last-child { margin-bottom: 0; }
.sum .amount { font-size: 2.5rem; font-weight: 300; letter-spacing: -0.04em; line-height: 1.1; }
.agree { display: flex; gap: 0.75rem; align-items: flex-start; padding-block: 0.5rem; font-size: 0.9375rem; line-height: 1.45; color: var(--ink-soft); cursor: pointer; }
.agree input { flex: none; width: 1.375rem; height: 1.375rem; margin: 0.1rem 0 0; accent-color: var(--accent); }
.agree a { color: var(--ink); }
.box .btn { width: 100%; margin-top: 1.25rem; }
.msg { min-height: 1.5rem; margin: 0.75rem 0 0; font-size: 0.9375rem; }
.msg[data-kind="error"] { color: var(--error); }
.box .note { margin: 1.5rem 0 0; font-size: 0.875rem; color: var(--ink-soft); }

.legal .box { max-width: 42rem; }
.legal h2 { margin: 2rem 0 0.5rem; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; }
.legal p + p { margin-top: 0.75rem; }
.legal .box > p { color: var(--ink-soft); }
.back { display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: 1.5rem; font-size: 0.9375rem; }
@media (prefers-reduced-motion: reduce) { .btn, a { transition: none; } }
