/* ==========================================================================
   Шкаф на балконе — v2
   Мотив: столярная мастерская и замер — миллиметровка, размерные линии, рулетка.
   Без фреймворков. Размеры масштабируются через clamp() от телефона до 4K.
   ========================================================================== */

:root {
  --ink: #1d201e;
  --ink-2: #262a27;
  --paper: #f6f3ec;
  --card: #fbfaf6;
  --sand: #ece6da;
  --oak: #e7dcc8;
  --muted: #676963;
  --light: #c9c7bf;
  --accent: #f5b23a;
  --accent-hover: #ffc660;
  --accent-deep: #b27612;
  --tg: #229ed9;
  --line: #dcd6ca;
  --line-dark: rgba(255, 255, 255, .12);
  --radius: clamp(8px, .55vw, 20px);
  --display: 'Unbounded', 'Arial Black', Arial, sans-serif;
  --sans: 'Onest', 'Segoe UI', Arial, sans-serif;
  --header-h: clamp(68px, 4.6vw, 160px);
  --cell: clamp(32px, 2.4vw, 90px);
  --dim: clamp(28px, 1.9vw, 68px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 clamp(16px, 1vw, 34px)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, blockquote { margin-top: 0; }
figure { margin: 0; }
p { color: var(--muted); }

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(32px, 4.2vw, 158px); line-height: 1.08; }
h2 { font-size: clamp(26px, 2.8vw, 106px); line-height: 1.12; margin-bottom: 0; }
h3 { font-size: clamp(17px, 1.2vw, 44px); line-height: 1.25; letter-spacing: -0.01em; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { width: 90%; max-width: 3440px; margin-inline: auto; }
.section { padding-block: clamp(64px, 6vw, 220px); }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; border-radius: 8px; background: var(--accent); color: var(--ink);
}
.skip:focus { top: 16px; }

svg { flex: none; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: .8em;
  margin-bottom: 1.2em;
  font-size: clamp(12px, .78vw, 26px);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 2em; height: 2px; background: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65em;
  min-height: clamp(52px, 3.2vw, 118px);
  padding: .85em 1.4em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--ink);
  font-size: clamp(15px, .95vw, 32px);
  font-weight: 600;
  line-height: 1.2;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn svg { width: 1.2em; height: 1.2em; }
.btn:hover { transform: translateY(-2px); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-outline-light svg { color: var(--tg); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #363a37; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: .75em; }
.logo-mark {
  display: grid;
  place-items: center;
  width: clamp(40px, 2.5vw, 94px);
  aspect-ratio: 1;
  border-radius: 22%;
  background: var(--accent);
}
.logo-mark svg { width: 100%; height: 100%; }
.logo-mark rect, .logo-mark path { fill: none; stroke: var(--ink); stroke-width: 3; }
.logo-mark circle { fill: var(--ink); }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text b {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(14px, 1vw, 38px);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.logo-text small { margin-top: 3px; font-size: clamp(11px, .7vw, 26px); color: #9d9b93; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(29, 32, 30, .94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-dark);
  color: #fff;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 72px);
  font-size: clamp(14px, .88vw, 32px);
  font-weight: 500;
  color: #dedbd2;
}
.nav a { transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--accent); }
.nav svg { width: 1.05em; height: 1.05em; }
.nav-phone { display: inline-flex; align-items: center; gap: .45em; white-space: nowrap; color: #fff; }
.nav-phone svg { color: var(--accent); }
.nav-tg {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .6em 1.1em;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
}
.nav .nav-tg:hover { background: var(--accent-hover); color: var(--ink); }

.menu-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: transparent;
}
.menu-toggle span {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  background: #fff;
  transition: transform .25s, opacity .25s, top .25s;
}
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 29px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero, .contact {
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  background-position: center top;
  color: #fff;
}
.hero { overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 6%;
  padding-block: clamp(44px, 4.5vw, 170px) clamp(64px, 5.5vw, 210px);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  margin-bottom: 1.6em;
  padding: .45em 1em;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--light);
  font-size: clamp(13px, .8vw, 28px);
}
.dot {
  width: .55em; height: .55em;
  border-radius: 50%;
  background: #6fd08c;
  box-shadow: 0 0 0 0 rgba(111, 208, 140, .6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 .6em rgba(111, 208, 140, 0); } 100% { box-shadow: 0 0 0 0 rgba(111, 208, 140, 0); } }

.hero h1 { margin-bottom: .55em; }
.hero h1 span { display: block; color: var(--accent); }
.intro { max-width: 32em; margin-bottom: 2em; color: var(--light); font-size: clamp(17px, 1.2vw, 42px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: .6em 1.8em;
  margin: 2.2em 0 0;
  padding: 0;
  list-style: none;
  color: var(--light);
  font-size: clamp(14px, .9vw, 32px);
}
.hero-points li { display: flex; align-items: center; gap: .5em; }
.hero-points svg { width: 1.1em; height: 1.1em; color: var(--accent); }

.hero-visual {
  position: relative;
  justify-self: end;
  width: min(100%, 64vh);
}

/* Фото с размерными линиями — как на чертеже */
.measured {
  position: relative;
  padding: var(--dim) 0 0 var(--dim);
  --dim-color: var(--accent);
  --dim-bg: var(--ink);
}
.measured img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
}
.dim { position: absolute; color: var(--dim-color); }
.dim i {
  position: absolute;
  left: 50%; top: 50%;
  padding: 0 .6em;
  background: var(--dim-bg);
  font-style: normal;
  font-size: clamp(11px, .7vw, 24px);
  font-weight: 600;
  letter-spacing: .06em;
  white-space: nowrap;
  line-height: 1.4;
  transform: translate(-50%, -50%);
}
.dim-h {
  top: 0; left: var(--dim); right: 0;
  height: var(--dim);
  background:
    linear-gradient(currentColor, currentColor) left center / 1px 40% no-repeat,
    linear-gradient(currentColor, currentColor) right center / 1px 40% no-repeat,
    linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
}
.dim-v {
  left: 0; top: var(--dim); bottom: 0;
  width: var(--dim);
  background:
    linear-gradient(currentColor, currentColor) center top / 40% 1px no-repeat,
    linear-gradient(currentColor, currentColor) center bottom / 40% 1px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat;
}
.dim-v i { transform: translate(-50%, -50%) rotate(-90deg); }

.photo-label {
  position: absolute;
  left: calc(var(--dim) + 12px);
  top: calc(var(--dim) + 12px);
  padding: .35em .75em;
  border-radius: 4px;
  background: rgba(29, 32, 30, .82);
  color: #fff;
  font-size: clamp(12px, .72vw, 26px);
  font-weight: 500;
}

.hero-inset {
  position: absolute;
  right: -5%;
  bottom: -7%;
  width: 38%;
  padding: clamp(5px, .35vw, 14px);
  border-radius: 6px;
  background: var(--ink);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
}
.hero-inset img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 3px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
}
.stats div { padding: clamp(22px, 1.8vw, 66px) clamp(12px, 1.4vw, 52px); border-left: 1px solid var(--line-dark); }
.stats div:first-child { border-left: 0; padding-left: 0; }
.stats strong {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(26px, 2.5vw, 96px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.stats span { display: block; margin-top: .4em; color: #a9a79f; font-size: clamp(13px, .85vw, 30px); line-height: 1.35; }

/* ---------- Tape measure ribbon ---------- */
.tape {
  overflow: hidden;
  padding: clamp(20px, 1.4vw, 50px) 0 clamp(12px, .8vw, 30px);
  background-color: var(--accent);
  background-image:
    repeating-linear-gradient(90deg, rgba(29,32,30,.7) 0 1px, transparent 1px clamp(50px, 3.5vw, 130px)),
    repeating-linear-gradient(90deg, rgba(29,32,30,.45) 0 1px, transparent 1px clamp(10px, .7vw, 26px));
  background-size: 100% clamp(14px, .9vw, 32px), 100% clamp(7px, .45vw, 16px);
  background-repeat: no-repeat;
}
.tape-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(14px, 1.1vw, 42px);
  color: var(--ink);
  animation: marquee 40s linear infinite;
}
.tape-track span { display: inline-flex; align-items: center; }
.tape-track span::after {
  content: "";
  width: .38em; height: .38em;
  margin-inline: 1.6em;
  background: var(--ink);
  transform: rotate(45deg);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section heading ---------- */
.head-split {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: end;
  gap: 24px 6%;
  margin-bottom: clamp(32px, 2.8vw, 100px);
}
.head-split h2 { max-width: 17em; }
.head-split > p { margin: 0; max-width: 30em; }

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.feature {
  padding: clamp(24px, 2.2vw, 84px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color .25s;
}
.feature:hover { background: var(--card); }
.feature-icon {
  width: clamp(48px, 3vw, 110px);
  height: clamp(48px, 3vw, 110px);
  padding: clamp(11px, .7vw, 26px);
  margin-bottom: clamp(20px, 1.6vw, 60px);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--ink);
}
.feature h3 { margin-bottom: .6em; }
.feature p { margin: 0; }

/* ---------- Works ---------- */
.works { background: var(--ink); color: #fff; }
.works .eyebrow, .works .head-split > p { color: #a9a79f; }

.filters {
  display: flex;
  gap: 8px;
  margin-bottom: clamp(20px, 1.6vw, 60px);
  overflow-x: auto;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filters button {
  flex: none;
  padding: .65em 1.15em;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: transparent;
  color: #dedbd2;
  font-size: clamp(14px, .88vw, 32px);
  font-weight: 500;
  transition: background-color .2s, border-color .2s, color .2s;
}
.filters button:hover { border-color: rgba(255,255,255,.4); }
.filters button.active { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.filters sup { font-size: .7em; opacity: .7; }

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: clamp(10px, .9vw, 34px);
}
.work {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: var(--ink-2);
  text-align: left;
  animation: fadeUp .5s ease both;
}
.work img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .6s ease; }
.work.is-wide { grid-column: span 2; grid-row: span 2; }
.work.is-wide::before { content: ""; display: block; padding-top: 133.33%; }
.work.is-wide img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
.work:hover img { transform: scale(1.04); }
.work-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  padding: 2.4em .9em .8em;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  color: #fff;
  font-size: clamp(13px, .82vw, 30px);
  font-weight: 500;
  line-height: 1.3;
}
.work-info span { opacity: .7; white-space: nowrap; }
.work-zoom {
  position: absolute;
  top: .8em; right: .8em;
  display: grid;
  place-items: center;
  width: clamp(34px, 2.1vw, 78px);
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--ink);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .25s, transform .25s;
}
.work-zoom svg { width: 55%; height: 55%; }
.work:hover .work-zoom, .work:focus-visible .work-zoom { opacity: 1; transform: none; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }

.gallery-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 40px;
  margin-top: clamp(28px, 2.4vw, 90px);
}
.gallery-foot .btn[hidden] { display: none; }
.gallery-foot p { margin: 0; color: #a9a79f; }

/* ---------- Prices ---------- */
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.1vw, 42px); }
.price {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--card);
}
.price-photo { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.price-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.price:hover .price-photo img { transform: scale(1.04); }
.price-badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 1;
  padding: .35em .8em;
  border-radius: 4px;
  background: var(--accent);
  color: var(--ink);
  font-size: clamp(12px, .75vw, 26px);
  font-weight: 600;
}
.price-body { display: flex; flex: 1; flex-direction: column; padding: clamp(22px, 2vw, 76px); }
.price h3 { margin-bottom: .5em; font-size: clamp(19px, 1.45vw, 54px); }
.price-body > p { margin-bottom: 1.2em; }
.price-value {
  padding-bottom: .55em;
  border-bottom: 1px dashed var(--line);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(26px, 2.1vw, 80px);
  letter-spacing: -0.03em;
  line-height: 1.2;
  white-space: nowrap;
}
.price-value small { font-family: var(--sans); font-size: .5em; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price ul { flex: 1; margin: 1.1em 0 1.6em; padding: 0; list-style: none; }
.price li { display: flex; align-items: center; gap: .6em; padding: .3em 0; }
.price li svg { width: 1.1em; height: 1.1em; color: var(--accent-deep); }
.price .btn { justify-content: space-between; width: 100%; }

.price-featured { border-color: var(--ink); background: var(--ink); color: #fff; }
.price-featured .price-body > p, .price-featured .price-value small { color: #a9a79f; }
.price-featured .price-value { border-color: var(--line-dark); }
.price-featured li svg { color: var(--accent); }

.included {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 40px;
  margin-top: clamp(14px, 1.1vw, 42px);
  padding: clamp(18px, 1.4vw, 54px) clamp(22px, 2vw, 76px);
  border-radius: calc(var(--radius) + 4px);
  background: var(--sand);
}
.included-title { margin: 0; color: var(--ink); font-weight: 600; }
.included ul { display: flex; flex-wrap: wrap; gap: 12px clamp(20px, 2.6vw, 100px); margin: 0; padding: 0; list-style: none; }
.included li { display: flex; align-items: center; gap: .6em; font-weight: 500; }
.included svg { width: 1.5em; height: 1.5em; color: var(--accent-deep); }
.fine { margin: 1.2em 0 0; font-size: clamp(13px, .8vw, 28px); }

/* ---------- Steps ---------- */
.steps-section { background: var(--oak); }
.steps-section .head-split > p, .steps-section .eyebrow { color: #6b604d; }
.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2vw, 76px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.timeline li { position: relative; padding-top: clamp(42px, 3vw, 110px); }
.timeline li::before {
  content: "";
  position: absolute;
  top: clamp(9px, .6vw, 22px);
  left: 0;
  right: calc(-1 * clamp(20px, 2vw, 76px));
  height: 2px;
  background: rgba(29, 32, 30, .22);
}
.timeline li:last-child::before { right: 0; }
.timeline li::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: clamp(20px, 1.2vw, 44px);
  aspect-ratio: 1;
  border: clamp(4px, .25vw, 9px) solid var(--ink);
  border-radius: 50%;
  background: var(--accent);
}
.when {
  display: inline-block;
  margin-bottom: .9em;
  padding: .3em .7em;
  border-radius: 4px;
  background: var(--ink);
  color: var(--accent);
  font-size: clamp(12px, .75vw, 26px);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.timeline h3 { margin-bottom: .5em; }
.timeline p { margin: 0; color: #5d5445; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 8%; align-items: center; }
.about-visual { position: relative; width: min(100%, 70vh); }
.measured-light { --dim-color: var(--accent-deep); --dim-bg: var(--paper); }
.master-card {
  position: absolute;
  right: -8%;
  bottom: 9%;
  display: flex;
  align-items: center;
  gap: .9em;
  padding: .8em 1.4em .8em .8em;
  border-radius: calc(var(--radius) + 4px);
  background: var(--card);
  box-shadow: 0 18px 45px rgba(29, 32, 30, .18);
}
.master-card img { width: clamp(54px, 3.4vw, 128px); aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.master-card b { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(14px, .95vw, 36px); }
.master-card span { color: var(--muted); font-size: clamp(13px, .8vw, 28px); }

.about-copy h2 { margin-bottom: .7em; }
.lead { color: var(--ink); font-size: clamp(18px, 1.35vw, 50px); font-weight: 500; line-height: 1.45; }
.about-badges { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, .8vw, 30px); margin-top: 2em; }
.about-badges div {
  display: flex;
  align-items: center;
  gap: .9em;
  padding: clamp(14px, 1vw, 38px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
}
.about-badges svg {
  width: 2.6em; height: 2.6em;
  padding: .6em;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--ink);
}
.about-badges span { color: var(--muted); font-size: .92em; line-height: 1.35; }
.about-badges b { display: block; color: var(--ink); font-size: 1.08em; }

/* ---------- Reviews ---------- */
.reviews { background: var(--sand); }
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.1vw, 42px); }
.review {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2vw, 76px);
  border-radius: calc(var(--radius) + 4px);
  background: var(--card);
}
.review-quote { width: clamp(30px, 1.9vw, 70px); height: auto; color: var(--accent); }
.review blockquote {
  flex: 1;
  margin: 1em 0 1.4em;
  font-size: clamp(17px, 1.15vw, 42px);
  font-weight: 500;
  line-height: 1.5;
}
.review figcaption { display: flex; align-items: center; gap: .8em; padding-top: 1.1em; border-top: 1px solid var(--line); }
.avatar {
  display: grid;
  place-items: center;
  width: 2.4em;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--accent);
  font-family: var(--display);
  font-weight: 600;
}

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 8%; align-items: start; }
.faq-head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-head h2 { margin-bottom: .6em; }
.faq-head p { margin-bottom: 1.6em; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-block: clamp(18px, 1.3vw, 50px);
  list-style: none;
  cursor: pointer;
  font-size: clamp(16px, 1.1vw, 40px);
  font-weight: 600;
  line-height: 1.35;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--accent-deep); }
.faq-list summary i {
  position: relative;
  flex: none;
  width: 1.9em;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: background-color .2s, border-color .2s;
}
.faq-list summary i::before, .faq-list summary i::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 40%; height: 2px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform .25s;
}
.faq-list summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-list details[open] summary i { background: var(--accent); border-color: var(--accent); }
.faq-list details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq-list details p { max-width: 46em; margin: 0; padding-bottom: 1.4em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; align-items: center; }
.contact .eyebrow { color: #a9a79f; }
.contact h2 { margin-bottom: .6em; font-size: clamp(30px, 3.5vw, 130px); }
.contact-copy > p { color: var(--light); max-width: 30em; }
.send-list { margin: 1.8em 0; padding: 0; list-style: none; counter-reset: s; }
.send-list li {
  position: relative;
  padding: .75em 0 .75em 2.8em;
  border-top: 1px solid var(--line-dark);
  color: #a9a79f;
  counter-increment: s;
}
.send-list li::before {
  content: counter(s);
  position: absolute;
  left: 0; top: .6em;
  display: grid;
  place-items: center;
  width: 1.8em;
  aspect-ratio: 1;
  border-radius: 4px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  font-size: .9em;
}
.send-list b { color: #fff; font-weight: 600; }
.contact .send-note { color: var(--accent); font-weight: 500; }

.contact-tiles { display: grid; gap: clamp(12px, 1vw, 36px); }
.tile {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: clamp(16px, 1.3vw, 50px);
  padding: clamp(20px, 1.9vw, 72px);
  border-radius: calc(var(--radius) + 6px);
  transition: transform .2s, background-color .2s;
}
.tile:hover { transform: translateY(-3px); }
.tile-icon {
  grid-row: span 2;
  width: clamp(50px, 3.3vw, 124px);
  height: clamp(50px, 3.3vw, 124px);
  padding: clamp(12px, .8vw, 30px);
  border-radius: var(--radius);
}
.tile-label { align-self: end; font-size: clamp(13px, .85vw, 30px); opacity: .75; }
.tile-value {
  align-self: start;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(18px, 1.6vw, 62px);
  letter-spacing: -0.02em;
  line-height: 1.25;
  white-space: nowrap;
}
.tile-arrow { grid-row: 1 / span 2; grid-column: 3; width: clamp(24px, 1.6vw, 58px); height: clamp(24px, 1.6vw, 58px); transition: transform .2s; }
.tile:hover .tile-arrow { transform: translate(3px, -3px); }
.tile-phone { background: var(--accent); color: var(--ink); }
.tile-phone .tile-icon { background: var(--ink); color: var(--accent); }
.tile-phone:hover { background: var(--accent-hover); }
.tile-tg { background: #fff; color: var(--ink); }
.tile-tg .tile-icon { background: var(--tg); color: #fff; }
.tile-tg:hover { background: #eef7fc; }
.contact-area { margin: .4em 0 0; color: #a9a79f; font-size: clamp(13px, .85vw, 30px); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #a9a79f; border-top: 1px solid var(--line-dark); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1.2fr 1fr auto;
  align-items: center;
  gap: 20px 40px;
  padding-block: clamp(28px, 2.2vw, 80px);
  font-size: clamp(13px, .85vw, 30px);
}
.footer p { margin: 0; color: inherit; }
.footer .logo { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: #fff; }
.footer-links a:hover { color: var(--accent); }

.quickbar { display: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(20, 22, 21, .96);
  color: #fff;
}
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
.lightbox figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 100%;
  padding: clamp(60px, 4vw, 140px) 0 clamp(20px, 2vw, 70px);
}
.lightbox img {
  max-width: 100%;
  max-height: calc(100dvh - clamp(130px, 9vw, 300px));
  width: auto;
  object-fit: contain;
  border-radius: 6px;
  animation: fadeUp .35s ease both;
}
.lightbox figcaption { margin-top: 14px; color: var(--light); font-size: clamp(14px, .9vw, 30px); }
.lb-nav, .lb-close {
  display: grid;
  place-items: center;
  width: clamp(48px, 3.2vw, 118px);
  aspect-ratio: 1;
  margin: 0 clamp(8px, 1.5vw, 60px);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--radius);
  background: transparent;
  color: #fff;
  font-size: clamp(20px, 1.3vw, 48px);
  transition: background-color .2s, border-color .2s, color .2s;
}
.lb-nav:hover, .lb-close:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.lb-close { position: absolute; top: clamp(12px, 1vw, 40px); right: 0; z-index: 2; font-size: clamp(26px, 1.7vw, 60px); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (min-width: 2200px) {
  .gallery { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

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

@media (max-width: 1100px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prices { grid-template-columns: 1fr 1fr; }
  .prices .price:last-child { grid-column: 1 / -1; flex-direction: row; }
  .prices .price:last-child .price-photo { flex: 0 0 45%; aspect-ratio: auto; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .timeline li:nth-child(2)::before { right: 0; }
  .review-grid { grid-template-columns: 1fr 1fr; }
  .review-grid .review:last-child { grid-column: 1 / -1; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    height: calc(100dvh - var(--header-h));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 5% 40px;
    background: var(--ink);
    font-size: 20px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
  .nav .nav-phone { display: flex; }
  .nav .nav-tg { justify-content: center; margin-top: 24px; padding: 16px; border: 0; }
  body.menu-open { overflow: hidden; }

  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { justify-self: start; width: min(88%, 520px); }
  .head-split { grid-template-columns: 1fr; }
  .about, .faq, .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-visual { width: min(88%, 520px); }
  .faq-head { position: static; }
}

@media (max-width: 640px) {
  body { padding-bottom: 70px; }

  .logo-text small { display: none; }
  .hero-actions .btn { width: 100%; }
  .hero-points { flex-direction: column; }
  .hero-visual { width: 86%; }
  .hero-inset { right: -14%; width: 40%; }

  .stats { grid-template-columns: 1fr 1fr; }
  .stats div { padding-left: 16px; }
  .stats div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line-dark); }

  .features, .prices, .review-grid { grid-template-columns: 1fr; }
  .prices .price:last-child { grid-column: auto; flex-direction: column; }
  .prices .price:last-child .price-photo { flex: none; aspect-ratio: 16 / 10; }
  .review-grid .review:last-child { grid-column: auto; }

  .gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  .work-info { font-size: 12px; padding: 2em .6em .55em; }
  .work-info span { display: none; }
  .work-zoom { display: none; }
  .gallery-foot .btn { width: 100%; }

  .timeline { grid-template-columns: 1fr; row-gap: 32px; }
  .timeline li { padding: 0 0 0 44px; }
  .timeline li::before { top: 20px; bottom: -32px; left: 9px; right: auto; width: 2px; height: auto; }
  .timeline li:nth-child(2)::before { right: auto; }
  .timeline li:last-child::before { display: none; }

  .master-card { right: -10%; }
  .about-badges { grid-template-columns: 1fr; }
  .tile-value { font-size: clamp(17px, 5vw, 22px); }
  .footer-inner { grid-template-columns: 1fr; }

  .lightbox[open] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; }
  .lightbox figure { grid-column: 1 / -1; grid-row: 1; padding-inline: 12px; }
  .lb-prev { grid-row: 2; justify-self: start; margin-bottom: 20px; }
  .lb-next { grid-row: 2; justify-self: end; margin-bottom: 20px; }

  .quickbar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: rgba(29, 32, 30, .95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
  .quickbar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    border-radius: var(--radius);
    background: var(--accent);
    color: var(--ink);
    font-weight: 600;
  }
  .quickbar a + a { background: var(--tg); color: #fff; }
  .quickbar svg { width: 18px; height: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
