/* ФриТаун — base styles */

:root {
  --bg: #f2f0eb;
  --bg-2: #ebe7df;
  --ink: #0e1722;
  --ink-2: #1a3a52;
  --muted: #6b7280;
  --line: rgba(14, 23, 34, 0.12);
  --line-strong: rgba(14, 23, 34, 0.22);
  --accent: #1a3a52;
  --accent-ink: #f2f0eb;
  --hot: #d9583a;
  --card: #ffffff;
  --shadow: 0 1px 0 rgba(14, 23, 34, 0.06), 0 10px 30px -12px rgba(14, 23, 34, 0.18);
  --radius: 4px;
  --container: 1280px;
  --pad-x: clamp(20px, 4vw, 56px);

  --font-display: "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-text: "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* THEMES */
[data-theme="editorial"] {
  --bg: #f2f0eb;
  --bg-2: #ebe7df;
  --ink: #0e1722;
  --ink-2: #1a3a52;
  --accent: #1a3a52;
  --accent-ink: #f2f0eb;
  --hot: #d9583a;
  --radius: 4px;
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-text: "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
[data-theme="industrial"] {
  --bg: #0f1318;
  --bg-2: #161b22;
  --ink: #e9ecef;
  --ink-2: #ffffff;
  --muted: #8a93a0;
  --line: rgba(255,255,255,0.10);
  --line-strong: rgba(255,255,255,0.22);
  --accent: #f4d35e;
  --accent-ink: #0f1318;
  --hot: #f4d35e;
  --card: #161b22;
  --shadow: 0 1px 0 rgba(0,0,0,0.5), 0 20px 40px -16px rgba(0,0,0,0.5);
  --radius: 0px;
  --font-display: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-text: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
[data-theme="warm"] {
  --bg: #efe7d8;
  --bg-2: #e6dcc7;
  --ink: #2a1f12;
  --ink-2: #4a2f1a;
  --muted: #7a6a55;
  --line: rgba(42, 31, 18, 0.14);
  --line-strong: rgba(42, 31, 18, 0.28);
  --accent: #b8542a;
  --accent-ink: #fff8ec;
  --hot: #b8542a;
  --card: #fff8ec;
  --radius: 14px;
  --font-display: "DM Serif Display", "Times New Roman", serif;
  --font-text: "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }
.uppercase { text-transform: uppercase; letter-spacing: 0.08em; }
.muted { color: var(--muted); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-tight { padding: clamp(40px, 6vw, 80px) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 24px; height: 1px; background: currentColor; opacity: 0.6;
}

.h-display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(48px, 8.5vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
[data-theme="editorial"] .h-display { font-weight: 500; letter-spacing: -0.04em; }
[data-theme="industrial"] .h-display { font-weight: 700; letter-spacing: -0.04em; }
[data-theme="warm"] .h-display { font-weight: 400; }

.h-section {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
[data-theme="editorial"] .h-section { font-weight: 500; }
[data-theme="warm"] .h-section { font-weight: 400; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
[data-theme="industrial"] .btn-primary:hover { background: var(--ink-2); color: var(--bg); }
.btn-ghost { background: transparent; border-color: var(--line-strong); }
.btn-lg { padding: 20px 32px; font-size: 16px; }
.btn .arrow { display: inline-block; transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  background: transparent;
}
[data-theme="industrial"] .pill { background: rgba(255,255,255,0.04); }

.divider {
  height: 1px; background: var(--line); width: 100%;
}

/* ===== NAVBAR ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s, box-shadow .4s;
}
.nav--scrolled {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 20px -6px rgba(14, 23, 34, 0.08);
}
[data-theme="industrial"] .nav--scrolled { box-shadow: 0 1px 20px -6px rgba(0,0,0,0.3); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}

/* Logo */
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 28px; height: 28px; position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .4s cubic-bezier(.2,.7,.3,1);
}
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.08); }
.logo-mark svg { width: 100%; height: 100%; }

/* SlideTabs */
.nav-tabs {
  display: flex; align-items: center; gap: 0;
  list-style: none;
  margin: 0; padding: 0;
  position: relative;
}
.nav-tab-link {
  display: block;
  padding: 10px 18px;
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  z-index: 1;
  transition: color .2s;
}
.nav-tab-link:hover { color: var(--ink); }
.nav-cursor {
  position: absolute;
  top: 50%; height: 36px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: color-mix(in oklab, var(--ink) 8%, transparent);
  border: 1.5px solid var(--ink);
  pointer-events: none;
  opacity: 0;
  transition: left .35s cubic-bezier(.4, 0, .2, 1),
              width .35s cubic-bezier(.4, 0, .2, 1),
              opacity .2s;
}
[data-theme="industrial"] .nav-cursor { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 10%, transparent); }
[data-theme="warm"] .nav-cursor { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 8%, transparent); }

/* CTA — shiny text */
.nav-cta {
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-ink);
  background: var(--accent);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  padding: 12px 28px;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s;
}
.nav-cta:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 24px -4px color-mix(in oklab, var(--accent) 40%, transparent);
}
.shiny-text {
  background: linear-gradient(
    120deg,
    var(--accent-ink) 0%,
    var(--accent-ink) 40%,
    #fff 50%,
    var(--accent-ink) 60%,
    var(--accent-ink) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shiny 3s linear infinite;
}
@keyframes shiny {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@media (max-width: 880px) {
  .nav-tabs { display: none; }
}

/* ===== HERO ===== */
.hero {
  padding-top: 120px;
  padding-bottom: clamp(60px, 8vw, 100px);
  position: relative;
  overflow: hidden;
}

/* === Hero background image (manageable via admin) === */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  transition: opacity .4s ease;
}
.hero-bg-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      var(--bg) 0%,
      rgba(0,0,0,0) 22%,
      rgba(0,0,0,0) 70%,
      var(--bg) 100%
    );
}
.hero[data-bg-tint="warm"] .hero-bg-veil {
  background:
    linear-gradient(180deg,
      var(--bg) 0%,
      rgba(0,0,0,0) 22%,
      rgba(0,0,0,0) 70%,
      var(--bg) 100%
    ),
    linear-gradient(90deg, var(--bg) 0%, rgba(255,255,255,0) 55%);
}
.hero[data-bg-tint="cool"] .hero-bg-veil {
  background:
    linear-gradient(180deg,
      var(--bg) 0%,
      rgba(0,0,0,0) 22%,
      rgba(0,0,0,0) 70%,
      var(--bg) 100%
    ),
    linear-gradient(90deg, var(--bg) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(180deg, rgba(26,58,82,0.06), rgba(26,58,82,0.02));
}
/* Hero content sits above background */
.hero .container { position: relative; z-index: 1; }

/* Mode: soft — небольшая фоновая подложка, в основном за карточкой */
.hero--bg-soft .hero-bg-img {
  /* Левую треть осветляем — текст не теряется. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.2) 30%, #000 55%, #000 100%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.2) 30%, #000 55%, #000 100%);
}

/* Mode: full — крупный фон во всю ширину hero */
.hero--bg-full .hero-bg-veil {
  background:
    linear-gradient(180deg,
      rgba(244,241,234,0.65) 0%,
      rgba(244,241,234,0.35) 35%,
      rgba(244,241,234,0.6) 100%
    ),
    linear-gradient(90deg, var(--bg) 0%, rgba(244,241,234,0.3) 55%, rgba(244,241,234,0) 100%);
}
@media (max-width: 980px) {
  .hero--bg-soft .hero-bg-img,
  .hero--bg-full .hero-bg-img {
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
  }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { top: 0; margin-top: 72px; }
}
/* Spin badge — stamp over title */
.hero-grid > div:first-child { position: relative; }
.spin-badge {
  width: 140px; height: 140px;
  position: absolute;
  top: -10px; right: -20px;
  z-index: 2;
  opacity: 0.3;
  transition: opacity .3s;
}
.spin-badge:hover { opacity: 0.7; }
.spin-badge-svg {
  width: 100%; height: 100%;
  animation: spin 20s linear infinite;
  fill: var(--ink);
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.spin-badge-center {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@media (max-width: 980px) {
  .spin-badge {
    width: 110px; height: 110px;
    top: -5px; right: -10px;
  }
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--ink-2);
}
[data-theme="industrial"] .hero-title em { color: var(--accent); font-style: normal; text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 10px; }
[data-theme="warm"] .hero-title em { color: var(--accent); }

.hero-sub {
  margin-top: 32px;
  font-size: clamp(16px, 1.4vw, 19px);
  max-width: 46ch;
  color: var(--muted);
  line-height: 1.55;
}
.hero-actions {
  display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap;
}
.hero-side {
  display: flex; flex-direction: column; gap: 24px;
  position: relative;
  top: -75px;
}

/* === Featured project card === */
.feat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform .3s cubic-bezier(.2,.7,.3,1);
}
.feat:hover { transform: translateY(-2px); }

/* Smooth slide-up entrance */
.feat-fly {
  opacity: 0;
  transform: translateY(40px);
}
.feat-fly.feat-landed {
  animation: featSlideUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes featSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feat-tag-row {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.feat-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 8px 16px;
  border: 1px solid color-mix(in oklab, var(--ink) 10%, transparent);
  border-radius: 999px;
  color: var(--ink);
  background: color-mix(in oklab, var(--bg) 60%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px color-mix(in oklab, var(--ink) 5%, transparent),
              inset 0 1px 0 color-mix(in oklab, #fff 15%, transparent);
}
.feat-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 25%, transparent);
  animation: featPulse 2s ease-in-out infinite;
}
@keyframes featPulse {
  0%, 100% { box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 25%, transparent); }
  50% { box-shadow: 0 0 0 7px color-mix(in oklab, var(--accent) 10%, transparent); }
}
.feat-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.feat-ribbon {
  position: absolute;
  top: 12px;
  left: -8px;
  z-index: 2;
  padding: 4px 14px 4px 12px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 0 4px 4px 0;
  box-shadow: 0 2px 8px color-mix(in oklab, var(--accent) 30%, transparent);
}

.feat image-slot {
  background:
    repeating-linear-gradient(135deg,
      color-mix(in oklab, var(--ink) 6%, transparent) 0 1px,
      transparent 1px 14px),
    var(--bg-2);
}

.feat-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feat-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.feat-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 600;
}
[data-theme="editorial"] .feat-title { font-weight: 500; }
[data-theme="warm"] .feat-title { font-weight: 400; }
.feat-area {
  font-size: 13px;
  color: var(--ink);
  padding: 3px 8px;
  background: var(--bg-2);
  border-radius: 999px;
  white-space: nowrap;
}
.feat-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.feat-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding-top: 4px;
}
.feat-stage {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.feat-stage-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.feat-stage.done .feat-stage-bar { background: var(--accent); }
.feat-stage.current .feat-stage-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, color-mix(in oklab, #fff 60%, transparent), transparent);
  animation: featStageShine 2.2s ease-in-out infinite;
}
@keyframes featStageShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.feat-stage-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}
.feat-stage.done .feat-stage-label { color: var(--ink); }
.feat-stage.current .feat-stage-label { color: var(--accent); font-weight: 600; }

.feat-foot {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  gap: 16px;
}
.feat-foot-l, .feat-foot-r {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.feat-foot-r { text-align: right; }
.feat-foot-eyebrow {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.feat-foot-val {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
}
[data-theme="editorial"] .feat-foot-val { font-weight: 500; }
[data-theme="warm"] .feat-foot-val { font-weight: 400; }

@media (max-width: 980px) {
  .feat { max-width: 480px; }
}
.hero-stage {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.hero-stage::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 20%, color-mix(in oklab, var(--accent) 10%, transparent), transparent 60%);
  pointer-events: none;
}
.hero-stage::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 18%;
  background:
    repeating-linear-gradient(45deg,
      color-mix(in oklab, var(--ink) 8%, transparent) 0 1px,
      transparent 1px 10px),
    var(--bg-2);
  border-top: 1px solid var(--line-strong);
  pointer-events: none;
}

.house {
  position: absolute;
  left: 50%; bottom: 18%;
  transform: translateX(-50%);
  width: 70%;
}
.house-part {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawIn 1.6s cubic-bezier(.55,.1,.25,1) forwards;
}
.house-fill {
  opacity: 0;
  animation: fillIn .7s ease forwards;
}
@keyframes drawIn {
  to { stroke-dashoffset: 0; }
}
@keyframes fillIn {
  to { opacity: 1; }
}
.house-part.p1 { animation-delay: 0.1s; }
.house-part.p2 { animation-delay: 0.5s; }
.house-part.p3 { animation-delay: 0.9s; }
.house-part.p4 { animation-delay: 1.3s; }
.house-part.p5 { animation-delay: 1.7s; }
.house-fill.f1 { animation-delay: 2.1s; }
.house-fill.f2 { animation-delay: 2.4s; }

.crane {
  position: absolute;
  left: 78%; top: 8%;
  width: 14%;
  color: var(--ink-2);
  opacity: 0.7;
}
.crane svg { width: 100%; height: auto; }
.crane-arm {
  transform-origin: 8px 60px;
  animation: craneSway 6s ease-in-out infinite;
}
@keyframes craneSway {
  0%,100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

.scaffolding {
  position: absolute;
  left: 12%; bottom: 18%;
  height: 50%;
  width: 18%;
  border-left: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
}
.scaffolding::before, .scaffolding::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: var(--line-strong);
}
.scaffolding::before { top: 33%; }
.scaffolding::after { top: 66%; }

.measurement {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.measurement.m1 { top: 14%; left: 6%; }
.measurement.m2 { bottom: 22%; right: 8%; }
.measurement.m3 { top: 50%; left: 6%; }

.spark {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--hot);
  border-radius: 50%;
  animation: spark 2.4s ease-in infinite;
  opacity: 0;
}
.spark.s1 { left: 30%; top: 40%; animation-delay: 0.2s; }
.spark.s2 { left: 35%; top: 45%; animation-delay: 0.8s; }
.spark.s3 { left: 28%; top: 50%; animation-delay: 1.4s; }
@keyframes spark {
  0% { opacity: 0; transform: translate(0,0) scale(1); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(-20px, 30px) scale(0.3); }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  margin-top: clamp(48px, 6vw, 80px);
}
.stat {
  background: var(--bg);
  padding: 28px 4px 0;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 600;
}
[data-theme="editorial"] .stat-num { font-weight: 500; }
[data-theme="warm"] .stat-num { font-weight: 400; }
.stat-label {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}

/* ===== MARQUEE ===== */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  overflow: hidden;
  background: var(--bg);
}
.marquee-track {
  display: flex; gap: 48px;
  white-space: nowrap;
  animation: marquee 36s linear infinite;
}
.marquee-item {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.5vw, 48px);
  letter-spacing: -0.02em;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 48px;
}
.marquee-item::after {
  content: "✦";
  color: var(--accent);
  font-size: 0.5em;
}
[data-theme="editorial"] .marquee-item { font-weight: 500; font-style: italic; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== SECTION HEADER ===== */
.sec-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 56px;
}
.sec-head .lhs { display: flex; flex-direction: column; gap: 18px; max-width: 60ch; min-width: 0; }
.sec-head p { color: var(--muted); margin: 0; font-size: 17px; }
.sec-head .h-section { word-break: break-word; overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 720px) {
  .sec-head {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
    align-items: start;
  }
  .sec-head .btn { align-self: flex-start; }
  .sec-head p { font-size: 15px; }
}

/* ===== CATALOG (Что строим) ===== */
.filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 32px;
}
.filter {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  font-size: 13px;
  color: var(--ink);
  transition: all .2s;
  font-family: var(--font-text);
}
.filter:hover { border-color: var(--line-strong); }
.filter.active {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}
[data-theme="industrial"] .filter.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.filter-range {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--muted);
  margin-left: auto;
}
.filter-range input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 160px; height: 4px;
  background: var(--line-strong);
  border-radius: 2px; outline: none;
}
.filter-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
}
.filter-range input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer; border: 0;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 980px) { .catalog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .catalog-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s, border-color .35s;
  display: flex; flex-direction: column;
  position: relative;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}
.card-img {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-2);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.card-img .ph {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg,
      color-mix(in oklab, var(--ink) 6%, transparent) 0 1px,
      transparent 1px 14px);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase;
  transition: transform .6s ease;
}
.card:hover .card-img .ph { transform: scale(1.04); }
.card-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
}
.card-body {
  padding: 22px;
  display: flex; flex-direction: column; gap: 12px;
  flex: 1;
}
.card-title {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 600;
}
[data-theme="editorial"] .card-title { font-weight: 500; }
[data-theme="warm"] .card-title { font-weight: 400; }

.card-specs {
  display: flex; gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.card-specs span { display: inline-flex; align-items: center; gap: 6px; }
.card-foot {
  display: flex; justify-content: space-between; align-items: end;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.card-price {
  display: flex; flex-direction: column;
}
.card-price-from {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.card-price-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-top: 4px;
}
[data-theme="editorial"] .card-price-num { font-weight: 500; }
[data-theme="warm"] .card-price-num { font-weight: 400; }
.card-link {
  font-size: 13px;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
}
.card-link .arrow { transition: transform .25s; }
.card:hover .card-link .arrow { transform: translateX(4px); }

.empty-state {
  grid-column: 1 / -1;
  padding: 80px 0;
  text-align: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ===== RENOVATION ===== */
.reno-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 980px) { .reno-grid { grid-template-columns: 1fr; } }

.packages {
  display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid var(--line);
}
.pack {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  cursor: pointer;
  transition: padding-left .3s;
}
.pack::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: var(--accent);
  transition: width .3s;
}
.pack:hover { padding-left: 16px; }
.pack:hover::before { width: 4px; }
.pack-name {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  font-weight: 600;
}
[data-theme="editorial"] .pack-name { font-weight: 500; }
[data-theme="warm"] .pack-name { font-weight: 400; }
.pack-desc {
  color: var(--muted);
  font-size: 14px;
  max-width: 50ch;
}
.pack-price {
  text-align: right;
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
[data-theme="editorial"] .pack-price { font-weight: 500; }
[data-theme="warm"] .pack-price { font-weight: 400; }
.pack-price small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 400; color: var(--muted);
  margin-top: 4px;
}

/* before/after slider */
.compare {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  user-select: none;
  border: 1px solid var(--line);
}
.compare-img {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink);
}
.compare-before {
  background:
    repeating-linear-gradient(135deg,
      color-mix(in oklab, var(--ink) 8%, transparent) 0 1px,
      transparent 1px 10px),
    var(--bg-2);
}
.compare-after {
  background:
    repeating-linear-gradient(45deg,
      color-mix(in oklab, var(--accent) 14%, transparent) 0 1px,
      transparent 1px 12px),
    color-mix(in oklab, var(--accent) 6%, var(--bg-2));
  clip-path: inset(0 0 0 var(--split, 50%));
  color: var(--accent-ink);
}
[data-theme="industrial"] .compare-after { color: var(--accent-ink); }
[data-theme="warm"] .compare-after { color: var(--accent-ink); }
.compare-handle {
  position: absolute; top: 0; bottom: 0;
  left: var(--split, 50%);
  width: 2px;
  background: var(--accent);
  transform: translateX(-1px);
  cursor: ew-resize;
}
.compare-knob {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.05em;
}
.compare-label {
  position: absolute; top: 16px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--bg);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
}
.compare-label.left { left: 16px; }
.compare-label.right { right: 16px; }

/* ===== CALCULATOR ===== */
.calc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(28px, 4vw, 56px);
}
@media (max-width: 880px) { .calc { grid-template-columns: 1fr; } }
.calc-fields { display: flex; flex-direction: column; gap: 28px; }
.field-row { display: flex; flex-direction: column; gap: 12px; }
.field-row label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.field-row label .v {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
[data-theme="editorial"] .field-row label .v { font-weight: 500; }
[data-theme="warm"] .field-row label .v { font-weight: 400; }
.field-row input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px;
  background: var(--line-strong);
  border-radius: 2px; outline: none;
}
.field-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--card);
  box-shadow: 0 0 0 1px var(--line-strong);
}
.field-row input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer; border: 3px solid var(--card);
  box-shadow: 0 0 0 1px var(--line-strong);
}
.options-row {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.opt {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  font-size: 13px;
  color: var(--ink);
  font-family: var(--font-text);
  transition: all .2s;
}
.opt:hover { border-color: var(--line-strong); }
.opt.active {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}
[data-theme="industrial"] .opt.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.calc-result {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
  overflow: hidden;
}
[data-theme="industrial"] .calc-result { background: var(--accent); color: var(--accent-ink); }
[data-theme="warm"] .calc-result { background: var(--ink-2); color: var(--accent-ink); }
.calc-result-bg {
  position: absolute; inset: 0;
  opacity: 0.1;
  background:
    repeating-linear-gradient(45deg,
      currentColor 0 1px,
      transparent 1px 14px);
  pointer-events: none;
}
.calc-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  opacity: 0.7;
}
.calc-num {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.95;
  display: flex; align-items: baseline; gap: 6px;
}
[data-theme="editorial"] .calc-num { font-weight: 500; }
[data-theme="warm"] .calc-num { font-weight: 400; }
.calc-num small {
  font-size: 0.3em;
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}
.calc-breakdown {
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: 0.85;
  border-top: 1px solid currentColor;
  padding-top: 16px;
  margin-top: 8px;
}
.calc-breakdown .row {
  display: flex; justify-content: space-between;
}

/* ===== WORKS CAROUSEL ===== */
.works {
  background: var(--bg-2);
}
.works-track-wrap {
  position: relative;
  overflow: hidden;
  padding: 0 var(--pad-x);
}
.works-track {
  display: flex; gap: 20px;
  transition: transform .5s cubic-bezier(.2,.7,.3,1);
}
.work-card {
  flex: 0 0 clamp(280px, 28vw, 420px);
  display: flex; flex-direction: column;
  gap: 14px;
}
.work-img {
  aspect-ratio: 4 / 5;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.work-img .ph {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg,
      color-mix(in oklab, var(--ink) 6%, transparent) 0 1px,
      transparent 1px 14px);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase;
}
.work-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
}
.work-meta .name { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
[data-theme="editorial"] .work-meta .name { font-weight: 500; }
[data-theme="warm"] .work-meta .name { font-weight: 400; }
.works-controls {
  display: flex; gap: 12px;
  margin-top: 40px;
  justify-content: end;
  padding: 0 var(--pad-x);
}
.works-controls button {
  width: 56px; height: 56px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.works-controls button:hover {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}
.works-controls button:disabled { opacity: 0.3; cursor: not-allowed; }

/* ===== PROCESS ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }
.step {
  background: var(--bg);
  padding: 36px 28px;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 240px;
  transition: background .3s;
}
.step:hover { background: var(--bg-2); }
.step-num {
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: 0.15em; color: var(--muted);
}
.step-title {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 600;
}
[data-theme="editorial"] .step-title { font-weight: 500; }
[data-theme="warm"] .step-title { font-weight: 400; }
.step-desc { color: var(--muted); font-size: 14px; margin: 0; }

/* ===== CTA BAND ===== */
.cta-band {
  padding: clamp(48px, 7vw, 96px) 0;
  background: var(--ink);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}
[data-theme="industrial"] .cta-band { background: var(--accent); color: var(--accent-ink); }
[data-theme="warm"] .cta-band { background: var(--ink-2); color: var(--accent-ink); }
.cta-band-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
}
@media (max-width: 800px) { .cta-band-inner { grid-template-columns: 1fr; } }
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 88px);
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0;
  font-weight: 600;
  text-wrap: balance;
}
[data-theme="editorial"] .cta-band h2 { font-weight: 500; font-style: italic; }
[data-theme="warm"] .cta-band h2 { font-weight: 400; }
.cta-band .btn-primary {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}
.cta-band .btn-primary:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
[data-theme="industrial"] .cta-band .btn-primary { background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink); }
[data-theme="industrial"] .cta-band .btn-primary:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }

/* Вторичная кнопка-телефон внутри CTA-полосы — наследует светлый цвет полосы
   (иначе .btn принудительно ставит тёмный --ink, и кнопка пропадает на тёмном фоне) */
.cta-band .btn:not(.btn-primary) {
  color: inherit;
  border-color: currentColor;
  background: transparent;
}
.cta-band .btn:not(.btn-primary):hover {
  background: color-mix(in oklab, currentColor 12%, transparent);
  border-color: currentColor;
  color: inherit;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: clamp(48px, 6vw, 80px) 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a { color: var(--ink); opacity: 0.78; transition: opacity .2s; font-size: 14px; }
.footer a:hover { opacity: 1; }
.footer-map {
  aspect-ratio: 4 / 3;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.footer-map .map-bg {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg,
      color-mix(in oklab, var(--ink) 4%, transparent) 0 1px,
      transparent 1px 24px),
    repeating-linear-gradient(-45deg,
      color-mix(in oklab, var(--ink) 4%, transparent) 0 1px,
      transparent 1px 24px);
}
.footer-pin {
  position: absolute; left: 56%; top: 48%;
  width: 14px; height: 14px;
  border-radius: 50%; background: var(--hot);
  box-shadow: 0 0 0 6px color-mix(in oklab, var(--hot) 30%, transparent),
              0 0 0 14px color-mix(in oklab, var(--hot) 12%, transparent);
}
.footer-pin::after {
  content: "ФриТаун, ул. Большая Санкт-Петербургская, 12";
  position: absolute; top: -34px; left: 50%; transform: translateX(-50%);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  white-space: nowrap;
  color: var(--ink);
  letter-spacing: 0.05em;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em; color: var(--muted);
  text-transform: uppercase;
}
.social-row { display: flex; gap: 12px; }
.social-icon {
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.social-icon:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ===== SCROLL SCENE — sticky 3D house ===== */
.scroll-scene {
  height: 320vh;
  position: relative;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.scroll-scene-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 var(--pad-x);
}
@media (max-width: 880px) {
  .scroll-scene { height: 260vh; }
  .scroll-scene-sticky { grid-template-columns: 1fr; gap: 24px; padding-top: 80px; }
}

/* Background grid */
.scroll-scene::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, color-mix(in oklab, var(--ink) 6%, transparent) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(to bottom, color-mix(in oklab, var(--ink) 6%, transparent) 1px, transparent 1px) 0 0 / 80px 80px;
  pointer-events: none;
  opacity: 0.6;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

/* Left text column */
.scroll-scene-text {
  position: relative;
  z-index: 2;
  max-width: 540px;
}
.scene-step-num {
  font-family: var(--font-mono);
  font-size: clamp(80px, 12vw, 180px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--accent);
  position: relative;
  height: 1em;
}
.scene-step-num span {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,.3,1);
}
.scene-step-num span.on {
  opacity: 1;
  transform: translateY(0);
}
.scene-step-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 32px 0 16px;
}
.scene-step-titles {
  position: relative;
  min-height: clamp(180px, 24vh, 280px);
}
.scene-step-title {
  position: absolute;
  inset: 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 5.5vw, 76px);
  letter-spacing: -0.03em;
  line-height: 0.96;
  margin: 0;
  font-weight: 600;
  text-wrap: balance;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .8s cubic-bezier(.2,.7,.3,1);
}
[data-theme="editorial"] .scene-step-title { font-weight: 500; }
[data-theme="warm"] .scene-step-title { font-weight: 400; }
.scene-step-title.on {
  opacity: 1;
  transform: translateY(0);
}
.scene-step-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
[data-theme="industrial"] .scene-step-title em { font-style: normal; color: var(--accent); }

/* Scroll progress indicator */
.scroll-scene-track {
  position: absolute;
  left: var(--pad-x);
  bottom: 56px;
  width: clamp(200px, 28vw, 360px);
  height: 2px;
  background: var(--line);
  z-index: 3;
}
.scroll-scene-track-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--accent);
  transition: width .15s linear;
}
.scroll-scene-track-label {
  position: absolute;
  left: 0; bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  width: 100%;
}
@media (max-width: 880px) { .scroll-scene-track { display: none; } }

/* Right house column */
.scroll-scene-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  perspective: 1400px;
  perspective-origin: 50% 50%;
}
.scene-house-bg {
  position: absolute;
  width: clamp(280px, 38vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    color-mix(in oklab, var(--accent) 14%, transparent) 0%,
    transparent 65%);
  filter: blur(20px);
  opacity: 0.7;
  transition: transform .3s linear;
}
.scene-house {
  position: relative;
  width: clamp(280px, 42vw, 620px);
  height: clamp(280px, 42vw, 620px);
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .15s linear;
}
.scene-house svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Floating measurement chips around house */
.scene-chip {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink);
  z-index: 2;
  opacity: 0;
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.3,1);
  white-space: nowrap;
}
.scene-chip.on { opacity: 1; }
.scene-chip-1 { top: 18%; left: 8%; transform: translateY(20px); }
.scene-chip-2 { top: 38%; right: 6%; transform: translateY(20px); }
.scene-chip-3 { bottom: 26%; left: 12%; transform: translateY(20px); }
.scene-chip-4 { bottom: 18%; right: 10%; transform: translateY(20px); }
.scene-chip.on { transform: translateY(0); }

/* Isometric house construction reveal */
.iso-grp {
  opacity: 0;
  transform: translateY(28px) scale(0.96);
  transform-box: fill-box;
  transition: opacity .85s cubic-bezier(.2,.7,.3,1), transform .95s cubic-bezier(.2,.7,.3,1);
}
.iso-grp.on {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.iso-line {
  opacity: 0;
  transition: opacity .6s ease;
}
.iso-line.on { opacity: 0.7; }

.iso-lights > * {
  opacity: 0;
  transition: opacity 1s ease;
}
.iso-lights.on > * {
  opacity: 1;
  animation: isoFlicker 5s ease-in-out infinite;
}
@keyframes isoFlicker {
  0%, 100% { opacity: 0.92; }
  47% { opacity: 0.72; }
  53% { opacity: 0.95; }
}

.iso-smoke {
  transform: translate(218px, 38px);
  opacity: 0;
  transition: opacity 1s ease;
}
.iso-smoke.on {
  opacity: 0.7;
  animation: isoSmokeRise 5s ease-in-out infinite;
}
@keyframes isoSmokeRise {
  0%, 100% { transform: translate(218px, 38px); }
  50% { transform: translate(222px, 32px); }
}

.iso-house {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 30px 40px rgba(14, 23, 34, 0.18));
}
[data-theme="industrial"] .iso-house { filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.5)); }
[data-theme="warm"] .iso-house { filter: drop-shadow(0 30px 40px rgba(42, 31, 18, 0.2)); }

/* ===== /SCROLL SCENE ===== */

/* ===== FLOATING CALL BUTTON ===== */
.fab {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 30;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform .25s ease;
}
.fab:hover { transform: scale(1.08); }
.fab::before {
  content: "";
  position: absolute; inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { opacity: 0.6; transform: scale(0.8); }
  100% { opacity: 0; transform: scale(1.4); }
}

/* ===== MODAL ===== */
.modal-backdrop {
  position: fixed; inset: 0;
  background: color-mix(in oklab, #000 50%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(28px, 4vw, 44px);
  position: relative;
  animation: slideUp .3s cubic-bezier(.2,.7,.3,1);
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--ink);
  transition: all .2s;
}
.modal-close:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.modal h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  font-weight: 600;
}
[data-theme="editorial"] .modal h3 { font-weight: 500; }
[data-theme="warm"] .modal h3 { font-weight: 400; }
.modal p.sub { color: var(--muted); margin: 0 0 28px; font-size: 15px; }
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 15px;
  transition: border-color .2s;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none; border-color: var(--accent);
}
.form-row textarea { resize: vertical; min-height: 96px; }
.form-error { color: var(--hot); font-size: 12px; margin-top: 6px; font-family: var(--font-mono); }
.success-state { padding: 20px 0; text-align: center; }
.success-state .check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}

/* ===== PROJECT DETAILS MODAL ===== */
.pd-modal {
  max-width: 920px;
  padding: 0;
  overflow: hidden;
}
.pd-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 460px;
}
@media (max-width: 760px) {
  .pd-grid { grid-template-columns: 1fr; }
}
.pd-img {
  position: relative;
  background: var(--bg-2);
  min-height: 280px;
  overflow: hidden;
  border-right: 1px solid var(--line);
}
@media (max-width: 760px) {
  .pd-img { border-right: 0; border-bottom: 1px solid var(--line); aspect-ratio: 4/3; min-height: 0; }
}
.pd-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.pd-ph {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg,
      color-mix(in oklab, var(--ink) 6%, transparent) 0 1px,
      transparent 1px 14px);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase;
  text-align: center; padding: 24px;
}
.pd-tag {
  position: absolute; top: 18px; left: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}
.pd-body {
  padding: clamp(24px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 18px;
  overflow-y: auto;
  max-height: 90vh;
}
.pd-eye {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.pd-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 600;
  line-height: 1;
}
[data-theme="editorial"] .pd-title { font-weight: 500; }
[data-theme="warm"] .pd-title { font-weight: 400; }
.pd-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: max-content;     /* flex item w/ overflow:hidden collapses without this */
  flex-shrink: 0;
}
.pd-spec {
  background: var(--bg);
  padding: 16px 16px 22px;
  display: flex; flex-direction: column; gap: 6px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pd-spec-label {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.pd-spec-val {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  padding-bottom: 2px;
}
[data-theme="editorial"] .pd-spec-val { font-weight: 500; }
[data-theme="warm"] .pd-spec-val { font-weight: 400; }
.pd-desc {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  opacity: 0.9;
}
.pd-features {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.pd-features li {
  padding-left: 22px;
  position: relative;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
}
.pd-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 12px; height: 1px;
  background: var(--accent);
}
.pd-actions {
  margin-top: auto;
  padding-top: 8px;
  display: flex; gap: 10px; flex-wrap: wrap;
}
@media (max-width: 760px) {
  .pd-actions .btn { flex: 1; justify-content: center; }
}

/* ===== REVEAL ON SCROLL ===== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SPLIT HERO ANIMATION ===== */
.hero-split .split-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  animation: splitReveal 0.75s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
@keyframes splitReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.split-em-group {
  position: relative;
  display: inline;
}
.split-em-group::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.04em;
  width: 0;
  height: 2px;
  background: var(--accent);
  animation: drawUnderline 0.7s 0.95s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
@keyframes drawUnderline {
  to { width: 100%; }
}
.hero-split .split-word em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
[data-theme="industrial"] .hero-split .split-word em { color: var(--accent); font-style: normal; }
[data-theme="warm"] .hero-split .split-word em { color: var(--accent); }

/* parallax helpers */
.parallax {
  will-change: transform;
}
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* utility */
.row-flex { display: flex; gap: 16px; align-items: center; }
.grow { flex: 1; }
.nowrap { white-space: nowrap; }


/* ===== Card number + gallery count badge (Projects, ForSale) ===== */
.card-img { position: relative; }
.card-num {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(14, 23, 34, 0.78);
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
[data-theme="industrial"] .card-num {
  background: rgba(255,255,255,0.92);
  color: var(--bg);
}
[data-theme="warm"] .card-num {
  background: rgba(42, 31, 18, 0.85);
  color: #fff8ec;
}
.card-photos {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(14, 23, 34, 0.72);
  color: #fff;
}
[data-theme="industrial"] .card-photos {
  background: rgba(255,255,255,0.85);
  color: var(--bg);
}

/* ===== ForSale tabs ===== */
.fs-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 24px 0 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.fs-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.18s ease;
}
.fs-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.fs-tab.on {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.fs-tab-count {
  font-size: 11px;
  opacity: 0.7;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0,0,0,0.08);
}
.fs-tab.on .fs-tab-count {
  background: rgba(255,255,255,0.18);
  opacity: 1;
}

/* ===== ForSale grid ===== */
.fs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.fs-card-eye {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.fs-card-addr {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 12px;
}
.fs-tag-mortgage {
  background: var(--accent);
  color: var(--accent-ink);
}
.pd-addr {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 12px;
}
.pd-num {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(14, 23, 34, 0.78);
  color: #fff;
}

/* ===== Gallery (внутри модалок) ===== */
.gal {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gal-main {
  position: relative;
  flex: 1;
  min-height: 300px;
  background: var(--bg-2);
  border-radius: var(--radius);
  overflow: hidden;
}
.gal-main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.gal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  background: rgba(14,23,34,0.62);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
  z-index: 2;
  transition: background 0.15s ease, transform 0.15s ease;
}
.gal-nav:hover { background: rgba(14,23,34,0.85); transform: translateY(-50%) scale(1.05); }
.gal-nav.left { left: 12px; }
.gal-nav.right { right: 12px; }
.gal-count {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  font-size: 12px;
  padding: 4px 10px;
  background: rgba(14,23,34,0.72);
  color: #fff;
  border-radius: 999px;
}
.gal-thumbs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.gal-thumb {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: var(--bg-2);
}
.gal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gal-thumb.on {
  border-color: var(--accent);
}

/* ===== Price breakdown (внутри карточки проекта) ===== */
.pd-breakdown {
  margin: 18px 0 20px;
  padding: 16px 18px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.pd-breakdown-head {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.pd-breakdown-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pd-breakdown-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
}
.pd-breakdown-k { color: var(--ink); }
.pd-breakdown-dots {
  flex: 1;
  border-bottom: 1px dotted var(--line-strong);
  transform: translateY(-3px);
  min-width: 12px;
}
.pd-breakdown-v {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

/* ===== Mortgage calculator (внутри карточек) ===== */
.mc {
  margin: 18px 0 22px;
  padding: 20px;
  background: var(--bg-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.mc-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.mc-eye {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.mc-cap {
  font-size: 11px;
  color: var(--muted);
  max-width: 30ch;
  text-align: right;
  letter-spacing: 0.02em;
}
.mc-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}
.mc-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mc-field-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
}
.mc-field-head label {
  color: var(--ink);
  font-weight: 500;
}
.mc-v {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.mc input[type="range"] {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--line-strong);
  border-radius: 4px;
  outline: 0;
  cursor: pointer;
}
.mc input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 999px;
  cursor: pointer;
  border: 2px solid var(--bg);
  box-shadow: 0 1px 3px rgba(14, 23, 34, 0.18);
}
.mc input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 999px;
  cursor: pointer;
  border: 2px solid var(--bg);
  box-shadow: 0 1px 3px rgba(14, 23, 34, 0.18);
}
.mc-result {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  align-items: end;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.mc-result-main { display: flex; flex-direction: column; gap: 4px; }
.mc-result-eye {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.mc-result-num {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 600;
  line-height: 1.05;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--accent);
}
.mc-result-num small {
  font-size: 0.42em;
  color: var(--muted);
  font-weight: 500;
  font-family: var(--font-text);
  letter-spacing: 0;
  margin-left: 4px;
}
.mc-result-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
}
.mc-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}
.mc-row span:last-child { color: var(--ink); }
@media (max-width: 600px) {
  .mc-result { grid-template-columns: 1fr; gap: 14px; }
  .mc-cap { text-align: left; max-width: 100%; }
  .mc-head { padding-bottom: 12px; margin-bottom: 14px; }
}

/* In industrial (dark) theme — invert calc surface to read well */
[data-theme="industrial"] .mc {
  background: var(--bg-2);
  border-color: var(--line-strong);
}
[data-theme="industrial"] .mc-row span:last-child { color: var(--ink-2); }
[data-theme="warm"] .mc {
  background: #fff8ec;
}

/* ===== Services section ===== */
.srv-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 28px;
}
@media (max-width: 880px) {
  .srv-grid { grid-template-columns: 1fr; }
}
.srv-picker {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.srv-pick {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 18px 18px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  color: var(--ink);
  transition: all 0.18s ease;
  font-family: inherit;
}
.srv-pick:hover {
  border-color: var(--accent);
  transform: translateX(2px);
}
.srv-pick.on {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
[data-theme="industrial"] .srv-pick.on {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.srv-pick-num {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.55;
}
.srv-pick.on .srv-pick-num { opacity: 0.85; }
.srv-pick-body { display: flex; flex-direction: column; gap: 4px; }
.srv-pick-eye {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.6;
}
.srv-pick-label {
  font-size: 18px;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}
.srv-pick-arrow {
  font-size: 18px;
  opacity: 0.5;
}
.srv-pick.on .srv-pick-arrow { opacity: 1; }
.srv-detail {
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.srv-detail-eye {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.srv-detail-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  line-height: 1.05;
}
.srv-detail-desc {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 24px;
  max-width: 56ch;
}
.srv-list {
  margin: 0 0 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.srv-list li {
  padding: 6px 0;
}

/* ===== make pd-img a positioned container for num badge ===== */
.pd-img { position: relative; }
.pd-img > .pd-tag, .pd-img > .pd-num { z-index: 4; }

/* Widen project / for-sale modal — fill most of the viewport */
.pd-modal {
  max-width: min(1600px, 98vw);
  width: 98vw;
  max-height: 96vh;
}
.pd-grid {
  grid-template-columns: 1.55fr 1fr;
  min-height: min(840px, 94vh);
}
@media (max-width: 760px) {
  .pd-grid { grid-template-columns: 1fr; min-height: 0; }
}
.pd-img {
  min-height: 760px;
  padding: 0;
}
@media (max-width: 760px) {
  .pd-img { min-height: 0; aspect-ratio: 4 / 3; padding: 0; }
}
.pd-body { max-height: 94vh; }

/* Gallery lives inside .pd-img — reset the broad `.pd-img img` absolute rule
   for thumbnails so they don't stretch over the main image and steal clicks. */
.pd-img .gal { padding: 16px; gap: 10px; }
.pd-img .gal-main { border-radius: 8px; }
.pd-img .gal-main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pd-img .gal-thumb { position: relative; flex: 0 0 72px; width: 72px; height: 72px; }
.pd-img .gal-thumb img {
  position: relative;        /* override .pd-img img { position: absolute } */
  inset: auto;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gal-nav { z-index: 5; width: 44px; height: 44px; font-size: 24px; }
.gal-count { z-index: 5; }
