/* Лендинг The Golden Wolf: строгий деловой документ, золото на чёрном */

/* Шрифты лежат на нашем сайте, запросов к Google нет */
@font-face { font-family: "Literata"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/literata-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Literata"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/literata-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; font-weight: 400; font-style: italic; font-display: swap; src: url("assets/fonts/literata-cyrillic-400-italic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Literata"; font-weight: 400; font-style: italic; font-display: swap; src: url("assets/fonts/literata-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap; src: url("assets/fonts/golos-text-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap; src: url("assets/fonts/golos-text-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-weight: 500; font-display: swap; src: url("assets/fonts/golos-text-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 500; font-display: swap; src: url("assets/fonts/golos-text-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-weight: 600; font-display: swap; src: url("assets/fonts/golos-text-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 600; font-display: swap; src: url("assets/fonts/golos-text-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #000000;
  --surface: #0b0906;
  --line: #2a2317;
  --line-strong: #3d3220;
  --fg: #f2ead6;
  --muted: #a1937a;
  --gold: #ebb424;
  --gold-dim: #7a5d14;
  --head: "Literata", Georgia, "Times New Roman", serif;
  --body: "Golos Text", "Segoe UI", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 17px; line-height: 1.55; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; margin: 0; text-wrap: balance; }
h1 em, h2 em { font-weight: 400; font-style: italic; color: var(--gold); }
p { margin: 0; }
a { color: var(--gold); }
a:hover { color: var(--fg); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

.btn {
  display: inline-block;
  padding: 14px 24px;
  background: var(--gold);
  color: var(--bg);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid var(--gold);
  border-radius: 2px;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.btn-small { padding: 10px 16px; font-size: 15px; white-space: nowrap; }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--fg); }
.btn-ghost:hover { background: transparent; border-color: var(--gold); color: var(--gold); }

/* Шапка */
.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--gold); text-decoration: none; font-family: var(--head); font-style: italic; font-size: 20px; white-space: nowrap; }
.brand img { width: 38px; }
.top nav { display: flex; gap: 32px; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.top nav a:hover { color: var(--fg); }

/* Первый экран */
.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 72px; align-items: center; padding-block: 72px 80px; }
h1 { font-size: clamp(40px, 5.3vw, 76px); line-height: 1.04; letter-spacing: -.012em; }
.lead { max-width: 58ch; margin-top: 28px; color: var(--muted); font-size: clamp(18px, 1.5vw, 20px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.place { margin-top: 24px; font-family: var(--head); font-style: italic; color: var(--gold); }

/* Лист диагностики */
.sheet { margin: 0; padding: 26px 28px 20px; background: var(--surface); border: 1px solid var(--gold-dim); }
.sheet figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 16px; padding-bottom: 14px; border-bottom: 2px solid var(--gold); }
.sheet figcaption b { font-family: var(--head); font-size: 22px; font-weight: 600; }
.sheet figcaption span { color: var(--muted); font-size: 14px; }
.sheet table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.sheet th, .sheet td { padding: 11px 10px 11px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-weight: 400; }
.sheet thead th { color: var(--muted); font-size: 13px; }
.sheet tbody th { font-weight: 500; }
.sheet tbody td:nth-child(2) { color: var(--muted); }
.sheet th:last-child, .sheet td:last-child { padding-right: 0; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sheet tfoot th, .sheet tfoot td { border-bottom: 0; padding-top: 14px; font-family: var(--head); font-weight: 600; font-size: 18px; color: var(--gold); }
.sheet tfoot td { font-size: 28px; line-height: 1; }
.note { margin-top: 8px; color: var(--muted); font-size: 12.5px; }

/* Три принципа */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.facts > div { padding: 28px 32px 30px; border-left: 1px solid var(--line); }
.facts > div:first-child { border-left: 0; padding-left: 0; }
.facts h2, .facts h3 { font-size: 21px; line-height: 1.25; }
.facts p { margin-top: 8px; color: var(--muted); font-size: 16px; max-width: 34ch; }
.wrap.facts { border: 0; position: relative; }
.wrap.facts::before, .wrap.facts::after { content: ""; position: absolute; left: max(24px, env(safe-area-inset-left, 0px)); right: max(24px, env(safe-area-inset-right, 0px)); border-top: 1px solid var(--line); }
.wrap.facts::before { top: 0; }
.wrap.facts::after { bottom: 0; }

/* Разделы */
.block { padding-block: 88px 0; }
.title { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.12; margin-bottom: 36px; }
.muted { color: var(--muted); max-width: 52ch; }

/* Таблица процессов */
.rows { border-top: 2px solid var(--gold); }
.row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) minmax(0, 1.1fr); gap: 32px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.row-head { padding-block: 12px; color: var(--muted); font-size: 14px; }
.row h3 { font-size: 21px; line-height: 1.25; }
.row p:nth-of-type(1) { color: var(--muted); }

/* Этапы */
.scroller { overflow-x: auto; padding-bottom: 8px; }
.line { display: grid; grid-template-columns: repeat(3, minmax(250px, 1fr)); gap: 36px; list-style: none; margin: 0; padding: 0; }
.line li { position: relative; padding-top: 42px; min-width: 0; }
.line li::before { content: ""; position: absolute; top: 7px; left: 8px; right: -36px; border-top: 2px solid var(--gold); }
.line li:last-child::before { right: 0; }
.dot { position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px var(--bg); }
.line h3 { font-size: 26px; }
.line h3 i { font-weight: 400; color: var(--gold); }
.line p { margin-top: 10px; max-width: 34ch; color: var(--muted); }
.line .result { color: var(--fg); font-weight: 500; font-size: 15.5px; }

/* Калькулятор */
.calc { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 64px; align-items: end; }
.calc .title { margin-bottom: 14px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; margin-top: 30px; }
.fields label { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; color: var(--muted); font-size: 14px; }
.fields input { width: 100%; padding: 12px; background: var(--bg); color: var(--fg); border: 1px solid var(--line-strong); border-radius: 2px; font: inherit; font-size: 18px; font-variant-numeric: tabular-nums; }
.fields input:focus { border-color: var(--gold); outline: none; }
.total { padding: 28px 30px; background: var(--surface); border: 1px solid var(--gold-dim); color: var(--muted); }
.total output { display: block; margin: 6px 0; font-family: var(--head); font-weight: 600; font-size: clamp(38px, 4.4vw, 60px); line-height: 1.05; color: var(--gold); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.total b { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.year { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

/* Команда */
.facts-plain { border-block: 1px solid var(--line); }
.honest { margin-top: 24px; font-family: var(--head); font-style: italic; color: var(--gold); font-size: 19px; max-width: 62ch; }

/* Вопросы */
.faq { border-top: 2px solid var(--gold); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 20px; padding: 19px 0; cursor: pointer; font-family: var(--head); font-weight: 600; font-size: 20px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--gold); font-family: var(--body); font-weight: 400; font-size: 24px; line-height: 1.1; }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--gold); }
.faq p { max-width: 68ch; padding-bottom: 22px; color: var(--muted); }

/* Финал */
.cta { display: grid; grid-template-columns: minmax(120px, 220px) minmax(0, 1fr); gap: 56px; align-items: center; padding-block: 104px 88px; }
.cta h2 { font-size: clamp(32px, 3.9vw, 54px); line-height: 1.1; max-width: 22ch; }
.cta .lead { margin-top: 18px; }
.draft { margin-top: 24px; padding: 13px 16px; border: 1px dashed var(--gold-dim); color: var(--gold); font-size: 15px; width: fit-content; max-width: 100%; }

footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-block: 22px 28px; color: var(--muted); font-size: 14px; position: relative; }
footer::before { content: ""; position: absolute; top: 0; left: max(24px, env(safe-area-inset-left, 0px)); right: max(24px, env(safe-area-inset-right, 0px)); border-top: 1px solid var(--line); }

@media (max-width: 1040px) {
  .top nav { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-block: 52px 60px; }
  .calc { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .wrap.facts::before, .wrap.facts::after, footer::before { left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); }
  .top { padding-block: 14px; gap: 12px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand img { width: 30px; }
  .btn-small { padding: 9px 12px; font-size: 14px; }
  .actions .btn { flex: 1 1 100%; text-align: center; }
  .sheet { padding: 20px 16px 16px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts > div, .facts > div:first-child { padding: 20px 0; border-left: 0; border-top: 1px solid var(--line); }
  .facts > div:first-child { border-top: 0; }
  .block { padding-top: 64px; }
  .row-head { display: none; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .fields { gap: 14px 12px; }
  .total { padding: 22px 18px; }
  .cta { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 72px 60px; }
  .cta img { width: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
