
@font-face { font-family: "Archivo"; font-weight: 400; font-display: swap; src: url("/fonts/archivo-400.ttf") format("truetype"); }
@font-face { font-family: "Archivo"; font-weight: 600; font-display: swap; src: url("/fonts/archivo-600.ttf") format("truetype"); }
@font-face { font-family: "Archivo"; font-weight: 800; font-display: swap; src: url("/fonts/archivo-800.ttf") format("truetype"); }

:root {
  --paper: #f6f7f9;
  --card: #ffffff;
  --ink: #23272f;
  --lead: #5b6270;
  --faint: #8a909c;
  --line: #e3e6eb;
  --marker: #ffd84d;
  --marker-soft: #fff3c2;
  --danger: #b42318;
  --ok: #1a7a4f;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-color: var(--marker); text-decoration-thickness: 3px; text-underline-offset: 3px; }
a:hover { background: var(--marker-soft); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

header.top { padding: 22px 0; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { font-weight: 800; font-size: 24px; letter-spacing: -0.02em; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.brand:hover { background: none; }
.brand .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 5px var(--marker); }
nav.top { display: flex; gap: 18px; font-size: 15px; color: var(--lead); flex-wrap: wrap; }
nav.top a { text-decoration: none; }

.mark { background: linear-gradient(transparent 58%, var(--marker) 58%, var(--marker) 92%, transparent 92%); padding: 0 2px; }

.hero { padding: 40px 0 56px; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(36px, 6vw, 58px); line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 18px; font-weight: 800; }
.hero p.lead { font-size: 19px; color: var(--lead); margin: 0 0 28px; max-width: 34em; }
.stores { display: flex; gap: 12px; flex-wrap: wrap; }
.store { display: inline-flex; flex-direction: column; justify-content: center; min-width: 168px; padding: 10px 18px; border-radius: 12px; background: var(--ink); color: #fff; text-decoration: none; line-height: 1.2; }
.store small { font-size: 11px; opacity: 0.7; letter-spacing: 0.04em; text-transform: uppercase; }
.store b { font-size: 17px; font-weight: 600; }
.store[aria-disabled="true"] { opacity: 0.85; cursor: default; }
.store:hover { background: var(--ink); }

.sheet { background: var(--card); border-radius: 18px; padding: 22px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -18px rgba(35, 39, 47, 0.25); transform: rotate(-2deg); }
.sheet svg { width: 100%; height: auto; display: block; }

section { padding: 44px 0; }
section h2 { font-size: clamp(26px, 4vw, 34px); letter-spacing: -0.025em; margin: 0 0 22px; font-weight: 800; line-height: 1.15; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step, .card { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: 0 0 0 1px var(--line); }
.step::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--marker); font-weight: 800; margin-bottom: 12px; }
.step h3, .card h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.step p, .card p { margin: 0; color: var(--lead); font-size: 15.5px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: 0 0 0 1px var(--line); }
.plan.pro { box-shadow: 0 0 0 2px var(--ink); }
.plan h3 { margin: 0 0 4px; font-size: 22px; font-weight: 800; }
.plan ul { margin: 14px 0 0; padding-left: 20px; color: var(--lead); }
.plan li { margin: 4px 0; }

.doc { padding: 12px 0 64px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.03em; line-height: 1.1; margin: 8px 0 6px; font-weight: 800; }
.doc .meta { color: var(--faint); font-size: 14px; margin: 0 0 30px; }
.doc h2 { font-size: 22px; letter-spacing: -0.015em; margin: 38px 0 10px; font-weight: 800; }
.doc h3 { font-size: 18px; margin: 24px 0 6px; font-weight: 600; }
.doc p, .doc li { color: #333945; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.summary { background: var(--card); border-radius: var(--radius); padding: 20px 22px; box-shadow: 0 0 0 1px var(--line); border-left: 6px solid var(--marker); }
.summary ul { margin: 0; }

details { background: var(--card); border-radius: 12px; box-shadow: 0 0 0 1px var(--line); margin: 10px 0; }
details summary { cursor: pointer; padding: 16px 18px; font-weight: 600; list-style: none; position: relative; padding-right: 44px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 22px; font-weight: 400; color: var(--lead); }
details[open] summary::after { content: "–"; }
details > div { padding: 0 18px 16px; color: var(--lead); }

form.danger { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: 0 0 0 1px var(--line); margin-top: 18px; }
label { display: block; font-weight: 600; font-size: 15px; margin: 14px 0 6px; }
input[type="email"], input[type="password"] { width: 100%; font: inherit; padding: 12px 14px; border-radius: 10px; border: 1px solid #cfd4db; background: #fff; color: var(--ink); }
input:focus { outline: 3px solid var(--marker); border-color: var(--ink); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-top: 18px; }
.check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
button { font: inherit; font-weight: 600; border: 0; border-radius: 12px; padding: 13px 20px; margin-top: 20px; cursor: pointer; }
button.danger { background: var(--danger); color: #fff; }
.notice { border-radius: 12px; padding: 14px 16px; margin: 18px 0; font-size: 15.5px; }
.notice.err { background: #fdecea; color: #7a1a12; }
.notice.ok { background: #e6f4ec; color: #0d5e3b; }

footer.bottom { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--faint); font-size: 14px; }
footer.bottom .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.bottom nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer.bottom a { text-decoration: none; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; }
  .sheet { max-width: 340px; margin: 0 auto; }
  .steps, .grid, .plans { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
