@font-face {
  font-family: Unbounded;
  src: url("fonts/unbounded.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Golos Text";
  src: url("fonts/golos-text-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Golos Text";
  src: url("fonts/golos-text-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Golos Text";
  src: url("fonts/golos-text-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #eef0f2;
  --surface: #f7f8f9;
  --ink: #1c2226;
  --muted: #5a646b;
  --line: rgba(28, 34, 38, 0.12);
  --accent: #9a4318;
  --accent-ink: #fff8f0;
  --heading: #1c2226;
  --hover: #f3eee6;
  --header-bg: rgb(247 248 249 / 94%);
  --header-ink: #1c2226;
  --footer-bg: #f3eee6;
  --footer-ink: #1c2226;
  --radius: 6px;
  --max: 1120px;
  --font: Manrope, "Golos Text", system-ui, sans-serif;
  --display: Unbounded, Manrope, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: light;
}
html[data-mode="dark"] {
  --bg: #101418;
  --surface: #171d22;
  --ink: #e8e4db;
  --muted: #9aa3a8;
  --line: rgba(232, 228, 219, 0.12);
  --accent: #d4783c;
  --accent-ink: #14110e;
  --heading: #e8e4db;
  --hover: #1f272e;
  --header-bg: rgb(16 20 24 / 92%);
  --header-ink: #e8e4db;
  --footer-bg: #171d22;
  --footer-ink: #e8e4db;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
}
main { flex: 1 0 auto; width: 100%; min-width: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { text-decoration: none; }
h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-wrap: balance;
  color: var(--heading);
}
h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin: 0 0 0.75rem; max-width: 16em; }
h2 { font-size: clamp(1.45rem, 2vw, 1.75rem); margin: 0 0 0.8rem; }
p { margin: 0 0 0.8rem; text-wrap: pretty; }
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.5rem 0.8rem;
}
.skip:focus { position: fixed; top: 0.5rem; left: 0.5rem; z-index: 100; }
.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.site-head {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 68px;
  padding: 0.55rem 1.1rem;
  background: var(--header-bg);
  color: var(--header-ink);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
  flex: 0 0 auto;
  backdrop-filter: blur(16px) saturate(140%);
  transition: box-shadow 180ms ease;
}
.site-head.is-scrolled { box-shadow: 0 8px 18px rgb(16 20 24 / 12%); }
.mark {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  min-width: 0;
  flex: 0 0 auto;
}
.mark__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: 0.14em;
  color: var(--header-ink);
}
.mark__line { margin-top: 0.22rem; font-size: 0.75rem; color: var(--muted); }
.nav { flex: 1 1 auto; min-width: 0; }
.nav__list {
  display: flex;
  gap: 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav a {
  color: var(--header-ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: inset 0 -2px 0 transparent;
}
.nav a[aria-current="page"] {
  color: var(--accent);
  box-shadow: inset 0 -2px 0 var(--accent);
}
.head-phone {
  color: var(--header-ink);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.theme-switch {
  display: flex;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.theme-switch button {
  background: transparent;
  color: var(--header-ink);
  border: 0;
  min-height: 36px;
  padding: 0.28rem 0.45rem;
  font: inherit;
  font-size: 0.75rem;
  line-height: 1.2;
  cursor: pointer;
}
.theme-switch button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.theme-switch button:hover { color: var(--accent); }
.theme-switch button[aria-pressed="true"]:hover {
  color: var(--accent-ink);
  background: var(--accent);
  filter: brightness(1.08);
}
.page-head { padding: 2.5rem 0 1.4rem; border-bottom: 1px solid var(--line); }
.page-head__legal {
  margin: 0 0 1.1rem;
  max-width: 46rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lead { max-width: 65ch; font-size: 1.05rem; }
.section { padding: 2.2rem 0; }
.section > h2 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}
.section > h2::before {
  content: "";
  width: 2.25rem;
  height: 3px;
  background: var(--accent);
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-top: 3px solid var(--accent);
  padding: 1.15rem 1.2rem 1.2rem;
  max-width: 46rem;
}
.card p:last-child { margin-bottom: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0 0; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.65rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
}
.button:hover { filter: brightness(1.08); color: var(--accent-ink); }
.button--quiet {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.button--quiet:hover { background: var(--hover); filter: none; color: var(--ink); }
.reqs {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.6;
}
.reqs li { margin: 0; }
.news {
  display: block;
  max-width: 46rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
}
.news:hover { background: var(--hover); }
.news__kicker {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.news strong { display: block; font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; color: var(--heading); }
.site-foot {
  margin-top: auto;
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding: 1.6rem 0 1.4rem;
  font-family: var(--mono);
  font-size: 0.86rem;
}
.site-foot a { color: var(--accent); }
.foot-note {
  margin: 0 0 0.9rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.foot { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem; }
.to-top { display: none; }
@media (min-width: 1101px) {
  .to-top {
    display: grid;
    place-items: center;
    position: fixed;
    right: max(1.25rem, env(safe-area-inset-right));
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    z-index: 70;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    background: var(--accent);
    color: var(--accent-ink);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
  }
  .to-top.is-on {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .to-top:hover { filter: brightness(1.08); }
  .to-top:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
}
@media (prefers-reduced-motion: no-preference) {
  .to-top { transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease; }
}
@media (max-width: 900px) {
  .foot { grid-template-columns: minmax(0, 1fr); }
  .head-phone { display: none; }
  .theme-switch button { min-height: 44px; }
  h1, h2 { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .to-top, .site-head { transition: none; }
}
