:root {
  --paper: #FAF9F5;
  --stone: #ECE9E2;
  --ink: #15161C;
  --muted: #6D6C66;
  --line: #DEDAD1;
  --red: #E3332B;
  --card: #FFFFFF;
  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --hand: "Caveat Brush", "Marker Felt", "Comic Sans MS", cursive;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #15161C; --stone: #1E1F26; --ink: #F3F1EA; --muted: #A09E96; --line: #2C2D35; --red: #F2463C; --card: #1E1F26;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #15161C; --stone: #1E1F26; --ink: #F3F1EA; --muted: #A09E96; --line: #2C2D35; --red: #F2463C; --card: #1E1F26;
}

* { box-sizing: border-box; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.5;
  padding-inline: clamp(16px, 5vw, 64px);
  padding-block: 0;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; }

/* Знак: «op^chki» — красная рукописная «a» вставлена корректорским знаком */
.mark { display: inline-flex; align-items: baseline; font-weight: 900; letter-spacing: -0.045em; line-height: 1; white-space: nowrap; }
.ins { position: relative; display: inline-block; width: 0.3em; height: 1em; }
.ins-a {
  position: absolute; left: 50%; bottom: 0.5em; transform: translateX(-50%) rotate(-8deg);
  font-family: var(--hand); font-weight: 400; color: var(--red); font-size: 0.95em; letter-spacing: 0; line-height: 1;
}
.ins svg { position: absolute; left: 50%; top: 0.84em; width: 0.26em; height: 0.3em; transform: translateX(-50%); overflow: visible; }

header {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding-block: 40px 0;
}
header .mark { font-size: 30px; text-decoration: none; }
nav { display: flex; gap: clamp(16px, 3vw, 32px); font-size: 15px; font-weight: 500; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--ink); }

.hero { padding-block: clamp(80px, 14vw, 170px) clamp(56px, 9vw, 110px); display: flex; flex-direction: column; gap: 28px; }
.hero h1 {
  margin: 0; font-weight: 800; letter-spacing: -0.045em; line-height: 0.95;
  font-size: clamp(48px, 9.4vw, 124px); max-width: 11.5ch; text-wrap: balance;
}
.hero h1 .note { position: relative; white-space: nowrap; }
.hero h1 .note::after {
  content: ""; position: absolute; left: -0.04em; right: -0.04em; bottom: -0.02em; height: 0.09em;
  background: var(--red); border-radius: 0.1em; transform: rotate(-1.2deg);
}
.hero p { margin: 0; max-width: 40ch; color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); }

section { border-top: 1px solid var(--line); padding-block: 40px 72px; display: grid; grid-template-columns: minmax(140px, 1fr) 3fr; gap: 24px 48px; }
.label { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-top: 6px; }

.app {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  padding: 24px; background: var(--card); border-radius: 28px;
}
.app .icon { width: 96px; height: 96px; display: block; border-radius: 22px; }
.app h3 a { color: inherit; text-decoration: none; }
.app h3 a:hover { text-decoration: underline; }
.app h3 { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.app .tag { margin: 6px 0 0; color: var(--muted); max-width: 44ch; }
.app .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pill { font-size: 13px; font-weight: 500; padding: 4px 11px; border-radius: 999px; background: var(--stone); color: var(--ink); white-space: nowrap; }
.status { font-family: var(--hand); color: var(--red); font-size: 26px; line-height: 1; transform: rotate(-4deg); white-space: nowrap; }
.more { margin: 20px 0 0; color: var(--muted); font-size: 15px; }

.about p { margin: 0; font-size: clamp(22px, 2.6vw, 32px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; max-width: 30ch; text-wrap: balance; }

.about-text { display: flex; flex-direction: column; gap: 16px; }
.about .small { font-size: 17px; font-weight: 400; letter-spacing: 0; line-height: 1.5; color: var(--muted); max-width: 46ch; }
.sig { font-family: var(--hand); color: var(--red); font-size: 34px; line-height: 1; transform: rotate(-5deg); transform-origin: left; }
.contact-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.email { font-size: clamp(26px, 3.4vw, 44px); font-weight: 800; letter-spacing: -0.03em; user-select: all; }
.copy {
  font: inherit; font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
}
.copy:hover { background: var(--ink); color: var(--paper); }

/* Документы: privacy.html и terms.html */
.doc { padding-block: clamp(56px, 8vw, 96px) 72px; display: flex; flex-direction: column; gap: 20px; max-width: 68ch; }
.doc .back { font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; align-self: flex-start; }
.doc .back:hover { color: var(--ink); }
.doc h1 { margin: 0; font-size: clamp(40px, 6vw, 72px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.doc .updated { margin: 0; color: var(--muted); font-size: 15px; }
.doc h2 { margin: 20px 0 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.doc p, .doc li { margin: 0; line-height: 1.6; }
.doc ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
footer {
  border-top: 1px solid var(--line); padding-block: 28px 44px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted);
}
footer nav a { color: var(--muted); }

@media (max-width: 720px) {
  section { grid-template-columns: 1fr; gap: 16px; padding-block: 32px 56px; }
  .app { grid-template-columns: auto 1fr; padding: 20px; gap: 18px; }
  .app .icon { width: 72px; height: 72px; border-radius: 17px; }
  .app h3 { font-size: 26px; }
  .status { grid-column: 1 / -1; justify-self: start; }
  header nav { display: none; }
}
