:root {
  --ink: #14242c;
  --muted: #4d626c;
  --paper: #f3f6f7;
  --sheet: #ffffff;
  --line: #cfdce1;
  --line-soft: #e2ebee;
  --teal: #1a6460;
  --teal-deep: #114743;
  --teal-soft: #eaf4f2;
  --wash: #e5f1ef;
  --stamp: #d9772c;
  --focus: #0b6e91;

  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(20, 36, 44, 0.05), 0 4px 14px rgba(20, 36, 44, 0.05);
  --shadow: 0 1px 2px rgba(20, 36, 44, 0.04), 0 14px 34px rgba(20, 36, 44, 0.08);
  --shadow-lg: 0 4px 8px rgba(20, 36, 44, 0.05), 0 28px 60px rgba(20, 36, 44, 0.14);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t: 0.2s var(--ease);

  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

[id] { scroll-margin-top: 88px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Golos Text", "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.5;
}

img { max-width: 100%; }

a { color: var(--teal-deep); }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(243, 246, 247, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

@supports not (backdrop-filter: blur(1px)) {
  .site-header { background: var(--paper); }
}

.site-header__bar,
.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: Unbounded, sans-serif;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

.logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a:not(.button) {
  color: var(--ink);
  text-decoration: none;
}

.nav a:not(.button):hover,
.nav a[aria-current="page"] {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav__menu summary {
  cursor: pointer;
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--sheet);
  font-weight: 500;
}

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

.nav__menu summary::before {
  content: "";
  width: 18px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}

.nav__menu[open] summary::before {
  height: 2px;
  border: 0;
  background: currentColor;
}

.nav__menu { display: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--teal);
  border-radius: var(--radius-pill);
  background: var(--teal);
  color: white;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(17, 71, 67, 0.18);
  transition:
    background-color var(--t),
    border-color var(--t),
    box-shadow var(--t),
    transform var(--t);
}

.button:hover {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
  box-shadow: 0 10px 24px rgba(17, 71, 67, 0.24);
  transform: translateY(-1px);
}

.button:active { transform: translateY(0); }

.button--ghost {
  background: var(--sheet);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.button--ghost:hover {
  background: var(--sheet);
  border-color: var(--teal);
  color: var(--teal-deep);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 48px;
  align-items: center;
  padding: 64px 0 36px;
}

.hero h1,
.page-intro h1,
.section h2,
.sheet h2 {
  margin: 0;
  font-family: Unbounded, sans-serif;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(40px, 5vw, 64px);
}

.lede,
.page-intro p,
.section p,
.faq p {
  max-width: 62ch;
  color: var(--muted);
}

.hero__actions,
.page-intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.desk {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.desk__head,
.station {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 16px;
}

.company-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  padding: 14px 16px;
}

.desk__head {
  border-bottom: 1px solid var(--line);
  background: var(--wash);
  font-family: Unbounded, sans-serif;
  font-size: 13px;
}

.station {
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
}

.station { transition: background-color var(--t), color var(--t); }

.station.is-current {
  background: var(--teal-soft);
  color: var(--ink);
  box-shadow: inset 4px 0 0 var(--teal);
}

.station strong,
.company-row strong { font-weight: 600; }

.section,
.page-intro { padding: 28px 0 8px; }

.section h2,
.page-intro h1 { font-size: clamp(28px, 3vw, 40px); }

.flow {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 8px 28px;
  margin: 28px 0 12px;
  padding: 0;
  list-style: none;
}

.flow li {
  display: contents;
}

.flow b {
  font-family: Unbounded, sans-serif;
  font-size: 15px;
  font-weight: 500;
}

.live {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 18px 0 48px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 16px;
}

.scenarios {
  display: grid;
  gap: 18px;
}

.scenarios { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.scenario,
.sheet,
.faq details {
  background: var(--sheet);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t), border-color var(--t), transform var(--t);
}

.scenario:hover {
  border-color: var(--line);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.sheet h2 { font-size: 20px; margin-bottom: 8px; }

.not-found { padding: 72px 0 96px; }

.not-found__code {
  margin: 0 0 8px;
  font-family: Unbounded, sans-serif;
  font-size: 64px;
  color: var(--stamp);
}

.sheet ul { margin: 12px 0 0; padding-left: 18px; }

.faq { display: grid; gap: 8px; margin: 20px 0 56px; }

.faq summary { cursor: pointer; font-weight: 600; }

.site-footer {
  border-top: 1px solid var(--line);
  padding-bottom: 28px;
}

.site-footer p { color: var(--muted); font-size: 14px; }

.site-footer .nav { flex-wrap: wrap; gap: 8px 22px; }

.company-list { display: grid; padding: 0; margin-top: 18px; }

.company-row {
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.company-row:last-child { border-bottom: 0; }

.company-row small { display: block; color: var(--muted); }

@media (max-width: 860px) {
  .hero,
  .flow,
  .scenarios,
  .desk__head,
  .station,
  .company-row {
    grid-template-columns: 1fr;
  }

  .nav > .nav__links { display: none; }

  .site-header .nav__menu .nav__links { display: none; }

  .nav__menu { display: block; }

  .site-header .nav__menu[open] .nav__links {
    display: grid;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    gap: 12px;
    padding: 16px 20px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow);
  }

  .hero { padding-top: 36px; }

  .flow { gap: 4px; }

  .flow span { margin-bottom: 14px; }

  .company-row { gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
