:root {
  --bg: #404046;
  --bg-2: #36363c;
  --bg-card: #4a4a52;
  --bg-card-hover: #54545c;
  --bg-dark: #1c1c20;
  --text: #ececee;
  --text-soft: #b8b8c0;
  --text-muted: #888892;
  --text-on-dark: #f5f5f5;
  --text-soft-on-dark: #a3a3a3;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.15);
  --line-on-dark: rgba(255, 255, 255, 0.12);
  --white: #ffffff;
  --radius: 12px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-title: "Bricolage Grotesque", system-ui, sans-serif;
  --header-h: 72px;
  --wrap: min(1100px, calc(100% - 32px));
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  --shadow-lg: 0 28px 60px rgba(0, 0, 0, 0.32);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.wrap { width: var(--wrap); margin-inline: auto; }

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

/* ── HEADER ── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(54, 54, 60, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.3s;
}

.header--scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.logo__mark {
  display: block;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.logo__mark svg {
  display: block;
  width: 40px;
  height: 40px;
}

.logo__img { display: none; }

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo__text strong {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
}

.logo__text small {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.nav { display: flex; gap: 28px; }

.nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: color 0.2s;
}

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

.header__phone {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  font-weight: 600;
  font-size: 0.78rem;
  line-height: 1.2;
  padding: 8px 12px;
  background: var(--bg-dark);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s;
  white-space: nowrap;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.header__phone-name {
  font-size: 0.62rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.02em;
}

.header__phone-num {
  font-size: 0.78rem;
}

.header__contacts {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__phone:hover { opacity: 0.85; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
}

.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 99;
  box-shadow: var(--shadow);
}

.mobile-nav[hidden] { display: none !important; }

.mobile-nav__contact {
  display: block;
  width: 100%;
  padding: 10px 0;
  border: none;
  background: none;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav__contact:hover {
  color: var(--white);
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 56px;
  overflow: hidden;
  color: var(--white);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #1a1a1e;
  background-image: url('../images/hero.jpg?v=3');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

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

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(10, 10, 12, 0.88) 0%, rgba(10, 10, 12, 0.55) 50%, rgba(10, 10, 12, 0.72) 100%);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.hero__copy { max-width: 520px; }

.kicker {
  margin: 0 0 14px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.hero h1 {
  font-family: var(--font-title);
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.hero__tag {
  margin: 0 0 14px;
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}

.hero__lead {
  margin: 0 0 24px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

.hero__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.hero__contacts {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 28px;
}

.hero__contacts span { opacity: 0.35; }
.hero__contacts a:hover { color: rgba(255, 255, 255, 0.7); }

.hero__facts {
  list-style: none;
  padding: 20px 0 0;
  margin: 0;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero__facts li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero__facts span {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero__facts b {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
}

.hero__brand {
  justify-self: end;
  padding: 20px 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: calc(var(--radius) + 6px);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.hero-logo-scene {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: clamp(150px, 24vw, 268px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-build {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
  animation: buildHide 0.55s ease forwards 3.1s;
}

.hero-build__blueprint {
  position: absolute;
  inset: 8px 4px 52px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 14px 14px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 14px 14px;
  opacity: 0;
  animation: blueprintIn 0.45s ease forwards 0.1s, blueprintOut 0.5s ease forwards 1.4s;
}

.hero-build__house {
  position: relative;
  z-index: 1;
  width: 88px;
  height: 88px;
  overflow: visible;
}

.build-foundation,
.build-frame,
.build-door {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
}

.build-foundation {
  animation: drawLine 0.55s ease forwards 0.35s;
}

.build-frame {
  animation: drawLine 0.85s ease forwards 0.75s;
}

.build-body {
  transform: scaleY(0);
  transform-origin: center bottom;
  opacity: 0;
  animation: bodyFill 0.55s ease forwards 1.35s;
}

.build-row {
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
}

.build-row--1 { animation: rowLay 0.28s ease forwards 1.55s; }
.build-row--2 { animation: rowLay 0.28s ease forwards 1.72s; }
.build-row--3 { animation: rowLay 0.28s ease forwards 1.89s; }

.build-door {
  opacity: 0;
  animation: drawLine 0.45s ease forwards 2.05s, doorIn 0.35s ease forwards 2.05s;
}

.hero-build__footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  padding: 0 4px;
}

.hero-build__bar {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  margin-bottom: 10px;
}

.hero-build__bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.82);
  animation: buildProgress 2.85s ease forwards 0.2s;
}

.hero-build__stage {
  position: relative;
  display: grid;
  place-items: center;
  height: 14px;
  margin: 0;
  overflow: hidden;
  text-align: center;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.hero-build__stage span {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  white-space: nowrap;
  animation: stageText 0.62s ease forwards;
}

.hero-build__stage span:nth-child(1) { animation-delay: 0.35s; }
.hero-build__stage span:nth-child(2) { animation-delay: 1.05s; }
.hero-build__stage span:nth-child(3) { animation-delay: 1.75s; }
.hero-build__stage span:nth-child(4) { animation-delay: 2.45s; }

.hero-logo {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  min-width: 0;
  opacity: 0;
  transform: translateY(6px);
  animation: logoReveal 0.7s ease forwards 3s;
}

.hero-logo__icon {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto 16px;
  opacity: 0.95;
}

.hero-logo__name {
  margin: 0;
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translateY(10px);
  animation: logoLineIn 0.5s ease forwards 3.15s;
}

.hero-logo__sub {
  margin: 6px 0 0;
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  color: rgba(255, 255, 255, 0.88);
  opacity: 0;
  transform: translateY(8px);
  animation: logoLineIn 0.5s ease forwards 3.28s;
}

.hero-logo__city {
  margin: 14px 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  opacity: 0;
  transform: translateY(6px);
  animation: logoLineIn 0.45s ease forwards 3.4s;
}

@keyframes blueprintIn {
  to { opacity: 1; }
}

@keyframes blueprintOut {
  to { opacity: 0; }
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

@keyframes bodyFill {
  0% { opacity: 0; transform: scaleY(0); }
  100% { opacity: 1; transform: scaleY(1); }
}

@keyframes rowLay {
  0% { opacity: 0; transform: scaleX(0); }
  100% { opacity: 1; transform: scaleX(1); }
}

@keyframes doorIn {
  to { opacity: 1; }
}

@keyframes buildProgress {
  to { width: 100%; }
}

@keyframes stageText {
  0% { opacity: 0; visibility: hidden; transform: translateY(4px); }
  18% { opacity: 1; visibility: visible; transform: translateY(0); }
  82% { opacity: 1; visibility: visible; transform: translateY(0); }
  100% { opacity: 0; visibility: hidden; transform: translateY(-3px); }
}

@keyframes buildHide {
  to { opacity: 0; visibility: hidden; }
}

@keyframes logoReveal {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes logoLineIn {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-build { display: none; }

  .hero-logo,
  .hero-logo__name,
  .hero-logo__sub,
  .hero-logo__city {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.hero-logo-scene.is-logo-ready .hero-build {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hero-logo-scene.is-logo-ready .hero-logo,
.hero-logo-scene.is-logo-ready .hero-logo__name,
.hero-logo-scene.is-logo-ready .hero-logo__sub,
.hero-logo-scene.is-logo-ready .hero-logo__city {
  opacity: 1;
  transform: none;
}

.hero-logo-scene:not(.is-anim-started):not(.is-logo-ready) .hero-build,
.hero-logo-scene:not(.is-anim-started):not(.is-logo-ready) .hero-logo,
.hero-logo-scene:not(.is-anim-started):not(.is-logo-ready) .hero-logo__name,
.hero-logo-scene:not(.is-anim-started):not(.is-logo-ready) .hero-logo__sub,
.hero-logo-scene:not(.is-anim-started):not(.is-logo-ready) .hero-logo__city {
  animation: none !important;
}

.hero-logo-scene:not(.is-anim-started):not(.is-logo-ready) .hero-logo,
.hero-logo-scene:not(.is-anim-started):not(.is-logo-ready) .hero-logo__name,
.hero-logo-scene:not(.is-anim-started):not(.is-logo-ready) .hero-logo__sub,
.hero-logo-scene:not(.is-anim-started):not(.is-logo-ready) .hero-logo__city {
  opacity: 0;
}

/* Mobile: JS-driven logo build */
@media (max-width: 900px) {
  .hero__grid {
    display: flex;
    flex-direction: column;
  }

  .hero__brand {
    order: -1;
  }

  .hero-logo-scene:not(.is-anim-started):not(.is-logo-ready) .hero-build {
    opacity: 1;
    visibility: visible;
  }

  .hero-logo-scene.is-js-anim,
  .hero-logo-scene.is-js-anim * {
    animation: none !important;
  }

  .hero-logo-scene.is-js-anim {
    transform: translateZ(0);
  }

  .hero-logo-scene.is-js-anim .hero-build {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.45s ease, visibility 0.45s ease;
  }

  .hero-logo-scene.is-js-anim .hero-build__blueprint {
    opacity: 0;
    transition: opacity 0.35s ease;
  }

  .hero-logo-scene.is-js-anim.is-bp .hero-build__blueprint { opacity: 1; }
  .hero-logo-scene.is-js-anim.is-bp-out .hero-build__blueprint { opacity: 0; }

  .hero-logo-scene.is-js-anim .build-foundation,
  .hero-logo-scene.is-js-anim .build-frame,
  .hero-logo-scene.is-js-anim .build-door {
    stroke-dashoffset: 260;
    transition: stroke-dashoffset 0.55s ease, opacity 0.35s ease;
  }

  .hero-logo-scene.is-js-anim .build-door { opacity: 0; }

  .hero-logo-scene.is-js-anim.is-draw1 .build-foundation { stroke-dashoffset: 0; }
  .hero-logo-scene.is-js-anim.is-draw2 .build-frame { stroke-dashoffset: 0; }
  .hero-logo-scene.is-js-anim.is-draw3 .build-door {
    stroke-dashoffset: 0;
    opacity: 1;
  }

  .hero-logo-scene.is-js-anim .build-body {
    opacity: 0;
    transform: scaleY(0);
    transform-origin: center bottom;
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  .hero-logo-scene.is-js-anim.is-body .build-body {
    opacity: 1;
    transform: scaleY(1);
  }

  .hero-logo-scene.is-js-anim .build-row {
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left center;
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  .hero-logo-scene.is-js-anim.is-rows .build-row {
    opacity: 1;
    transform: scaleX(1);
  }

  .hero-logo-scene.is-js-anim .hero-build__bar i {
    width: 0;
    transition: width 2.2s ease;
  }

  .hero-logo-scene.is-js-anim.is-progress .hero-build__bar i { width: 100%; }

  .hero-logo-scene.is-js-anim .hero-build__stage span {
    opacity: 0;
    visibility: hidden;
    transform: translateY(3px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .hero-logo-scene.is-js-anim.is-stage-1 .hero-build__stage span:nth-child(1),
  .hero-logo-scene.is-js-anim.is-stage-2 .hero-build__stage span:nth-child(2),
  .hero-logo-scene.is-js-anim.is-stage-3 .hero-build__stage span:nth-child(3),
  .hero-logo-scene.is-js-anim.is-stage-4 .hero-build__stage span:nth-child(4) {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .hero-logo-scene.is-js-anim.is-logo-ready .hero-build__stage span {
    opacity: 0;
    visibility: hidden;
  }

  .hero-logo-scene.is-js-anim .hero-logo,
  .hero-logo-scene.is-js-anim .hero-logo__name,
  .hero-logo-scene.is-js-anim .hero-logo__sub,
  .hero-logo-scene.is-js-anim .hero-logo__city {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.45s ease, transform 0.45s ease;
  }

  .hero-logo-scene.is-js-anim.is-logo-ready .hero-build {
    opacity: 0;
    visibility: hidden;
  }

  .hero-logo-scene.is-js-anim.is-logo-ready .hero-logo {
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }

  .hero-logo-scene.is-js-anim.is-logo-ready .hero-logo__name {
    opacity: 1;
    transform: none;
    transition-delay: 0.08s;
  }

  .hero-logo-scene.is-js-anim.is-logo-ready .hero-logo__sub {
    opacity: 1;
    transform: none;
    transition-delay: 0.16s;
  }

  .hero-logo-scene.is-js-anim.is-logo-ready .hero-logo__city {
    opacity: 1;
    transform: none;
    transition-delay: 0.24s;
  }
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s, border-color 0.2s;
}

.btn--primary {
  background: var(--bg-dark);
  color: var(--white);
}

.btn--primary:hover { opacity: 0.88; }

.btn--white {
  background: var(--white);
  color: var(--bg-dark);
}

.btn--white:hover { opacity: 0.92; }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}

.btn--ghost:hover {
  border-color: var(--text);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
}

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

/* ── CTA BAND (тёмная полоса, белая кнопка) ── */
.cta-band {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  flex-wrap: wrap;
}

.cta-band p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-soft-on-dark);
}

.cta-band strong {
  color: var(--white);
  font-weight: 700;
}

/* ── CONTACT BAR ── */
.contact-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
}

.contact-bar--alt { background: var(--bg); }

.contact-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 14px 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-bar__sep {
  width: 1px;
  height: 18px;
  background: var(--line-strong);
  flex-shrink: 0;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s, opacity 0.2s;
}

.contact-bar--alt .contact-chip:hover {
  background: rgba(255, 255, 255, 0.06);
}

.contact-bar:not(.contact-bar--alt) .contact-chip:hover {
  background: rgba(255, 255, 255, 0.06);
}

.contact-chip__ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.contact-chip__label {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
}

.contact-chip__name {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
}

.contact-chip__text {
  font-size: 0.82rem;
  font-weight: 600;
}

.contact-chip--phone .contact-chip__ico { color: var(--white); }
.contact-chip--tg .contact-chip__ico { color: #229ed9; }
.contact-chip--wa .contact-chip__ico { color: #25d366; }

.contact-bar__inner a:hover { opacity: 1; }

/* ── ДО / ПОСЛЕ ── */
.section--ba {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}

.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ba-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--line);
  background: var(--bg-card);
}

.ba-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.photo-zoomable {
  cursor: zoom-in;
}

.ba-label {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ba-label--before {
  background: rgba(220, 70, 70, 0.92);
  color: #fff;
}

.ba-label--after {
  background: rgba(40, 160, 90, 0.92);
  color: #fff;
}

/* ── SECTIONS ── */
.section { padding: 72px 0; }

.section--services { background: var(--bg-2); }

.section--pitch { background: var(--bg); }

.section--skip {
  background: var(--bg-card);
  border-top: 1px solid var(--line);
}

.section--order {
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.section-intro--center {
  text-align: center;
  margin-bottom: 40px;
}

.section-intro--center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.15;
}

.section-desc {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  max-width: 48ch;
}

/* ── ФОТО ── */
.photos {
  background: var(--bg-card);
  border-block: 1px solid var(--line);
}

.photos--top { padding: 40px 0; }

.photos--gallery {
  padding: 48px 0 56px;
  background: var(--bg);
}

.photos--more { padding: 32px 0 48px; background: var(--bg); }

.photos__featured {
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--line);
}

.photos__featured img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.photos__grid--works {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
}

.photos__showcase {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10px;
  min-height: 420px;
}

.photos__main {
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  border: 1px solid var(--line);
}

.photos__main img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
}

.photos__side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
}

.photos__side .photos__cell {
  min-height: 0;
}

.photos__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 10px;
}

.photos__cell {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
  position: relative;
}

.photos__cell--wide { grid-column: span 2; }

.photos__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.photos__cell:hover img { transform: scale(1.03); }

.photos__cell--video {
  cursor: pointer;
  background: #141414;
}

.photos__cell--video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #141414;
}

.photos__video-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: #d32f2f;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.photos__cell--video::before {
  content: '▶';
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

/* ── PHOTO LIGHTBOX ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 8, 10, 0.94);
  cursor: zoom-out;
  -webkit-tap-highlight-color: transparent;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  max-height: 100%;
  pointer-events: none;
}

.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 80px);
  max-height: calc(100dvh - 80px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: calc(var(--radius) + 2px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.lightbox__img[hidden],
.lightbox__video[hidden] {
  display: none !important;
}

.lightbox--video {
  cursor: pointer;
}

.lightbox--video .lightbox__inner {
  width: auto;
  max-width: min(92vw, 720px);
}

.lightbox__video {
  display: block;
  max-width: 92vw;
  max-height: calc(100vh - 100px);
  max-height: calc(100dvh - 100px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: calc(var(--radius) + 2px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  background: #000;
  pointer-events: auto;
}

.lightbox__caption {
  margin: 0;
  max-width: min(100%, 520px);
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

body.lightbox-open {
  overflow: hidden;
}

/* ── УСЛУГИ ── */
.svc-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  background: var(--bg-card);
}

.svc-list__item {
  display: flex;
  gap: 16px;
  padding: 22px 20px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transition: background 0.2s;
}

.svc-list__item:nth-child(2n) { border-right: none; }
.svc-list__item:last-child { border-bottom: none; }
.svc-list__item:nth-last-child(2):nth-child(odd) { border-bottom: none; }
.svc-list__item:hover { background: var(--bg-card-hover); }

.svc-list__item > span {
  flex-shrink: 0;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.svc-list__item h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 700;
}

.svc-list__item p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.4;
}

/* ── PITCH ── */
.pitch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.pitch__list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.pitch__list li {
  position: relative;
  padding: 12px 0 12px 18px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.95rem;
}

.pitch__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1em;
  width: 6px;
  height: 6px;
  background: var(--white);
  border-radius: 1px;
  transform: rotate(45deg);
}

.pitch__photo {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4/5;
  box-shadow: var(--shadow);
}

.pitch__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── SKIP ── */
.skip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.skip-card {
  padding: 28px 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  text-align: center;
}

.skip-card h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

/* ── ORDER ── */
.order-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.order-phone {
  display: block;
  margin: 12px 0 20px;
  font-family: var(--font-title);
  font-size: 1.75rem;
  font-weight: 700;
}

.order-phone:hover { opacity: 0.65; }

.order-lead {
  margin: 0 0 18px;
  color: var(--text-soft);
  font-size: 0.92rem;
  max-width: 36ch;
}

.order-masters-hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-soft);
  max-width: 42ch;
}

.order-masters-hint__icons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-top: 2px;
}

.hint-ico {
  width: 20px;
  height: 20px;
}

.hint-ico--tg { color: #229ed9; }
.hint-ico--wa { color: #25d366; }

.hint-ico--max rect { fill: #7b8cde; }
.hint-ico--max path { fill: #ffffff; }

.order-masters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.order-master {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background: var(--bg-card);
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.order-master:hover,
.order-master:focus-visible {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  outline: none;
}

.order-master:active {
  transform: scale(0.995);
}

.order-master__name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.order-master__phone {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.15;
}

.order-master__phone {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.15;
}

/* ── MASTER POPOVER ── */
.master-popover {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

.master-popover.is-open {
  display: flex;
}

.master-popover__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
  touch-action: manipulation;
}

.master-popover__sheet {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 22px 18px 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-lg);
  animation: popover-up 0.22s ease;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}

@keyframes popover-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.master-popover__title {
  margin: 0 0 4px;
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
}

.master-popover__phone {
  margin: 0 0 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.master-popover__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.master-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid var(--line);
  background: var(--bg);
  transition: opacity 0.2s, transform 0.15s;
}

.master-action svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.master-action:hover {
  opacity: 0.9;
}

.master-action:active {
  transform: scale(0.99);
}

.master-action--call {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}

.master-action--call svg {
  color: #fff;
}

.master-action--tg {
  border-color: rgba(34, 158, 217, 0.35);
  color: #7ecbf0;
}

.master-action--tg svg { color: #229ed9; }

.master-action--max {
  border-color: rgba(123, 140, 222, 0.45);
  color: #c5cef5;
}

.master-action--max svg rect { fill: #7b8cde; }
.master-action--max svg path { fill: #ffffff; }

.master-action--wa {
  border-color: rgba(37, 211, 102, 0.35);
  color: #7ee8a8;
}

.master-action--wa svg { color: #25d366; }

body.master-popover-open {
  overflow: hidden;
}

@media (min-width: 601px) {
  .master-popover {
    align-items: center;
  }
}

.order-socials {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.order-socials a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-soft);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.order-socials a:hover {
  color: var(--text);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.soc-ico {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--bg-dark);
}

#linkTg .soc-ico { color: #229ed9; }
#linkWa .soc-ico { color: #25d366; }
#linkMax .soc-ico { color: #5c6bc0; }

.order-qr {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.order-qr__card {
  position: relative;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.order-qr__save {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(20, 20, 22, 0.92);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.order-qr__save svg {
  width: 16px;
  height: 16px;
}

.order-qr__save:hover {
  background: #1f1f23;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  transform: translateY(-1px);
}

.order-qr canvas,
.order-qr__box,
.order-qr__img {
  display: block;
  width: 140px;
  height: 140px;
  background: #fff;
  padding: 6px;
  border-radius: 8px;
}

.order-qr__box svg {
  display: block;
  width: 100%;
  height: 100%;
}

.order-qr span {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.order-form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 28px;
  box-shadow: var(--shadow);
}

.order-form label {
  display: block;
  margin-bottom: 16px;
}

.order-form label span {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.order-form input,
.order-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
}

.order-form input:focus,
.order-form textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.35);
}

.form-msg {
  margin: 12px 0 0;
  font-size: 0.88rem;
  font-weight: 600;
}

/* ── FOOTER ── */
.footer {
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .header__contacts { display: none; }

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

  .photos__grid--works {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }

  .photos__featured img { max-height: 420px; }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .hero__copy { margin: 0 auto; }

  .hero__row,
  .hero__facts {
    justify-content: center;
  }

  .hero__brand {
    justify-self: center;
    width: auto;
    max-width: 220px;
    padding: 12px 14px 10px;
    margin-inline: auto;
    overflow: visible;
    backdrop-filter: none;
    background: rgba(255, 255, 255, 0.1);
  }

  .hero-logo-scene {
    width: 100%;
    max-width: 200px;
    min-height: 168px;
    height: auto;
    margin-inline: auto;
  }

  .hero-build__house,
  .hero-logo__icon {
    width: 52px;
    height: 52px;
  }

  .hero-logo__icon {
    margin-bottom: 8px;
  }

  .hero-logo__name {
    font-size: 1.85rem;
  }

  .hero-logo__sub {
    font-size: 0.82rem;
    letter-spacing: 0.18em;
  }

  .hero-logo__city {
    margin-top: 6px;
    font-size: 0.52rem;
    letter-spacing: 0.08em;
  }

  .hero-build__blueprint {
    inset: 4px 2px 34px;
    background-size: 10px 10px;
  }

  .hero-build__footer {
    bottom: 0;
    padding: 0 2px;
  }

  .hero-build__bar {
    height: 2px;
    margin-bottom: 6px;
  }

  .hero-build__stage {
    height: 11px;
    font-size: 0.48rem;
    letter-spacing: 0.05em;
  }

  .photos__showcase {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .photos__main img { min-height: 280px; }

  .photos__side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }

  .svc-list { grid-template-columns: 1fr; }

  .svc-list__item { border-right: none; }
  .svc-list__item:last-child { border-bottom: none; }

  .photos__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }

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

  .pitch, .order-grid, .skip-grid { grid-template-columns: 1fr; }
  .pitch__photo { max-width: 360px; margin: 0 auto; }
}

@media (max-width: 600px) {
  .nav { display: none; }
  .header__contacts { display: none; }
  .burger { display: flex; }

  .photos__grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 140px;
  }

  .hero__facts { gap: 20px; }

  .cta-band__inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cta-band .btn { width: 100%; }

  .hero {
    min-height: min(88vh, 720px);
    padding-bottom: 48px;
  }

  .hero__bg {
    background-position: center center;
  }

  .hero__bg-img {
    object-position: center center;
  }

  .hero__brand {
    max-width: 188px;
    padding: 10px 10px 8px;
    overflow: visible;
  }

  .hero-logo-scene {
    max-width: 176px;
    min-height: 152px;
    height: auto;
  }

  .hero-build__house,
  .hero-logo__icon {
    width: 44px;
    height: 44px;
  }

  .hero-logo__name {
    font-size: 1.55rem;
  }

  .hero-logo__sub {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }

  .hero-logo__city {
    margin-top: 5px;
    font-size: 0.48rem;
  }

  .hero-build__blueprint {
    inset: 2px 1px 30px;
  }

  .hero-build__stage {
    height: 10px;
    font-size: 0.44rem;
  }
}
