/* dictum.saidov.dev — стиль «Без ручной работы».
   Токены бренда: paper/ink/muted/line/accent, шрифты Golos Text и JetBrains Mono,
   радиус 0, тень 0, граница 1px. Акцент — не больше 5 % площади. */
:root {
  --paper: #ffffff;
  --ink: #0b0b0c;
  --muted: #70706c;
  --line: #e4e2dc;
  --accent: #e8431f;

  --font-text: "Golos Text", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", ui-monospace, monospace;

  --step-4: 4px; --step-8: 8px; --step-12: 12px; --step-16: 16px;
  --step-24: 24px; --step-32: 32px; --step-48: 48px; --step-64: 64px; --step-96: 96px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 27px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 120px;
}

/* --- общие элементы --- */

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; }
h1 { font-size: 56px; line-height: 60px; }
h2 { font-size: 40px; line-height: 44px; letter-spacing: -0.02em; }
h3 { font-size: 28px; line-height: 32px; letter-spacing: -0.01em; }

p { margin: 0 0 var(--step-16); max-width: 62ch; }

a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

.lead { font-size: 20px; line-height: 30px; color: var(--ink); max-width: 54ch; }

.btn {
  display: inline-block;
  padding: 14px 20px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { color: var(--accent); border-color: var(--accent); background: transparent; }

hr.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

section { border-top: 1px solid var(--line); padding: var(--step-64) 0; }
section.first { border-top: 0; }

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

header.top { border-bottom: 1px solid var(--line); }
header.top .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: var(--step-24);
}
.brand { display: flex; align-items: center; gap: var(--step-12); text-decoration: none; }
.brand img { width: 28px; height: 28px; display: block; }
.brand span { font-weight: 600; font-size: 20px; letter-spacing: -0.01em; }
nav.top { display: flex; gap: var(--step-24); }
nav.top a { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
nav.top a:hover { color: var(--ink); }

/* --- hero --- */

.hero { padding: var(--step-96) 0 var(--step-64); }
.hero h1 { margin: var(--step-16) 0 var(--step-24); max-width: 20ch; }
.hero .lead { margin-bottom: var(--step-32); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--step-12); align-items: center; }
.hero-note { margin: var(--step-16) 0 0; color: var(--muted); font-size: 14px; line-height: 20px; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--step-24); margin-top: var(--step-48); }
.facts div { border-top: 1px solid var(--line); padding-top: var(--step-12); }
.facts b { display: block; font-family: var(--font-mono); font-size: 28px; line-height: 32px; font-weight: 500; font-variant-numeric: tabular-nums; }
.facts span { color: var(--muted); font-size: 14px; line-height: 20px; }

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

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--step-32); margin-top: var(--step-32); }
.steps article { border-top: 1px solid var(--line); padding-top: var(--step-16); }
.steps .n { font-family: var(--font-mono); color: var(--accent); font-size: 12px; letter-spacing: 0.09em; }
.steps h3 { margin: var(--step-8) 0 var(--step-8); }
.steps p { margin: 0; color: var(--ink); }

/* --- скриншоты --- */

.shots { display: grid; grid-template-columns: 1fr 1fr; gap: var(--step-32); margin-top: var(--step-32); }
figure { margin: 0; }
figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
figcaption { margin-top: var(--step-8); color: var(--muted); font-size: 14px; line-height: 20px; }
.shot-plain img { border: 0; }

/* --- таблица --- */

table { width: 100%; border-collapse: collapse; margin-top: var(--step-24); font-size: 17px; line-height: 27px; }
th, td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
td.num, th.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
td.good { color: var(--ink); font-weight: 500; }

/* --- две колонки --- */

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--step-64); margin-top: var(--step-24); }
.cols ul { margin: 0; padding-left: 18px; }
.cols li { margin-bottom: var(--step-8); }

/* --- FAQ --- */

details { border-top: 1px solid var(--line); padding: var(--step-16) 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 500; font-size: 20px; line-height: 28px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+ "; font-family: var(--font-mono); color: var(--accent); }
details[open] summary::before { content: "− "; }
details p { margin: var(--step-12) 0 0; color: var(--ink); max-width: 70ch; }

/* --- футер --- */

footer { border-top: 1px solid var(--line); padding: var(--step-48) 0 var(--step-64); }
footer .row { display: flex; justify-content: space-between; gap: var(--step-24); flex-wrap: wrap; }
footer a { color: var(--ink); }
footer .mono { display: block; margin-bottom: var(--step-8); }

/* --- адаптив --- */

@media (max-width: 900px) {
  .wrap { padding: 0 32px; }
  h1 { font-size: 40px; line-height: 44px; }
  h2 { font-size: 32px; line-height: 36px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: var(--step-24); }
  .shots { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr; gap: var(--step-32); }
}

@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  h1 { font-size: 32px; line-height: 36px; }
  h2 { font-size: 26px; line-height: 30px; }
  .lead { font-size: 18px; line-height: 28px; }
  nav.top { display: none; }
  .facts b { font-size: 22px; line-height: 26px; }
}
