:root {
  --red: #e3242b;
  --red-dark: #b81b22;
  --yellow: #ffe500;
  --ink: #15181d;
  --ink-soft: #4e565f;
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --line: #e3e6ea;
  --card: #ffffff;
  --radius: 14px;
  --wrap: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef1f4;
    --ink-soft: #a8b1ba;
    --bg: #14171b;
    --bg-alt: #1a1e23;
    --line: #2a3037;
    --card: #1c2126;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 10;
  background: var(--red); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }

/* header */
.header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { display: block; width: 158px; height: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--red); }
.header__cta { flex: 0 0 auto; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 20px; border-radius: 999px; font-weight: 600; text-decoration: none;
  border: 1.5px solid transparent; transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--red); color: var(--red); }

/* hero */
.hero {
  background:
    radial-gradient(1000px 420px at 85% -20%, color-mix(in srgb, var(--yellow) 42%, transparent), transparent 70%),
    var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.hero__in {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 64px;
}
.eyebrow {
  margin: 0 0 10px; text-transform: uppercase; letter-spacing: .09em;
  font-size: 13px; font-weight: 700; color: var(--red);
}
h1 { margin: 0 0 14px; font-size: clamp(34px, 5vw, 54px); line-height: 1.08; letter-spacing: -0.02em; }
.lead { margin: 0 0 20px; font-size: 18px; color: var(--ink-soft); max-width: 54ch; }
.addr { display: flex; align-items: center; gap: 9px; margin: 0 0 26px; font-weight: 600; }
.addr svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: var(--red); stroke-width: 1.8; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__card {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 28px; display: grid; place-items: center; min-height: 190px;
}
.pulse { width: 100%; height: auto; }
.pulse polyline {
  fill: none; stroke: var(--red); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 620; stroke-dashoffset: 620; animation: draw 2.6s ease-in-out infinite;
}
@keyframes draw {
  0% { stroke-dashoffset: 620; }
  55%, 100% { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pulse polyline { animation: none; stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}

/* sections */
.section { padding: 64px 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
h2 { margin: 0 0 8px; font-size: clamp(25px, 3.2vw, 34px); letter-spacing: -0.015em; }
.section__lead { margin: 0 0 26px; color: var(--ink-soft); }
.section h2 + .cards { margin-top: 28px; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 14px 0 7px; font-size: 17px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.card__ico {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px;
  background: color-mix(in srgb, var(--yellow) 55%, var(--bg));
}
.card__ico svg { width: 23px; height: 23px; fill: none; stroke: var(--red); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px; font-size: 15px;
}

/* contacts */
.contacts { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.facts { margin: 22px 0 26px; display: grid; gap: 16px; }
.facts > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: baseline; }
.facts dt { color: var(--ink-soft); font-size: 15px; }
.facts dd { margin: 0; font-weight: 600; font-size: 17px; }
.facts a { color: inherit; text-decoration: none; }
.facts a:hover { color: var(--red); }

.note {
  background: color-mix(in srgb, var(--yellow) 26%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--yellow) 60%, var(--line));
  border-radius: var(--radius); padding: 22px;
}
.note h3 { margin: 0 0 8px; font-size: 16px; }
.note p { margin: 0; font-size: 15px; color: var(--ink-soft); }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; background: var(--bg-alt); }
.footer__in { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; }
.footer p { margin: 0; font-size: 15px; }
.muted { color: var(--ink-soft); }

/* responsive */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero__in { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; }
  .hero__card { display: none; }
  .contacts { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav { display: none; }
  .header__cta { margin-left: auto; }
  .cards { grid-template-columns: 1fr; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .section { padding: 48px 0; }
}
