/* MyHumps - сайт. Токены из DESIGN.md. */
@font-face {
  font-family: "Onest";
  src: url("/fonts/Onest-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #F4F4F1;
  --surface: #FFFFFF;
  --text: #1A1915;
  --muted: #68645A;
  --border: #E3E2DC;
  --track: #DEDCD4;
  --accent: #FFD60A;
  --accent-pressed: #F2C200;
  --success: #1E7F45;
  --error: #C8302A;
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --font: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--text); color: var(--bg); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* Шапка */
.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.logo { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; text-decoration: none; }
.lang { display: flex; gap: 4px; }
.lang a, .lang span {
  font: 600 14px/1 var(--font); padding: 8px 12px; border-radius: 999px; text-decoration: none;
}
.lang span { background: var(--surface); border: 1px solid var(--border); }
.lang a { color: var(--muted); }
.lang a:hover { color: var(--text); }

/* Главная */
.hero { padding: 48px 0 40px; }
.hero h1 {
  font-size: clamp(44px, 9vw, 72px); line-height: 0.95; letter-spacing: -0.035em;
  font-weight: 800; margin: 0 0 24px; max-width: 12ch;
}
.lead { font-size: 20px; line-height: 1.45; color: var(--muted); max-width: 34ch; margin: 0; }
.lead strong { color: var(--text); font-weight: 600; }

.slab {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px; margin: 0 0 16px;
}
.slab h2 { font-size: 24px; line-height: 1.15; letter-spacing: -0.015em; font-weight: 800; margin: 0 0 8px; }
.slab p { margin: 0 0 16px; color: var(--muted); }
.slab p:last-child { margin-bottom: 0; }

.points { display: grid; gap: 0; margin: 8px 0 40px; }
.point { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--border); }
.point:last-child { border-bottom: 1px solid var(--border); }
.point b { font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.point h3 { margin: 0 0 4px; font-size: 19px; font-weight: 700; line-height: 1.3; }
.point p { margin: 0; color: var(--muted); }

.prices { display: flex; flex-wrap: wrap; gap: 24px 40px; margin: 16px 0 8px; }
.price b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.price span { font-size: 13px; font-weight: 500; color: var(--muted); }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 60px; padding: 0 32px;
  border-radius: 999px; border: 0; background: var(--accent); color: var(--text);
  font: 800 18px/1 var(--font); text-decoration: none; cursor: pointer; width: 100%;
}
.btn:hover { background: var(--accent-pressed); }
.btn:disabled { background: var(--track); color: var(--muted); cursor: default; }
.btn-secondary { background: var(--surface); border: 2px solid var(--text); min-height: 56px; }
.btn-secondary:hover { background: var(--bg); }
@media (min-width: 560px) { .btn { width: auto; } }
.soon { display: inline-block; font: 600 15px/1 var(--font); padding: 12px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }

/* Документы */
.doc { padding: 24px 0 48px; }
.doc h1 { font-size: clamp(34px, 6vw, 48px); line-height: 1.05; letter-spacing: -0.025em; font-weight: 800; margin: 16px 0 8px; }
.doc h2 { font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; font-weight: 800; margin: 40px 0 12px; }
.doc p, .doc li { max-width: 68ch; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .meta { color: var(--muted); font-size: 15px; margin: 0 0 24px; }
.draft {
  background: var(--surface); border: 2px solid var(--text); border-radius: var(--r-md);
  padding: 14px 18px; font-size: 15px; margin: 16px 0;
}
mark { background: #FFF1A8; padding: 0 3px; border-radius: 4px; }

/* FAQ */
details { border-top: 1px solid var(--border); padding: 4px 0; }
details:last-of-type { border-bottom: 1px solid var(--border); }
summary { cursor: pointer; font-weight: 700; font-size: 19px; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 400; color: var(--muted); }
details[open] summary::after { content: "\2212"; }
details p { margin: 0 0 16px; color: var(--muted); max-width: 62ch; }

/* Отписка */
.center { min-height: 60vh; display: flex; align-items: center; }
.center .slab { width: 100%; padding: 32px 28px; }
.center h1 { font-size: clamp(34px, 7vw, 48px); line-height: 1.05; letter-spacing: -0.025em; font-weight: 800; margin: 0 0 12px; }
.center p { font-size: 17px; }
.state-ok h1 { color: var(--text); }
.hidden { display: none !important; }

/* Подвал */
.foot { border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--muted); font-size: 15px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--text); text-decoration: underline; }

@media (prefers-color-scheme: dark) {
  :root { --bg: #121210; --surface: #1C1B18; --text: #F4F4F1; --muted: #A39F94; --border: #2E2D29; --track: #3A3934; }
  mark { background: #5A4C00; color: var(--text); }
  .btn, .btn:hover { color: #1A1915; }
  .btn-secondary { color: var(--text); }
  .btn:disabled { color: var(--muted); }
}
