/* ============================================================
   Уют 21 — Разлог · style.css  (v2 — workshop / craftsman)
   White base, charcoal ink, crimson accent from the business
   card, condensed industrial display type.
   ============================================================ */

:root {
  --white:        #FFFFFF;
  --paper:        #F7F7F5;      /* secondary surface */
  --ink:          #1E1A18;      /* charcoal */
  --ink-2:        #6E6560;      /* muted */
  --draw:         #2B2320;      /* house drawing ink */
  --brown:        #603C43;      /* logo ink */
  --crimson:      #CE2246;
  --crimson-deep: #A51634;
  --dark:         #191412;      /* dark sections */
  --line:         rgba(30, 26, 24, .18);
  --line-soft:    rgba(30, 26, 24, .10);
  --shadow-sm:    0 2px 10px rgba(30, 26, 24, .07);
  --shadow-md:    0 14px 38px rgba(30, 26, 24, .14);
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body:    "Manrope", "Helvetica Neue", Arial, sans-serif;
  --radius:       10px;
  --container:    1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--crimson); text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display); font-weight: 600; line-height: 1.08;
  margin: 0 0 .5em; color: var(--ink); text-transform: uppercase; letter-spacing: .015em;
}
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.center { text-align: center; margin-top: 44px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  text-transform: uppercase; letter-spacing: .09em;
  padding: 14px 28px; border-radius: 6px; border: 2px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--crimson); color: #fff; box-shadow: 0 6px 18px rgba(206, 34, 70, .28); }
.btn-primary:hover { background: var(--crimson-deep); transform: translateY(-2px); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-outline-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.btn-lg { padding: 17px 34px; font-size: 16px; }
.btn-sm { padding: 10px 20px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* ---------- topbar ---------- */
.topbar { background: var(--dark); color: rgba(255,255,255,.8); font-size: 14px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar-note { margin: 0; display: flex; align-items: center; gap: 8px; }
.topbar .dot { width: 7px; height: 7px; border-radius: 50%; background: #74c69d; box-shadow: 0 0 0 3px rgba(116,198,157,.22); flex: none; }
.topbar-tel { color: #fff; font-weight: 700; display: inline-flex; align-items: center; gap: 7px; }
.topbar-tel svg { width: 15px; height: 15px; }
.viber-hint { font-weight: 500; color: rgba(255,255,255,.55); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-in { display: flex; align-items: center; gap: 28px; padding-top: 13px; padding-bottom: 13px; }
.brand { flex: none; color: var(--brown); }
.brand-logo { height: 44px; width: auto; }
.main-nav { display: flex; gap: 26px; margin-left: auto; }
.nav-link {
  color: var(--ink); font-family: var(--font-display); font-weight: 500;
  text-transform: uppercase; letter-spacing: .07em; font-size: 14.5px;
  position: relative; padding: 4px 0;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--crimson); transition: right .22s ease;
}
.nav-link:hover::after, .nav-link.is-active::after { right: 0; }
.header-cta { flex: none; }
.burger { display: none; }

/* ---------- mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 80; background: var(--white);
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: 90px 28px 48px;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
body.menu-open .site-header { z-index: 95; }
.mobile-nav { display: flex; flex-direction: column; }
.m-link {
  font-family: var(--font-display); font-weight: 600; font-size: 30px; color: var(--ink);
  text-transform: uppercase; letter-spacing: .03em;
  padding: 14px 0; border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: baseline; gap: 14px;
}
.m-link span { font-size: 13px; color: var(--crimson); font-weight: 500; letter-spacing: .1em; }
.m-link:last-child { border-bottom: 0; }
.mobile-menu-cta { display: flex; flex-direction: column; gap: 12px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(rgba(30,26,24,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,26,24,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.hero-in {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 56px; align-items: center; padding-top: 76px; padding-bottom: 88px;
}
.hero-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.hero-tags li {
  font-family: var(--font-display); font-size: 12.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .14em; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 4px; padding: 5px 12px;
}
.hero h1 {
  font-size: clamp(44px, 5.4vw, 76px); font-weight: 700; letter-spacing: .01em;
  line-height: 1.02; margin-bottom: 24px;
}
.hero h1 span { display: block; color: var(--crimson); margin-top: .08em; }
.hero-sub { font-size: 18px; color: var(--ink-2); max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 38px; }

/* ruler divider + facts */
.hero-ruler {
  height: 14px; max-width: 520px; border-bottom: 2px solid var(--ink);
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px 10px) left bottom / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px 50px) left bottom / 100% 12px no-repeat;
  margin-bottom: 16px;
}
.hero-facts { list-style: none; display: flex; gap: 34px; flex-wrap: wrap; max-width: 560px; }
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; font-size: 17px; color: var(--ink);
}
.hero-facts span { font-size: 13.5px; color: var(--ink-2); }

/* hero media — annotated drawing-board composition */
.hero-media { position: relative; padding: 34px 0 46px 34px; }
.hero-bigword {
  position: absolute; top: -36px; right: -10px; z-index: 0;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(120px, 13vw, 190px);
  line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(30,26,24,.10);
  letter-spacing: .05em; pointer-events: none; user-select: none;
}
.hero-main { position: relative; margin: 0; z-index: 1; filter: drop-shadow(0 16px 30px rgba(30, 26, 24, .16)); }
.hero-main::after {
  content: ""; position: absolute; inset: 0;
  border: 1px solid rgba(30,26,24,.14); pointer-events: none;
  clip-path: polygon(0 0, calc(100% - 52px) 0, 100% 52px, 100% 100%, 0 100%);
}
.hero-main img {
  width: 100%; height: auto; aspect-ratio: 16 / 11; object-fit: cover;
  clip-path: polygon(0 0, calc(100% - 52px) 0, 100% 52px, 100% 100%, 0 100%);
}
.dim { position: absolute; stroke: var(--ink-2); stroke-width: 1.5; opacity: .85; }
.dim-top { top: -26px; left: 0; width: calc(100% - 60px); height: 22px; }
.dim-left { left: -26px; top: 0; height: 100%; width: 22px; }
.dim-label {
  position: absolute; font-family: var(--font-display); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .22em; color: var(--ink-2); background: var(--white);
  padding: 0 8px;
}
.dim-label-top { top: -34px; left: 50%; transform: translateX(-70%); }
.dim-label-left { left: -34px; top: 8%; transform: rotate(180deg); writing-mode: vertical-rl; }
.hero-detail {
  position: absolute; z-index: 2; margin: 0;
  left: -6px; bottom: -8px; width: 200px;
  border: 5px solid var(--white); border-left: 5px solid var(--crimson);
  box-shadow: var(--shadow-md); background: var(--white);
}
.hero-detail img { width: 100%; height: 150px; object-fit: cover; }
.hero-detail figcaption {
  font-family: var(--font-display); font-size: 10.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2);
  padding: 7px 4px 3px;
}
.hero-plate {
  position: absolute; z-index: 2; right: 14px; bottom: 6px;
  background: var(--dark); color: #fff; display: flex; align-items: center; gap: 12px;
  padding: 12px 18px; border-radius: 6px; box-shadow: var(--shadow-md);
}
.hero-plate img { width: 54px; filter: brightness(0) invert(1); opacity: .9; }
.hero-plate span {
  font-family: var(--font-display); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .13em; line-height: 1.5; color: rgba(255,255,255,.85);
}

/* ---------- stats strip ---------- */
.stats-band { border-bottom: 1px solid var(--line-soft); background: var(--white); }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat {
  padding: 30px 26px; border-left: 1px solid var(--line-soft);
  display: flex; align-items: center; gap: 16px;
}
.stat:last-child { border-right: 1px solid var(--line-soft); }
.stat strong {
  font-family: var(--font-display); font-weight: 700; font-size: 42px; line-height: 1;
  color: var(--crimson); white-space: nowrap;
}
.stat span { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; font-weight: 600; }

/* ---------- marquee ---------- */
.marquee { background: var(--dark); color: rgba(255,255,255,.9); overflow: hidden; padding: 12px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.marquee-track span {
  font-family: var(--font-display); font-weight: 500; text-transform: uppercase;
  font-size: 15px; letter-spacing: .18em; white-space: nowrap;
}
.marquee-track i { font-style: normal; color: var(--crimson); padding: 0 .5em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 100px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 13px; letter-spacing: .22em;
  text-transform: uppercase; font-weight: 500; color: var(--crimson); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--crimson); flex: none; }
.section-head h2 { font-size: clamp(32px, 3.8vw, 52px); font-weight: 700; }
.section-head .lead { font-size: 18px; color: var(--ink-2); margin-bottom: 0; }

/* ---------- services (workshop index) ---------- */
.svc-index { border-top: 2px solid var(--ink); }
.svc-row {
  display: grid; grid-template-columns: 110px minmax(0, 1fr) 250px 150px;
  gap: 30px; align-items: center;
  padding: 30px 0; border-bottom: 1px solid var(--line);
  position: relative; transition: background .2s ease;
}
.svc-row:hover { background: var(--paper); }
.svc-num {
  font-family: var(--font-display); font-weight: 700; font-size: 46px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--ink-2);
  transition: all .2s ease; padding-left: 8px;
}
.svc-row:hover .svc-num { color: var(--crimson); -webkit-text-stroke: 1.5px var(--crimson); }
.svc-info h3 { font-size: 24px; margin-bottom: 8px; }
.svc-info p { color: var(--ink-2); font-size: 15.5px; margin-bottom: 14px; max-width: 480px; }
.svc-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-tags li {
  font-family: var(--font-display); font-size: 11.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em; color: var(--ink);
  border: 1px solid var(--line); border-radius: 4px; padding: 4px 10px; background: var(--white);
}
.svc-thumb { overflow: hidden; border-radius: 6px; aspect-ratio: 4 / 2.9; }
.svc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.svc-row:hover .svc-thumb img { transform: scale(1.06); }
.svc-more {
  justify-self: end; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  text-transform: uppercase; letter-spacing: .08em; color: var(--ink); padding: 10px 8px;
}
.svc-more::after { content: ""; position: absolute; inset: 0; }
.svc-more:hover { color: var(--crimson); }

/* ---------- planner ---------- */
.planner-section {
  background:
    linear-gradient(rgba(30,26,24,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,26,24,.04) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.planner {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 34px; align-items: start;
}
.planner-house {
  background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px 24px; box-shadow: var(--shadow-sm);
  position: sticky; top: 96px;
}
.reg { position: absolute; width: 16px; height: 16px; pointer-events: none; }
.reg::before, .reg::after { content: ""; position: absolute; background: var(--crimson); }
.reg::before { left: 50%; top: 0; bottom: 0; width: 1.5px; transform: translateX(-50%); }
.reg::after { top: 50%; left: 0; right: 0; height: 1.5px; transform: translateY(-50%); }
.reg-tl { top: 10px; left: 10px; }
.reg-br { bottom: 10px; right: 10px; }
.house-title {
  font-family: var(--font-display); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .22em; color: var(--ink-2);
  margin: 0 0 10px; text-align: center;
}
.house-svg { width: 100%; height: auto; display: block; }
.house-svg .ink { stroke: var(--draw); stroke-width: 5.5; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.house-svg .ink.thin { stroke-width: 3.5; opacity: .7; }
.house-svg .ink-fill { fill: var(--draw); }
.house-svg .hit { fill: transparent; transition: fill .2s ease; }
.house-svg .zone { cursor: pointer; outline: none; }
.house-svg .zone:hover .hit, .house-svg .zone:focus-visible .hit { fill: rgba(206,34,70,.06); }
.house-svg .zone:focus-visible .zlabel rect { stroke: var(--crimson); stroke-width: 2.5; }
.house-svg .zone.is-on .hit { fill: rgba(206,34,70,.11); }
.house-svg .zone.is-on .art .ink { stroke: var(--crimson); }
.house-svg .zone.is-on .art .ink-fill { fill: var(--crimson); }
.house-svg .zlabel rect { fill: var(--white); stroke: var(--draw); stroke-width: 1.6; transition: all .2s ease; }
.house-svg .zlabel text {
  fill: var(--ink); font-family: var(--font-body); font-size: 17px; font-weight: 700;
  text-anchor: middle; dominant-baseline: central;
}
.house-svg .zlabel .zmark { fill: var(--crimson); font-weight: 800; }
.house-svg .zone.is-on .zlabel rect { fill: var(--crimson); stroke: var(--crimson); }
.house-svg .zone.is-on .zlabel text, .house-svg .zone.is-on .zlabel .zmark { fill: #fff; }

.zone-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pill {
  font-family: var(--font-display); font-size: 12.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line); border-radius: 5px;
  padding: 9px 15px; cursor: pointer; transition: all .18s ease;
}
.pill:hover { border-color: var(--crimson); color: var(--crimson); }
.pill.is-on { background: var(--crimson); border-color: var(--crimson); color: #fff; }
.pill.is-on::before { content: "✓ "; }

.planner-panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-md);
  border-top: 4px solid var(--crimson);
}
.panel-status {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-size: 12.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em;
  color: #2e6b4f; background: rgba(116,198,157,.14); border-radius: 5px;
  padding: 7px 14px; margin-bottom: 18px; width: fit-content;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #38a169; flex: none; animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(56,161,105,.5); } 70% { box-shadow: 0 0 0 8px rgba(56,161,105,0); } 100% { box-shadow: 0 0 0 0 rgba(56,161,105,0); } }
.panel-title { font-size: 27px; margin-bottom: 14px; }
.plan-list { list-style: none; margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.plan-empty {
  color: var(--ink-2); font-size: 15px; background: var(--paper);
  border: 1.5px dashed var(--line); border-radius: 8px; padding: 14px 16px;
}
.plan-item {
  display: flex; gap: 10px; align-items: flex-start; background: var(--paper);
  border: 1px solid var(--line-soft); border-left: 3px solid var(--crimson);
  border-radius: 8px; padding: 10px 14px; animation: planIn .25s ease;
}
@keyframes planIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.plan-item strong { display: block; font-size: 15px; }
.plan-item small { color: var(--ink-2); font-size: 13px; line-height: 1.45; display: block; }
.plan-item .pi-check { color: var(--crimson); font-weight: 800; margin-top: 1px; }

.value-stack {
  background: var(--paper); border: 1px solid var(--line-soft); border-left: 3px solid var(--crimson);
  border-radius: 8px; padding: 16px 18px; margin-bottom: 22px;
}
.vs-title {
  font-family: var(--font-display); font-weight: 600; font-size: 13.5px;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; color: var(--crimson-deep);
}
.value-stack ul { list-style: none; }
.value-stack li { font-size: 14.5px; padding-left: 22px; position: relative; margin-bottom: 5px; }
.value-stack li::before { content: "✓"; position: absolute; left: 0; font-weight: 800; color: var(--crimson); }

.plan-form .form-row { margin-bottom: 14px; }
.plan-form label, .plan-form .label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.req { color: var(--crimson); }
.plan-form input[type="text"], .plan-form input[type="tel"] {
  width: 100%; font-family: var(--font-body); font-size: 16px; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line); border-radius: 6px;
  padding: 12px 14px; transition: border-color .18s ease;
}
.plan-form input:focus { outline: none; border-color: var(--crimson); }
.radio-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-pills label { display: block; margin: 0; }
.radio-pills input { position: absolute; opacity: 0; pointer-events: none; }
.radio-pills span {
  display: inline-block; font-size: 13.5px; font-weight: 700; padding: 8px 14px;
  border: 1.5px solid var(--line); border-radius: 5px; cursor: pointer; transition: all .15s ease;
}
.radio-pills input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.radio-pills input:focus-visible + span { outline: 2px solid var(--crimson); outline-offset: 2px; }
.plan-form .btn { margin-top: 6px; }
.form-note { font-size: 13px; color: var(--ink-2); text-align: center; margin: 12px 0 0; }
.hp { position: absolute; left: -9999px; }

.form-success { text-align: center; padding: 26px 6px 10px; }
.fs-icon {
  width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 6px;
  background: var(--crimson); color: #fff; font-size: 30px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(206,34,70,.35);
}
.form-success h4 { font-size: 24px; }
.fs-alt { font-size: 14.5px; color: var(--ink-2); }
.fs-alt a { font-weight: 800; }

/* ---------- projects ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.g-item {
  position: relative; margin: 0; border-radius: 8px; overflow: hidden;
  cursor: zoom-in; box-shadow: var(--shadow-sm); aspect-ratio: 4 / 4.4;
  border: 1px solid var(--line-soft); background: var(--paper);
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.g-item:hover img { transform: scale(1.05); }
.g-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 46px 18px 16px;
  background: linear-gradient(transparent, rgba(25,20,18,.85));
  color: #fff; font-weight: 700; font-size: 16px;
  display: flex; flex-direction: column; gap: 7px; align-items: flex-start;
}
.g-tag {
  font-family: var(--font-display); font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; font-weight: 500;
  background: var(--crimson); color: #fff; border-radius: 4px; padding: 3px 9px;
}

/* ---------- process (staircase) ---------- */
.process-section { background: var(--dark); }
.process-section .eyebrow { color: #E8637F; }
.process-section .eyebrow::before { background: #E8637F; }
.process-section h2 { color: #fff; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step {
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 28px 24px;
  transition: background .25s ease, transform .25s ease;
}
.step:hover { background: rgba(255,255,255,.09); transform: translateY(-4px); }
.step:nth-child(1) { margin-top: 96px; }
.step:nth-child(2) { margin-top: 64px; }
.step:nth-child(3) { margin-top: 32px; }
.step:nth-child(4) { margin-top: 0; }
.step-num {
  font-family: var(--font-display); font-size: 14px; font-weight: 600; letter-spacing: .08em;
  color: #fff; background: var(--crimson); border-radius: 4px; padding: 5px 12px;
  display: inline-block; margin-bottom: 16px;
}
.step h3 { color: #fff; font-size: 21px; }
.step p { color: rgba(255,255,255,.68); font-size: 15px; margin: 0; }

/* ---------- about ---------- */
.about-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 60px; align-items: center; }
.about-photo { position: relative; }
.about-photo img { border-radius: 8px; box-shadow: var(--shadow-md); width: 100%; }
.about-stamp {
  position: absolute; right: -22px; bottom: -22px; width: 108px; height: 108px;
  background: var(--white); border: 1px solid var(--line); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); padding: 22px; transform: rotate(-8deg);
  color: var(--brown);
}
.about-stamp img { opacity: .9; }
.about-copy h2 { font-size: clamp(30px, 3.4vw, 46px); }
.about-copy > p { color: var(--ink-2); }
.about-copy blockquote { margin: 26px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--crimson); }
.about-copy blockquote p { font-size: 20px; font-weight: 600; color: var(--ink); margin-bottom: 8px; line-height: 1.45; }
.about-copy cite { font-style: normal; font-size: 14.5px; font-weight: 700; color: var(--ink-2); }
.about-facts { list-style: none; margin: 0 0 28px; }
.about-facts li { padding-left: 26px; position: relative; margin-bottom: 8px; font-weight: 600; font-size: 15.5px; }
.about-facts li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 10px; height: 10px; background: var(--crimson); border-radius: 2px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; background: var(--dark);
  color: #fff; overflow: hidden; text-align: center; padding: 100px 0;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 56px 56px; pointer-events: none;
}
.cta-watermark {
  position: absolute; right: -60px; bottom: -70px; width: 480px; opacity: .07;
  filter: brightness(0) invert(1); pointer-events: none;
}
.cta-in { position: relative; }
.cta-in .eyebrow { justify-content: center; }
.cta-in h2 { color: #fff; font-size: clamp(34px, 4.4vw, 60px); margin-bottom: 12px; }
.cta-sub { color: rgba(255,255,255,.75); font-size: 18px; margin-bottom: 34px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- footer ---------- */
.site-footer { background: #120E0C; color: rgba(255,255,255,.72); }
.footer-in {
  display: grid; grid-template-columns: 1.1fr .7fr 1fr 1.25fr; gap: 36px;
  padding-top: 52px; padding-bottom: 36px; align-items: start;
}
.footer-logo { height: 40px; width: auto; filter: brightness(0) invert(1); opacity: .92; }
.footer-brand p { font-size: 13px; margin-top: 12px; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .1em; font-family: var(--font-display); font-weight: 400; }
.footer-nav { display: flex; flex-direction: column; gap: 9px; }
.footer-nav a {
  color: rgba(255,255,255,.78); font-family: var(--font-display); font-size: 14px;
  font-weight: 500; text-transform: uppercase; letter-spacing: .08em;
}
.footer-nav a:hover { color: #fff; }
.footer-contact { font-size: 14.5px; line-height: 1.9; }
.footer-contact a { color: #fff; font-weight: 700; }
.footer-base { border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; padding-bottom: 22px; }
.footer-base p { font-size: 13px; color: rgba(255,255,255,.4); margin: 0; }

/* ---------- dev modal & lightbox ---------- */
.modal, .lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden], .lightbox[hidden] { display: none; }
.modal-backdrop, .lightbox-backdrop { position: absolute; inset: 0; background: rgba(25,20,18,.66); backdrop-filter: blur(3px); }
.modal-card {
  position: relative; background: var(--white); border-radius: 12px; max-width: 440px; width: 100%;
  padding: 40px 34px 34px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.35);
  border-top: 4px solid var(--crimson);
  animation: modalIn .28s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-x {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  font-size: 15px; cursor: pointer; transition: all .15s ease;
}
.modal-x:hover { background: var(--ink); color: #fff; }
.modal-mark { width: 100px; margin: 0 auto 16px; color: var(--brown); opacity: .9; }
.modal-kicker {
  font-family: var(--font-display); font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase; font-weight: 500; color: var(--crimson); margin-bottom: 8px;
}
.modal-card h3 { font-size: 27px; }
.modal-text { color: var(--ink-2); font-size: 15.5px; margin-bottom: 0; }
.modal-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }

.lightbox-figure { position: relative; margin: 0; max-width: min(1000px, 92vw); max-height: 88vh; display: flex; flex-direction: column; }
.lightbox-figure img {
  max-height: 78vh; width: auto; max-width: 100%; margin: 0 auto; border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.lightbox-figure figcaption { color: #fff; text-align: center; padding-top: 14px; font-size: 15.5px; }
.lb-x { top: -14px; right: -8px; z-index: 2; }

/* ---------- reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }
.reveal.d4 { transition-delay: .4s; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .stats-in { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 0 !important; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(n) { margin-top: 0; }
  .planner { grid-template-columns: 1fr; }
  .planner-house { position: relative; top: auto; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .svc-row { grid-template-columns: 70px minmax(0, 1fr) 210px; }
  .svc-more { grid-column: 2; justify-self: start; }
}

@media (max-width: 900px) {
  .main-nav, .header-cta { display: none; }
  .burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    margin-left: auto; width: 46px; height: 46px; padding: 11px;
    background: transparent; border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
  }
  .burger span { display: block; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
  .burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .burger.is-open span:nth-child(2) { opacity: 0; }
  .burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .burger.is-open { position: relative; z-index: 90; }

  .hero-in { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 60px; gap: 52px; }
  .hero-sub { max-width: none; }
  .hero-media { padding: 26px 0 40px 26px; max-width: 560px; }
  .hero-bigword { top: -22px; }
  .about-in { grid-template-columns: 1fr; gap: 44px; }
  .about-photo { max-width: 420px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }

  .topbar-in { justify-content: center; padding-top: 10px; padding-bottom: 10px; }
  .topbar-note { display: none; }

  /* breathing room around the navbar */
  .header-in { padding-top: 18px; padding-bottom: 18px; }
  .brand-logo { height: 38px; }

  /* single-row buttons go full width on mobile */
  .hero-actions, .cta-actions, .modal-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn, .cta-actions .btn, .center .btn, .about-copy .btn, .modal-actions .btn { width: 100%; }

  .hero-in { padding-top: 46px; padding-bottom: 56px; gap: 46px; }

  /* trade list: one quiet line instead of four boxes */
  .hero-tags { justify-content: center; gap: 0; margin-bottom: 22px; }
  .hero-tags li {
    border: 0; padding: 0; font-size: 10.5px; letter-spacing: .14em;
    color: var(--ink-2); display: inline-flex; align-items: center;
  }
  .hero-tags li:not(:last-child)::after {
    content: "◆"; color: var(--crimson); font-size: 6px; margin: 0 9px; opacity: .85;
  }

  .hero h1 { font-size: clamp(38px, 11vw, 52px); }
  .hero-sub { font-size: 16.5px; }
  .hero-ruler { margin-left: auto; margin-right: auto; }
  .hero-facts { gap: 14px 24px; justify-content: center; }
  .hero-media { padding: 22px 0 36px 22px; }
  .hero-detail { width: 150px; }
  .hero-detail img { height: 110px; }
  .hero-plate { right: 8px; bottom: 2px; padding: 9px 13px; gap: 9px; }
  .hero-plate img { width: 42px; }
  .hero-plate span { font-size: 10.5px; }
  .dim-label-top { transform: translateX(-50%); }

  .stats-in { grid-template-columns: repeat(2, 1fr); }
  .stat {
    padding: 20px 14px; gap: 4px;
    flex-direction: column; align-items: center; text-align: center;
  }
  .stat strong { font-size: 30px; }
  .stat span { font-size: 12.5px; }

  .marquee-track span { font-size: 13px; }

  .svc-row { grid-template-columns: 1fr; gap: 16px; padding: 26px 0; }
  .svc-num { font-size: 38px; padding-left: 0; }
  .svc-thumb { aspect-ratio: 16 / 9; order: -1; }
  .svc-info p { max-width: none; }
  .svc-more { justify-self: start; grid-column: 1; padding-left: 0; }

  .planner-house { padding: 20px 14px 16px; }
  .house-title { font-size: 10.5px; }
  .house-svg .zlabel text { font-size: 22px; }
  .planner-panel { padding: 22px 18px; }
  .panel-title { font-size: 23px; }

  .gallery { grid-template-columns: 1fr; gap: 16px; }
  .g-item { aspect-ratio: 4 / 3.1; }

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

  .about-stamp { width: 86px; height: 86px; right: -8px; bottom: -16px; padding: 17px; }

  .cta-band { padding: 68px 0; }

  /* ---- centered typography on mobile ---- */
  .hero-copy, .section-head, .svc-row, .step, .about-copy,
  .panel-title, .house-title, .form-success { text-align: center; }
  .eyebrow { justify-content: center; }
  .svc-tags, .zone-pills, .radio-pills { justify-content: center; }
  .svc-more { justify-self: center; padding-left: 0; }
  .panel-status { margin-left: auto; margin-right: auto; }
  .stat { justify-content: center; }
  .g-item figcaption { align-items: center; text-align: center; }

  /* quote reads better with the rule on top when centered */
  .about-copy blockquote {
    border-left: 0; border-top: 3px solid var(--crimson);
    padding: 18px 0 0; margin: 24px 0;
  }
  /* marker inline so centered list items stay balanced */
  .about-facts li { padding-left: 0; }
  .about-facts li::before {
    position: static; display: inline-block; margin-right: 9px;
    vertical-align: middle; top: auto; left: auto;
  }

  /* left-aligned on purpose: things you read to act on */
  .value-stack, .plan-list, .plan-form .form-row { text-align: left; }

  /* minimal footer on mobile */
  .footer-in { grid-template-columns: 1fr; gap: 22px; padding-top: 36px; padding-bottom: 22px; text-align: center; }
  .footer-logo { margin: 0 auto; }
  .footer-nav { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px 18px; }
  .footer-contact { font-size: 14px; line-height: 1.8; }
  .footer-base { text-align: center; }
}

@media (max-width: 380px) {
  .hero-detail { display: none; }
}

/* ============================================================
   SUBPAGES — page heroes & components
   ============================================================ */

/* ---------- breadcrumbs ---------- */
.crumbs {
  list-style: none; display: flex; flex-wrap: wrap; gap: 7px;
  font-family: var(--font-display); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; font-weight: 500; color: var(--ink-2); margin-bottom: 22px;
}
.crumbs li { display: flex; align-items: center; gap: 7px; }
.crumbs li:not(:last-child)::after { content: "/"; opacity: .45; }
.crumbs a { color: inherit; transition: color .15s ease; }
.crumbs a:hover { color: var(--crimson); }
.crumbs [aria-current] { color: var(--crimson); }
.on-dark .crumbs { color: rgba(255,255,255,.6); }
.on-dark .crumbs [aria-current] { color: #fff; }

/* ---------- page hero base ---------- */
.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.page-hero h1 { font-size: clamp(38px, 4.6vw, 66px); font-weight: 700; line-height: 1.03; margin-bottom: 18px; }
.page-hero h1 span { color: var(--crimson); }
.ph-sub { font-size: 18px; color: var(--ink-2); max-width: 580px; margin-bottom: 30px; }
.on-dark h1, .on-dark h2 { color: #fff; }
.on-dark .ph-sub { color: rgba(255,255,255,.78); }
.on-dark .hero-tags li { color: rgba(255,255,255,.75); border-color: rgba(255,255,255,.25); }
.grid-bg {
  background:
    linear-gradient(rgba(30,26,24,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,26,24,.035) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* ---------- hero: catalog (/uslugi) ---------- */
.ph-catalog-in {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 84px;
}
.catalog-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 26px 28px 10px; border-top: 4px solid var(--crimson);
}
.cc-title {
  font-family: var(--font-display); font-size: 12px; font-weight: 500; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-2); margin: 0 0 6px; display: flex; align-items: center; gap: 12px;
}
.cc-title::after { content: ""; flex: 1; height: 2px; background: var(--line-soft); }
.cc-row {
  display: flex; align-items: baseline; gap: 14px; padding: 18px 0;
  border-bottom: 1px solid var(--line-soft); color: var(--ink);
}
.cc-row:last-child { border-bottom: 0; }
.cc-row i {
  font-style: normal; font-family: var(--font-display); font-weight: 700; font-size: 21px;
  color: transparent; -webkit-text-stroke: 1.2px var(--ink-2); transition: all .18s ease;
}
.cc-row b {
  font-family: var(--font-display); font-weight: 600; font-size: 17px;
  text-transform: uppercase; letter-spacing: .04em; transition: color .18s ease;
}
.cc-lead { flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-4px); min-width: 24px; }
.cc-go { font-weight: 800; color: var(--ink-2); transition: color .18s ease, transform .18s ease; }
.cc-row:hover i { color: var(--crimson); -webkit-text-stroke-color: var(--crimson); }
.cc-row:hover b, .cc-row:hover .cc-go { color: var(--crimson); }
.cc-row:hover .cc-go { transform: translateX(4px); }

/* ---------- hero: full-bleed photo (service) ---------- */
.ph-photo { background: var(--dark); }
.ph-photo .ph-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-photo .ph-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(25,20,18,.9) 0%, rgba(25,20,18,.62) 48%, rgba(25,20,18,.28) 100%),
    linear-gradient(rgba(25,20,18,.35), rgba(25,20,18,.15) 40%, rgba(25,20,18,.55));
}
.ph-num {
  position: absolute; top: 2px; right: 18px; z-index: 1;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(130px, 18vw, 250px);
  line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.22);
  pointer-events: none; user-select: none;
}
.ph-photo-in {
  position: relative; z-index: 2; min-height: 540px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 60px; padding-bottom: 64px;
}
.ph-photo-in h1 { color: #fff; }
.ph-photo-in .hero-tags { margin-bottom: 22px; }

/* ---------- hero: blueprint (/uslugi/pokrivi) ---------- */
.ph-blueprint {
  background:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    var(--dark);
  background-size: 56px 56px; color: #fff;
}
.ph-blueprint-in {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 76px;
}
.bp-board {
  position: relative; border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius);
  background: rgba(255,255,255,.03); padding: 30px 24px 20px;
}
.bp-board .reg::before, .bp-board .reg::after { background: rgba(255,255,255,.5); }
.bp-title {
  font-family: var(--font-display); font-size: 12px; font-weight: 500; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(255,255,255,.55); margin: 0 0 12px; text-align: center;
}
.bp-svg { width: 100%; height: auto; display: block; }
.bp-svg .ink { stroke: rgba(255,255,255,.92); stroke-width: 4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.bp-svg .thin { stroke-width: 1.6; opacity: .55; }
.bp-svg .acc { stroke: #E8637F; }
.bp-svg text { font-family: var(--font-display); font-size: 15px; fill: rgba(255,255,255,.7); letter-spacing: .06em; }
.bp-svg .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawline 1.4s ease forwards; }
.bp-svg .draw.dd1 { animation-delay: .3s; }
.bp-svg .draw.dd2 { animation-delay: .7s; }
.bp-svg .draw.dd3 { animation-delay: 1.05s; }
@keyframes drawline { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .bp-svg .draw { animation: none; stroke-dashoffset: 0; } }

/* ---------- hero: split (/uslugi/darvodelstvo) ---------- */
.ph-split { background: var(--paper); }
.ph-split-in {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 64px; align-items: center; padding-top: 72px; padding-bottom: 84px; position: relative;
}
.ph-split-media { position: relative; }
.ph-split-media > img {
  width: 100%; aspect-ratio: 4 / 4.5; object-fit: cover;
  border-radius: 8px; box-shadow: var(--shadow-md); position: relative; z-index: 1;
}
.ph-split-media::before {
  content: ""; position: absolute; top: 20px; right: -20px; bottom: -20px; left: 20px;
  border: 2px solid var(--line); border-radius: 8px;
}
.media-chip {
  position: absolute; z-index: 2; left: 14px; bottom: 14px;
  background: var(--dark); color: rgba(255,255,255,.85); border-radius: 6px;
  font-family: var(--font-display); font-size: 11.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .13em; padding: 9px 14px;
}
.side-word {
  position: absolute; left: -26px; top: 50%; transform: translateY(-50%);
  writing-mode: vertical-rl; rotate: 180deg;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(64px, 7vw, 110px);
  line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(30,26,24,.09);
  letter-spacing: .06em; pointer-events: none; user-select: none;
}

/* ---------- hero: strip (/uslugi/mebeli) ---------- */
.ph-strip { padding-bottom: 0; }
.ph-strip-head { max-width: 780px; margin: 0 auto; text-align: center; padding-top: 68px; }
.ph-strip-head .eyebrow, .ph-strip-head .crumbs { justify-content: center; }
.ph-strip-head .ph-sub { margin-left: auto; margin-right: auto; }
.ph-strip-head .hero-actions { justify-content: center; }
.strip-grid {
  display: grid; grid-template-columns: 1.15fr 1fr 1.15fr; gap: 18px;
  align-items: end; margin-top: 48px;
}
.strip-grid figure { margin: 0; overflow: hidden; border-radius: 8px 8px 0 0; position: relative; }
.strip-grid img { width: 100%; object-fit: cover; height: 300px; transition: transform .5s ease; display: block; }
.strip-grid figure:nth-child(2) img { height: 380px; }
.strip-grid figure:hover img { transform: scale(1.05); }
.strip-grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px;
  background: linear-gradient(transparent, rgba(25,20,18,.8));
  color: #fff; font-family: var(--font-display); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .14em;
}

/* ---------- hero: projects ---------- */
.ph-projects {
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
    var(--dark);
  background-size: 56px 56px; color: #fff;
}
.ph-projects-in {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: 56px; align-items: center; padding-top: 76px; padding-bottom: 80px;
}
.proj-stats { display: flex; gap: 40px; margin-top: 30px; flex-wrap: wrap; }
.proj-stats strong {
  display: block; font-family: var(--font-display); font-weight: 700; font-size: 40px;
  line-height: 1.1; color: #E8637F;
}
.proj-stats span { font-size: 13.5px; color: rgba(255,255,255,.6); line-height: 1.4; display: block; }
.ph-collage { position: relative; height: 430px; }
.ph-collage figure {
  position: absolute; margin: 0; background: #fff; padding: 9px 9px 30px;
  border-radius: 3px; box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.ph-collage img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.ph-collage figcaption {
  position: absolute; left: 0; right: 0; bottom: 6px; text-align: center;
  font-family: var(--font-display); font-size: 10.5px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2);
}
.ph-collage .cf1 { width: 54%; left: 0; top: 4%; transform: rotate(-4deg); z-index: 1; }
.ph-collage .cf2 { width: 48%; right: 0; top: 0; transform: rotate(3deg); z-index: 2; }
.ph-collage .cf3 { width: 52%; left: 24%; bottom: 0; transform: rotate(-1.5deg); z-index: 3; }

/* ---------- hero: about ---------- */
.ph-about-in {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 64px; align-items: center; padding-top: 72px; padding-bottom: 84px;
}
.ph-about-media { position: relative; padding: 0 44px 44px 0; }
.ph-about-media .pam-1 {
  width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; border-radius: 8px;
  box-shadow: var(--shadow-md); position: relative; z-index: 1;
}
.ph-about-media .pam-2 {
  position: absolute; z-index: 2; right: 0; bottom: 0; width: 52%;
  aspect-ratio: 4 / 3; object-fit: cover;
  border: 6px solid var(--white); border-left: 6px solid var(--crimson);
  box-shadow: var(--shadow-md); background: var(--white);
}
.ph-about-media .about-stamp { right: auto; left: -20px; top: -20px; bottom: auto; z-index: 3; }

/* ---------- hero: contact ---------- */
.ph-contact-in { max-width: 880px; margin: 0 auto; text-align: center; padding-top: 66px; padding-bottom: 64px; }
.ph-contact-in .eyebrow, .ph-contact-in .crumbs { justify-content: center; }
.ph-contact-in .ph-sub { margin-left: auto; margin-right: auto; }
.giant-tel {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(46px, 7.6vw, 96px); line-height: 1; letter-spacing: .02em;
  color: var(--ink); margin: 6px 0 14px; transition: color .18s ease;
}
.giant-tel:hover { color: var(--crimson); }
.tel-note { color: var(--ink-2); font-size: 15px; margin-bottom: 0; }
.tel-note b { color: var(--ink); }

/* ---------- hero: legal ---------- */
.ph-legal .container { padding-top: 56px; padding-bottom: 10px; }
.ph-legal h1 { font-size: clamp(30px, 3.6vw, 44px); }
.legal-meta { color: var(--ink-2); font-size: 14px; margin: 0; }
.legal-body { max-width: 780px; padding-top: 26px; padding-bottom: 90px; }
.legal-body h2 { font-size: 21px; margin: 38px 0 10px; }
.legal-body p, .legal-body li { font-size: 16px; color: var(--ink); }
.legal-body ul { padding-left: 20px; margin-bottom: 1em; }
.legal-body a { font-weight: 700; }
.company-card {
  background: var(--paper); border: 1px solid var(--line-soft); border-left: 3px solid var(--crimson);
  border-radius: 8px; padding: 22px 26px; margin: 20px 0 30px;
}
.company-card dl { display: grid; grid-template-columns: 190px 1fr; gap: 7px 20px; margin: 0; font-size: 15px; }
.company-card dt { color: var(--ink-2); font-weight: 600; }
.company-card dd { margin: 0; font-weight: 700; }

/* ---------- service detail components ---------- */
.sd-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.sd-item {
  border: 1px solid var(--line); border-radius: 8px; padding: 26px 28px;
  background: var(--white); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.sd-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: rgba(206,34,70,.4); }
.sd-item i {
  font-style: normal; display: block; font-family: var(--font-display); font-weight: 700;
  font-size: 14px; letter-spacing: .1em; color: var(--crimson); margin-bottom: 10px;
}
.sd-item h3 { font-size: 19px; margin-bottom: 6px; }
.sd-item p { color: var(--ink-2); font-size: 15px; margin: 0; }

.faq { border-top: 2px solid var(--ink); max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 18px; padding: 20px 4px;
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  text-transform: uppercase; letter-spacing: .03em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-mark {
  flex: none; width: 30px; height: 30px; border: 1.5px solid var(--line); border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  color: var(--crimson); font-weight: 800; font-family: var(--font-body); font-size: 16px;
  transition: transform .25s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.faq-item[open] .faq-mark { transform: rotate(45deg); background: var(--crimson); color: #fff; border-color: var(--crimson); }
.faq-item .faq-a { color: var(--ink-2); padding: 0 46px 22px 4px; max-width: 720px; margin: 0; }

.pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.pager a { padding: 26px 10px; display: flex; flex-direction: column; gap: 5px; color: var(--ink); transition: background .2s ease; }
.pager a:hover { background: var(--paper); }
.pager a + a { border-left: 1px solid var(--line); text-align: right; align-items: flex-end; }
.pager small {
  font-family: var(--font-display); font-size: 11.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-2); font-weight: 500;
}
.pager b { font-family: var(--font-display); font-weight: 600; font-size: 19px; text-transform: uppercase; letter-spacing: .03em; }
.pager a:hover b { color: var(--crimson); }

/* ---------- projects: filter + masonry ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.masonry { columns: 3; column-gap: 20px; }
.m-item { aspect-ratio: auto; margin: 0 0 20px; display: block; break-inside: avoid; }
.m-item img { height: auto; }
.m-item.is-hidden { display: none; }

/* ---------- lightbox nav ---------- */
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.35); background: rgba(25,20,18,.55); color: #fff;
  font-size: 19px; cursor: pointer; transition: background .15s ease;
  display: flex; align-items: center; justify-content: center;
}
.lb-nav:hover { background: var(--crimson); border-color: var(--crimson); }
.lb-prev { left: -58px; }
.lb-next { right: -58px; }
.lb-count {
  display: block; font-family: var(--font-display); font-size: 12px;
  letter-spacing: .16em; color: rgba(255,255,255,.55); margin-top: 5px;
}

/* ---------- contact page ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 60px; }
.c-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px;
  background: var(--white); transition: transform .2s ease, box-shadow .2s ease;
}
.c-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.cc-ico {
  width: 42px; height: 42px; border-radius: 8px; margin-bottom: 16px;
  background: rgba(206,34,70,.09); color: var(--crimson);
  display: flex; align-items: center; justify-content: center;
}
.cc-ico svg { width: 20px; height: 20px; }
.c-card small {
  display: block; font-family: var(--font-display); font-size: 11.5px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 5px;
}
.c-card .big { font-weight: 800; font-size: 17.5px; color: var(--ink); margin: 0; display: block; }
a.big:hover { color: var(--crimson); }
.c-card .sub { font-size: 13.5px; color: var(--ink-2); margin: 3px 0 0; }
.contact-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 34px; align-items: stretch; }
.map-card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--paper); display: flex; flex-direction: column; min-height: 460px;
}
.map-card iframe { flex: 1; width: 100%; border: 0; min-height: 340px; filter: grayscale(1) contrast(1.04); }
.map-meta {
  padding: 16px 20px; border-top: 1px solid var(--line-soft); font-size: 14px;
  color: var(--ink-2); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.map-meta b { color: var(--ink); }
.plan-form input[type="email"], .plan-form textarea, .plan-form select {
  width: 100%; font-family: var(--font-body); font-size: 16px; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line); border-radius: 6px;
  padding: 12px 14px; transition: border-color .18s ease;
}
.plan-form textarea { min-height: 120px; resize: vertical; }
.plan-form textarea:focus, .plan-form select:focus { outline: none; border-color: var(--crimson); }

/* ---------- about page ---------- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.v-card { border: 1px solid var(--line); border-top: 3px solid var(--crimson); border-radius: 8px; padding: 28px 26px; background: var(--white); }
.v-card i {
  display: block; font-style: normal; font-family: var(--font-display); font-weight: 700;
  font-size: 34px; color: transparent; -webkit-text-stroke: 1.3px var(--crimson); margin-bottom: 14px;
}
.v-card h3 { font-size: 20px; }
.v-card p { color: var(--ink-2); font-size: 15px; margin: 0; }
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 880px; }
.t-card {
  display: flex; gap: 20px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; background: var(--white);
}
.t-ava {
  flex: none; width: 66px; height: 66px; border-radius: 50%;
  background: var(--dark); color: #fff; font-family: var(--font-display);
  font-weight: 600; font-size: 22px; letter-spacing: .04em;
  display: flex; align-items: center; justify-content: center;
}
.t-card h3 { font-size: 19px; margin: 0 0 1px; }
.t-card small {
  display: block; font-family: var(--font-display); font-size: 11.5px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--crimson); margin-bottom: 6px;
}
.t-card a { font-weight: 800; color: var(--ink); font-size: 15px; }
.t-card a:hover { color: var(--crimson); }

/* ---------- 404 ---------- */
.err { display: flex; align-items: center; min-height: calc(100vh - 420px); text-align: center; }
.err-in { max-width: 640px; margin: 0 auto; padding: 84px 0; }
.err-code {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(110px, 22vw, 200px); line-height: 1;
  color: transparent; -webkit-text-stroke: 2.5px var(--crimson); margin-bottom: 10px;
}
.err h1 { font-size: clamp(26px, 4vw, 40px); }
.err p { color: var(--ink-2); margin-bottom: 30px; }
.err-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- footer additions ---------- */
.f-title {
  font-family: var(--font-display); font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(255,255,255,.42); margin: 0 0 12px; font-weight: 500;
}
.footer-base { display: flex; justify-content: space-between; align-items: center; gap: 10px 24px; flex-wrap: wrap; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: rgba(255,255,255,.5); font-size: 13px; }
.footer-legal a:hover { color: #fff; }

/* ---------- subpage responsive ---------- */
@media (max-width: 1080px) {
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .masonry { columns: 2; }
}

@media (max-width: 900px) {
  .ph-catalog-in, .ph-split-in, .ph-about-in, .ph-blueprint-in, .ph-projects-in { grid-template-columns: 1fr; gap: 48px; }
  .ph-photo-in { min-height: 440px; }
  .ph-collage { max-width: 560px; margin: 0 auto; width: 100%; }
  .side-word { display: none; }
  .ph-split-media, .ph-about-media { max-width: 560px; }
  .contact-layout { grid-template-columns: 1fr; }
  .map-card { min-height: 380px; }
}

@media (max-width: 640px) {
  .page-hero .ph-copy, .ph-photo-in, .legal-hero-in { text-align: center; }
  .page-hero .crumbs, .page-hero .hero-tags { justify-content: center; }
  .page-hero .ph-sub { margin-left: auto; margin-right: auto; }
  .ph-catalog-in, .ph-about-in, .ph-split-in, .ph-blueprint-in, .ph-projects-in { padding-top: 52px; padding-bottom: 60px; gap: 40px; }
  .catalog-card { padding: 20px 20px 8px; }
  .cc-row { padding: 15px 0; }
  .cc-row b { font-size: 15px; }
  .ph-photo-in { min-height: 380px; padding-bottom: 48px; }
  .ph-num { font-size: 110px; right: 8px; }
  .proj-stats { justify-content: center; gap: 20px 28px; margin-top: 24px; }
  .proj-stats strong { font-size: 32px; }
  .ph-collage { height: 300px; }
  .strip-grid { gap: 10px; margin-top: 36px; }
  .strip-grid img { height: 150px; }
  .strip-grid figure:nth-child(2) img { height: 190px; }
  .strip-grid figcaption { display: none; }
  .ph-contact-in { padding-top: 48px; padding-bottom: 48px; }
  .giant-tel { font-size: clamp(42px, 12.5vw, 64px); }
  .sd-grid { grid-template-columns: 1fr; }
  .sd-item { text-align: center; }
  .faq-item summary { font-size: 16px; text-align: left; }
  .faq-item .faq-a { padding-right: 4px; text-align: left; }
  .pager b { font-size: 15px; }
  .pager a { padding: 20px 8px; }
  .masonry { columns: 1; }
  .filter-bar { justify-content: center; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-nav { background: rgba(25,20,18,.75); }
  .contact-cards { grid-template-columns: 1fr; margin-bottom: 44px; }
  .c-card { text-align: center; }
  .cc-ico { margin-left: auto; margin-right: auto; }
  .values-grid { grid-template-columns: 1fr; }
  .v-card { text-align: center; }
  .team-grid { grid-template-columns: 1fr; }
  .t-card { flex-direction: column; text-align: center; }
  .company-card dl { grid-template-columns: 1fr; gap: 2px 0; }
  .company-card dt { margin-top: 10px; }
  .company-card dt:first-child { margin-top: 0; }
  .legal-body { padding-bottom: 64px; text-align: left; }
  .err-actions { flex-direction: column; align-items: stretch; }
  .err-actions .btn { width: 100%; }
  .footer-base { flex-direction: column; text-align: center; }
  .f-title { width: 100%; margin-bottom: 2px; }
  .ph-strip-head { padding-top: 48px; }
}
