:root {
  --bg: #fbfbf9;
  --fg: #11110f;
  --muted: #6b6b64;
  --line: #e4e4de;
  --card: #ffffff;
  --accent: #1746e0;
  --wrap: 1160px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d0c;
    --fg: #f2f2ee;
    --muted: #a1a19a;
    --line: #272724;
    --card: #141412;
    --accent: #8fb0ff;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

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

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 48px, var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 14px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.skip:focus {
  left: 20px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}

.brand {
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: -.045em;
  text-decoration: none;
  white-space: nowrap;
}

.brand span,
.footer-brand span {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.nav a {
  color: var(--muted);
  font-size: .9rem;
  text-decoration: none;
  transition: color .18s var(--ease);
}

.nav a:hover {
  color: var(--fg);
}

.header-mail {
  font-size: .9rem;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  transition: border-color .18s var(--ease);
}

.header-mail:hover {
  border-color: var(--fg);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(250px, 3.2fr);
  gap: clamp(36px, 6vw, 92px);
  align-items: center;
  min-height: calc(100vh - 65px);
  min-height: calc(100svh - 65px);
  padding: clamp(36px, 7vh, 72px) 0 40px;
}

.eyebrow {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1 {
  max-width: 18ch;
  margin-top: 18px;
  font-size: clamp(2.45rem, 5.4vw, 4.8rem);
  font-weight: 750;
  letter-spacing: -.055em;
  line-height: .99;
  text-wrap: balance;
}

.lead {
  max-width: 54ch;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.08rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: .95rem;
  font-weight: 650;
  letter-spacing: -.01em;
  text-decoration: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}

.btn:hover {
  opacity: .84;
  transform: translateY(-1px);
}

.link {
  color: var(--fg);
  font-size: .95rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: border-color .18s var(--ease);
}

.link:hover {
  border-color: var(--fg);
}

.hero-side {
  display: grid;
  gap: 16px;
  padding-left: clamp(22px, 3vw, 38px);
  border-left: 1px solid var(--line);
}

.hero-side > div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.side-label {
  color: var(--muted);
  font-size: .67rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.hero-side p {
  font-size: .9rem;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.hero-side a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.hero-side a:hover {
  border-color: var(--fg);
}

/* Second screen */

.panel {
  padding: clamp(36px, 6vh, 60px) 0 clamp(32px, 5vh, 48px);
  border-top: 1px solid var(--line);
}

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(310px, 5fr);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: start;
}

.panel-main {
  display: grid;
  gap: clamp(24px, 3.5vh, 38px);
}

.block-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 9px;
}

.label {
  color: var(--muted);
  font-size: .67rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  white-space: nowrap;
}

h2 {
  font-size: clamp(1.3rem, 2.3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.12;
  text-wrap: balance;
}

h3 {
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.15;
}

.block > p {
  max-width: 62ch;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.55;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 16px;
  padding: 0;
  list-style: none;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.steps li {
  padding: 13px 14px 15px;
  background: var(--bg);
}

.steps span {
  color: var(--muted);
  font-size: .67rem;
  font-weight: 600;
  letter-spacing: .1em;
  font-variant-numeric: tabular-nums;
}

.steps strong {
  display: block;
  margin-top: 16px;
  font-size: .92rem;
  font-weight: 650;
  letter-spacing: -.015em;
}

.steps p {
  margin-top: 3px;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.4;
}

/* Suppliers card */

.panel-side {
  padding: clamp(20px, 2.4vw, 28px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.panel-side h2 {
  margin-top: 8px;
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
}

.side-lead {
  margin-top: 8px;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.45;
}

.checklist {
  margin-top: 12px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.checklist li {
  position: relative;
  padding: 8px 0 8px 17px;
  border-bottom: 1px solid var(--line);
  font-size: .87rem;
  line-height: 1.4;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.25em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.mail-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  transition: opacity .18s var(--ease);
}

.mail-card:hover {
  opacity: .87;
}

.mail-card small {
  display: block;
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .62;
}

.mail-card strong {
  display: block;
  margin-top: 2px;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  font-weight: 700;
  letter-spacing: -.03em;
}

.arrow {
  font-size: 1.25rem;
  line-height: 1;
  opacity: .75;
}

.note {
  margin-top: 10px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.45;
}

/* Footer */

.site-footer {
  padding: 20px 0 24px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 24px;
  color: var(--muted);
  font-size: .76rem;
  font-variant-numeric: tabular-nums;
}

.footer-brand {
  color: var(--fg);
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: -.045em;
}

/* 404 */

.page-404 {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  padding: 64px 0;
}

.page-404 .code {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .12em;
}

.page-404 h1 {
  max-width: 18ch;
  margin-top: 14px;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
}

.page-404 p {
  max-width: 46ch;
  margin-top: 18px;
  color: var(--muted);
}

.page-404 .hero-actions {
  margin-top: 24px;
}

/* Responsive */

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    min-height: auto;
    padding: 36px 0 30px;
  }

  h1 {
    max-width: none;
  }

  .hero-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 20px;
    padding: 16px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .hero-side > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .panel-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .panel-side {
    max-width: none;
  }
}

@media (max-width: 620px) {
  .wrap {
    width: min(100% - 32px, var(--wrap));
  }

  .header-inner {
    min-height: 60px;
    gap: 14px;
  }

  .brand {
    font-size: 1.05rem;
  }

  .header-mail {
    font-size: .82rem;
  }

  h1 {
    font-size: clamp(2.05rem, 9.4vw, 2.7rem);
  }

  .lead {
    margin-top: 16px;
  }

  .hero-actions {
    gap: 10px 18px;
    margin-top: 20px;
  }

  .btn {
    min-height: 46px;
    padding: 0 20px;
    font-size: .9rem;
  }

  .hero-side p {
    font-size: .84rem;
  }

  .panel {
    padding: 26px 0 22px;
  }

  .panel-main {
    gap: 20px;
  }

  .panel-side {
    padding: 18px;
  }

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

  .steps li {
    padding: 11px 12px 12px;
  }

  .steps strong {
    margin-top: 12px;
  }

  .checklist li {
    padding: 6px 0 6px 16px;
  }

  .note {
    margin-top: 8px;
  }

  .site-footer {
    padding: 14px 0 18px;
  }

  .footer-inner {
    display: grid;
    justify-content: start;
  }
}
