:root {
  --red: #E1251B;
  --red-deep: #A8160E;
  --red-light: #F46A60;
  --ink: #000000;
  --graphite: #3A3F44;
  --steel: #E6E9EC;
  --steel-line: #BFC5CA;
  --paper: #FFFFFF;

  --display: "Montserrat", "Arial Black", system-ui, sans-serif;
  --text: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: 16px;
  --spine-x: var(--gutter);
  --spine-w: 10px;
  --indent: 40px;
  --max: 1120px;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
  padding-bottom: 84px;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--paper);
}

.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 10px 14px; text-decoration: none;
}
.skip:focus { top: 10px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: var(--max); margin: 0 auto; padding: 14px var(--gutter);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 40px; height: 40px; }
.brand__name { font-family: var(--display); font-weight: 800; font-size: 1.2rem; line-height: 1; letter-spacing: -0.01em; }
.brand__tag { display: block; font-family: var(--text); font-weight: 600; font-size: 0.78rem; letter-spacing: 0; color: var(--graphite); margin-top: 4px; }
.top__actions { display: flex; align-items: center; gap: 18px; }
.top__phone { display: none; font-weight: 700; text-decoration: none; white-space: nowrap; }
.top__phone:hover { color: var(--red-deep); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  font-family: var(--text); font-weight: 700; font-size: 1.02rem; line-height: 1.1;
  text-decoration: none; border: 2px solid var(--ink); border-radius: 6px;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--wa { background: var(--red); border-color: var(--red); color: var(--paper); }
.btn--wa:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn--line { background: var(--paper); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--small { min-height: 42px; padding: 0 14px; font-size: 0.92rem; }
.top .btn--small { display: none; }

/* The spine: one red pipe runs from the hero to the contacts */
.main { position: relative; }
.spine {
  position: absolute; z-index: 2; pointer-events: none;
  left: var(--spine-x); top: 18px; bottom: 150px; width: var(--spine-w);
  background:
    repeating-linear-gradient(180deg, transparent 0 360px, var(--red-deep) 360px 366px, transparent 366px 372px),
    linear-gradient(90deg, var(--red-deep), var(--red-light) 32%, var(--red) 58%, var(--red-deep));
  border-radius: 5px 5px 0 0;
  transform-origin: top;
  animation: fill 1.4s cubic-bezier(.6,.05,.25,1) .15s both;
}
@keyframes fill { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.section { position: relative; }
.inner {
  max-width: var(--max); margin: 0 auto;
  padding: 56px var(--gutter) 56px calc(var(--gutter) + var(--indent));
}

/* Tee fitting: a branch from the spine into each section heading */
.tee { position: relative; }
.tee::before, .tee::after { content: ""; position: absolute; pointer-events: none; }
.tee::before {
  left: calc(-1 * var(--indent) + var(--spine-w) - 2px); top: 0.52em;
  width: calc(var(--indent) - var(--spine-w) - 8px); height: var(--spine-w);
  background: linear-gradient(180deg, var(--red-deep), var(--red-light) 32%, var(--red) 58%, var(--red-deep));
  z-index: 3;
}
.tee::after {
  left: calc(-1 * var(--indent) - 4px); top: calc(0.52em - 5px);
  width: calc(var(--spine-w) + 8px); height: calc(var(--spine-w) + 10px);
  background: var(--ink); border-radius: 3px; z-index: 3;
}

.h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.6rem, 6.4vw, 3rem); line-height: 1.08; letter-spacing: -0.02em;
  max-width: 18ch; overflow-wrap: break-word;
}
.lede { margin-top: 16px; max-width: 60ch; color: var(--graphite); }

/* Hero */
.hero .inner { padding-top: 28px; padding-bottom: 48px; }
.hero__place { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--graphite); font-size: 0.95rem; }
.hero__place .icon { color: var(--red); }
.hero h1 {
  margin-top: 18px;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.85rem, 8.6vw, 5.4rem); line-height: 1.02; letter-spacing: -0.03em;
  overflow-wrap: break-word;
}
.hero h1 .line { display: block; }
.hero__lead { margin-top: 20px; font-size: 1.12rem; max-width: 34ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero__cta .btn { flex: 1 1 220px; }
.hero__cta .btn--line { flex-basis: 160px; }

.stamp {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center;
  margin-top: 36px; padding: 16px; max-width: 560px;
  border: 2px solid var(--ink); border-radius: 6px;
  background: var(--paper);
}
.stamp__seal {
  width: 56px; height: 56px; border-radius: 50%;
  border: 2px solid var(--red); color: var(--red);
  display: grid; place-items: center;
}
.stamp__seal svg { width: 28px; height: 28px; }
.stamp p { font-size: 0.98rem; line-height: 1.4; }
.stamp strong { font-weight: 700; }

.hero__art { display: none; }

/* Why us */
.why { background: var(--steel); }
.facts { display: grid; gap: 30px; margin-top: 36px; }
.fact h3 { font-family: var(--display); font-weight: 600; font-size: 1.15rem; line-height: 1.25; letter-spacing: -0.01em; }
.fact p { margin-top: 8px; color: var(--graphite); max-width: 46ch; }
.fact.tee::before { top: 0.4em; }
.fact.tee::after { top: calc(0.4em - 5px); }

/* Catalog */
.goods { display: grid; margin-top: 36px; border-top: 2px solid var(--ink); }
.good {
  display: grid; grid-template-columns: 56px 1fr; gap: 6px 16px; align-content: start;
  padding: 24px 0; border-bottom: 2px solid var(--ink);
}
.good svg { width: 56px; height: 56px; grid-row: span 3; color: var(--ink); }
.good h3 { font-family: var(--display); font-weight: 600; font-size: 1.12rem; line-height: 1.25; }
.good p { color: var(--graphite); font-size: 0.98rem; }
.good a {
  justify-self: start; margin-top: 6px;
  font-weight: 700; color: var(--red-deep); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px;
}
.good a:hover { color: var(--ink); }

/* Brands */
.brands { background: var(--ink); color: var(--paper); }
.brands .h2 { color: var(--paper); }
.brands .lede { color: #C9CDD1; }
.brandlist { display: flex; flex-wrap: wrap; gap: 12px 12px; margin-top: 32px; }
.brandlist li {
  display: flex; flex-direction: column; justify-content: center;
  padding: 14px 18px; min-height: 76px;
  border: 2px solid #4A5056; border-radius: 6px;
}
.brandlist .name { font-family: var(--display); font-weight: 800; font-size: clamp(1.3rem, 5.4vw, 2rem); line-height: 1; letter-spacing: -0.01em; }
.brandlist .note { margin-top: 6px; font-size: 0.82rem; color: #C9CDD1; }
.brandlist .is-official { border-color: var(--red); }
.brandlist .is-official .note { color: var(--red-light); }

/* Delivery */
.route { margin-top: 36px; max-width: 640px; }
.route__from {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; background: var(--red); color: var(--paper);
  font-family: var(--display); font-weight: 800; font-size: 1.15rem; border-radius: 6px;
}
.route__to { position: relative; margin: 0 0 0 26px; padding: 8px 0 0 0; border-left: 4px solid var(--ink); }
.route__to li {
  position: relative; padding: 14px 0 0 30px;
  font-family: var(--display); font-weight: 600; font-size: 1.12rem;
}
.route__to li::before {
  content: ""; position: absolute; left: 0; top: calc(14px + 0.62em);
  width: 20px; border-top: 4px solid var(--ink);
}
.route__to li:last-child { font-family: var(--text); font-weight: 600; font-size: 1rem; color: var(--graphite); }
.route__to li:last-child::after {
  content: ""; position: absolute; left: -4px; top: calc(14px + 0.62em + 4px); bottom: 0; width: 4px; background: var(--paper);
}
.route__note { margin-top: 26px; color: var(--graphite); max-width: 52ch; }
.route__cta { margin-top: 20px; }

/* Visit */
.visit { background: var(--steel); }
.visit .inner { padding-bottom: 72px; }
.address {
  margin-top: 20px; font-style: normal;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.5rem, 6vw, 2.6rem); line-height: 1.1; letter-spacing: -0.02em;
}
.address span { display: block; font-family: var(--text); font-weight: 600; font-size: 1.05rem; letter-spacing: 0; color: var(--graphite); margin-top: 8px; }
.contacts { display: grid; gap: 10px; margin-top: 28px; max-width: 520px; }
.contacts .btn { justify-content: flex-start; }
.valve { position: absolute; z-index: 3; left: calc(var(--spine-x) - 15px); bottom: 110px; width: 40px; height: 40px; color: var(--ink); }

/* Footer */
.foot { background: var(--ink); color: #C9CDD1; font-size: 0.92rem; }
.foot .inner { padding-top: 28px; padding-bottom: 28px; display: grid; gap: 10px; }
.foot a { color: var(--paper); }
.foot strong { color: var(--paper); font-family: var(--display); font-weight: 800; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* Sticky mobile bar */
.dock {
  position: fixed; z-index: 20; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: 1fr 56px; gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); border-top: 2px solid var(--ink);
}
.dock .btn { min-height: 52px; }
.dock .btn--line { padding: 0; }

@media (min-width: 640px) {
  .goods { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .facts { grid-template-columns: 1fr 1fr; gap: 36px 40px; }
  .contacts { grid-template-columns: 1fr 1fr; max-width: 640px; }
  .contacts .btn--wa { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  :root { --gutter: 32px; --indent: 64px; --spine-w: 14px; }
  body { padding-bottom: 0; font-size: 1.1rem; }
  .dock { display: none; }
  .top { padding-top: 22px; padding-bottom: 22px; }
  .top__phone, .top .btn--small { display: inline-flex; }
  .brand__mark { width: 48px; height: 48px; }
  .brand__name { font-size: 1.45rem; }
  .spine { left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); top: 24px; }
  .valve { left: calc(max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) - 13px); width: 48px; height: 48px; }
  .inner { padding-top: 96px; padding-bottom: 96px; }
  .hero .inner { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; padding-top: 48px; padding-bottom: 96px; }
  .hero__art { display: block; width: 100%; max-width: 380px; justify-self: end; }
  .goods { grid-template-columns: repeat(4, 1fr); column-gap: 28px; }
  .good { grid-template-columns: 1fr; padding: 28px 0 32px; }
  .good svg { grid-row: auto; width: 64px; height: 64px; margin-bottom: 14px; }
  .facts { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .fact.tee::before, .fact.tee::after { display: none; }
  .fact { border-top: 4px solid var(--ink); padding-top: 18px; }
  .delivery .inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .route { margin-top: 8px; }
  .foot .inner { grid-template-columns: 1fr auto; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spine { animation: none; }
  .btn { transition: none; }
}
