/* Дизайн-язык VASTUBASE: кремовая база, терракотовый акцент, скругления 2px. */

:root {
  --cream: #e7dbcf;
  --cream-40: #f5f1ec;
  --cream-20: #faf8f5;
  --terracotta: #a75132;
  --terracotta-deep: #8e4329;
  --terracotta-60: #ca9784;
  --ink: #1d1d1b;

  --bg: var(--cream-20);
  --bg-raised: #fff;
  --text: var(--ink);
  --text-muted: color-mix(in srgb, var(--ink) 64%, transparent);
  --accent: var(--terracotta);
  --accent-text: var(--terracotta-deep);
  --line: color-mix(in srgb, var(--ink) 14%, transparent);

  --radius: 2px;
  --font: "Avenir Next Cyr", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17140f;
    --bg-raised: #211c16;
    --text: var(--cream);
    --text-muted: color-mix(in srgb, var(--cream) 64%, transparent);
    --accent: var(--terracotta-60);
    --accent-text: var(--terracotta-60);
    --line: color-mix(in srgb, var(--cream) 20%, transparent);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.page {
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(1.1rem, 0.6rem + 2.4vw, 2rem) 4rem;
}

/* --- шапка --- */

.eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-text);
}

h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.6rem, 1.25rem + 1.6vw, 2.4rem);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: 0.012em;
}

.lead {
  margin: 0;
  font-size: clamp(1rem, 0.97rem + 0.2vw, 1.1rem);
  color: var(--text-muted);
  max-width: 34rem;
}

/* --- кнопка --- */

.get {
  margin: 2.5rem 0 3rem;
  padding: 1.6rem;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 1.02rem;
  border-radius: var(--radius);
  transition: background var(--ease) 0.16s;
}

.btn:hover { background: var(--terracotta-deep); }

.get__note {
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.get__note--warn { color: var(--accent-text); }

/* --- шаги --- */

h2 {
  margin: 0 0 1.1rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.steps { margin-bottom: 3rem; }

.steps__list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps__list li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.4rem 3rem;
  border-left: 1px solid var(--line);
  margin-left: 0.85rem;
}

.steps__list li:last-child { border-left-color: transparent; padding-bottom: 0; }

.steps__list li::before {
  content: counter(step);
  position: absolute;
  left: -0.85rem;
  top: -0.1rem;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent-text);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.steps__list b { font-weight: 600; }

.muted {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Служебные адреса браузера: по ссылке они не открываются, поэтому их
   единственное назначение — быть скопированными в адресную строку. */
.addr {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
  padding: 0.35rem 0.55rem;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.84rem;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.addr:hover { border-color: var(--accent); }

.addr b {
  margin-left: auto;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
  white-space: nowrap;
}

.addr.is-copied { border-color: var(--accent); }
.addr.is-copied b { color: var(--accent-text); }

/* --- блок доверия --- */

.trust { margin-bottom: 3rem; }
.trust p { margin: 0 0 0.9rem; }

.code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.82rem;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.8rem;
  overflow-x: auto;
  word-break: break-all;
}

.nots {
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
}

.nots li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.nots li::before {
  content: "—";
  position: absolute;
  left: 0.2rem;
  color: var(--accent-text);
}

.source { border-bottom: 0; }

.source pre {
  margin: 0.8rem 0 0;
  padding: 0.9rem;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--text-muted);
  max-height: 26rem;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.source__link { margin: 0.6rem 0 0; font-size: 0.85rem; }
.source__link a { color: var(--accent-text); }

code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.88em;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.05rem 0.3rem;
}

/* --- частые вопросы --- */

details {
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
}

summary {
  cursor: pointer;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

summary::-webkit-details-marker { display: none; }

summary::before {
  content: "+";
  color: var(--accent-text);
  font-size: 1.1rem;
  line-height: 1;
  width: 1rem;
}

details[open] summary::before { content: "−"; }

details p {
  margin: 0.6rem 0 0.3rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

details a { color: var(--accent-text); }

/* --- подвал --- */

.foot {
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.83rem;
  color: var(--text-muted);
}
