/* ============================================================
   AUTO CENTRUM MICHAŁ PACEK
   Industrial / Performance — Dark theme + racing red
   Typografia: Saira Condensed (display) · Space Mono (tech labels) · Barlow (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Saira+Condensed:wght@500;600;700;800&family=Barlow:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Space+Mono:wght@400;700&display=swap');

/* ---------- Tokens ---------- */
:root {
  --black:        #07090E;
  --bg:           #0B0E14;
  --surface:      #11151E;
  --surface-2:    #161B26;
  --surface-3:    #1E2532;
  --line:         #262E3D;
  --line-soft:    #1B2230;

  --fg:           #F3F5F8;
  --fg-soft:      #C4CCD8;
  --muted:        #8A94A6;
  --muted-2:      #5C6678;

  --red:          #E11D27;
  --red-bright:    #FF2A35;
  --red-deep:      #B0141C;
  --red-glow:     rgba(225, 29, 39, 0.45);

  --amber:        #F2A100;

  --ff-display: 'Saira Condensed', 'Arial Narrow', sans-serif;
  --ff-mono:    'Space Mono', ui-monospace, monospace;
  --ff-body:    'Barlow', system-ui, sans-serif;

  --container: 1440px;
  --radius:    0px;
  --radius-sm: 0px;
  --cut:       22px;   /* kątowe ścięcie narożnika — "ostry" charakter */
  --cut-sm:    10px;

  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-sharp: cubic-bezier(0.7, 0, 0.2, 1);
  --shadow:    0 30px 70px -28px rgba(0,0,0,0.85);
  --shadow-red: 0 16px 44px -16px var(--red-glow);

  --header-h: 78px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

::selection { background: var(--red); color: #fff; }

/* ---------- Background atmosphere ---------- */
body::before {
  content: '';
  position: fixed; inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 600px at 82% -8%, rgba(225,29,39,0.10), transparent 60%),
    radial-gradient(900px 700px at 0% 100%, rgba(40,55,85,0.18), transparent 55%),
    var(--bg);
}
body::after {
  content: '';
  position: fixed; inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background: radial-gradient(900px 500px at 78% 8%, rgba(225,29,39,0.05), transparent 70%);
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

.section { padding-block: clamp(64px, 9vw, 128px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }

.eyebrow {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red-bright);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 30px; height: 2px;
  background: var(--red);
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: '';
  width: 30px; height: 2px;
  background: var(--red);
}

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  margin-top: 18px;
  color: var(--fg);
}
.section-title em { color: var(--red); font-style: normal; }

.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-lead { color: var(--muted); margin-top: 18px; font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: var(--pad-y) 30px;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut-sm)), calc(100% - var(--cut-sm)) 100%, 0 100%);
  transition: transform 0.3s var(--ease-sharp), background 0.3s, color 0.3s, border-color 0.3s;
  will-change: transform;
  position: relative;
  overflow: hidden;
}
.btn svg { width: 18px; height: 18px; position: relative; z-index: 1; }
.btn span, .btn { position: relative; }
/* sheen sweep */
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,0.22) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.55s var(--ease-sharp);
}
.btn:hover::after { transform: translateX(120%); }

.btn--primary {
  background: var(--red);
  color: #fff;
}
.btn--primary:hover { background: var(--red-bright); transform: translateY(-3px); }

.btn--ghost {
  background: transparent;
  color: var(--fg);
  border: 1.5px solid var(--line);
}
.btn--ghost:hover { border-color: var(--red); color: #fff; transform: translateY(-3px); }

.btn--block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), border-color 0.35s, height 0.35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(9, 12, 18, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line-soft);
  height: 66px;
}
.site-header .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}
.site-header .brand { justify-self: start; }
.site-header .nav { justify-self: center; }
.site-header .header__cta { justify-self: end; }

/* Logo */
.brand { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.brand__mark {
  width: 42px; height: 42px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%);
  background: linear-gradient(150deg, var(--red), var(--red-deep));
  display: grid; place-items: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
  position: relative;
  overflow: hidden;
}
.brand__mark svg { width: 24px; height: 24px; color: #fff; position: relative; z-index: 1; }
.brand__mark::after {
  content:''; position:absolute; inset:0;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.35) 50%, transparent 60%);
}
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.brand__name span { color: var(--red); }
.brand__sub {
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

/* Nav */
.nav { display: flex; align-items: center; gap: 6px; }
.nav__link {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-soft);
  padding: 10px 16px;
  position: relative;
  transition: color 0.25s;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover { color: #fff; }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: #fff; }

.header__cta { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header-phone {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--ff-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
}
.header-phone svg { width: 18px; height: 18px; color: var(--red); }
.header-phone:hover { color: var(--red-bright); }

/* Burger */
.burger { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.burger span { width: 26px; height: 2px; background: var(--fg); transition: transform 0.3s var(--ease), opacity 0.2s; }
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 70% center;
  opacity: 0.55;
  filter: contrast(1.08) saturate(1.05);
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero__bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(95deg, var(--bg) 14%, rgba(11,14,20,0.78) 44%, rgba(11,14,20,0.28) 100%),
    linear-gradient(0deg, var(--bg) 2%, transparent 50%);
}
/* diagonal racing slash */
.hero__slash {
  position: absolute;
  top: 0; bottom: 0; right: 30%;
  width: 4px;
  background: linear-gradient(180deg, transparent, var(--red), transparent);
  transform: skewX(-12deg);
  z-index: 1;
  opacity: 0.55;
  box-shadow: 0 0 30px var(--red-glow);
}
.hero__slash::before {
  content: '';
  position: absolute; top: 0; bottom: 0; left: 14px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(225,29,39,0.4), transparent);
}
/* hazard stripe accent bottom of hero */
.hero::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 6px; z-index: 3;
  background: repeating-linear-gradient(-45deg, var(--red) 0 16px, #0b0e14 16px 32px);
  opacity: 0.85;
}
.hero__inner { position: relative; z-index: 2; max-width: 820px; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--ff-mono);
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-soft);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-left: 2px solid var(--red);
  padding: 9px 18px;
  margin-bottom: 28px;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease-sharp);
}
a.hero__tag:hover { background: rgba(225,29,39,0.1); border-left-color: var(--red-bright); transform: translateX(3px); color: #fff; }
.hero__tag b { color: var(--red-bright); }
.hero h1 {
  font-size: clamp(2.9rem, 8.5vw, 6.6rem);
  font-weight: 800;
  letter-spacing: 0.005em;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 em { color: var(--red); font-style: normal; }
.hero__lead {
  margin-top: 26px;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  color: var(--fg-soft);
  max-width: 600px;
}
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; }

/* hero stats strip */
.hero__stats {
  position: relative;
  z-index: 2;
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line);
  border-left: 2px solid var(--red);
  overflow: hidden;
  max-width: 880px;
}
.hstat { background: rgba(13,17,24,0.72); padding: 22px 24px; backdrop-filter: blur(6px); transition: background 0.3s; }
.hstat:hover { background: rgba(20,26,38,0.85); }
.hstat__num {
  font-family: var(--ff-display);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  color: #fff;
  line-height: 1;
  letter-spacing: 0.01em;
}
.hstat__num span { color: var(--red); }
.hstat__label {
  font-family: var(--ff-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}

.scroll-cue {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-cue span { width: 1px; height: 38px; background: linear-gradient(var(--red), transparent); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line-soft);
  background: var(--surface);
  overflow: hidden;
  padding-block: 18px;
}
.marquee__track { display: flex; gap: 56px; width: max-content; animation: scrollx 28s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  font-family: var(--ff-display);
  font-weight: 700;
  font-style: italic;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 56px;
  transition: color 0.3s;
}
.marquee:hover .marquee__item { color: var(--fg-soft); }
.marquee__item::after { content: '✕'; color: var(--red); font-size: 0.9rem; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ---------- Feature / Services grid ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--line);
  padding: 32px;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
  transition: transform 0.4s var(--ease-sharp), border-color 0.4s, background 0.4s;
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 0; height: 3px;
  background: var(--red);
  transition: width 0.45s var(--ease-sharp);
}
/* red corner marker at the angled cut */
.card::after {
  content: '';
  position: absolute; right: 0; bottom: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 0 var(--cut) var(--cut);
  border-color: transparent transparent var(--line) transparent;
  transition: border-color 0.4s;
}
.card:hover { transform: translateY(-6px); border-left-color: var(--red); background: linear-gradient(180deg, var(--surface-3), var(--surface)); }
.card:hover::before { width: 100%; }
.card:hover::after { border-color: transparent transparent var(--red) transparent; }

.card__icon {
  width: 56px; height: 56px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut-sm)), calc(100% - var(--cut-sm)) 100%, 0 100%);
  display: grid; place-items: center;
  color: var(--red);
  margin-bottom: 22px;
  transition: background 0.4s, color 0.4s;
}
.card__icon svg { width: 28px; height: 28px; }
.card:hover .card__icon { background: var(--red); color: #fff; }
.card__num {
  position: absolute; top: 24px; right: 26px;
  font-family: var(--ff-mono);
  font-size: 0.8rem;
  color: var(--muted-2);
}
.card h3 { font-size: 1.5rem; letter-spacing: 0.01em; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag {
  font-family: var(--ff-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-soft);
  background: var(--surface-3);
  border: 1px solid var(--line);
  padding: 5px 11px;
}

/* ---------- Split / About ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split--rev { direction: rtl; }
.split--rev > * { direction: ltr; }

.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3.4;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.media-frame:hover img { transform: scale(1.04); }
.media-frame__badge {
  position: absolute; bottom: 18px; left: 18px;
  background: rgba(9,12,18,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  padding: 14px 20px;
  display: flex; align-items: center; gap: 14px;
}
.media-frame__badge .n { font-family: var(--ff-display); font-weight: 800; font-size: 2rem; color: var(--red); line-height: 1; }
.media-frame__badge .t { font-size: 0.82rem; color: var(--fg-soft); line-height: 1.3; }

.feature-list { display: flex; flex-direction: column; gap: 18px; margin-top: 30px; }
.feature-list li { display: flex; gap: 16px; align-items: flex-start; }
.feature-list .ic {
  flex-shrink: 0;
  width: 30px; height: 30px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%);
  background: rgba(225,29,39,0.12);
  border: 1px solid rgba(225,29,39,0.3);
  display: grid; place-items: center;
  color: var(--red-bright);
}
.feature-list .ic svg { width: 16px; height: 16px; }
.feature-list b { color: var(--fg); display: block; font-weight: 600; font-size: 1.04rem; }
.feature-list span { color: var(--muted); font-size: 0.95rem; }

.prose p { color: var(--fg-soft); margin-bottom: 16px; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Steps / Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 30px; }
.step__n {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 3.4rem;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line);
  line-height: 0.8;
  margin-bottom: 16px;
  transition: color 0.4s, -webkit-text-stroke-color 0.4s;
}
.step:hover .step__n { color: var(--red); -webkit-text-stroke-color: var(--red); }
.step::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 46px; height: 2px;
  background: var(--red);
}
.step h3 { font-size: 1.3rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.94rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; grid-auto-rows: 230px; }
.gallery__item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--surface-2);
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}
.gallery__item.wide { grid-column: span 2; }
.gallery__item.tall { grid-row: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease), opacity 0.4s; }
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(7,9,14,0.7), transparent 55%);
  opacity: 0; transition: opacity 0.4s;
}
.gallery__item:hover::after { opacity: 1; }
.gallery__cap {
  position: absolute; left: 18px; bottom: 16px; z-index: 2;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s, transform 0.4s;
}
.gallery__item:hover .gallery__cap { opacity: 1; transform: translateY(0); }
/* fallback for missing images */
.gallery__item.img-fallback,
.media-frame.img-fallback,
.hero__bg.img-fallback { background: repeating-linear-gradient(135deg, var(--surface-2), var(--surface-2) 22px, var(--surface) 22px, var(--surface) 44px); }
.img-fallback img { opacity: 0 !important; }
.img-fallback::before {
  content: 'AUTO CENTRUM';
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  color: var(--muted-2);
  z-index: 1;
}

/* ---------- Reviews ---------- */
.review {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px;
  display: flex; flex-direction: column; gap: 18px;
  height: 100%;
}
.stars { display: flex; gap: 3px; color: var(--amber); }
.stars svg { width: 18px; height: 18px; }
.review p { color: var(--fg-soft); font-size: 1rem; flex: 1; }
.review__by { display: flex; align-items: center; gap: 14px; }
.review__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(150deg, var(--red), var(--red-deep));
  display: grid; place-items: center;
  font-family: var(--ff-display); font-weight: 800; color: #fff; font-size: 1.1rem;
}
.review__by b { display: block; font-weight: 600; }
.review__by span { font-family: var(--ff-mono); font-size: 0.7rem; color: var(--muted); letter-spacing: 0.06em; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--red-deep), var(--red));
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 40px 100%, 0 calc(100% - 40px));
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(700px 320px at 80% -20%, rgba(255,255,255,0.18), transparent 70%),
    repeating-linear-gradient(-45deg, rgba(0,0,0,0.06) 0 18px, transparent 18px 36px);
  opacity: 0.9;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(2rem, 5vw, 3.4rem); color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); margin: 16px auto 32px; max-width: 560px; }
.cta-band .btn--primary { background: #0B0E14; box-shadow: 0 18px 40px -12px rgba(0,0,0,0.6); }
.cta-band .btn--primary:hover { background: var(--black); }
.cta-band .btn--ghost { border-color: rgba(255,255,255,0.6); color: #fff; }
.cta-band .btn--ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Page header (subpages) ---------- */
.page-hero {
  padding-top: calc(var(--header-h) + 70px);
  padding-bottom: 60px;
  position: relative;
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; top: -40%; right: -5%;
  width: 40%; height: 180%;
  background: linear-gradient(180deg, var(--red), var(--red-deep));
  transform: skewX(-12deg);
  opacity: 0.08;
}
.breadcrumb { font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--red-bright); }
.breadcrumb span { color: var(--red); }
.page-hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 800; }
.page-hero h1 em { color: var(--red); font-style: normal; }
.page-hero p { color: var(--muted); margin-top: 18px; max-width: 620px; font-size: 1.08rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(32px, 5vw, 64px); }
.info-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px;
  display: flex; gap: 18px; align-items: flex-start;
  transition: border-color 0.3s, transform 0.3s;
}
.info-card:hover { border-color: var(--line); transform: translateY(-3px); }
.info-card__ic {
  flex-shrink: 0; width: 50px; height: 50px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut-sm)), calc(100% - var(--cut-sm)) 100%, 0 100%);
  background: var(--surface-3); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--red);
}
.info-card__ic svg { width: 24px; height: 24px; }
.info-card h4 { font-size: 1.2rem; margin-bottom: 6px; }
.info-card a, .info-card p { color: var(--fg-soft); font-size: 1.02rem; }
.info-card a:hover { color: var(--red-bright); }
.info-stack { display: flex; flex-direction: column; gap: 16px; }

.form {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 40px);
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin-bottom: 9px;
}
.field label .req { color: var(--red); }
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--black);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--fg);
  font-family: var(--ff-body);
  font-size: 1rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(225,29,39,0.18);
}
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__note { font-size: 0.84rem; color: var(--muted); margin-top: 4px; }
.form-status { margin-top: 16px; font-size: 0.95rem; padding: 12px 16px; border-left: 3px solid; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: rgba(34,160,80,0.12); border: 1px solid rgba(34,160,80,0.4); color: #6ee79b; }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  filter: grayscale(0.4) invert(0.9) hue-rotate(180deg) contrast(0.9);
  margin-top: 24px;
}
.map-frame iframe { width: 100%; height: 340px; border: 0; display: block; }

.hours-table { width: 100%; border-collapse: collapse; margin-top: 4px; }
.hours-table tr { border-bottom: 1px solid var(--line-soft); }
.hours-table tr:last-child { border-bottom: none; }
.hours-table td { padding: 11px 0; font-size: 0.98rem; }
.hours-table td:first-child { color: var(--fg-soft); }
.hours-table td:last-child { text-align: right; font-family: var(--ff-mono); font-size: 0.86rem; color: var(--fg); }
.hours-table .closed td:last-child { color: var(--red); }
.hours-table .today td { color: #fff; }
.hours-table .today td:first-child { font-weight: 600; }
.badge-open {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(34,160,80,0.12); border: 1px solid rgba(34,160,80,0.4); color: #6ee79b;
  padding: 7px 14px; margin-bottom: 18px;
}
.badge-open.closed { background: rgba(225,29,39,0.12); border-color: rgba(225,29,39,0.4); color: var(--red-bright); }
.badge-open .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line-soft); }
.faq__q {
  width: 100%; text-align: left;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0;
  font-family: var(--ff-display);
  font-weight: 600; font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.01em;
  color: var(--fg);
  transition: color 0.25s;
}
.faq__q:hover { color: var(--red-bright); }
.faq__q .pm { flex-shrink: 0; width: 26px; height: 26px; position: relative; }
.faq__q .pm::before, .faq__q .pm::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: var(--red); }
.faq__q .pm::before { width: 14px; height: 2px; }
.faq__q .pm::after { width: 2px; height: 14px; transition: transform 0.3s var(--ease); }
.faq__item.open .pm::after { transform: translate(-50%,-50%) scaleY(0); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq__a p { color: var(--muted); padding-bottom: 24px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); background: var(--black); padding-block: 64px 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand p { color: var(--muted); margin-top: 18px; font-size: 0.96rem; max-width: 300px; }
.footer-col h5 {
  font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col li { color: var(--fg-soft); font-size: 0.98rem; transition: color 0.25s; }
.footer-col a:hover { color: var(--red-bright); }
.footer-col li { display: flex; align-items: flex-start; gap: 10px; }
.footer-col li svg { width: 16px; height: 16px; color: var(--red); flex-shrink: 0; margin-top: 4px; }
.socials { display: flex; gap: 12px; margin-top: 20px; }
.socials a {
  width: 42px; height: 42px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut-sm)), calc(100% - var(--cut-sm)) 100%, 0 100%);
  background: var(--surface-2); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--fg-soft);
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
.socials a:hover { background: var(--red); color: #fff; transform: translateY(-3px); }
.socials svg { width: 20px; height: 20px; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 0.85rem; color: var(--muted);
}
.footer-bottom a:hover { color: var(--fg); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 880px) {
  .site-header .container { display: flex; justify-content: space-between; }
  .header-phone { display: none; }
  .burger { display: flex; }
  .burger.open {
    position: fixed;
    top: 16px;
    right: max(18px, calc((100vw - var(--container)) / 2 + 24px));
    z-index: 101;
    background: var(--red);
    box-shadow: 0 10px 28px rgba(0,0,0,0.32);
  }
  .burger.open span { background: #fff; }
  .header__cta .btn { display: none; }

  /* mobile nav panel */
  .nav {
    display: flex;
    position: fixed;
    top: 0; right: 0;
    width: min(82vw, 360px);
    height: 100svh;
    background: var(--surface);
    border-left: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: calc(var(--header-h) + 20px) 24px 30px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    z-index: 99;
  }
  .nav.open { transform: translateX(0); box-shadow: -30px 0 60px rgba(0,0,0,0.5); }
  .nav .nav__link { font-size: 1.5rem; padding: 14px 8px; border-bottom: 1px solid var(--line-soft); }
  .nav .nav__link::after { display: none; }
  .nav .btn { display: inline-flex !important; margin-top: 24px; }
  .nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(3px); z-index: 98; opacity: 0; visibility: hidden; transition: opacity 0.3s; }
  .nav-overlay.open { opacity: 1; visibility: visible; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split--rev { direction: ltr; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); margin-top: 44px; }
  .steps { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery__item.wide { grid-column: span 2; }
  .gallery__item.tall { grid-row: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 420px) {
  .container { padding-inline: 18px; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__item.wide { grid-column: span 1; }
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: clamp(18px, 2.4vw, 36px);
  bottom: clamp(18px, 2.4vw, 36px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--red);
  border-radius: 0;
  color: var(--fg);
  background: rgba(15, 17, 20, 0.94);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s, border-color 0.2s, background 0.2s;
}
.back-to-top svg { width: 18px; height: 18px; color: var(--red); }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { border-color: var(--red); background: var(--panel); transform: translateY(-3px); }
.back-to-top:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}
