/* ============================================================
   ТЕРМИНАТОР — demolition one-pager
   Palette: near-black concrete + bone text + safety yellow
   Type: Oswald (display, cyrillic) / Golos Text (body, cyrillic)
   Radius system: all-sharp (0)
   ============================================================ */

/* ---------- fonts ---------- */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url('../fonts/Oswald-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url('../fonts/Oswald-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/GolosText-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/GolosText-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- tokens ---------- */
:root {
  --bg: #0d0c0a;
  --bg-2: #131110;
  --bg-3: #1a1815;
  --line: #2a2721;
  --text: #ece8df;
  --muted: #98928a;
  --accent: #f2b90d;
  --accent-ink: #131005;
  --display: 'Oswald', 'Arial Narrow', sans-serif;
  --body: 'Golos Text', 'Segoe UI', sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  /* z-scale: 1 content overlays, 5 svc preview, 10 nav, 20 mobile menu */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* no CSS smooth scrolling: it animates ScrollTrigger's internal scroll
   restoration on mobile URL-bar resize (visible pullback after release);
   smooth anchor scrolling is done in JS instead */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

.eyebrow {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 16px 34px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  will-change: transform;
}
.btn:active { transform: scale(.97); }
.btn--solid { background: var(--accent); color: var(--accent-ink); }
.btn--solid:hover { background: #ffd23e; }
.btn--ghost { border-color: rgba(236,232,223,.4); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); background: rgba(236,232,223,.08); }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 40px;
  height: 72px;
  padding: 0 var(--pad);
  transition: background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(13,12,10,.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .08em;
}
.nav__logo-mark {
  width: 16px; height: 16px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 62% 62%, 62% 100%, 0 100%);
}
.nav__links {
  display: flex;
  gap: 34px;
  margin-left: auto;
}
.nav__links a {
  display: inline-flex;
  overflow: hidden;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--text);
  /* no vertical padding: overflow clips at the padding box, so any padding
     shows slivers of the rolled-out letter above/below */
}
/* per-letter roll-up: yellow copy rises from below, staggered by --i.
   Copies animate independently: the outgoing letter travels 112% so its
   below-baseline tail (У, Ц) fully clears the clip window, while the
   incoming yellow copy lands at exactly 0. */
.nl { position: relative; display: inline-block; }
.nl__a,
.nl__b {
  display: inline-block;
  transition: transform .45s var(--ease);
  transition-delay: calc(var(--i) * 22ms);
  will-change: transform;
}
.nl__b {
  position: absolute;
  inset: 0;
  color: var(--accent);
  transform: translateY(112%);
}
.nav__links a:hover .nl__a,
.nav__links a:focus-visible .nl__a { transform: translateY(-112%); }
.nav__links a:hover .nl__b,
.nav__links a:focus-visible .nl__b { transform: translateY(0); }
/* scrollspy indicator riding the nav bottom edge */
.nav__ind {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 10px;
  height: 2px;
  background: var(--accent);
  opacity: 0;
  pointer-events: none;
}
.nav__phone {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--accent);
  border: 1px solid rgba(242,185,13,.4);
  padding: 9px 18px;
  transition: background .3s, color .3s;
}
.nav__phone:hover { background: var(--accent); color: var(--accent-ink); }
.nav__burger {
  display: none;
  width: 44px; height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  margin-left: auto;
}
.nav__burger span {
  display: block;
  height: 2px;
  background: var(--text);
  transition: transform .35s var(--ease), opacity .3s;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

.mmenu {
  position: fixed;
  inset: 0;
  z-index: 9;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--pad);
  gap: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility 0s .4s;
}
.mmenu.is-open { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
.mmenu__links { display: flex; flex-direction: column; gap: 8px; }
.mmenu__links a {
  font-family: var(--display);
  font-size: clamp(38px, 10vw, 56px);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.15;
  transform: translateY(24px);
  opacity: 0;
  /* text painted by a split gradient so a tap can sweep yellow in from the left */
  color: transparent;
  background-image: linear-gradient(90deg, var(--accent) 0 49.9%, var(--text) 50% 100%);
  background-size: 201% 100%;
  background-position: 100% 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  transition: transform .5s var(--ease), opacity .5s var(--ease), background-position .4s var(--ease);
  /* stagger only the entrance, never the tap fill */
  transition-delay: var(--d, 0s), var(--d, 0s), 0s;
}
.mmenu__links a:nth-child(2) { --d: .05s; }
.mmenu__links a:nth-child(3) { --d: .1s; }
.mmenu__links a:nth-child(4) { --d: .15s; }
.mmenu__links a:nth-child(5) { --d: .2s; }
.mmenu.is-open .mmenu__links a { transform: none; opacity: 1; }
.mmenu__links a.is-fill { background-position: 0 0; }
.mmenu__phone {
  font-family: var(--display);
  font-size: 24px;
  color: var(--accent);
}

/* ---------- nav dropdown (Услуги) ---------- */
.nav__item { position: relative; display: flex; align-items: center; gap: 7px; }
.nav__chev {
  width: 8px; height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .3s var(--ease), border-color .3s;
  pointer-events: none;
}
.nav__item:hover .nav__chev,
.nav__item:focus-within .nav__chev {
  transform: rotate(225deg) translateY(-1px);
  border-color: var(--accent);
}
.drop {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translate(-50%, 12px);
  min-width: 300px;
  background: rgba(13,12,10,.97);
  border: 1px solid var(--line);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
}
.drop::before { /* hover bridge over the gap */
  content: '';
  position: absolute;
  top: -18px; left: 0; right: 0; height: 18px;
}
.nav__item:hover .drop,
.nav__item:focus-within .drop {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.drop a {
  position: relative;
  display: block;
  padding: 11px 22px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  /* reset the .nav__links a display/caps styling this also matches */
  text-transform: none;
  letter-spacing: .01em;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  transition: color .25s var(--ease), padding-left .3s var(--ease);
}
.drop a::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform .3s var(--ease);
}
.drop a:hover { color: var(--text); padding-left: 30px; }
.drop a:hover::before { transform: scaleY(1); }
/* active page link */
.nav__links a.is-page { color: var(--accent); }
.nav__links a.is-page .nl__a { color: var(--accent); }

/* ---------- subpage hero ---------- */
.phero {
  position: relative;
  min-height: 46vh;
  min-height: 46svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 130px var(--pad) 42px;
}
.phero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(.65) contrast(1.08) brightness(.42);
}
.phero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,12,10,.6), rgba(13,12,10,.25) 45%, var(--bg) 100%);
}
.phero__content { position: relative; z-index: 1; }
.crumb {
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  display: block;
}
.crumb a { color: var(--muted); transition: color .25s; }
.crumb a:hover { color: var(--text); }
.crumb b { color: var(--accent); font-weight: 600; }
.phero__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(58px, 10vw, 150px);
  line-height: .95;
  text-transform: uppercase;
}
.phero__title .hero__line { display: block; overflow: hidden; }
.hero__line-in { display: inline-block; }
.phero__sub {
  color: rgba(236,232,223,.85);
  max-width: 56ch;
  margin-top: 18px;
  font-size: 17px;
}

/* ---------- service detail blocks (uslugi.html) ---------- */
.sdetail { padding: clamp(70px, 10vh, 120px) var(--pad); }
.sdetail__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 90px);
  align-items: center;
  max-width: 1500px;
  margin: 0 auto;
}
.sdetail--flip .sdetail__grid > .sdetail__media { order: 2; }
.sdetail__media { overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-3); }
.sdetail__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(.92);
  transform: scale(1.06);
  transition: filter .6s var(--ease), transform .8s var(--ease);
}
.sdetail:hover .sdetail__media img { filter: none; transform: scale(1.005); }
.sdetail__num {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .1em;
  display: block;
  margin-bottom: 10px;
}
.sdetail__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 54px);
  line-height: 1.02;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.sdetail__body { color: var(--muted); max-width: 54ch; margin-bottom: 26px; }
.sdetail__list { margin-bottom: 30px; }
.sdetail__list li {
  position: relative;
  padding: 9px 0 9px 26px;
  color: var(--text);
  font-size: 15px;
}
.sdetail__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 16px;
  width: 12px; height: 3px;
  background: var(--accent);
}
.sdetail__cta {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  transition: color .3s;
}
.sdetail__cta:hover { color: var(--accent); }
.sband {
  position: relative;
  height: clamp(300px, 48vh, 520px);
  overflow: hidden;
}
.sband img {
  width: 100%; height: 118%;
  object-fit: cover;
  filter: grayscale(.5) contrast(1.1) brightness(.6);
  will-change: transform;
}
.sband__quote {
  /* not flex: flex would turn the text runs around <br> into row items */
  position: absolute;
  inset: 0;
  margin: auto;
  height: fit-content;
  padding: 0 var(--pad);
  text-align: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 4.4vw, 60px);
  line-height: 1.05;
  text-transform: uppercase;
  text-shadow: 0 4px 40px rgba(13,12,10,.7);
}
.sband__quote em { font-style: normal; color: var(--accent); }

/* ---------- gallery page grid + lightbox ---------- */
.ggrid {
  columns: 3;
  column-gap: 20px;
  padding: 10px var(--pad) clamp(80px, 11vh, 140px);
  max-width: 1560px;
  margin: 0 auto;
}
.ggrid__item {
  break-inside: avoid;
  margin: 0 0 20px;
  cursor: pointer;
}
.ggrid__wrap { overflow: hidden; background: var(--bg-3); }
.ggrid__item img {
  width: 100%;
  filter: grayscale(1) contrast(1.08) brightness(.92);
  transform: scale(1.04);
  transition: filter .5s var(--ease), transform .7s var(--ease);
}
.ggrid__item:hover img { filter: none; transform: scale(1); }
.ggrid__item figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(13,12,10,.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px var(--pad) 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility 0s .35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
.lightbox img {
  max-width: min(1200px, 92vw);
  max-height: 74vh;
  object-fit: contain;
}
.lightbox figcaption { margin-top: 16px; color: var(--muted); font-size: 14px; }
.lightbox__close {
  position: absolute;
  top: 22px; right: max(22px, var(--pad));
  width: 48px; height: 48px;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
}
.lightbox__close:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
}
.lightbox__nav:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.lightbox__nav--prev { left: max(16px, calc(var(--pad) - 20px)); }
.lightbox__nav--next { right: max(16px, calc(var(--pad) - 20px)); }

/* ---------- full price page ---------- */
.pgroup { padding: 0 var(--pad); max-width: 1240px; margin: 0 auto clamp(56px, 8vh, 90px); }
.pgroup__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 42px);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.pgroup__hint { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.prow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: baseline;
  padding: 15px 0;
}
.prow + .prow { border-top: 1px solid var(--line); }
.prow__name { font-size: 16px; }
.prow__name small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.prow__val {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}
.prow__val small { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 4px; }
.factors { padding: 0 var(--pad) clamp(80px, 10vh, 130px); max-width: 1240px; margin: 0 auto; }
.factors__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 50px);
  text-transform: uppercase;
  margin-bottom: 34px;
}
.factors__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.factor {
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.factor h3 {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.factor h3 span { color: var(--accent); margin-right: 10px; }
.factor p { color: var(--muted); font-size: 14.5px; }

/* ---------- values / about page ---------- */
.vals { padding: 0 var(--pad) clamp(80px, 11vh, 140px); max-width: 1500px; margin: 0 auto; }
.vals__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 20px;
}
.val {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  padding: 34px 30px 40px;
  background: var(--bg-2);
  transition: border-color .35s var(--ease);
}
/* yellow fill sweeps in from the bottom on hover (same move as the services rows) */
.val::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .4s var(--ease);
}
.val:hover { border-color: var(--accent); }
.val:hover::before { transform: scaleY(1); transform-origin: top; }
.val h3 {
  position: relative;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 14px;
  transition: color .3s var(--ease);
}
.val p {
  position: relative;
  color: var(--text);
  font-size: 15px;
  transition: color .3s var(--ease);
}
.val:hover h3,
.val:hover p { color: var(--accent-ink); }

/* ---------- contact page extras ---------- */
.mapcard {
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: 30px;
  margin-top: 40px;
}
.mapcard p { color: var(--muted); margin-bottom: 16px; }
.mapcard a {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 3px;
  transition: color .3s;
}
.mapcard a:hover { color: var(--accent); }

/* ---------- bottom CTA band (subpages) ---------- */
.band {
  border-top: 1px solid var(--line);
  padding: clamp(70px, 10vh, 110px) var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
  background:
    radial-gradient(80% 90% at 90% 0%, rgba(242,185,13,.08) 0%, transparent 55%),
    var(--bg);
}
.band__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(38px, 5.6vw, 84px);
  line-height: .98;
  text-transform: uppercase;
}
.band__title em { font-style: normal; color: var(--accent); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  /* svh, not dvh: dvh grows when the mobile URL bar collapses,
     shifting all content below mid-scroll */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__video {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13,12,10,.55) 0%, rgba(13,12,10,.15) 35%, rgba(13,12,10,.82) 100%),
    radial-gradient(120% 90% at 50% 110%, rgba(13,12,10,.6) 0%, transparent 60%);
}
.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 var(--pad) clamp(40px, 7vh, 80px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.hero__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(64px, 12.5vw, 176px);
  line-height: .96;
  text-transform: uppercase;
  letter-spacing: -.01em;
}
.hero__line { display: block; overflow: hidden; }
.hero__line-inner { display: inline-block; transform: translateY(110%); }
.hero__line--ghost .hero__line-inner {
  color: transparent;
  -webkit-text-stroke: 2px rgba(236,232,223,.85);
}
.hero__line--accent .hero__line-inner { color: var(--accent); }
.hero__side {
  max-width: 380px;
  padding-bottom: 10px;
}
.hero__sub {
  color: rgba(236,232,223,.92);
  font-size: 17px;
  margin-bottom: 26px;
  opacity: 0;
  transform: translateY(20px);
}
.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
}

/* ---------- marquee tape ---------- */
.tape {
  position: relative;
  z-index: 2;
  background: var(--accent);
  transform: rotate(-1.2deg) scale(1.02);
  margin: -28px 0 0;
  overflow: hidden;
  border-top: 1px solid #00000022;
  border-bottom: 1px solid #00000022;
}
.tape__track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  padding: 14px 0;
  will-change: transform;
}
.tape__track span {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  white-space: nowrap;
}
.tape__track i { font-style: normal; font-size: 11px; color: var(--accent-ink); }

/* ---------- services ---------- */
.services {
  position: relative;
  padding: clamp(90px, 14vh, 160px) 0 clamp(70px, 10vh, 120px);
}
.services__head { padding: 0 var(--pad); margin-bottom: 56px; }
.services__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(44px, 7.5vw, 104px);
  line-height: 1;
  text-transform: uppercase;
}
.svc { border-top: 1px solid var(--line); }
.svc__row { position: relative; border-bottom: 1px solid var(--line); }
.svc__link {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: 34px var(--pad);
  position: relative;
  overflow: hidden;
  transition: color .35s var(--ease);
}
.svc__link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .45s var(--ease);
}
.svc__row:hover .svc__link::before { transform: scaleY(1); transform-origin: top; }
.svc__name,
.svc__desc,
.svc__arrow { position: relative; z-index: 1; }
.svc__name {
  font-family: var(--display);
  font-size: clamp(24px, 3.2vw, 44px);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.1;
  transition: color .35s var(--ease), transform .45s var(--ease);
}
.svc__desc {
  color: var(--muted);
  font-size: 15px;
  max-width: 46ch;
  transition: color .35s var(--ease);
}
.svc__arrow {
  font-size: 28px;
  color: var(--muted);
  transition: transform .45s var(--ease), color .35s var(--ease);
}
.svc__row:hover .svc__name { color: var(--accent-ink); transform: translateX(12px); }
.svc__row:hover .svc__desc { color: rgba(19,16,5,.75); }
.svc__row:hover .svc__arrow { color: var(--accent-ink); transform: translateX(6px) rotate(-45deg); }
.svc__thumb { display: none; }

.svc__preview {
  position: fixed;
  z-index: 5;
  top: 0; left: 0;
  width: 300px;
  height: 380px;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
}
.svc__preview img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(.2) contrast(1.05);
}

/* ---------- gallery ---------- */
.gal { position: relative; background: var(--bg-2); border-top: 1px solid var(--line); }
.gal__pin {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(70px, 10vh, 110px) 0;
}
.gal__head {
  padding: 0 var(--pad);
  margin-bottom: 44px;
  display: flex;
  align-items: baseline;
  gap: 34px;
  flex-wrap: wrap;
}
.gal__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(44px, 7.5vw, 104px);
  line-height: 1;
  text-transform: uppercase;
}
.gal__progress {
  flex: 1;
  min-width: 120px;
  height: 2px;
  background: var(--line);
  position: relative;
  align-self: center;
}
.gal__progress span {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
.gal__track {
  display: flex;
  align-items: flex-end;
  gap: clamp(20px, 3vw, 44px);
  padding: 0 var(--pad);
  width: max-content;
  will-change: transform;
}
.gal__item { margin: 0; flex-shrink: 0; }
.gal__item--l .gal__imgwrap { width: clamp(420px, 44vw, 720px); aspect-ratio: 3 / 2; }
.gal__item--p .gal__imgwrap { width: clamp(260px, 26vw, 400px); aspect-ratio: 3 / 4; }
.gal__item--s .gal__imgwrap { width: clamp(300px, 30vw, 460px); aspect-ratio: 1 / 1; }
.gal__imgwrap { overflow: hidden; background: var(--bg-3); }
.gal__imgwrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(.92);
  transform: scale(1.08);
  transition: filter .6s var(--ease), transform .8s var(--ease);
}
.gal__item:hover .gal__imgwrap img { filter: grayscale(0) contrast(1.02); transform: scale(1.01); }
.gal__item figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- about ---------- */
.about { padding: clamp(100px, 15vh, 180px) var(--pad); }
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
  max-width: 1500px;
  margin: 0 auto;
}
.about__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 5.6vw, 84px);
  line-height: 1.02;
  text-transform: uppercase;
  margin-bottom: 30px;
}
.about__title em {
  font-style: normal;
  color: var(--accent);
}
.about__body {
  color: var(--muted);
  font-size: 17px;
  max-width: 58ch;
  margin-bottom: 56px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.stats__cell {
  padding: 26px 26px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats__cell dt {
  font-family: var(--display);
  font-size: clamp(40px, 4.4vw, 64px);
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}
.stats__cell dd { color: var(--muted); font-size: 14px; margin-top: 6px; }
.about__media { position: sticky; top: 90px; }
.about__imgwrap {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--bg-3);
}
.about__imgwrap img {
  width: 100%;
  height: 115%;
  object-fit: cover;
  /* mostly desaturated so red machinery doesn't fight the yellow accent */
  filter: grayscale(.85) contrast(1.08) brightness(.95);
  will-change: transform;
}

/* ---------- testimonials ---------- */
.rev {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(90px, 13vh, 150px) var(--pad);
}
.rev__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 52px;
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
}
.rev__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(36px, 5.2vw, 76px);
  line-height: 1;
  text-transform: uppercase;
}
.rev__score { color: var(--muted); font-size: 15px; }
.rev__score strong {
  font-family: var(--display);
  font-size: 28px;
  color: var(--text);
  margin-right: 8px;
}
.rev__score span { color: var(--accent); letter-spacing: 2px; margin-left: 8px; }
.rev__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
  max-width: 1500px;
  margin: 0 auto;
}
.rev__card {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}
.rev__card--big { grid-row: 1 / 3; }
.rev__card--big p { font-size: clamp(20px, 2vw, 27px); line-height: 1.45; }
.rev__card p { font-size: 17px; line-height: 1.55; }
.rev__card footer {
  font-weight: 700;
  font-size: 15px;
}
.rev__card footer span {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 13px;
  margin-top: 2px;
}

/* ---------- prices ---------- */
.price { padding: clamp(100px, 14vh, 170px) var(--pad); }
.price__head { max-width: 1500px; margin: 0 auto 54px; }
.price__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(44px, 7vw, 100px);
  line-height: 1;
  text-transform: uppercase;
}
.price__note {
  color: var(--muted);
  margin-top: 18px;
  max-width: 52ch;
}
.price__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  max-width: 1500px;
  margin: 0 auto;
}
.price__card {
  padding: 36px 30px 42px;
  border-right: 1px solid var(--line);
  transition: background .35s var(--ease);
}
.price__card:last-child { border-right: none; }
.price__card:hover { background: var(--bg-2); }
.price__card h3 {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: 22px;
  min-height: 52px;
}
.price__num {
  font-family: var(--display);
  font-size: clamp(38px, 3.4vw, 52px);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 16px;
}
.price__num small {
  font-size: .38em;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .04em;
}
.price__desc { color: var(--muted); font-size: 14px; }
.price__card--accent {
  background: var(--accent);
}
.price__card--accent:hover { background: #ffd23e; }
.price__card--accent h3,
.price__card--accent .price__desc { color: var(--accent-ink); }
.price__card--accent .price__num { color: var(--accent-ink); }
.price__card--accent .price__num small { color: rgba(19,16,5,.6); }

/* ---------- contact ---------- */
.contact {
  border-top: 1px solid var(--line);
  padding: clamp(100px, 14vh, 170px) var(--pad) clamp(80px, 10vh, 130px);
  background:
    radial-gradient(90% 70% at 85% 10%, rgba(242,185,13,.07) 0%, transparent 60%),
    var(--bg);
}
.contact__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(56px, 11vw, 160px);
  line-height: .98;
  text-transform: uppercase;
  margin-bottom: clamp(50px, 8vh, 90px);
}
.contact__title-line { display: block; }
.contact__title-line--accent { color: var(--accent); }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(44px, 7vw, 120px);
  max-width: 1500px;
}
.contact__tel {
  display: block;
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  transition: color .3s;
}
.contact__tel:hover { color: var(--accent); }
.contact__mail {
  display: inline-block;
  color: var(--muted);
  font-size: 18px;
  margin-top: 10px;
  border-bottom: 1px solid var(--line);
  transition: color .3s, border-color .3s;
}
.contact__mail:hover { color: var(--text); border-color: var(--text); }
.contact__addr {
  font-style: normal;
  color: var(--muted);
  margin-top: 36px;
  font-size: 16px;
}
.contact__hours { color: var(--muted); margin-top: 22px; font-size: 16px; }

.form { display: flex; flex-direction: column; gap: 22px; }
.form__field { display: flex; flex-direction: column; gap: 8px; }
.form__field label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
}
.form__field input,
.form__field textarea {
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  padding: 14px 16px;
  resize: vertical;
  transition: border-color .3s;
}
.form__field input:focus,
.form__field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: var(--accent);
}
.form__err {
  display: none;
  color: #f07b4d;
  font-size: 13px;
}
.form__field.is-invalid input { border-color: #f07b4d; }
.form__field.is-invalid .form__err { display: block; }
.form__submit { align-self: flex-start; }
.form__ok { color: var(--accent); font-size: 15px; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 44px var(--pad) 34px;
}
.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.footer__logo {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .08em;
}
.footer__nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__nav a {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  transition: color .25s;
}
.footer__nav a:hover { color: var(--text); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

/* ---------- reveal defaults (JS adds motion) ---------- */
[data-reveal] { opacity: 1; }

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 900px) {
  .nav { gap: 20px; height: 64px; }
  .nav__links, .nav__phone { display: none; }
  .nav__burger { display: flex; }

  .hero__content { padding-bottom: 48px; }
  .hero__title { font-size: clamp(56px, 17vw, 96px); }
  .hero__side { max-width: none; }

  .svc__link {
    grid-template-columns: 1fr auto;
    grid-template-areas: "name arrow" "desc desc" "thumb thumb";
    gap: 12px 20px;
    padding: 26px var(--pad);
  }
  .svc__name { grid-area: name; }
  .svc__desc { grid-area: desc; }
  .svc__arrow { grid-area: arrow; }
  .svc__thumb {
    display: block;
    grid-area: thumb;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    margin-top: 8px;
    position: relative;
    z-index: 1;
  }
  .svc__thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3) contrast(1.05); }
  .svc__preview { display: none; }

  /* gallery: native swipe instead of pin */
  .gal__pin { min-height: 0; }
  .gal__track {
    width: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
  }
  .gal__track::-webkit-scrollbar { height: 3px; }
  .gal__track::-webkit-scrollbar-thumb { background: var(--accent); }
  .gal__item { scroll-snap-align: start; }
  .gal__item--l .gal__imgwrap { width: 80vw; }
  .gal__item--p .gal__imgwrap { width: 62vw; }
  .gal__item--s .gal__imgwrap { width: 72vw; }
  .gal__imgwrap img { filter: grayscale(.15) contrast(1.04); transform: none; }
  .gal__progress { display: none; }

  .about__grid { grid-template-columns: 1fr; }
  .about__media { position: static; order: -1; }
  .about__imgwrap { aspect-ratio: 16 / 10; }
  .about__imgwrap img { height: 120%; }

  .rev__grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .rev__card--big { grid-row: auto; }

  .price__grid { grid-template-columns: 1fr; border: none; }
  .price__card {
    border: 1px solid var(--line);
    border-bottom: none;
  }
  .price__card:last-child { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
  .price__card h3 { min-height: 0; }

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

  .phero { min-height: 34svh; padding-top: 110px; }
  .sdetail__grid { grid-template-columns: 1fr; }
  .sdetail--flip .sdetail__grid > .sdetail__media { order: 0; }
  .ggrid { columns: 1; }
  .vals__grid { grid-template-columns: 1fr; }
  .factors__grid { grid-template-columns: 1fr; }
  .lightbox__nav { top: auto; bottom: 24px; transform: none; }
  .lightbox__nav--prev { left: var(--pad); }
  .lightbox__nav--next { right: var(--pad); }
}

@media (min-width: 601px) and (max-width: 1100px) {
  .ggrid { columns: 2; }
}

@media (min-width: 901px) and (max-width: 1200px) {
  .price__grid { grid-template-columns: repeat(2, 1fr); }
  .price__card:nth-child(2) { border-right: none; }
  .price__card:nth-child(1), .price__card:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero__line-inner { transform: none; }
  .hero__sub, .hero__cta { opacity: 1; transform: none; }
  .tape { transform: none; }
  .gal__imgwrap img { transform: none; }
}
