/* ==========================================================================
   Мегапол — салон напольных покрытий, Лида
   Design system: true black · ivory · one red accent · Jost (display) + Golos Text
   ========================================================================== */

:root {
  --black: #0d0d0d;
  --ink-2: #151515;
  --ink-3: #1d1d1d;
  --ivory: #f3eee6;
  --paper: #f7f4ef;
  --white: #ffffff;
  --red: #e31e24;
  --red-600: #c5161b;

  --t-strong: #0d0d0d;
  --t-body: #34312d;
  --t-muted: #7b766f;
  --d-strong: #f3eee6;
  --d-body: #cdc7be;
  --d-muted: #8e8982;

  --line: rgba(13, 13, 13, 0.12);
  --line-strong: rgba(13, 13, 13, 0.22);
  --line-d: rgba(243, 238, 230, 0.14);
  --line-d-strong: rgba(243, 238, 230, 0.28);

  --f-display: "Jost", "Futura", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  --f-text: "Golos Text", "Helvetica Neue", Arial, system-ui, sans-serif;

  --container: 1360px;
  --gutter: clamp(20px, 4vw, 56px);
  --sec: clamp(80px, 9.5vw, 148px);
  --header-h: 80px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--t-body);
  font: 400 17px/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
::selection { background: var(--red); color: var(--white); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--red); color: var(--white); padding: 12px 18px; font-weight: 600; transition: top 0.2s; }
.skip-link:focus { top: 12px; }

/* ---------- type ---------- */
.display, .h1, .h2, .h3 { font-family: var(--f-display); text-transform: uppercase; color: var(--t-strong); letter-spacing: -0.005em; }
.h1 { font-size: clamp(34px, 4.4vw, 68px); line-height: 0.98; font-weight: 600; }
.h2 { font-size: clamp(28px, 3.1vw, 48px); line-height: 1.02; font-weight: 600; }
.h3 { font-size: clamp(22px, 1.8vw, 28px); line-height: 1.05; font-weight: 600; }
.on-dark .h1, .on-dark .h2, .on-dark .h3, .on-dark .display { color: var(--d-strong); }
.red { color: var(--red); }
.h1 em, .h2 em { font-style: normal; color: var(--red); }
.nw { white-space: nowrap; }
.lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: var(--t-body); max-width: 46ch; }
.on-dark .lead { color: var(--d-body); }
.muted { color: var(--t-muted); }
.on-dark .muted { color: var(--d-muted); }


/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 56px; padding: 0 28px;
  font: 600 14px/1 var(--f-display); letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: 0;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.35s var(--ease); }
.btn:hover svg.arr { transform: translateX(5px); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-600); }
.btn-line { border-color: var(--line-strong); color: var(--t-strong); }
.btn-line:hover { border-color: var(--t-strong); }
.on-dark .btn-line { border-color: var(--line-d-strong); color: var(--d-strong); }
.on-dark .btn-line:hover { border-color: var(--d-strong); background: rgba(243, 238, 230, 0.04); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 13px; }
.btn-block { width: 100%; }
.phone-num b { font-weight: 700; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 13px/1 var(--f-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-strong);
}
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }
.on-dark .link-arrow { color: var(--d-strong); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: var(--d-strong);
  transition: background-color 0.35s var(--ease), border-color 0.35s, transform 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid, body:not(.has-hero) .site-header {
  background: rgba(13, 13, 13, 0.94);
  border-bottom-color: var(--line-d);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header.is-solid, body:not(.has-hero) .site-header { background: rgba(13, 13, 13, 0.86); backdrop-filter: saturate(1.3) blur(14px); }
}
.header-in { display: flex; align-items: center; height: 100%; gap: clamp(20px, 3vw, 48px); }
.brand { display: block; width: clamp(138px, 12vw, 172px); flex: none; }
.logo { width: 100%; height: auto; overflow: visible; }
.logo .logo-w { fill: var(--logo-ink, var(--ivory)); }
.logo .logo-m path, .logo .logo-d { fill: var(--red); }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); margin-left: auto; }
.nav > a, .nav-drop > a {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  font: 500 15px/1 var(--f-text); color: var(--d-body); padding: 10px 0; transition: color 0.2s;
}
.nav > a:hover, .nav > a[aria-current="page"], .nav-drop > a:hover, .nav-drop.is-current > a { color: var(--d-strong); }
.nav > a::after, .nav-drop > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.nav > a:hover::after, .nav > a[aria-current="page"]::after, .nav-drop.is-current > a::after { transform: scaleX(1); }
.nav-drop { position: relative; }
.nav-drop > a svg { width: 10px; height: 10px; transition: transform 0.25s; }
.nav-drop:hover > a svg, .nav-drop:focus-within > a svg { transform: rotate(180deg); }
.nav-menu {
  position: absolute; top: calc(100% + 10px); left: -24px; min-width: 280px;
  background: var(--ink-2); border: 1px solid var(--line-d); padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s;
}
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-drop:hover .nav-menu, .nav-drop:focus-within .nav-menu { opacity: 1; visibility: visible; transform: none; }
.nav-menu a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 14px; font: 500 15px/1.2 var(--f-text); color: var(--d-body); transition: background 0.2s, color 0.2s; }
.nav-menu a > span { font-size: 13px; color: var(--d-muted); }
.nav-menu a:hover, .nav-menu a[aria-current="page"] { background: var(--ink-3); color: var(--d-strong); }

.header-contact { display: flex; align-items: center; gap: 20px; }
.header-phone { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; line-height: 1; }
.header-phone a { font: 500 16px/1 var(--f-text); color: var(--d-strong); letter-spacing: 0.01em; }
.status { display: inline-flex; align-items: center; gap: 7px; font: 500 12px/1 var(--f-text); color: var(--d-muted); white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #6f6a63; flex: none; }
.status.is-open::before { background: #3fb67b; box-shadow: 0 0 0 3px rgba(63, 182, 123, 0.18); }
.light .status { color: var(--t-muted); }

.burger { display: none; width: 44px; height: 44px; margin-right: -10px; position: relative; color: var(--d-strong); }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform 0.3s var(--ease), opacity 0.2s; }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 26px; }
.nav-open .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }
.header-call { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--d-strong); }
.header-call svg { width: 22px; height: 22px; }

/* mobile menu */
.mnav {
  position: fixed; inset: 0; z-index: 45; background: var(--black); color: var(--d-strong);
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px; display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s; overflow-y: auto;
}
.nav-open .mnav { opacity: 1; visibility: visible; }
.mnav-links a { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line-d); font: 600 26px/1.1 var(--f-display); text-transform: uppercase; }
.mnav-links a.sub { font: 500 17px/1.2 var(--f-text); text-transform: none; color: var(--d-body); padding: 13px 0 13px 18px; }
.mnav-links a svg { width: 22px; height: 22px; flex: none; color: var(--red); }
.mnav-foot { margin-top: auto; padding-top: 28px; display: grid; gap: 12px; color: var(--d-body); font-size: 15px; }
.mnav-foot .btn { margin-top: 8px; }
.nav-open { overflow: hidden; }

/* ---------- herringbone band (the brand's floor) ---------- */
.band { height: clamp(18px, 2vw, 26px); background: var(--black) url("/assets/img/herringbone.svg") 0 0 / auto 100% repeat-x; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: min(max(680px, 100svh), 1080px);
  display: flex; align-items: flex-end; background: var(--black); color: var(--d-strong); overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 60%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(13, 13, 13, 0.9) 0%, rgba(13, 13, 13, 0.62) 32%, rgba(13, 13, 13, 0.08) 62%, rgba(13, 13, 13, 0) 75%),
    linear-gradient(0deg, rgba(13, 13, 13, 0.92) 0%, rgba(13, 13, 13, 0.35) 26%, rgba(13, 13, 13, 0) 48%),
    linear-gradient(180deg, rgba(13, 13, 13, 0.55) 0%, rgba(13, 13, 13, 0) 18%);
}
.hero-in { position: relative; z-index: 2; width: 100%; padding-top: calc(var(--header-h) + 48px); }
.hero h1 { margin-top: 0; max-width: 13ch; color: var(--d-strong); }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lead { margin-top: 26px; max-width: 40ch; color: var(--d-body); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-bar {
  display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start;
  margin-top: clamp(44px, 6vw, 84px); border-top: 1px solid var(--line-d); padding: 22px 0 clamp(26px, 3vw, 40px);
}
.hero-bar > div { padding-right: clamp(24px, 3.4vw, 56px); margin-right: clamp(24px, 3.4vw, 56px); border-right: 1px solid var(--line-d); display: grid; gap: 7px; }
.hero-bar > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-bar b { font: 500 16px/1.2 var(--f-text); color: var(--d-strong); }
.hero-bar > div > span { font: 400 14px/1.3 var(--f-text); color: var(--d-muted); }

/* ---------- sections ---------- */
.sec { padding: var(--sec) 0; position: relative; }
.sec-dark { background: var(--black); color: var(--d-body); }
.sec-white { background: var(--white); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 28px clamp(32px, 6vw, 112px); align-items: end; margin-bottom: clamp(44px, 5.5vw, 84px); }
.sec-head .h2 { margin-top: 0; }
.sec-head .lead { justify-self: start; }

/* ---------- categories ---------- */
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(16px, 1.8vw, 28px); row-gap: 48px; }
.cat { display: flex; flex-direction: column; color: var(--t-strong); }
.cat-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #e7e1d8; }
.cat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.cat:hover .cat-media img { transform: scale(1.045); }
.cat-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-top: 22px; }
.cat-title .h3 { font-size: clamp(19px, 1.45vw, 23px); }
.cat-title svg { width: 22px; height: 22px; flex: none; margin-top: 1px; color: var(--red); transition: transform 0.35s var(--ease); }
.cat:hover .cat-title svg { transform: translateX(5px); }
.cat p { margin: 10px 0 22px; font-size: 15px; line-height: 1.55; color: var(--t-muted); max-width: 32ch; }
.cat-price { margin-top: auto; padding-top: 18px; display: flex; align-items: baseline; gap: 8px; border-top: 1px solid var(--line); font-size: 14px; color: var(--t-muted); }
.cat-price b { font: 600 22px/1 var(--f-display); color: var(--t-strong); letter-spacing: 0.01em; }
@supports (grid-template-rows: subgrid) {
  .cat { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
  .cat-price { margin-top: 0; align-self: start; }
}
.note { margin-top: clamp(28px, 3vw, 40px); font-size: 13px; color: var(--t-muted); }

/* ---------- statement (why us) ---------- */
.statement .h2 { font-size: clamp(32px, 3.9vw, 60px); line-height: 1; }
.statement-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 40px clamp(40px, 7vw, 128px); align-items: end; }
.statement-grid .lead { max-width: 44ch; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(56px, 7vw, 104px); border-top: 1px solid var(--line-d); }
.fact { padding: 30px clamp(18px, 2.4vw, 36px) 0 0; }
.fact + .fact { padding-left: clamp(18px, 2.4vw, 36px); border-left: 1px solid var(--line-d); }
.fact h3 { margin-top: 0; font: 600 19px/1.15 var(--f-display); text-transform: uppercase; color: var(--d-strong); }
.fact p { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--d-body); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(56px, 7vw, 104px); }
.stat { display: grid; gap: 10px; }
.stat b { font: 500 clamp(44px, 4.6vw, 72px)/0.95 var(--f-display); color: var(--d-strong); letter-spacing: -0.02em; }
.stat b small { font-size: 0.4em; letter-spacing: 0; margin-left: 6px; color: var(--red); }
.stat > span { font-size: 15px; color: var(--d-muted); max-width: 24ch; }

/* ---------- brands ---------- */
.marquee { position: relative; overflow: hidden; padding: 14px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); }
.marquee-track { display: flex; width: max-content; animation: marquee 64s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: clamp(56px, 7vw, 120px); padding-right: clamp(56px, 7vw, 120px); flex: none; }
.marquee-group li { flex: none; }
.marquee-group img { display: block; height: var(--h); width: auto; max-width: none; opacity: 0.9; transition: opacity 0.25s; }
.marquee-group img:hover { opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

/* ---------- gallery carousel ---------- */
.car { position: relative; }
.carousel { position: relative; }
.car-track { position: relative; display: flex; gap: clamp(12px, 1.3vw, 20px); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab; }
.car-track::-webkit-scrollbar { display: none; }
.car-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.car-track.is-dragging .g-item { pointer-events: none; }
.g-item { position: relative; display: block; flex: 0 0 calc((100% - 3 * clamp(12px, 1.3vw, 20px)) / 4.35); aspect-ratio: 3 / 4; overflow: hidden;
  background: #e7e1d8; scroll-snap-align: start; cursor: zoom-in; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); -webkit-user-drag: none; user-select: none; }
.g-item:hover img { transform: scale(1.04); }
.car-btn { position: absolute; top: 50%; z-index: 3; width: 54px; height: 54px; display: flex; align-items: center; justify-content: center;
  margin-top: -27px; background: var(--black); color: var(--d-strong); border: 1px solid var(--black); transition: background 0.2s, opacity 0.2s, transform 0.2s; }
.car-btn svg { width: 22px; height: 22px; }
.car-btn:hover { background: var(--red); border-color: var(--red); }
.car-btn[disabled] { opacity: 0; pointer-events: none; }
.car-prev { left: -27px; }
.car-next { right: -27px; }
.car-foot { display: flex; align-items: center; gap: 28px; margin-top: clamp(16px, 2vw, 28px); }
.car-bar { position: relative; flex: 1; height: 22px; cursor: pointer; touch-action: none; }
.car-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: var(--line); }
.car-bar span { position: absolute; left: 0; top: 10px; height: 2px; width: 25%; background: var(--red); will-change: transform; transition: height 0.2s, top 0.2s; }
.car-bar:hover span, .car-bar.is-active span { top: 9px; height: 4px; }
.car-count { font: 500 12px/1 var(--f-display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--t-muted); white-space: nowrap; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 80; background: #080808; display: none; align-items: center; justify-content: center; }
.lb.is-open { display: flex; }
.lb img { max-width: min(92vw, 980px); max-height: 86vh; width: auto; height: auto; object-fit: contain; }
.lb-btn { position: absolute; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; color: var(--d-strong); border: 1px solid var(--line-d); transition: border-color 0.2s, background 0.2s; }
.lb-btn:hover { border-color: var(--d-strong); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); font: 500 13px/1 var(--f-display); letter-spacing: 0.16em; color: var(--d-muted); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-d); }
.step { padding: 34px clamp(20px, 3vw, 48px) 0 0; }
.step + .step { padding-left: clamp(20px, 3vw, 48px); border-left: 1px solid var(--line-d); }
.step-n { font: 500 clamp(44px, 4.4vw, 68px)/0.9 var(--f-display); color: var(--red); letter-spacing: -0.02em; }
.step h3 { margin-top: 30px; font: 600 23px/1.1 var(--f-display); text-transform: uppercase; color: var(--d-strong); }
.step p { margin-top: 12px; font-size: 15.5px; color: var(--d-body); max-width: 34ch; }

/* ---------- contact + form ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.contact-info .h2 { margin-top: 0; }
.c-list { margin-top: clamp(36px, 4vw, 56px); border-top: 1px solid var(--line); }
.c-row { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.c-row dt { font: 600 12px/1.6 var(--f-text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-muted); padding-top: 3px; }
.c-row dd { margin: 0; color: var(--t-strong); font-size: 17px; line-height: 1.5; }
.c-row dd .sub { display: block; color: var(--t-muted); font-size: 15px; }
.c-phones { display: grid; gap: 12px; }
.c-phone { display: inline-flex; align-items: center; gap: 12px; font-size: 18px; }
.c-phone .cico { width: 26px; height: 26px; flex: none; }
.c-phone small { color: var(--t-muted); font-size: 13px; margin-left: 4px; }
.hours { display: grid; grid-template-columns: auto auto; justify-content: start; column-gap: 28px; row-gap: 4px; }
.hours .off { color: var(--t-muted); }
.c-row .status { margin-top: 10px; color: var(--t-muted); }
.map-box { margin-top: 28px; position: relative; aspect-ratio: 16 / 10; background: var(--ink-2) url("/assets/img/herringbone-dark.svg") 0 0 / auto 64px; color: var(--d-strong); display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; overflow: hidden; }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }
.map-box .map-actions { position: relative; display: flex; flex-wrap: wrap; gap: 10px; }
.map-box .map-title { position: relative; font: 600 22px/1.1 var(--f-display); text-transform: uppercase; margin-bottom: 16px; }

.form-card { background: var(--black); color: var(--d-body); padding: clamp(28px, 3.6vw, 56px); position: relative; }
.form-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: var(--black) url("/assets/img/herringbone.svg") 0 0 / auto 100% repeat-x; }
.form-card .h3 { color: var(--d-strong); font-size: clamp(24px, 2.1vw, 32px); }
.form-card > p { margin-top: 14px; color: var(--d-body); font-size: 16px; max-width: 42ch; }
.form { margin-top: 32px; display: grid; gap: 18px; padding-bottom: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 9px; }
.field label { font: 500 13px/1 var(--f-text); color: var(--d-muted); letter-spacing: 0.02em; }
.field label i { font-style: normal; color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 0 16px; border-radius: 0; appearance: none;
  background: rgba(243, 238, 230, 0.03); border: 1px solid rgba(243, 238, 230, 0.2); color: var(--d-strong);
  font: 400 16px/1.3 var(--f-text); transition: border-color 0.2s, background 0.2s;
}
.field textarea { min-height: 104px; padding: 15px 16px; resize: vertical; line-height: 1.5; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23f3eee6' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; padding-right: 44px; }
.field select option { background: var(--ink-2); color: var(--d-strong); }
.field input::placeholder, .field textarea::placeholder { color: #6f6a64; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(243, 238, 230, 0.36); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ivory); background: rgba(243, 238, 230, 0.06); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--red); }
.field .err { display: none; font-size: 13px; color: #ff6b6f; }
.field.is-invalid .err { display: block; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 13px; line-height: 1.55; color: var(--d-muted); }
.check input { appearance: none; width: 22px; height: 22px; margin: 0; border: 1px solid rgba(243, 238, 230, 0.4); background: transparent; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.check input:checked { background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1 5.2 4.3 8.5 11 1.5' fill='none' stroke='%23fff' stroke-width='1.8'/%3E%3C/svg%3E") center / 12px no-repeat; border-color: var(--red); }
.check.is-invalid input { border-color: var(--red); }
.check a { color: var(--d-strong); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(243, 238, 230, 0.4); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 14px; color: var(--d-body); min-height: 0; }
.form-status.is-error { color: #ff8a8d; }
.form-done { display: none; padding: 8px 0 18px; }
.form-done .h3 { margin-top: 18px; }
.form-done p { margin-top: 12px; color: var(--d-body); }
.form-card.is-sent .form { display: none; }
.form-card.is-sent .form-done { display: block; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }

/* ---------- inner pages ---------- */
.page-hero { background: var(--black); color: var(--d-body); padding: calc(var(--header-h) + clamp(40px, 6vw, 88px)) 0 0; }
.page-hero .h1 { margin-top: 20px; max-width: 16ch; }
.page-hero .lead { margin-top: 26px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--d-muted); }
.crumbs a:hover { color: var(--d-strong); }
.crumbs span[aria-hidden] { opacity: 0.5; }
.page-hero-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: end; }
.page-hero-split .ph-text { padding-bottom: clamp(48px, 6vw, 96px); }
.page-hero-split .ph-media { aspect-ratio: 1 / 1; overflow: hidden; align-self: stretch; max-height: 640px; }
.page-hero-split .ph-media img { width: 100%; height: 100%; object-fit: cover; }
.ph-price { display: flex; align-items: baseline; gap: 10px; margin-top: 30px; font-size: 15px; color: var(--d-muted); }
.ph-price b { font: 600 32px/1 var(--f-display); color: var(--d-strong); }
.ph-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.page-hero-simple { padding-bottom: clamp(56px, 7vw, 112px); }

.tips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.tip { padding: 34px clamp(24px, 4vw, 64px) 38px 0; border-bottom: 1px solid var(--line); }
.tip:nth-child(even) { padding-left: clamp(24px, 4vw, 64px); padding-right: 0; border-left: 1px solid var(--line); }
.tip h3 { margin-top: 0; font: 600 21px/1.15 var(--f-display); text-transform: uppercase; color: var(--t-strong); }
.tip p { margin-top: 12px; max-width: 46ch; }

.brand-cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.brand-cells li { display: flex; align-items: center; justify-content: center; min-height: 104px; padding: 18px; text-align: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font: 600 15px/1.2 var(--f-display); letter-spacing: 0.14em; text-transform: uppercase; color: #857f77; }
.brand-cells img { display: block; height: calc(var(--h) * 0.92); width: auto; max-width: 100%; object-fit: contain; }

.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.split .h2 { margin-top: 0; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; cursor: pointer; font: 600 clamp(18px, 1.6vw, 22px)/1.2 var(--f-display); text-transform: uppercase; color: var(--t-strong); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; width: 18px; height: 18px; flex: none; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--red); transition: transform 0.3s var(--ease); }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm::after { transform: rotate(0deg); }
.faq details p { padding: 0 0 28px; max-width: 64ch; }

.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 1.8vw, 28px); }
.rel { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: center; padding: 16px; background: var(--white); border: 1px solid var(--line); transition: border-color 0.25s; }
.rel:hover { border-color: var(--t-strong); }
.rel img { width: 96px; height: 120px; object-fit: cover; }
.rel b { display: block; font: 600 19px/1.1 var(--f-display); text-transform: uppercase; color: var(--t-strong); }
.rel > span { display: block; }
.rel > span > span { display: block; margin-top: 8px; font-size: 14px; color: var(--t-muted); }

.rows { display: grid; gap: clamp(56px, 7vw, 112px); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 112px); align-items: center; }
.row:nth-child(even) .row-media { order: 2; }
.row-media { aspect-ratio: 4 / 5; overflow: hidden; max-height: 720px; }
.row-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.row:hover .row-media img { transform: scale(1.03); }
.row .h2 { margin-top: 0; }
.row .lead { margin-top: 22px; }
.ticks { margin-top: 28px; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; }
.ticks li::before { content: ""; width: 9px; height: 9px; margin-top: 9px; background: var(--red); transform: rotate(45deg); }
.row-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 34px; }
.row-foot .price { font-size: 15px; color: var(--t-muted); }
.row-foot .price b { font: 600 26px/1 var(--f-display); color: var(--t-strong); margin-left: 6px; }

.story { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 96px); }
.story h3 { font: 600 24px/1.1 var(--f-display); text-transform: uppercase; color: var(--t-strong); }
.story p { margin-top: 16px; }
.reqs { margin-top: 18px; font-size: 15px; color: var(--t-muted); }

.prose { max-width: 76ch; }
.prose h2 { font: 600 clamp(22px, 2vw, 28px)/1.15 var(--f-display); text-transform: uppercase; color: var(--t-strong); margin: 48px 0 16px; }
.prose p, .prose li { margin-top: 12px; }
.prose ul { padding-left: 20px; list-style: disc; }
.prose a { color: var(--t-strong); text-decoration: underline; text-underline-offset: 3px; }

.center-box { text-align: left; max-width: 760px; }
.center-box .h1 { margin-top: 24px; }
.center-box .lead { margin-top: 24px; }

/* ---------- footer ---------- */
.site-footer { background: var(--black); color: var(--d-body); }
.footer-main { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 48px clamp(28px, 4vw, 64px); padding: clamp(64px, 7vw, 104px) 0 clamp(48px, 5vw, 72px); }
.footer-brand .brand { width: clamp(200px, 18vw, 260px); }
.footer-brand p { margin-top: 24px; max-width: 34ch; font-size: 15px; color: var(--d-muted); }
.footer-col h4 { font: 600 12px/1 var(--f-text); letter-spacing: 0.16em; text-transform: uppercase; color: var(--d-muted); margin-bottom: 20px; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { color: var(--d-body); transition: color 0.2s; }
.footer-col a:hover { color: var(--d-strong); }
.footer-col .phone-num { color: var(--d-strong); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding: 26px 0 32px; border-top: 1px solid var(--line-d); font-size: 13px; color: var(--d-muted); }
.footer-bottom a:hover { color: var(--d-strong); }

/* ---------- mobile action bar ---------- */
.mbar { display: none; }

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal-d="1"] { transition-delay: 0.08s; }
.js [data-reveal-d="2"] { transition-delay: 0.16s; }
.js [data-reveal-d="3"] { transition-delay: 0.24s; }
.js .site-header .logo-m path { animation: plank 0.75s var(--ease) both; }
.js .site-header .logo-m .p1 { animation-delay: 0.05s; }
.js .site-header .logo-m .p2 { animation-delay: 0.13s; }
.js .site-header .logo-m .p3 { animation-delay: 0.21s; }
.js .site-header .logo-m .p4 { animation-delay: 0.29s; }
@keyframes plank { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: none; } }
.js .hero [data-hero] { opacity: 0; transform: translateY(22px); animation: rise 1s var(--ease) forwards; }
.js .hero [data-hero="2"] { animation-delay: 0.12s; }
.js .hero [data-hero="3"] { animation-delay: 0.24s; }
.js .hero [data-hero="4"] { animation-delay: 0.36s; }
.js .hero [data-hero="5"] { animation-delay: 0.5s; }
.js .hero-media img { animation: settle 2.4s var(--ease) both; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js .hero [data-hero] { opacity: 1; transform: none; transition: none; animation: none; }
  .js .site-header .logo-m path, .js .hero-media img { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav { gap: 22px; }
  .header-phone .status { display: none; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact { padding-bottom: 34px; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line-d); }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related { grid-template-columns: 1fr; }
  .g-item { flex-basis: calc((100% - 2 * clamp(12px, 1.3vw, 20px)) / 3.3); }
  .car-prev { left: -14px; }
  .car-next { right: -14px; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; --sec: clamp(64px, 11vw, 96px); }
  .nav, .header-contact { display: none; }
  .burger, .header-call { display: inline-flex; }
  .header-in { gap: 4px; }
  .brand { margin-right: auto; }
  .sec-head, .statement-grid, .contact-grid, .split, .story, .page-hero-split, .row { grid-template-columns: 1fr; }
  .sec-head { gap: 18px; }
  .row:nth-child(even) .row-media { order: 0; }
  .row-media { max-height: 560px; aspect-ratio: 4 / 3; }
  .page-hero-split .ph-text { padding-bottom: 0; }
  .page-hero-split .ph-media { aspect-ratio: 4 / 3; margin: 0 calc(var(--gutter) * -1); max-height: none; }
  .hero-bar { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .hero-bar > div:nth-child(2) { border-right: 0; margin-right: 0; padding-right: 0; }
  .hero-bar > div:nth-child(3) { display: none; }
  .steps { grid-template-columns: 1fr; }
  .step { padding-top: 28px; }
  .step + .step { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-d); margin-top: 28px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-item { flex-basis: calc((100% - clamp(12px, 1.3vw, 20px)) / 2.3); }
  .carousel { margin-right: calc(var(--gutter) * -1); }
  .car-track { padding-right: var(--gutter); scroll-padding-left: 0; }
  .car-next { right: calc(var(--gutter) - 14px); }
  .mbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(13, 13, 13, 0.96); border-top: 1px solid var(--line-d);
    transform: translateY(110%); transition: transform 0.35s var(--ease);
  }
  .mbar.is-on { transform: none; }
  .mbar .btn { min-height: 50px; padding: 0 12px; font-size: 13px; gap: 10px; }
  .mbar .btn svg { width: 18px; height: 18px; }
  .site-footer { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .form-card { padding: 32px 28px 40px; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .lead { font-size: 16.5px; }
  .h1 { font-size: clamp(32px, 9.4vw, 40px); line-height: 1.02; }
  .h2 { font-size: clamp(27px, 7.6vw, 32px); }
  .statement .h2 { font-size: clamp(30px, 8.4vw, 36px); }

  /* hero */
  .hero { min-height: min(100svh, 860px); }
  .hero-media img { object-position: 50% 72%; }
  .hero::before {
    background: linear-gradient(180deg, rgba(13, 13, 13, 0.86) 0%, rgba(13, 13, 13, 0.5) 34%, rgba(13, 13, 13, 0.08) 54%, rgba(13, 13, 13, 0.7) 80%, rgba(13, 13, 13, 0.96) 100%);
  }
  .hero-in { padding-top: calc(var(--header-h) + 32px); display: flex; flex-direction: column; min-height: min(100svh, 860px); }
  .hero h1 { max-width: none; }
  .hero .lead { margin-top: 16px; max-width: 34ch; }
  .hero-cta { margin-top: auto; padding-top: 28px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-bar { margin-top: 20px; padding: 18px 0 20px; column-gap: 0; }
  .hero-bar > div { padding-right: 16px; margin-right: 16px; }
  .hero-bar .status { white-space: normal; }
  .hero-bar b { font-size: 14px; }
  .hero-bar > div > span { font-size: 13px; }

  /* cards */
  .cats { gap: 32px 12px; }
  .cat p { display: none; }
  .cat-title { padding-top: 14px; }
  .cat-title .h3 { font-size: 16px; line-height: 1.15; }
  .cat-title svg { display: none; }
  .cat-price { padding-top: 10px; margin-top: 12px; font-size: 12.5px; gap: 5px; }
  .cat-price b { font-size: 18px; }
  .note { font-size: 12.5px; }

  /* statement */
  .facts { grid-template-columns: 1fr; margin-top: 40px; }
  .fact, .fact + .fact { padding: 22px 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line-d); }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line-d); }
  .stats { grid-template-columns: 1fr; gap: 0; margin-top: 24px; border-top: 1px solid var(--line-d); }
  .stat { grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-d); }
  .stat b { font-size: 40px; }
  .stat > span { font-size: 14px; }

  /* brands */
  .marquee-group { gap: 44px; padding-right: 44px; }
  .marquee-group img { height: calc(var(--h) * 0.78); }
  .marquee-track { animation-duration: 40s; }
  .marquee { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%); }
  .brand-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-cells li { min-height: 88px; padding: 14px; font-size: 13px; }
  .brand-cells img { height: calc(var(--h) * 0.8); }

  /* steps: number beside the text, not above it */
  .step { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 12px; padding-top: 24px; }
  .step + .step { margin-top: 24px; }
  .step-n { grid-row: 1 / span 2; font-size: 30px; line-height: 1; }
  .step h3 { margin-top: 1px; font-size: 19px; }
  .step p { grid-column: 2; margin-top: 8px; font-size: 15px; }

  /* gallery */
  .g-item { flex-basis: 68%; }
  .car-btn { display: none; }
  .car-foot { gap: 18px; }

  /* steps / contact / form */
  .c-row { grid-template-columns: 1fr; gap: 8px; padding: 18px 0; }
  .c-row dd { font-size: 16px; }
  .c-phone { font-size: 17px; }
  .map-box { aspect-ratio: auto; min-height: 240px; padding: 20px; }
  .map-box .map-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .map-box .map-actions .btn { padding: 0 10px; }
  .map-box .map-actions .btn:first-child { grid-column: 1 / -1; }
  .form-card { padding: 28px 20px 36px; margin: 0 calc(var(--gutter) * -1); }
  .form-row { grid-template-columns: 1fr; }
  .check { font-size: 12.5px; }

  /* inner pages */
  .page-hero { padding-top: calc(var(--header-h) + 28px); }
  .page-hero-simple { padding-bottom: 48px; }
  .page-hero-split .ph-text { padding-bottom: 32px; }
  .ph-cta .btn { flex: 1 1 100%; }
  .ph-price b { font-size: 28px; }
  .tips { grid-template-columns: 1fr; }
  .tip, .tip:nth-child(even) { padding: 24px 0; border-left: 0; }
  .faq summary { font-size: 16px; padding: 20px 0; }
  .rel { grid-template-columns: 76px minmax(0, 1fr); padding: 12px; gap: 14px; }
  .rel img { width: 76px; height: 96px; }
  .row-foot { gap: 18px; }
  .row-foot .btn { flex: 1 1 100%; }
  .center-box .ph-cta .btn { flex: 1 1 100%; }

  /* footer */
  .footer-main { grid-template-columns: 1fr; gap: 32px; padding: 56px 0 40px; }
  .footer-bottom { flex-direction: column; gap: 10px; }

  /* lightbox */
  .lb img { max-width: 100vw; max-height: 78vh; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
  .lb-prev { left: 20px; }
  .lb-next { right: 20px; }
  .lb-count { bottom: 40px; }
  .lb-close { top: 12px; right: 12px; }
}

/* screenshot / print-preview mode: no motion */
.no-anim *, .no-anim *::before, .no-anim *::after { animation: none !important; transition: none !important; }
.no-anim [data-reveal], .no-anim .hero [data-hero] { opacity: 1 !important; transform: none !important; }
