/* ═══════════════════════════════════════════════════════════════
   MasterBuild BG — design system
   Palette from logo: charcoal · electric blue · safety orange
   Type: Sofia Sans Extra Condensed (display) / Sofia Sans (body)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --ink: #0c1016;
  --ink-soft: #101622;
  --panel: #131a26;
  --panel-2: #182130;
  --line: rgba(148, 170, 200, 0.14);
  --line-strong: rgba(148, 170, 200, 0.28);
  --text: #eaeff6;
  --muted: #9aa8bd;
  --blue: #2f7fe0;
  --blue-bright: #5ea2ff;
  --blue-dim: rgba(47, 127, 224, 0.14);
  --orange: #ff7a1a;
  --orange-deep: #ee650b;
  --radius: 18px;
  --radius-sm: 12px;
  --font-display: "Sofia Sans Extra Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Sofia Sans", "Helvetica Neue", Arial, sans-serif;
  --header-h: 76px;
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
}

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

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

@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { padding: 0; }

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

:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ── Section scaffolding ─────────────────────────────────────── */

.section { padding: clamp(84px, 12vw, 150px) 0; position: relative; }

.section__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin: 0 0 18px;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 22px;
}

.section__title em {
  font-style: normal;
  color: var(--blue-bright);
}

.section__desc {
  color: var(--muted);
  max-width: 56ch;
  margin: 0;
}

.section__head { margin-bottom: clamp(44px, 6vw, 72px); }

.section__head--center {
  text-align: center;
}
.section__head--center .section__desc { margin-inline: auto; }

/* ── Buttons ─────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}

.btn svg { width: 20px; height: 20px; flex: none; }

.btn--primary {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
  color: #16100a;
  box-shadow: 0 12px 34px -10px rgba(255, 122, 26, 0.55);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px -12px rgba(255, 122, 26, 0.7);
}

.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(12, 16, 22, 0.35);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  border-color: var(--blue-bright);
  transform: translateY(-3px);
}

/* ── Intro curtain ───────────────────────────────────────────── */

.curtain {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink);
  display: grid;
  place-items: center;
  transition: transform 0.9s var(--ease-out), visibility 0s 0.9s;
}

.curtain__mark { text-align: center; }

.curtain__img {
  height: clamp(58px, 9vw, 104px);
  width: auto;
  max-width: calc(100vw - 60px);
  object-fit: contain;
  margin-inline: auto;
  animation: curtainWord 0.7s var(--ease-out) both;
}

.curtain__line {
  display: block;
  height: 3px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  border-radius: 2px;
  transform-origin: left;
  animation: curtainLine 0.9s 0.15s var(--ease-out) both;
}

@keyframes curtainWord {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@keyframes curtainLine {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

body.is-loaded .curtain {
  transform: translateY(-100%);
  visibility: hidden;
}

/* ── Header ──────────────────────────────────────────────────── */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

/* The translucent blurred backdrop lives on a ::before, NOT on .header
   itself: backdrop-filter on .header would make it the containing block
   for the fixed mobile nav, trapping the menu inside the header strip. */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(12, 16, 22, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.header.is-scrolled { border-color: var(--line); }
.header.is-scrolled::before { opacity: 1; }

.header__inner {
  width: min(1360px, calc(100% - 48px));
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  z-index: 130;
  position: relative;
}

.brand__img {
  height: 44px;
  width: auto;
  transition: transform 0.35s var(--ease-out);
}

.brand:hover .brand__img { transform: translateY(-2px); }

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav__link {
  padding: 10px 16px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease;
  position: relative;
}

.nav__link:hover { color: var(--text); background: rgba(148, 170, 200, 0.08); }

.nav__link.is-active { color: var(--text); }

.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
}

.nav__phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: 14px;
  padding: 11px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.nav__phone svg { width: 17px; height: 17px; color: var(--orange); }
.nav__phone:hover { border-color: var(--orange); background: rgba(255, 122, 26, 0.08); }

.burger {
  display: none;
  z-index: 130;
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.burger span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}

.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__bg { position: absolute; inset: -8% 0; z-index: -2; }

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(12, 16, 22, 0.35) 0%, rgba(12, 16, 22, 0.15) 40%, rgba(12, 16, 22, 0.92) 90%),
    linear-gradient(100deg, rgba(12, 16, 22, 0.55) 0%, rgba(12, 16, 22, 0.05) 60%);
}

.hero__content {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
  padding: calc(var(--header-h) + 60px) 0 110px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(12, 16, 22, 0.5);
  border: 1px solid var(--line);
  padding: 9px 18px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  margin: 0 0 26px;
}

.hero__eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.25);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 122, 26, 0.4); }
  50% { box-shadow: 0 0 0 7px rgba(255, 122, 26, 0); }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 10.5vw, 8.6rem);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 26px;
}

.hero__row { display: block; overflow: hidden; }

.hero__word {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 1s var(--ease-out);
}

.hero__row:nth-child(2) .hero__word { transition-delay: 0.1s; }
.hero__row:nth-child(3) .hero__word { transition-delay: 0.2s; }

body.is-loaded .hero__word { transform: none; }

.hero__word--accent { color: var(--blue-bright); }

@supports (-webkit-text-stroke: 2px white) {
  .hero__word--accent {
    color: transparent;
    -webkit-text-stroke: 2px var(--blue-bright);
  }
}

.hero__sub {
  max-width: 54ch;
  color: #c4cedd;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  margin: 0 0 36px;
}

.hero__sub strong { color: var(--text); }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 38px;
}

.hero__trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero__trust b {
  color: var(--orange);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  margin-right: 7px;
}

.hero__scroll {
  position: absolute;
  right: 34px;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  writing-mode: vertical-rl;
}

.hero__scroll-line {
  width: 1px;
  height: 56px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--orange);
  transform: translateY(-100%);
  animation: scrollHint 2s var(--ease-out) infinite;
}

@keyframes scrollHint {
  0% { transform: translateY(-100%); }
  55% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* Staggered fade-in lines in hero */
.reveal-line {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

body.is-loaded .reveal-line { opacity: 1; transform: none; }
body.is-loaded .hero__eyebrow.reveal-line { transition-delay: 0.05s; }
body.is-loaded .hero__sub.reveal-line { transition-delay: 0.35s; }
body.is-loaded .hero__cta.reveal-line { transition-delay: 0.5s; }
body.is-loaded .hero__trust.reveal-line { transition-delay: 0.65s; }

/* ── Marquee ─────────────────────────────────────────────────── */

.marquee {
  border-block: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  background: var(--ink-soft);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 38px;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.marquee span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(154, 168, 189, 0.45);
  white-space: nowrap;
}

@supports (-webkit-text-stroke: 1px white) {
  .marquee span {
    color: transparent;
    -webkit-text-stroke: 1px rgba(154, 168, 189, 0.65);
  }
}

.marquee i { color: var(--orange); font-style: normal; font-size: 1.2rem; }

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ── Services ────────────────────────────────────────────────── */

.services { background: var(--ink); }

.svc {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.svc__item { border-bottom: 1px solid var(--line); }

.svc__link {
  display: grid;
  grid-template-columns: 72px 1fr 60px;
  align-items: center;
  gap: 22px;
  padding: 34px 10px;
  text-decoration: none;
  transition: background 0.3s ease, padding 0.35s var(--ease-out);
}

.svc__link:hover { background: rgba(47, 127, 224, 0.05); padding-left: 26px; }

.svc__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.svc__name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  transition: color 0.25s ease;
}

.svc__link:hover .svc__name { color: var(--blue-bright); }

.svc__badge {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #16100a;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  padding: 6px 12px;
  border-radius: 999px;
  transform: translateY(-4px);
}

.svc__text {
  display: block;
  color: var(--muted);
  max-width: 62ch;
  margin-top: 10px;
  font-size: 0.98rem;
}

.svc__arrow {
  font-size: 1.7rem;
  color: var(--muted);
  justify-self: end;
  transition: transform 0.35s var(--ease-out), color 0.25s ease;
}

.svc__link:hover .svc__arrow { transform: translateX(8px); color: var(--orange); }

/* Floating preview image (desktop, fine pointer only) */
.svc__float {
  position: fixed;
  z-index: 60;
  width: 300px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.85) rotate(-3deg);
  transition: opacity 0.3s ease, transform 0.4s var(--ease-out);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-strong);
}

.svc__float img { width: 100%; height: 100%; object-fit: cover; }

.svc__float.is-visible { opacity: 1; transform: scale(1) rotate(-2deg); }

@media (hover: none), (pointer: coarse) {
  .svc__float { display: none; }
}

/* ── Offer / value stack ─────────────────────────────────────── */

.offer { background: var(--ink-soft); }

.offer__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.offer__btn { margin-top: 30px; }

.stack {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.stack__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}

.stack__check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue-dim);
  color: var(--blue-bright);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  margin-top: 2px;
}

.stack__what { color: var(--muted); font-size: 0.98rem; }
.stack__what b { color: var(--text); display: block; margin-bottom: 2px; }

.stack__price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--orange);
  white-space: nowrap;
  text-align: right;
}

.stack__price s { color: var(--muted); font-weight: 700; margin-right: 8px; font-size: 0.95rem; }

.stack__total {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 18px;
  padding: 24px 26px;
  background: rgba(47, 127, 224, 0.08);
}

.stack__total > span:first-child { color: var(--muted); font-weight: 600; }

.stack__zero {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  text-transform: uppercase;
  color: var(--blue-bright);
}

.guarantee { margin-top: clamp(48px, 6vw, 80px); }

.guarantee__inner {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  background: rgba(255, 122, 26, 0.04);
}

.guarantee__icon { width: 44px; height: 44px; flex: none; color: var(--orange); }

.guarantee p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.guarantee b { color: var(--text); display: block; margin-bottom: 6px; }

/* ── Before / After ──────────────────────────────────────────── */

.ba__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 640px;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  --pos: 50%;
}

.ba__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba__clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  width: var(--pos);
}

/* keep the before image sized to the frame, not the clip */
.ba__clip .ba__img {
  width: auto;
  height: 100%;
  aspect-ratio: 16 / 9;
  left: 0;
  right: auto;
}

.ba__tag {
  position: absolute;
  top: 20px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  z-index: 3;
}

.ba__tag--before { left: 20px; background: rgba(12, 16, 22, 0.65); color: #ffb9a1; }
.ba__tag--after { right: 20px; background: rgba(12, 16, 22, 0.65); color: #a5d8a1; }

.ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  background: #fff;
  transform: translateX(-50%);
  z-index: 4;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.ba__grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px -6px rgba(47, 127, 224, 0.7);
  border: 3px solid rgba(255, 255, 255, 0.9);
}

.ba__grip svg { width: 24px; height: 24px; }

.ba__note { margin-top: 22px; color: var(--muted); font-size: 0.95rem; }
.ba__note a { color: var(--blue-bright); }

/* ── Numbers band ────────────────────────────────────────────── */

.numbers {
  border-block: 1px solid var(--line);
  background: var(--ink-soft);
  padding: clamp(44px, 6vw, 70px) 0;
}

.numbers__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.num { text-align: center; }

.num__val {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: 1;
  color: var(--blue-bright);
  display: block;
}

.num__cap {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

/* ── Process ─────────────────────────────────────────────────── */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 28px;
  transition: transform 0.4s var(--ease-out), border-color 0.3s ease;
}

.step:hover { transform: translateY(-6px); border-color: var(--blue); }

.step__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
  color: var(--orange);
  display: block;
  margin-bottom: 16px;
}

@supports (-webkit-text-stroke: 1.5px white) {
  .step__num {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--orange);
  }
}

.step__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  text-transform: uppercase;
  margin: 0 0 10px;
  letter-spacing: 0.02em;
}

.step__text { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ── About ───────────────────────────────────────────────────── */

.about { background: var(--ink-soft); }

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.about__media {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-strong);
}

.about__media > img {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.about__media:hover > img { transform: scale(1.04); }

.about__badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(12, 16, 22, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
}

.about__badge b { display: block; font-size: 1.05rem; }
.about__badge span { color: var(--muted); font-size: 0.85rem; }

.about__body p { color: var(--muted); }
.about__body p b { color: var(--text); }

.about__points {
  list-style: none;
  margin: 26px 0 30px;
  padding: 0;
  display: grid;
  gap: 13px;
}

.about__points li {
  position: relative;
  padding-left: 32px;
  color: var(--text);
  font-size: 0.98rem;
}

.about__points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue-dim);
  color: var(--blue-bright);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.link-more {
  color: var(--blue-bright);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.link-more:hover { border-color: var(--blue-bright); }
.link-more span { display: inline-block; transition: transform 0.3s var(--ease-out); }
.link-more:hover span { transform: translateX(5px); }

/* ── Diagnostic wizard ───────────────────────────────────────── */

.diag { overflow: hidden; }

.diag__bg {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  z-index: -1;
}

.diag__bg img { width: 100%; height: 100%; object-fit: cover; }

.diag::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(80% 60% at 50% 0%, rgba(47, 127, 224, 0.14), transparent 70%);
}

.wizard {
  max-width: 760px;
  margin-inline: auto;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow-lg);
  padding: clamp(26px, 4.5vw, 48px);
  position: relative;
}

.wizard__bar {
  height: 5px;
  border-radius: 4px;
  background: rgba(148, 170, 200, 0.15);
  overflow: hidden;
  margin-bottom: clamp(26px, 4vw, 38px);
}

.wizard__bar span {
  display: block;
  height: 100%;
  width: 25%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright));
  transition: width 0.5s var(--ease-out);
}

.wizard__step { display: none; }

.wizard__step.is-active {
  display: block;
  animation: stepIn 0.45s var(--ease-out);
}

@keyframes stepIn {
  from { opacity: 0; transform: translateX(26px); }
  to { opacity: 1; transform: none; }
}

.wizard__q {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  display: block;
  width: 100%;
}

.wizard__opts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.opt {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
  font-weight: 600;
  font-size: 1rem;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.3s var(--ease-out);
}

.opt:hover {
  border-color: var(--blue-bright);
  background: rgba(47, 127, 224, 0.1);
  transform: translateY(-2px);
}

.opt__icon { font-size: 1.5rem; flex: none; }

.opt--hot { border-color: rgba(255, 122, 26, 0.5); }
.opt--hot:hover { border-color: var(--orange); background: rgba(255, 122, 26, 0.1); }

.wizard__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 22px;
}

.field { display: block; }
.field--wide { grid-column: 1 / -1; }

.field__label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 8px;
}

.field__input {
  width: 100%;
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--ink);
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field__input::placeholder { color: rgba(154, 168, 189, 0.5); }

.field__input:focus {
  outline: none;
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px rgba(47, 127, 224, 0.2);
}

.wizard__submit { width: 100%; justify-content: center; }

.wizard__privacy {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

.hp-field { position: absolute; left: -9999px; opacity: 0; }

.wizard__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 26px;
  min-height: 24px;
}

.wizard__back {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 6px 10px;
  border-radius: 8px;
  transition: color 0.2s ease;
}

.wizard__back:hover { color: var(--text); }

.wizard__count {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-left: auto;
}

.wizard__done { text-align: center; padding: 20px 0 10px; }

.wizard__done-icon {
  display: inline-grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--blue-dim);
  color: var(--blue-bright);
  margin-bottom: 22px;
}

.wizard__done-icon svg { width: 44px; height: 44px; }

.wizard__done-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.2rem;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.wizard__done-text { color: var(--muted); max-width: 46ch; margin: 0 auto 10px; }

.wizard__done-text--hot b { color: var(--orange); }

.wizard__done-call { margin-top: 16px; }

/* ── Coverage ────────────────────────────────────────────────── */

.coverage { background: var(--ink-soft); }

.coverage__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.coverage__contact { margin-top: 30px; display: inline-grid; gap: 12px; }

.coverage__row {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  transition: border-color 0.25s ease, transform 0.3s var(--ease-out);
  width: 100%;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.coverage__row:hover { border-color: var(--blue-bright); transform: translateX(6px); }
.coverage__row svg { width: 22px; height: 22px; color: var(--orange); flex: none; }

.towns {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.towns__chip {
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.3s var(--ease-out);
}

.towns__chip:hover { border-color: var(--blue-bright); color: var(--text); transform: translateY(-3px); }

.towns__chip--main {
  background: var(--blue-dim);
  border-color: rgba(47, 127, 224, 0.5);
  color: var(--blue-bright);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.towns__chip--more { border-style: dashed; }

/* ── Final CTA ───────────────────────────────────────────────── */

.final {
  position: relative;
  padding: clamp(100px, 14vw, 180px) 0;
  overflow: hidden;
  text-align: center;
}

.final__bg { position: absolute; inset: 0; z-index: -2; }

.final__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.final::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--ink) 0%, rgba(12, 16, 22, 0.72) 45%, var(--ink) 100%);
}

.final__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 8.5vw, 6.6rem);
  line-height: 0.94;
  text-transform: uppercase;
  margin: 0 0 20px;
}

.final__title em { font-style: normal; color: var(--orange); }

@supports (-webkit-text-stroke: 2px white) {
  .final__title em {
    color: transparent;
    -webkit-text-stroke: 2px var(--orange);
  }
}

.final__sub {
  color: #c4cedd;
  max-width: 52ch;
  margin: 0 auto 40px;
  font-size: 1.1rem;
}

.final__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* ── Footer ──────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--line);
  background: var(--ink-soft);
  padding-top: clamp(56px, 8vw, 90px);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}

.footer__logo {
  display: inline-block;
  width: 170px;
  margin-bottom: 18px;
}

.footer__brand p { color: var(--muted); margin: 0; font-size: 0.95rem; }

.footer__col h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin: 0 0 18px;
}

.footer__col a {
  display: block;
  color: var(--text);
  text-decoration: none;
  padding: 6px 0;
  font-size: 0.98rem;
  transition: color 0.2s ease;
}

.footer__col a:hover { color: var(--blue-bright); }

.footer__soon {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--blue-dim);
  color: var(--blue-bright);
  padding: 3px 8px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
}

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-block: 22px;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer__bar p { margin: 0; }

.footer__credits {
  font-size: 0.72rem;
  color: rgba(154, 168, 189, 0.55);
  max-width: 62ch;
}

.footer__credits a { color: inherit; }

.footer__top { color: var(--muted); text-decoration: none; transition: color 0.2s ease; }
.footer__top:hover { color: var(--text); }

/* ── Sticky mobile bar ───────────────────────────────────────── */

.sticky-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 90;
  display: none;
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(18, 24, 34, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.6);
  transform: translateY(130%);
  transition: transform 0.5s var(--ease-out);
}

.sticky-bar.is-visible { transform: none; }

.sticky-bar__call,
.sticky-bar__cta {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

.sticky-bar__call { border: 1px solid var(--line-strong); color: var(--text); }
.sticky-bar__call svg { width: 18px; height: 18px; color: var(--orange); }

.sticky-bar__cta {
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  color: #16100a;
}

/* ── Scroll reveal ───────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal.is-in { opacity: 1; transform: none; }

.svc__item.reveal:nth-child(2) { transition-delay: 0.07s; }
.svc__item.reveal:nth-child(3) { transition-delay: 0.14s; }
.svc__item.reveal:nth-child(4) { transition-delay: 0.21s; }
.svc__item.reveal:nth-child(5) { transition-delay: 0.28s; }

.step.reveal:nth-child(2) { transition-delay: 0.08s; }
.step.reveal:nth-child(3) { transition-delay: 0.16s; }
.step.reveal:nth-child(4) { transition-delay: 0.24s; }

.num.reveal:nth-child(2) { transition-delay: 0.08s; }
.num.reveal:nth-child(3) { transition-delay: 0.16s; }
.num.reveal:nth-child(4) { transition-delay: 0.24s; }

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .offer__grid { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 520px; }
  .coverage__grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 66px; }

  /* navbar keeps its solid background at all times on mobile */
  .header { border-color: var(--line); }
  .header::before { opacity: 1; }

  .brand__img { height: 30px; }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 120;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    padding: 100px 34px 40px;
    background: rgba(10, 13, 18, 0.97);
    backdrop-filter: blur(18px);
    clip-path: circle(0% at calc(100% - 45px) 40px);
    transition: clip-path 0.65s var(--ease-out);
    visibility: hidden;
  }

  .nav.is-open {
    clip-path: circle(150% at calc(100% - 45px) 40px);
    visibility: visible;
  }

  .nav__link {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.6rem;
    text-transform: uppercase;
    color: var(--text);
    padding: 6px 0;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.4s ease, transform 0.4s var(--ease-out);
  }

  .nav.is-open .nav__link { opacity: 1; transform: none; }
  .nav.is-open .nav__link:nth-child(1) { transition-delay: 0.12s; }
  .nav.is-open .nav__link:nth-child(2) { transition-delay: 0.18s; }
  .nav.is-open .nav__link:nth-child(3) { transition-delay: 0.24s; }
  .nav.is-open .nav__link:nth-child(4) { transition-delay: 0.3s; }
  .nav.is-open .nav__link:nth-child(5) { transition-delay: 0.36s; }

  .nav__link.is-active::after { display: none; }
  .nav__link.is-active { color: var(--blue-bright); }

  /* instant tap feedback while the browser starts loading the next page */
  .nav.is-open .nav__link:active { color: var(--orange); }

  .nav__phone {
    margin: 26px 0 0;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.4s 0.42s ease, transform 0.4s 0.42s var(--ease-out);
    font-size: 1.15rem;
    padding: 15px 26px;
  }

  .nav.is-open .nav__phone { opacity: 1; transform: none; }

  .burger { display: inline-flex; }

  .hero__scroll { display: none; }

  .svc__link { grid-template-columns: 44px 1fr 34px; gap: 14px; padding: 26px 4px; }
  .svc__link:hover { padding-left: 4px; }
  .svc__arrow { font-size: 1.3rem; }

  .numbers__grid { grid-template-columns: repeat(2, 1fr); gap: 34px 16px; }

  .wizard__fields { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr 1fr; }

  .sticky-bar { display: flex; }

  body { padding-bottom: 76px; }
}

@media (max-width: 400px) {
  .brand__img { height: 25px; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }

  .hero__content { text-align: center; }
  .hero__title { font-size: clamp(2.6rem, 12vw, 4.6rem); }
  .hero__sub { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__trust { justify-content: center; }

  /* every standalone CTA goes full width */
  .btn { width: 100%; justify-content: center; }

  .ba__frame { aspect-ratio: 4 / 3; }
  .ba__clip .ba__img { aspect-ratio: 4 / 3; }
  .ba__grip { width: 46px; height: 46px; }

  /* contact rows: full-width buttons above the area chips */
  .coverage__contact { display: grid; }

  .coverage__row { justify-content: center; }

  /* coverage chips: orderly 2-column grid, main cities on top */
  .towns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .towns__chip {
    text-align: center;
    padding: 13px 10px;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .towns__chip--main { font-size: 1.15rem; }

  .towns__chip--more { grid-column: 1 / -1; }

  /* minimal footer: brand + contacts only, centered */
  .footer { padding-top: 48px; }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 34px;
    text-align: center;
  }

  nav.footer__col { display: none; }

  .footer__logo { margin-inline: auto; width: 140px; }

  .footer__col h3 { display: none; }

  .footer__col a { padding: 8px 0; }

  .footer__bar {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding-block: 18px;
  }

  .footer__credits { margin-inline: auto; }
}

/* ═══════════════════════════════════════════════════════════════
   SUBPAGES — Услуги · Проекти · За нас · Контакти
   ═══════════════════════════════════════════════════════════════ */

/* ── Page hero ───────────────────────────────────────────────── */

.phero {
  position: relative;
  padding: calc(var(--header-h) + clamp(64px, 10vw, 130px)) 0 clamp(48px, 7vw, 90px);
  overflow: hidden;
}

.phero__bg { position: absolute; inset: 0; z-index: -2; }

.phero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.phero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(12, 16, 22, 0.72) 0%, rgba(12, 16, 22, 0.55) 45%, var(--ink) 100%),
    linear-gradient(100deg, rgba(12, 16, 22, 0.6) 0%, rgba(12, 16, 22, 0.1) 70%);
}

.phero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin: 0 0 20px;
}

.phero__eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.25);
}

.phero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 0.94;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 22px;
}

.phero__title em { font-style: normal; color: var(--blue-bright); }

@supports (-webkit-text-stroke: 2px white) {
  .phero__title em {
    color: transparent;
    -webkit-text-stroke: 2px var(--blue-bright);
  }
}

.phero__sub {
  color: #c4cedd;
  max-width: 58ch;
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  margin: 0;
}

.phero__sub strong { color: var(--text); }

/* staggered lines inside page heroes */
body.is-loaded .phero .reveal-line:nth-child(1) { transition-delay: 0.05s; }
body.is-loaded .phero .reveal-line:nth-child(2) { transition-delay: 0.15s; }
body.is-loaded .phero .reveal-line:nth-child(3) { transition-delay: 0.25s; }
body.is-loaded .phero .reveal-line:nth-child(4) { transition-delay: 0.35s; }
body.is-loaded .phero .reveal-line:nth-child(5) { transition-delay: 0.45s; }

/* ── Услуги: hero table of contents ──────────────────────────── */

.toc {
  list-style: none;
  margin: clamp(36px, 5vw, 56px) 0 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  max-width: 860px;
}

.toc__link {
  display: grid;
  grid-template-columns: 56px 1fr 40px;
  align-items: center;
  gap: 18px;
  padding: 16px 6px;
  border-bottom: 1px solid var(--line-strong);
  text-decoration: none;
  transition: background 0.3s ease, padding 0.35s var(--ease-out);
}

.toc__link:hover { background: rgba(47, 127, 224, 0.07); padding-left: 18px; }

.toc__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.toc__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.45rem, 3.4vw, 2.2rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
}

.toc__link:hover .toc__name { color: var(--blue-bright); }

.toc__arrow {
  justify-self: end;
  color: var(--muted);
  font-size: 1.3rem;
  transition: transform 0.35s var(--ease-out), color 0.25s ease;
}

.toc__link:hover .toc__arrow { transform: translateY(5px); color: var(--orange); }

/* ── Услуги: sticky chapter nav ──────────────────────────────── */

.chapnav {
  position: sticky;
  top: var(--header-h);
  z-index: 80;
  background: rgba(12, 16, 22, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-block: 1px solid var(--line);
}

.chapnav__inner {
  display: flex;
  gap: 8px;
  padding-block: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.chapnav__inner::-webkit-scrollbar { display: none; }

.chapnav__link {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.chapnav__link b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--blue-bright);
}

.chapnav__link:hover { color: var(--text); border-color: var(--line-strong); }

.chapnav__link.is-active {
  color: var(--text);
  background: var(--blue-dim);
  border-color: rgba(47, 127, 224, 0.5);
}

/* ── Услуги: chapters ────────────────────────────────────────── */

.chap {
  position: relative;
  padding: clamp(72px, 10vw, 130px) 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.chap:nth-of-type(even) { background: var(--ink-soft); }

.chap__ghost {
  position: absolute;
  top: clamp(8px, 2vw, 28px);
  right: -0.05em;
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(7rem, 22vw, 19rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(148, 170, 200, 0.13);
  pointer-events: none;
  user-select: none;
}

.chap__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(36px, 6vw, 84px);
  align-items: start;
}

.chap--flip .chap__grid > .chap__media { order: 2; }

.chap__media {
  position: sticky;
  top: calc(var(--header-h) + 74px);
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
}

.chap__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.chap__media:hover img { transform: scale(1.04); }

.chap__media figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(12, 16, 22, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.chap__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin: 0 0 14px;
}

.chap__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  line-height: 0.98;
  text-transform: uppercase;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.chap__lead { color: var(--text); font-size: 1.08rem; margin: 14px 0 0; max-width: 56ch; }
.chap__text { color: var(--muted); margin: 14px 0 0; max-width: 58ch; }

.chap__h {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 34px 0 16px;
}

.chek {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px 22px;
}

.chek li {
  position: relative;
  padding-left: 32px;
  color: var(--text);
  font-size: 0.97rem;
}

.chek li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue-dim);
  color: var(--blue-bright);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
}

.signs {
  margin-top: 34px;
  border: 1px dashed rgba(255, 122, 26, 0.45);
  border-radius: var(--radius-sm);
  background: rgba(255, 122, 26, 0.05);
  padding: 22px 24px;
}

.signs__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--orange);
}

.signs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.signs li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.signs li::before { content: "→"; position: absolute; left: 0; color: var(--orange); }

.chap__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.spec {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  background: rgba(12, 16, 22, 0.35);
}

.spec__k {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 3px;
}

.spec__v {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  text-transform: uppercase;
  color: var(--blue-bright);
}

.chap__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.chap__note {
  color: rgba(154, 168, 189, 0.7);
  font-size: 0.85rem;
  margin: 26px 0 0;
}

/* ── Проекти ─────────────────────────────────────────────────── */

.phero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(26px, 5vw, 64px);
  margin-top: clamp(34px, 5vw, 54px);
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
}

.phero__stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1;
  color: var(--orange);
}

.phero__stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.case { background: var(--ink-soft); }

.case__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(30px, 4.5vw, 60px);
  align-items: stretch;
}

.case__story {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.case__row {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  flex: 1;
}

.case__row--hl { background: rgba(47, 127, 224, 0.08); border-color: rgba(47, 127, 224, 0.4); }

.case__k {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--blue-bright);
  margin: 0 0 10px;
}

.case__k--warn { color: var(--orange); }

.case__row p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.case__row p b { color: var(--text); }

.case__facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}

.case__facts li { color: var(--muted); font-size: 0.92rem; }

.case__facts b {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  margin-right: 6px;
}

.filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(30px, 4vw, 46px);
}

.filterbar__btn {
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.3s var(--ease-out);
}

.filterbar__btn:hover { color: var(--text); border-color: var(--blue-bright); transform: translateY(-2px); }

.filterbar__btn.is-active {
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  border-color: transparent;
  color: #16100a;
  font-weight: 700;
}

.pgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 2.6vw, 30px);
}

.pcard {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: transform 0.45s var(--ease-out), border-color 0.3s ease;
  animation: cardIn 0.55s var(--ease-out) both;
}

.pcard:hover { transform: translateY(-6px); border-color: var(--line-strong); }

.pcard.is-hide { display: none; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

.pcard__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.pcard--tall .pcard__media { aspect-ratio: 4 / 3.4; }

.pcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.pcard:hover .pcard__media img { transform: scale(1.05); }

.pcard__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(12, 16, 22, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  color: var(--blue-bright);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pcard__body { padding: 24px 26px 26px; }

.pcard__place {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}

.pcard__place svg { width: 14px; height: 14px; color: var(--orange); flex: none; }

.pcard__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.pcard__text { color: var(--muted); font-size: 0.95rem; margin: 0 0 18px; }

.pcard__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.pcard__meta b { color: var(--text); font-weight: 700; }

.pgrid__note {
  margin-top: clamp(26px, 4vw, 40px);
  color: rgba(154, 168, 189, 0.7);
  font-size: 0.88rem;
  max-width: 72ch;
}

/* ── За нас ──────────────────────────────────────────────────── */

.phero--about .phero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.phero__media {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
}

.phero__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.phero__media figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(12, 16, 22, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 0.85rem;
  color: var(--muted);
}

.phero__media figcaption b { display: block; color: var(--text); font-size: 1rem; }

.quoteband {
  background: var(--ink-soft);
  border-block: 1px solid var(--line);
  padding: clamp(60px, 9vw, 110px) 0;
  text-align: center;
}

.quoteband blockquote { margin: 0; padding: 0; }

.quoteband__mark {
  display: block;
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 0.6;
  color: var(--orange);
  margin-bottom: 18px;
}

.quoteband__text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  text-transform: uppercase;
  max-width: 21ch;
  margin: 0 auto 22px;
}

.quoteband__text em { font-style: normal; color: var(--blue-bright); }

.quoteband__author { color: var(--muted); font-size: 0.95rem; margin: 0; }
.quoteband__author b { color: var(--text); }

.story__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 70px);
}

.story__col p { color: var(--muted); margin: 0 0 18px; }
.story__col p:last-child { margin-bottom: 0; }
.story__col p b { color: var(--text); }

.story__col p:first-child::first-letter {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.4em;
  line-height: 0.8;
  float: left;
  margin: 6px 12px 0 0;
  color: var(--orange);
}

.vals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.val {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.4s var(--ease-out), border-color 0.3s ease;
}

.val:hover { transform: translateY(-6px); border-color: var(--blue); }

.val__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--blue-dim);
  color: var(--blue-bright);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.val__icon svg { width: 24px; height: 24px; }

.val__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.val__text { margin: 0; color: var(--muted); font-size: 0.93rem; }

.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.4vw, 26px);
}

.strip__item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}

.strip__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.strip__item:hover img { transform: scale(1.05); }

.strip__item figcaption {
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--muted);
}

.strip__item figcaption b {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}

/* ── Контакти ────────────────────────────────────────────────── */

.phero--contact { text-align: center; }

.phero--contact .phero__eyebrow { justify-content: center; }
.phero--contact .phero__sub { margin-inline: auto; }

.phero__tel {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 12vw, 8.5rem);
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  margin: 6px 0 18px;
  transition: color 0.3s ease;
}

.phero__tel:hover { color: var(--orange); }

.phero__tel small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 10px;
}

.contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}

.icards { display: grid; gap: 14px; }

.icard {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.3s var(--ease-out);
}

a.icard:hover { border-color: var(--blue-bright); transform: translateX(6px); }

.icard svg { width: 22px; height: 22px; color: var(--orange); flex: none; margin-top: 3px; }

.icard__k {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 4px;
}

.icard__v { font-weight: 700; font-size: 1.05rem; color: var(--text); overflow-wrap: anywhere; }
.icard__note { display: block; margin-top: 4px; color: var(--muted); font-size: 0.85rem; font-weight: 400; }

.promise {
  margin-top: 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 122, 26, 0.04);
  padding: 22px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.promise svg { width: 34px; height: 34px; color: var(--orange); flex: none; }
.promise p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.promise b { color: var(--text); display: block; margin-bottom: 4px; }

.cform {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow-lg);
  padding: clamp(26px, 4vw, 44px);
}

.cform__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  text-transform: uppercase;
  margin: 0 0 8px;
}

.cform__sub { color: var(--muted); font-size: 0.95rem; margin: 0 0 26px; }

.cform .wizard__fields { margin-bottom: 18px; }

textarea.field__input { min-height: 120px; resize: vertical; }

/* ── Custom dropdown (service picker) ────────────────────────── */

.dd { position: relative; }

.dd__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
}

.dd__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dd__text--ph { color: rgba(154, 168, 189, 0.6); }

.dd__chev {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--muted);
  transition: transform 0.3s var(--ease-out), color 0.25s ease;
}

.dd.is-open .dd__chev { transform: rotate(180deg); color: var(--blue-bright); }

.dd.is-open .dd__btn {
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px rgba(47, 127, 224, 0.2);
}

.dd__list {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 40;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  max-height: 288px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.dd.is-open .dd__list { display: block; animation: ddIn 0.22s var(--ease-out); }

.dd--up .dd__list { top: auto; bottom: calc(100% + 8px); }

@keyframes ddIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.dd__opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 8px;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.dd__opt.is-focused { background: var(--blue-dim); color: var(--blue-bright); }

.dd__opt[aria-selected="true"]::after {
  content: "✓";
  font-weight: 800;
  color: var(--orange);
}

.dd__err {
  display: none;
  margin-top: 8px;
  font-size: 0.82rem;
  color: #ffb9a1;
}

.dd.is-error .dd__err { display: block; }
.dd.is-error .dd__btn { border-color: rgba(255, 122, 26, 0.7); }

.cform__done { text-align: center; padding: 30px 10px; }

.faq { max-width: 800px; margin-inline: auto; }

.acc { border-top: 1px solid var(--line-strong); }

.acc__item { border-bottom: 1px solid var(--line-strong); }

.acc__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  padding: 22px 4px;
  transition: color 0.25s ease;
}

.acc__head:hover { color: var(--blue-bright); }

.acc__q {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.2rem, 2.6vw, 1.65rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.acc__icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: transform 0.4s var(--ease-out), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.acc__icon svg { width: 16px; height: 16px; }

.acc__item.is-open .acc__icon {
  transform: rotate(45deg);
  background: var(--orange);
  border-color: var(--orange);
  color: #16100a;
}

.acc__body {
  height: 0;
  overflow: hidden;
  transition: height 0.45s var(--ease-out);
}

.acc__body p {
  margin: 0;
  padding: 0 4px 24px;
  color: var(--muted);
  max-width: 64ch;
}

.acc__body p b { color: var(--text); }

/* ── Mini CTA band (subpages) ────────────────────────────────── */

.ctam { padding: clamp(70px, 10vw, 120px) 0; }

.ctam__inner {
  position: relative;
  overflow: hidden;
  text-align: center;
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(48px, 7vw, 90px) clamp(22px, 5vw, 70px);
  background:
    radial-gradient(90% 120% at 50% -20%, rgba(47, 127, 224, 0.22), transparent 65%),
    var(--panel);
}

.ctam__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 0.96;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.ctam__title em { font-style: normal; color: var(--orange); }

@supports (-webkit-text-stroke: 2px white) {
  .ctam__title em {
    color: transparent;
    -webkit-text-stroke: 2px var(--orange);
  }
}

.ctam__sub { color: var(--muted); max-width: 52ch; margin: 0 auto 34px; }

.ctam__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* ── Legal pages (лека типографска страница) ─────────────────── */

.legal__body { max-width: 780px; }

.legal__body h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: clamp(38px, 5vw, 56px) 0 14px;
  padding-top: clamp(24px, 3vw, 34px);
  border-top: 1px solid var(--line);
}

.legal__body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.legal__body p, .legal__body li { color: var(--muted); font-size: 0.98rem; }
.legal__body p { margin: 0 0 14px; }
.legal__body b, .legal__body strong { color: var(--text); }
.legal__body a { color: var(--blue-bright); }

.legal__body ul { margin: 0 0 14px; padding-left: 22px; }
.legal__body li { margin-bottom: 6px; }

.legal__meta {
  margin-top: clamp(40px, 6vw, 60px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: rgba(154, 168, 189, 0.65);
}

/* placeholder for data the owner still needs to fill in */
.ph-mark {
  display: inline-block;
  padding: 1px 8px;
  border: 1px dashed rgba(255, 122, 26, 0.5);
  border-radius: 6px;
  background: rgba(255, 122, 26, 0.08);
  color: var(--orange);
  font-size: 0.9em;
  font-style: normal;
}

.footer__legal {
  display: flex;
  gap: 8px 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__legal a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__legal a:hover { color: var(--text); }

/* ── Subpage responsive ──────────────────────────────────────── */

@media (max-width: 1024px) {
  .chap__grid { grid-template-columns: 1fr; }
  .chap__media { position: static; max-width: 640px; }
  .chap--flip .chap__grid > .chap__media { order: 0; }
  .case__grid { grid-template-columns: 1fr; }
  .phero--about .phero__grid { grid-template-columns: 1fr; }
  .phero__media { max-width: 640px; }
  .vals { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr; }
  .story__grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .chapnav { top: var(--header-h); }
  .pgrid { gap: 16px; }
}

@media (max-width: 700px) {
  .pgrid { grid-template-columns: 1fr; }
  .pcard--tall .pcard__media { aspect-ratio: 16 / 10; }
  .chek { grid-template-columns: 1fr; }
  .vals { grid-template-columns: 1fr; }

  .strip {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-inline: -24px;
    padding-inline: 24px;
    padding-bottom: 6px;
  }

  .strip::-webkit-scrollbar { display: none; }
  .strip__item { scroll-snap-align: center; }

  .toc__link { grid-template-columns: 40px 1fr 28px; gap: 12px; }

  .phero__stats { gap: 22px 30px; }

  .chap__specs { display: grid; grid-template-columns: 1fr 1fr; }
  .spec { padding: 11px 14px; }

  .chap__cta .btn { width: 100%; justify-content: center; }
  .ctam__btns .btn { width: 100%; justify-content: center; }
}

/* ── Reduced motion ──────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .curtain { display: none; }

  .hero__word,
  .reveal-line,
  .reveal { opacity: 1; transform: none; }

  .marquee__track { animation: none; }
}
