/* =========================================================================
   СтройОтделМонтаж — styles (v7)
   Graphite ink + construction orange. Onest variable font (self-hosted).

   Motion rules used throughout (Emil Kowalski / Motion guidelines):
   - enter/exit use ease-out curves, never ease-in; UI transitions 150–300 ms
   - only transform/opacity are animated; never `transition: all`
   - buttons scale to .97 on :active; hover effects only where hover exists
   - nothing scales from 0 — start from ~.95 + opacity
   - prefers-reduced-motion: movement removed, opacity fades kept
   ========================================================================= */

@font-face {
  font-family: "Onest Variable";
  font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../assets/fonts/onest-cyrillic-wght-normal.woff2") format("woff2-variations"),
       url("../assets/fonts/onest-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest Variable";
  font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../assets/fonts/onest-latin-wght-normal.woff2") format("woff2-variations"),
       url("../assets/fonts/onest-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink:        #10141b;
  --ink-2:      #363e4d;
  --ink-3:      #586070;          /* 6.2:1 on white, 5.5:1 on --bg-soft */
  --bg:         #ffffff;
  --bg-soft:    #f5f6f8;
  --bg-soft-2:  #eceef2;
  --line:       #e4e7ec;
  --brand:      #ff6a1f;          /* fills / decoration; text on it is ink (6.4:1) */
  --brand-hi:   #ff7f3f;
  --brand-ink:  #c2410c;          /* brand-coloured TEXT on light bg (5.2:1) */
  --brand-050:  #fff1e8;
  --yellow:     #ffc233;
  --ok:         #1f9d5b;
  --white:      #ffffff;

  --radius:     18px;
  --radius-sm:  12px;
  --radius-lg:  28px;

  --shadow-sm:  0 1px 2px rgba(16,20,27,.05), 0 2px 8px rgba(16,20,27,.05);
  --shadow-md:  0 10px 30px -6px rgba(16,20,27,.14);
  --shadow-lg:  0 30px 70px -20px rgba(16,20,27,.28);

  --container:  1200px;
  --gutter:     clamp(16px, 4vw, 40px);

  --font: "Onest Variable", "Onest", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --ease-out:    cubic-bezier(.23, 1, .32, 1);
  --ease-inout:  cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);

  --header-h: 72px;
}

/* ------------------------------ reset ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--brand); color: var(--ink); }
[hidden] { display: none !important; }

/* ------------------------------ layout -------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(64px, 9vw, 116px); position: relative; }
.section--soft { background: var(--bg-soft); }
.section--ink  { background: var(--ink); color: #e9edf3; }

.section-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-ink);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brand); border-radius: 2px; }
.section--ink .eyebrow { color: var(--yellow); }
.section--ink .eyebrow::before { background: var(--yellow); }

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.025em; font-weight: 750; text-wrap: balance; }
h2.title { font-size: clamp(30px, 4.6vw, 50px); margin-top: 16px; }
.section-head p { margin-top: 18px; color: var(--ink-3); font-size: clamp(16px, 2vw, 19px); text-wrap: pretty; max-width: 62ch; }
.section-head.center p { margin-inline: auto; }
.section--ink .section-head p { color: #b4bcc9; }
p { text-wrap: pretty; }

/* ------------------------------ buttons ------------------------------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 14px 26px;
  border-radius: 999px;
  font-weight: 650; font-size: 16px; line-height: 1.2;
  white-space: nowrap;
  transition: transform .16s var(--ease-out), box-shadow .22s var(--ease-out),
              background-color .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(.97); }
.btn .arrow { transition: transform .25s var(--ease-out); }

.btn--primary { background: var(--brand); color: var(--ink); box-shadow: 0 10px 26px -8px rgba(255,106,31,.6), inset 0 1px 0 rgba(255,255,255,.35); }
.btn--ghost   { background: rgba(255,255,255,.08); color: #fff; border: 1.5px solid rgba(255,255,255,.4); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn--dark    { background: var(--ink); color: #fff; }
.btn--wa      { background: #25d366; color: #05310f; }
.btn--lg { min-height: 56px; padding: 16px 32px; font-size: 17px; }
.btn--block { width: 100%; }

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--brand-hi); box-shadow: 0 16px 34px -8px rgba(255,106,31,.7), inset 0 1px 0 rgba(255,255,255,.4); transform: translateY(-2px); }
  .btn--primary:hover:active { transform: scale(.97); }
  .btn--ghost:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.7); }
  .btn--dark:hover { background: #000; transform: translateY(-2px); }
  .btn--dark:hover:active { transform: scale(.97); }
  .btn--wa:hover { background: #1fbe59; }
  .btn:hover .arrow { transform: translateX(4px); }
}

/* ------------------------- scroll progress ---------------------------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 150;
  background: linear-gradient(90deg, var(--brand), var(--yellow));
  transform-origin: 0 50%; transform: scaleX(0);
  pointer-events: none;
}

/* ------------------------------ header ------------------------------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s var(--ease-out);
}
.header .container { display: flex; align-items: center; gap: 14px; flex-wrap: nowrap; }
.header.is-solid {
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom-color: rgba(16,20,27,.07);
}

.brand { display: flex; align-items: center; gap: 12px; font-weight: 750; letter-spacing: -.02em; color: #fff; flex: none; transition: color .25s var(--ease-out); }
.header.is-solid .brand { color: var(--ink); }
.brand__mark {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: var(--brand); color: var(--ink);
  display: grid; place-items: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 6px 14px -4px rgba(255,106,31,.55);
}
.brand__mark svg { width: 22px; height: 22px; }
.brand__name { font-size: 18px; line-height: 1.05; }
.header .brand__name span { display: none; }
.brand__name span { display: block; margin-top: 3px; font-size: 10.5px; font-weight: 650; letter-spacing: .15em; text-transform: uppercase; color: var(--yellow); transition: color .25s var(--ease-out); }
.header.is-solid .brand__name span { color: var(--brand-ink); }

.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.nav a {
  position: relative; display: block; padding: 9px 10px; border-radius: 999px;
  font-weight: 550; font-size: 15px; white-space: nowrap; color: rgba(255,255,255,.88);
  transition: color .2s var(--ease-out), background-color .2s var(--ease-out);
}
.header.is-solid .nav a { color: var(--ink-2); }
.nav a.is-active { color: #fff; background: rgba(255,255,255,.14); }
.header.is-solid .nav a.is-active { color: var(--ink); background: var(--bg-soft-2); }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: #fff; background: rgba(255,255,255,.12); }
  .header.is-solid .nav a:hover { color: var(--ink); background: var(--bg-soft-2); }
}

.header__actions { display: flex; align-items: center; gap: 16px; flex: none; }
.header__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15.5px; white-space: nowrap; color: #fff; font-variant-numeric: tabular-nums; transition: color .25s var(--ease-out); }
.header.is-solid .header__phone { color: var(--ink); }
.header__phone svg { width: 18px; height: 18px; color: var(--brand); }
.header .btn { min-height: 44px; padding: 10px 20px; font-size: 15px; }

.burger {
  display: none;
  width: 46px; height: 46px; border-radius: 14px; flex: none; margin-left: auto;
  align-items: center; justify-content: center;
  color: #fff; border: 1.5px solid rgba(255,255,255,.4);
  transition: transform .16s var(--ease-out), background-color .2s var(--ease-out);
}
.burger:active { transform: scale(.94); }
.header.is-solid .burger { color: var(--ink); border-color: var(--line); }
.burger svg { width: 24px; height: 24px; }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink); color: #fff;
  padding: 22px var(--gutter) 36px;
  display: flex; flex-direction: column;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .5s var(--ease-drawer), visibility 0s .5s;
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateY(0); visibility: visible; transition: transform .5s var(--ease-drawer), visibility 0s 0s; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu__close { width: 46px; height: 46px; border-radius: 14px; border: 1.5px solid rgba(255,255,255,.3); display: grid; place-items: center; color: #fff; transition: transform .16s var(--ease-out); }
.mobile-menu__close:active { transform: scale(.94); }
.mobile-menu__close svg { width: 24px; height: 24px; }
.mobile-menu nav { margin-top: 28px; }
.mobile-menu nav a {
  display: block; font-size: 28px; font-weight: 700; letter-spacing: -.02em; padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  opacity: 0; transform: translateY(14px);
  transition: opacity .35s var(--ease-out), transform .45s var(--ease-out);
}
.mobile-menu.is-open nav a { opacity: 1; transform: none; transition-delay: calc(.12s + var(--i, 0) * 45ms); }
.mobile-menu__foot { margin-top: auto; padding-top: 32px; display: grid; gap: 14px; }
.mobile-menu__foot a.phone { font-size: 24px; font-weight: 750; font-variant-numeric: tabular-nums; }
.mobile-menu__foot .muted { color: #a3acba; font-size: 14px; }

body.no-scroll { overflow: hidden; }

/* ------------------------------ hero -------------------------------- */
.hero {
  position: relative;
  min-height: min(100svh, 920px);
  display: flex; align-items: center;
  padding-top: calc(var(--header-h) + 36px);
  padding-bottom: 120px;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -3; background: #1a2029; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12,15,21,.72) 0%, rgba(12,15,21,.34) 40%, rgba(12,15,21,.9) 100%),
    linear-gradient(90deg, rgba(12,15,21,.78) 0%, rgba(12,15,21,0) 66%);
}
/* blueprint grid — construction cue, fades out toward the right/bottom */
.hero__grid {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 15% 30%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 80% at 15% 30%, #000 0%, transparent 75%);
}
.hero__inner { max-width: 760px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  padding: 8px 16px 8px 12px; border-radius: 999px; font-size: 13px; font-weight: 650;
  letter-spacing: .05em; text-transform: uppercase; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero__badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(255,194,51,.22); }
.hero__badge b { color: var(--yellow); font-weight: 700; }
.hero h1 {
  font-size: clamp(38px, 6.6vw, 72px);
  margin-top: 24px;
  letter-spacing: -.035em; line-height: 1.04;
}
.hero h1 .accent { color: var(--yellow); }
.hero__lead { margin-top: 24px; font-size: clamp(17px, 2.2vw, 20px); color: #dbe1ea; max-width: 600px; }
.hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero__stats {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: 760px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  overflow: hidden;
}
.hero__stat { padding: 18px 20px; position: relative; }
.hero__stat + .hero__stat::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 1px; background: rgba(255,255,255,.16); }
.hero__stat b { display: block; font-size: clamp(22px, 2.8vw, 30px); font-weight: 750; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero__stat b span { font-size: inherit; color: inherit; }
.hero__stat > span { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.35; color: #cdd3de; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 24px; translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.72);
}
.hero__scroll span.line { width: 1px; height: 36px; background: rgba(255,255,255,.55); transform-origin: 50% 0; animation: scrollpulse 2s var(--ease-inout) infinite; }
@keyframes scrollpulse { 0%,100% { transform: scaleY(.3); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }

/* hero entrance: hidden only when JS is on; CSS fallback un-hides after 1.4s
   so content can never stay invisible if a script fails */
.js [data-hero] { opacity: 0; animation: heroFallback .01s 1.4s forwards; }
.no-motion [data-hero], .js [data-hero].is-in { opacity: 1; animation: none; }
@keyframes heroFallback { to { opacity: 1; } }
.hero__word { display: inline-block; will-change: transform, opacity; }

/* ------------------------- services -------------------------------- */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.card {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 28px;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s var(--ease-out);
}
/* cursor-following spotlight (--mx/--my set from JS; harmless without it) */
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(255,106,31,.13), transparent 65%);
  opacity: 0; transition: opacity .35s var(--ease-out);
}
.card__no { position: absolute; top: 24px; right: 26px; font-size: 13px; font-weight: 700; letter-spacing: .1em; color: #8b94a4; font-variant-numeric: tabular-nums; }
.card__icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--brand-050); color: var(--brand-ink);
  display: grid; place-items: center; margin-bottom: 22px;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out), transform .4s var(--ease-out);
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 20px; font-weight: 750; }
.card p { margin-top: 10px; color: var(--ink-3); font-size: 15.5px; }
.card ul { margin-top: 16px; display: grid; gap: 9px; }
.card li { position: relative; padding-left: 26px; font-size: 15px; color: var(--ink-2); }
.card li::before {
  content: ""; position: absolute; left: 1px; top: 7px;
  width: 12px; height: 7px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(255,106,31,.35); }
  .card:hover::before { opacity: 1; }
  .card:hover .card__icon { background: var(--brand); color: var(--ink); transform: scale(1.06) rotate(-4deg); }
}

/* --------------------------- why us (bento) ------------------------------- */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why__item {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.why__item::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(255,106,31,.11), transparent 65%);
  opacity: 0; transition: opacity .35s var(--ease-out);
}
.why__num { font-size: 13px; font-weight: 700; color: var(--brand-ink); letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.why__item h3 { margin-top: 14px; font-size: 19px; }
.why__item p { margin-top: 10px; color: var(--ink-3); font-size: 15px; }
.why__item:nth-child(1) { grid-column: span 2; }
.why__item:nth-child(6) { grid-column: span 2; }
.why__item:nth-child(2) { grid-row: span 2; background: var(--ink); color: #fff; border-color: var(--ink); display: flex; flex-direction: column; }
.why__item:nth-child(2) .why__num { color: var(--yellow); }
.why__item:nth-child(2) p { color: #b4bcc9; }
.why__item:nth-child(2)::before { background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 100%), rgba(255,106,31,.28), transparent 65%); }
.why__big { margin-top: auto; padding-top: 28px; display: flex; align-items: baseline; gap: 10px; line-height: .9; }
.why__big b { font-size: clamp(120px, 14vw, 180px); font-weight: 800; letter-spacing: -.06em; background: linear-gradient(160deg, var(--yellow), var(--brand)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.why__big span { font-size: 20px; font-weight: 650; color: #cdd3de; }
@media (hover: hover) and (pointer: fine) {
  .why__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
  .why__item:hover::before { opacity: 1; }
}

/* --------------------------- steps ------------------------------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding-top: 66px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; z-index: 1;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--brand); color: var(--ink);
  display: grid; place-items: center; font-weight: 750; font-size: 19px; font-variant-numeric: tabular-nums;
  box-shadow: 0 10px 20px -6px rgba(255,106,31,.6);
  transition: background-color .4s var(--ease-out), color .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s var(--ease-out);
}
.step::after {
  content: ""; position: absolute; top: 23px; left: 60px; right: -10px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--brand) 0 8px, transparent 8px 16px);
  opacity: .55; transform-origin: 0 50%;
  transition: transform .7s var(--ease-out);
}
.steps .step:last-child::after { display: none; }
.step h3 { font-size: 18px; }
.step p { margin-top: 8px; font-size: 14.5px; color: var(--ink-3); }
/* sequential "build-up": circles start hollow, fill in one by one (--i from JS) */
.js .steps:not(.is-on) .step::before { background: var(--white); color: var(--ink-3); box-shadow: inset 0 0 0 2px var(--line); }
.js .steps:not(.is-on) .step::after { transform: scaleX(0); }
.js .steps.is-on .step::before, .js .steps.is-on .step::after { transition-delay: calc(var(--i, 0) * 140ms); }

/* --------------------------- gallery ------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 17.5vw, 232px); grid-auto-flow: dense; gap: 14px; }
.gallery__item {
  position: relative; overflow: hidden; border-radius: 16px;
  background: var(--bg-soft-2);
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
.gallery__item:nth-child(1), .gallery__item:nth-child(13) { grid-column: span 2; grid-row: span 2; }
.gallery__item:nth-child(8), .gallery__item:nth-child(11),
.gallery__item:nth-child(16), .gallery__item:nth-child(18) { grid-column: span 2; }
.gallery__item picture, .gallery__item img { width: 100%; height: 100%; }
.gallery__item img { object-fit: cover; transition: transform .7s var(--ease-out); }
.gallery__item::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 50%, rgba(12,15,21,.55));
  opacity: 0; transition: opacity .3s var(--ease-out);
}
/* "+" chip */
.gallery__item::before {
  content: ""; position: absolute; z-index: 1; right: 14px; bottom: 14px;
  width: 40px; height: 40px; border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 16px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 16px no-repeat,
    #fff;
  opacity: 0; transform: translateY(8px) scale(.9);
  transition: opacity .25s var(--ease-out), transform .3s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .gallery__item:hover img { transform: scale(1.06); }
  .gallery__item:hover::after { opacity: 1; }
  .gallery__item:hover::before { opacity: 1; transform: none; }
}
.gallery__item:focus-visible::after { opacity: 1; }
.gallery__item:focus-visible::before { opacity: 1; transform: none; }
.gallery__more { margin-top: 30px; text-align: center; }
.gallery__item.is-hidden { display: none; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(8,10,14,.94);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
  touch-action: pan-y;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 84vh; width: auto; border-radius: 12px; box-shadow: var(--shadow-lg); user-select: none; -webkit-user-drag: none; }
.lightbox__btn {
  position: absolute; top: 50%; translate: 0 -50%;
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff;
  display: grid; place-items: center;
  transition: background-color .2s var(--ease-out), transform .16s var(--ease-out);
}
.lightbox__btn:active { transform: scale(.92); }
.lightbox__btn svg { width: 26px; height: 26px; }
@media (hover: hover) and (pointer: fine) { .lightbox__btn:hover { background: rgba(255,255,255,.24); } }
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }
.lightbox__close { top: 32px; right: 20px; }
.lightbox__count { position: absolute; bottom: 22px; left: 50%; translate: -50% 0; color: #cfd4dd; font-size: 14px; letter-spacing: .06em; font-variant-numeric: tabular-nums; }

/* --------------------------- reviews ------------------------------- */
.reviews { position: relative; }
.reviews__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(min(320px, 86%), 1fr);
  gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 10px; scrollbar-width: none; overscroll-behavior-x: contain;
}
.reviews__track::-webkit-scrollbar { display: none; }
.reviews__track:focus-visible { outline-offset: 4px; }
@media (min-width: 1025px) { .reviews__track { grid-auto-columns: minmax(0, 1fr); grid-template-columns: repeat(2, 1fr); grid-auto-flow: row; overflow: visible; } }
.review {
  position: relative; overflow: hidden;
  scroll-snap-align: start;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 30px 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.review::before {
  content: "\201C"; position: absolute; top: -6px; right: 22px;
  font-size: 128px; line-height: 1; font-weight: 800; color: var(--brand); opacity: .14; pointer-events: none;
}
@media (hover: hover) and (pointer: fine) { .review:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); } }
.review__stars { display: flex; gap: 3px; color: var(--yellow); }
.review__stars svg { width: 19px; height: 19px; }
.review__text { color: var(--ink-2); font-size: 16px; flex: 1; }
.review__who { display: flex; align-items: center; gap: 14px; padding-top: 6px; border-top: 1px solid var(--line); padding-top: 18px; }
.review__who b { display: block; font-size: 15.5px; color: var(--ink); }
.review__who span { display: block; font-size: 13.5px; color: var(--ink-3); }
.review__who .review__ava {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  background: linear-gradient(140deg, var(--yellow), var(--brand)); color: var(--ink);
  display: grid; place-items: center;
  font-size: 19px; font-weight: 750; line-height: 1; text-align: center;
}
.reviews__nav { display: flex; gap: 10px; margin-top: 22px; }
@media (min-width: 1025px) { .reviews__nav { display: none; } }
.reviews__nav button { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--ink); background: var(--white); transition: transform .16s var(--ease-out), border-color .2s var(--ease-out), color .2s var(--ease-out); }
.reviews__nav button:active { transform: scale(.92); }
@media (hover: hover) and (pointer: fine) { .reviews__nav button:hover { border-color: var(--brand); color: var(--brand-ink); } }
.reviews__nav svg { width: 22px; height: 22px; }

/* --------------------------- about / stats ------------------------ */
.about { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 68px); align-items: center; }
.about__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.2; }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__badge {
  position: absolute; left: 18px; bottom: 18px;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; border-radius: 16px;
  background: rgba(255,255,255,.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}
.about__badge i { width: 42px; height: 42px; border-radius: 12px; background: var(--brand); color: var(--ink); display: grid; place-items: center; font-style: normal; }
.about__badge i svg { width: 22px; height: 22px; }
.about__badge b { display: block; font-size: 15px; line-height: 1.2; }
.about__badge small { display: block; font-size: 12.5px; color: var(--ink-3); }
.about__body h2.title { font-size: clamp(28px, 3.5vw, 40px); }
.about__body p { color: var(--ink-2); margin-top: 16px; }
.about__body p:first-of-type { margin-top: 22px; }
.stats { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 16px; }
.stat b { display: block; font-size: clamp(26px, 3.6vw, 36px); font-weight: 750; letter-spacing: -.03em; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat b span { font-size: inherit; color: inherit; }
.stat > span { display: block; margin-top: 6px; font-size: 14px; color: var(--ink-3); line-height: 1.35; }

/* --------------------------- faq -------------------------------- */
.faq { max-width: 840px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 64px; padding: 22px 0; font-size: clamp(16px, 2.2vw, 19px); font-weight: 650;
  transition: color .2s var(--ease-out);
}
.faq__q svg { width: 26px; height: 26px; flex: none; padding: 4px; border-radius: 50%; background: var(--brand-050); color: var(--brand-ink); transition: transform .3s var(--ease-out), background-color .25s var(--ease-out), color .25s var(--ease-out); }
.faq__item.is-open .faq__q svg { transform: rotate(45deg); background: var(--brand); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .faq__q:hover { color: var(--brand-ink); } }
/* height animates via grid rows 0fr -> 1fr — no JS measuring */
.faq__a { display: grid; grid-template-rows: 1fr; }
.js .faq__a { grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease-out); }
.js .faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; min-height: 0; }
.js .faq__a > div { visibility: hidden; opacity: 0; transition: visibility 0s .35s, opacity .25s var(--ease-out); }
.js .faq__item.is-open .faq__a > div { visibility: visible; opacity: 1; transition: visibility 0s 0s, opacity .35s var(--ease-out) .05s; }
.faq__a p { padding-bottom: 24px; color: var(--ink-3); max-width: 68ch; }

/* --------------------------- CTA + form ------------------------- */
.lead-cta { position: relative; overflow: hidden; isolation: isolate; }
.lead-cta::before, .lead-cta::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; filter: blur(80px);
}
.lead-cta::before { width: 520px; height: 520px; left: -180px; top: -200px; background: rgba(255,106,31,.2); }
.lead-cta::after  { width: 460px; height: 460px; right: -140px; bottom: -200px; background: rgba(255,194,51,.16); }
.lead-cta__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.lead-cta h2 { font-size: clamp(30px, 4.4vw, 46px); margin-top: 16px; color: #fff; }
.lead-cta p { margin-top: 18px; color: #b4bcc9; }
.lead-cta__list { margin-top: 26px; display: grid; gap: 14px; }
.lead-cta__list li { display: flex; gap: 12px; align-items: center; color: #dfe4ec; font-size: 16px; }
.lead-cta__list svg { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: rgba(255,194,51,.16); color: var(--yellow); flex: none; }

.form {
  background: var(--white); color: var(--ink);
  border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-lg);
}
.form h3 { font-size: 24px; }
.form p.hint { margin-top: 8px; color: var(--ink-3); font-size: 14px; }
.field { margin-top: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 13px 16px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-soft);
  transition: border-color .2s var(--ease-out), background-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23586070' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 20px;
}
.field select:focus { background-color: #fff; }
.field input::placeholder, .field textarea::placeholder { color: #667085; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(255,106,31,.18); }
.field textarea { resize: vertical; min-height: 96px; }
.field__err { display: none; margin-top: 6px; font-size: 13px; color: #c62828; font-weight: 550; }
.field--error .field__err { display: block; }
.field--error input, .field--error select, .field--error textarea { border-color: #d32f2f; background: #fff5f5; }
.field--error label { color: #c62828; }
.form__consent { margin-top: 18px; display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.form__consent input { margin-top: 2px; width: 20px; height: 20px; flex: none; accent-color: var(--brand); cursor: pointer; }
.form__consent a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 2px; }
.form__consent.is-error { color: #c62828; }
.form .btn { margin-top: 20px; }
.form__ok { margin-top: 14px; padding: 14px 16px; border-radius: var(--radius-sm); background: #e9f8ef; color: #0d5f36; font-size: 14.5px; font-weight: 550; display: none; }
.form__ok.is-show { display: block; }
.form__ok a { color: #0a5a32; font-weight: 700; text-decoration: underline; }

/* --------------------------- contacts --------------------------- */
.contacts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.contact-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(255,106,31,.35); } }
.contact-card__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-050); color: var(--brand-ink); display: grid; place-items: center; margin-bottom: 16px; }
.contact-card__icon svg { width: 22px; height: 22px; }
/* WhatsApp glyph fills its whole 0..24 viewBox while the other icons are
   inset — render it smaller so the optical weight matches the neighbours */
.contact-card__icon svg.ico-wa { width: 19px; height: 19px; }
.contact-card h3 { font-size: 14px; color: var(--ink-3); font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.contact-card a, .contact-card p { margin-top: 8px; font-size: 17px; font-weight: 650; display: block; font-variant-numeric: tabular-nums; }
.contact-card a { padding-block: 2px; transition: color .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .contact-card a:hover { color: var(--brand-ink); } }
.contact-card small { display: block; margin-top: 4px; color: var(--ink-3); font-weight: 400; font-size: 13.5px; }

/* --------------------------- footer ---------------------------- */
.footer { background: var(--ink); color: #a9b2c0; padding-block: 64px 32px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer .brand { color: #fff; }
.footer__about { margin-top: 18px; font-size: 14.5px; max-width: 360px; }
.footer h4 { color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; font-weight: 700; }
.footer li { margin-bottom: 10px; }
.footer a { transition: color .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .footer a:hover { color: #fff; } }
.footer__bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between;
  font-size: 13px;
}
.footer__bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------- floating WA + mobile bar ----------------------- */
.fab-wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 24px -6px rgba(0,0,0,.4), 0 0 0 4px rgba(37,211,102,.18);
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.fab-wa::after { /* soft pulse ring, transform+opacity only */
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366;
  animation: fabpulse 2.8s var(--ease-out) infinite; pointer-events: none;
}
@keyframes fabpulse { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(1.55); opacity: 0; } }
.fab-wa:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .fab-wa:hover { transform: scale(1.07); box-shadow: 0 14px 30px -6px rgba(0,0,0,.45), 0 0 0 6px rgba(37,211,102,.24); } }
/* icon fills the whole 0..24 viewBox, so keep it ~46% of the button */
.fab-wa svg { width: 27px; height: 27px; display: block; }

.mbar { display: none; }
@media (max-width: 620px) {
  .fab-wa { display: none; }
  .mbar {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 90;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px;
    background: rgba(16,20,27,.88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-radius: 22px; box-shadow: 0 16px 40px -10px rgba(0,0,0,.5);
    transform: translateY(140%); transition: transform .45s var(--ease-drawer);
  }
  .mbar.is-show { transform: none; }
  .mbar .btn { min-height: 48px; padding: 10px 14px; font-size: 15px; }
  body { padding-bottom: 0; }
  .footer { padding-bottom: 96px; }
}

/* --------------------------- reveal anim ----------------------- */
/* Hidden only when JS is active (html.js). Without JS — or if Motion fails to
   load (html.no-motion) — content stays visible. */
.js [data-reveal], .js [data-stagger] > * { opacity: 0; }
.js [data-reveal].is-in, .js [data-stagger] > .is-in,
.js.no-motion [data-reveal], .js.no-motion [data-stagger] > * { opacity: 1; }

/* --------------------------- responsive ------------------------ */
@media (max-width: 1299px) {
  .header__phone { display: none; }
}
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: repeat(2, 1fr); }
  .why__item:nth-child(n) { grid-column: auto; grid-row: auto; }
  .why__item:nth-child(2) { grid-column: span 2; }
  .why__big { padding-top: 20px; }
  .why__big b { font-size: 110px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 30px 22px; }
  .step::after { display: none; }
  .contacts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .nav, .header__actions { display: none; }
  .burger { display: flex; }
  .about { grid-template-columns: 1fr; }
  .lead-cta__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .hero__stat:nth-child(3)::before { display: none; }
  .hero__stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); }
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(130px, 24vw, 220px); }
  .gallery__item:nth-child(n) { grid-column: auto; grid-row: auto; }
  .gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .gallery__item:nth-child(8), .gallery__item:nth-child(12), .gallery__item:nth-child(16) { grid-column: span 2; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .cards, .why, .contacts, .footer__top { grid-template-columns: 1fr; }
  .why__item:nth-child(2) { grid-column: auto; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .stat { padding: 14px 12px; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 0 0 30px 68px; min-height: 78px; }
  .step::before { top: 0; }
  .step::after { display: block; top: 52px; bottom: 4px; left: 23px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--brand) 0 8px, transparent 8px 16px); transform-origin: 50% 0; }
  .js .steps:not(.is-on) .step::after { transform: scaleY(0); }
  .steps .step:last-child::after { display: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(120px, 34vw, 190px); gap: 10px; }
  .gallery__item:nth-child(n) { grid-column: auto; grid-row: auto; }
  .gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .gallery__item:nth-child(8) { grid-column: span 2; }
  .hero { padding-bottom: 92px; min-height: 0; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__stats { margin-top: 40px; }
  .hero__stat { padding: 14px 14px; }
  .hero__stat b { font-size: 22px; }
  .hero__scroll { display: none; }
  .footer__bottom { flex-direction: column; }
  .contact-card a, .contact-card p { font-size: 16px; word-break: break-word; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 20px; translate: 0 0; }
  .lightbox__prev { left: 20px; } .lightbox__next { right: 20px; }
  .lightbox img { max-height: 76vh; }
}
@media (max-width: 460px) {
  .brand__name { font-size: 16px; }
  .brand__mark { width: 36px; height: 36px; }
}

/* --------------------------- reduced motion ------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .fab-wa::after, .hero__scroll span.line { animation: none; }
}

/* price hint under a service card */
.card__price { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 700; color: var(--brand-ink); }

/* cookie notice (Yandex Metrica consent) */
.cookie[hidden] { display: none; }
.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 120; max-width: 560px; padding: 16px 18px; border-radius: 16px; background: var(--ink); color: #e8ecf3; box-shadow: 0 18px 40px -12px rgba(0,0,0,.5); font-size: 14.5px; line-height: 1.5; }
.cookie a { color: #ffb48a; text-decoration: underline; text-underline-offset: 3px; }
.cookie__btns { display: flex; gap: 10px; margin-top: 12px; }
.cookie__btn { min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.35); background: transparent; color: #fff; font: inherit; font-weight: 650; cursor: pointer; }
.cookie__btn--yes { background: var(--brand); border-color: var(--brand); color: var(--ink); }
@media (max-width: 620px) { .cookie { left: 10px; right: 10px; bottom: 82px; } }
