@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #F6F7F9;
  --surface: #FFFFFF;
  --ink: #0F172A;
  --muted: #475569;
  --line: #D9DEE7;
  --field: #64748B;
  --accent: #1D4ED8;
  --accent-dark: #1E40AF;
  --on-dark-muted: #CBD5E1;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--ground);
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--ink); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 24px; }

.skip {
  position: absolute; left: 12px; top: -60px;
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 6px; z-index: 10;
}
.skip:focus { top: 12px; color: #fff; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
.section { padding-block: 88px; }
.section--white { background: var(--surface); border-block: 1px solid var(--line); }
.section--dark { background: var(--ink); color: #fff; }
.stack { display: flex; flex-direction: column; gap: 40px; }
.intro { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }

.eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
}
h1, h2, h3 { font-family: var(--display); }
h1 { font-weight: 700; font-size: clamp(38px, 6vw, 66px); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-weight: 700; font-size: clamp(30px, 4vw, 42px); line-height: 1.1; letter-spacing: -0.01em; }
h3 { font-weight: 600; font-size: 22px; line-height: 1.25; }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-block; text-align: center; text-decoration: none;
  font: inherit; font-weight: 600; line-height: 1.3;
  padding: 14px 26px; border-radius: 6px; border: 1px solid transparent; cursor: pointer;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }

/* Header */
.header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header__in {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 16px; padding-block: 14px;
}
.brand {
  display: flex; align-items: center; gap: 10px; min-height: 44px;
  font-family: var(--display); font-weight: 700; font-size: 22px; text-decoration: none; color: var(--ink);
}
.brand__mark { width: 14px; height: 14px; background: var(--accent); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 16px; padding: 12px 0; }
.nav .btn { padding: 12px 20px; font-size: 16px; }

/* Hero */
.hero { padding-block: 88px 96px; }
.hero__in { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero__text { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero__lead { font-size: 19px; color: var(--muted); max-width: 540px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.facts {
  flex: 1 1 340px; min-width: 0; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: 32px;
  display: flex; flex-direction: column; gap: 20px;
}
.facts__title { font-family: var(--display); font-weight: 600; font-size: 20px; }
.fact { display: flex; flex-direction: column; gap: 4px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.fact:last-child { padding-bottom: 0; border-bottom: 0; }
.fact__num { font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1.1; }
.fact__label { color: var(--muted); font-size: 16px; }

/* Cards */
.cards { display: flex; flex-wrap: wrap; gap: 20px; }
.card {
  flex: 1 1 300px; min-width: 0; border: 1px solid var(--line); border-radius: 10px;
  padding: 28px; display: flex; flex-direction: column; gap: 10px; background: var(--ground);
}
.card--white { background: var(--surface); }
.card__price { font-weight: 600; }
.card__kind { font-size: 14px; font-weight: 600; color: var(--muted); }
.card__link { font-weight: 600; padding: 12px 0; align-self: flex-start; }
.ref { flex-basis: 340px; padding: 0; overflow: hidden; gap: 0; }
.ref__shot { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }
.ref__body { padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.ref h3 { font-size: 24px; }

/* Pricing */
.plans { display: flex; flex-wrap: wrap; align-items: stretch; gap: 20px; }
.plan {
  flex: 1 1 300px; min-width: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 32px; display: flex; flex-direction: column; gap: 18px;
}
.plan--featured { border: 2px solid var(--accent); padding: 31px; }
.plan__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.badge { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: #fff; }
.plan__price { font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1; }
.plan__list { display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.plan__list li { position: relative; padding-left: 22px; }
.plan__list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; background: var(--accent); }
.note { padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }

/* Steps */
.steps { display: flex; flex-wrap: wrap; gap: 20px; }
.step { flex: 1 1 230px; min-width: 0; border-top: 2px solid #fff; padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.step__num { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--on-dark-muted); }
.step p { color: var(--on-dark-muted); }

/* Quote form */
.quote { display: flex; flex-wrap: wrap; gap: 56px; }
.quote__text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.contact { display: flex; flex-direction: column; gap: 2px; }
.contact a { padding: 8px 0; align-self: flex-start; }
.form {
  flex: 999 1 460px; min-width: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 32px; display: flex; flex-direction: column; gap: 20px;
}
.row { display: flex; flex-wrap: wrap; gap: 20px; }
.field { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--surface);
  padding: 12px 14px; border: 1px solid var(--field); border-radius: 6px; width: 100%; min-height: 48px;
}
.field textarea { resize: vertical; min-height: 140px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { min-height: 52px; }
.form__small { font-size: 14px; color: var(--muted); }
.form__status { font-weight: 600; padding: 14px 16px; border-radius: 6px; border: 1px solid var(--line); background: var(--ground); }
.form__status[hidden] { display: none; }
.form__status--ok { border-color: #15803D; background: #F0FDF4; color: #14532D; }
.form__status--err { border-color: #B91C1C; background: #FEF2F2; color: #7F1D1D; }

/* Footer */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: 32px; font-size: 15px; color: var(--muted); }
.footer__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.footer strong { font-family: var(--display); color: var(--ink); }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer__links a { padding: 12px 0; }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 64px 24px 88px; display: flex; flex-direction: column; gap: 18px; }
.legal h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 8px; }
.legal h2 { font-size: 24px; margin-top: 22px; }
.legal ul { list-style: disc; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }

@media (max-width: 560px) {
  .section { padding-block: 64px; }
  .hero { padding-block: 56px 64px; }
  .hero__in, .quote { gap: 40px; }
  .facts, .form, .plan { padding: 24px; }
  .plan--featured { padding: 23px; }
  .nav { gap: 0 20px; }
  .actions .btn { flex: 1 1 100%; }
}
