/* «Шов в шов» — графит, песочный акцент, Montserrat. */

:root {
  --bg: #161719;
  --s1: #1e2023;
  --s2: #2a2d31;
  --line: #3a3e43;
  --ink: #eeece8;
  --ink2: #a7a9ab;
  --sand: #d7b98e;
  --sand-hi: #f1dcb9;
  --dark: #17181a;
  --font: "Montserrat", system-ui, sans-serif;
  --serif: "Noto Serif Display", Georgia, serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.7, 0, .84, 0);
  --pad: clamp(16px, 6.6vw, 104px);
  --top-h: 76px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 16px/1.55 var(--font);
  overflow-x: clip;
  caret-color: var(--sand);
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
svg { fill: none; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--sand); color: var(--dark); }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: var(--line) var(--bg); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; border: 2px solid var(--bg); }
.tnum { font-variant-numeric: tabular-nums; }
.m-show { display: none; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--sand); color: var(--dark); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- кнопки ---------- */
.pill {
  --h: 56px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: var(--h);
  padding: 0 26px;
  border-radius: 999px;
  font: 700 15.5px/1 var(--font);
  letter-spacing: .005em;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition: transform .5s var(--ease), color .35s, border-color .35s, box-shadow .5s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.pill:active { transform: scale(.97); }
.pill--sand { background: var(--sand); color: var(--dark); padding-right: 7px; box-shadow: 0 12px 26px -14px rgba(0, 0, 0, .8); }
.pill--sand::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--sand-hi);
  border-radius: inherit;
  transform: translateX(-101%);
  transition: transform .6s var(--ease);
}
.pill--sand:hover::before { transform: none; }
.pill--sand:hover { box-shadow: 0 18px 34px -14px rgba(0, 0, 0, .9); }
.pill__icon {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--dark);
  color: var(--sand);
  display: grid;
  place-items: center;
  transition: transform .6s var(--ease);
}
.pill__icon svg { width: 19px; height: 19px; }
.pill--sand:hover .pill__icon { transform: rotate(-8deg) scale(1.05); }
.pill--sand:hover .pill__icon svg { animation: ring .8s var(--ease); }
@keyframes ring { 0% { transform: rotate(0); } 20% { transform: rotate(-18deg); } 40% { transform: rotate(14deg); } 60% { transform: rotate(-9deg); } 80% { transform: rotate(4deg); } 100% { transform: rotate(0); } }
.pill--line { border: 1.5px solid rgba(238, 236, 232, .5); color: var(--ink); }
.pill--line::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  background: var(--ink);
  border-radius: inherit;
  transform: translateY(102%);
  transition: transform .55s var(--ease);
}
.pill--line:hover { color: var(--dark); border-color: var(--ink); }
.pill--line:hover::before { transform: none; }
.pill__arrow { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.pill--line:hover .pill__arrow { transform: translateX(5px); }
.pill__glyph { width: 21px; height: 21px; }
.pill--sm { --h: 46px; font-size: 14px; padding-left: 20px; padding-right: 6px; gap: 12px; }
.pill--sm .pill__icon { width: 34px; height: 34px; }
.pill--sm .pill__icon svg { width: 16px; height: 16px; }
.pill--lg { --h: 62px; font-size: 16.5px; }

.circle {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f4f2ee;
  color: var(--dark);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .7);
  transition: transform .45s var(--ease), background-color .3s, border-color .3s, color .3s;
}
.circle svg { width: 22px; height: 22px; }
.circle:hover { transform: scale(1.08); background: #fff; }
.circle:active { transform: scale(.95); }
.circle--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.circle--ghost:hover { background: transparent; border-color: var(--ink); }
.circle--sm { width: 40px; height: 40px; }
.circle--sm svg { width: 17px; height: 17px; }

/* ---------- шапка ---------- */
.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--top-h);
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  transition: background-color .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.top.is-solid { background: rgba(22, 23, 25, .84); border-color: var(--line); backdrop-filter: blur(14px) saturate(1.2); }
.brand { font: 700 27px/1 var(--serif); letter-spacing: -.01em; color: var(--ink); justify-self: start; white-space: nowrap; }
.brand--sm { font-size: 22px; }
.nav { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.nav a { position: relative; font-weight: 600; font-size: 15px; color: var(--ink2); padding: 8px 0; transition: color .3s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--sand); border-radius: 2px; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.top__call { justify-self: end; display: flex; align-items: center; gap: 18px; }
.top__phone { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.top__phone:hover { color: var(--sand); }
.top__menu { display: none; }

/* ---------- первый экран ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 660px;
  max-height: 1080px;
  overflow: hidden;
  background:
    radial-gradient(70% 80% at 72% 52%, #2b2e32 0%, #1d1f22 48%, var(--bg) 80%);
  isolation: isolate;
}
.hero::after {
  /* мягкий «пол»-горизонт под изделием */
  transition: opacity .8s;
  content: "";
  position: absolute;
  left: 40%; right: -10%; bottom: 0;
  height: 34%;
  background: radial-gradient(50% 60% at 55% 100%, rgba(0, 0, 0, .35), transparent 70%);
  z-index: 0;
  pointer-events: none;
}
/* фон-комната: кадр готового дома, затемнён под текст; между слайдами плавная смена кадра */
.room { position: absolute; inset: 0; z-index: 0; overflow: hidden; opacity: 0; transition: opacity 1s var(--ease); }
.hero.has-room .room { opacity: 1; }
.room__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.room__img { opacity: 0; transition: opacity .9s var(--ease); }
.room__img.is-on { opacity: 1; }
.room::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(22, 23, 25, .94) 0%, rgba(22, 23, 25, .84) 32%, rgba(22, 23, 25, .55) 47%, rgba(22, 23, 25, .18) 62%, rgba(22, 23, 25, .3) 100%),
    linear-gradient(0deg, rgba(22, 23, 25, .92) 0%, rgba(22, 23, 25, 0) 32%),
    linear-gradient(180deg, rgba(22, 23, 25, .7) 0%, rgba(22, 23, 25, 0) 20%);
}
.room__note {
  position: absolute;
  z-index: 4;
  right: var(--pad);
  top: calc(var(--top-h) + 12px);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(22, 23, 25, .6);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink2);
  opacity: 0;
  transition: opacity .6s;
}
.hero.has-room .room__note { opacity: 1; }
.hero.has-room .slide__title, .hero.has-room .slide__sub { text-shadow: 0 2px 28px rgba(22, 23, 25, .45); }
.hero.has-room::after { opacity: 0; }
.hero.has-room .hero__stage { left: 58%; right: 2%; top: 34%; bottom: 15%; }
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.hero__stage { position: absolute; left: 42%; right: 2%; top: 9%; bottom: 17%; z-index: 3; pointer-events: none; }
.hero__grab { position: absolute; inset: 8% 10% 8% 24%; pointer-events: auto; cursor: grab; touch-action: pan-y; border-radius: 40px; }
.hero__grab.is-grabbing { cursor: grabbing; }
.hero[data-kind="clip"] .hero__grab { display: none; }

.hero__slides {
  position: absolute;
  left: var(--pad);
  top: clamp(124px, 22vh, 214px);
  width: min(54vw, 820px);
  z-index: 1;
  display: grid;
  grid-template-areas: "s" "a";
}
.slide { grid-area: s; visibility: hidden; }
.slide.is-on, .slide.is-out { visibility: visible; }
.slide__title { display: block; font-size: clamp(42px, 6vw, 96px); }
.slide__big {
  display: block;
  font: 800 1em/.92 var(--font);
  text-transform: uppercase;
  letter-spacing: -.02em;
}
.slide__sub {
  display: block;
  margin-top: .32em;
  max-width: 17em;
  font: 800 max(19px, .41em)/1.06 var(--font);
  text-transform: uppercase;
  letter-spacing: -.005em;
  color: var(--sand);
  text-wrap: balance;
}
.slide__lead { margin-top: 24px; max-width: 37ch; font-size: 17px; line-height: 1.6; color: var(--ink2); text-wrap: pretty; }
.slide__big, .slide__sub, .slide__lead {
  opacity: 0;
  transform: translateY(42px);
  filter: blur(10px);
  transition: transform 1s var(--ease), opacity .7s var(--ease), filter .8s var(--ease);
}
.slide__sub { transition-delay: .09s; }
.slide__lead { transition-delay: .18s; }
.slide.is-on .slide__big, .slide.is-on .slide__sub, .slide.is-on .slide__lead { opacity: 1; transform: none; filter: none; }
.slide.is-out .slide__big, .slide.is-out .slide__sub, .slide.is-out .slide__lead {
  opacity: 0;
  transform: translateY(-26px);
  filter: blur(8px);
  transition: transform .45s var(--ease-in), opacity .35s, filter .4s;
  transition-delay: 0s;
}
.hero__actions { grid-area: a; margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }

/* видео-карточки на слайдах «Ванные» и «Подготовка» */
.clip {
  position: absolute;
  left: 50%;
  top: 50%;
  height: min(100%, 620px);
  aspect-ratio: 9 / 16;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translate(40vw, -50%) rotate(12deg) scale(.8);
  transition: transform 1.2s var(--ease), opacity .7s var(--ease), visibility 0s 1.2s;
  pointer-events: none;
}
.clip video, .clip .clip__photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 50px 80px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .06);
  background: var(--s2);
}
.clip__back {
  position: absolute;
  z-index: 0;
  width: 74%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  right: -46%;
  top: 14%;
  border-radius: 22px;
  transform: rotate(8deg);
  filter: brightness(.62) saturate(.9);
  box-shadow: 0 40px 60px -30px rgba(0, 0, 0, .8);
}
.clip.is-on { opacity: 1; visibility: visible; transform: translate(-58%, -50%) rotate(-3deg); transition: transform 1.25s var(--ease) .1s, opacity .8s var(--ease) .1s, visibility 0s; }
.clip.is-out { opacity: 0; visibility: visible; transform: translate(-40vw, -50%) rotate(-14deg) scale(.8); transition: transform .8s var(--ease-in), opacity .6s var(--ease-in), visibility 0s .8s; }

/* под моделью: пометка «3D-модель» и настоящее фото работы */
.stagebar {
  position: absolute;
  left: 50%;
  bottom: -34px;
  transform: translateX(-50%);
  width: max-content; /* иначе ширину режет половина сцены и кнопка сжимается */
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  pointer-events: none;
}
.stagebar > * { pointer-events: auto; flex: none; }
.tag3d, .tagvid {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 12px;
  border-radius: 999px;
  background: rgba(22, 23, 25, .66);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink2);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s, transform .6s var(--ease);
  backdrop-filter: blur(6px);
}
.tag3d svg { width: 18px; height: 18px; color: var(--sand); }
.hero[data-kind="model"] .tag3d { opacity: 1; transform: none; transition-delay: .6s; }

.proof {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px 6px 6px;
  border-radius: 999px;
  background: rgba(30, 32, 35, .8);
  border: 1px solid var(--line);
  text-align: left;
  backdrop-filter: blur(8px);
  transition: transform .5s var(--ease), border-color .3s, opacity .5s;
}
.proof img { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; transition: transform .6s var(--ease); }
.proof__text { display: grid; gap: 1px; }
.proof__text b { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.proof__text span { font-size: 12.5px; color: var(--ink2); }
.proof__arrow { flex: none; width: 18px; height: 18px; color: var(--sand); transition: transform .5s var(--ease); }
.proof:hover { transform: translateY(-3px); border-color: var(--sand); }
.proof:hover img { transform: scale(1.08); }
.proof:hover .proof__arrow { transform: translateX(4px); }
.proof.is-swap { opacity: 0; transform: translateY(8px); }

.hero__prev, .hero__next { position: absolute; top: 50%; z-index: 5; margin-top: -28px; }
.hero__prev { left: 20px; }
.hero__next { right: 20px; }

.hero__foot {
  position: absolute;
  z-index: 4;
  left: var(--pad);
  right: var(--pad);
  bottom: 26px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.hero__who { font-size: 14px; font-weight: 700; line-height: 1.45; color: var(--ink); max-width: 30ch; }
.hero__who span { display: block; font-weight: 500; color: var(--ink2); }
.tabs { display: flex; align-items: flex-end; gap: 10px; }
.tab { width: clamp(70px, 7.4vw, 112px); text-align: left; padding-top: 6px; }
.tab span { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink2); transition: color .3s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tab i { position: relative; display: block; height: 3px; margin-top: 10px; border-radius: 3px; background: rgba(238, 236, 232, .2); overflow: hidden; transition: background-color .3s; }
.tab i::after { content: ""; position: absolute; inset: 0; background: var(--sand); transform-origin: left; transform: scaleX(var(--p, 0)); }
.tab:hover span, .tab[aria-selected="true"] span { color: var(--ink); }
.tab:hover i { background: rgba(238, 236, 232, .38); }
.tabs [data-pause] { margin-left: 8px; }
.hero.is-paused .tab[aria-selected="true"] i::after { transform: scaleX(1); }

/* ---------- бегущая строка ---------- */
.facts { border-block: 1px solid var(--line); background: var(--s1); padding: 24px var(--pad); }
.facts ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 0; }
.facts li { display: flex; align-items: center; font: 800 16px/1.2 var(--font); text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; }
.facts li + li::before { content: ""; width: 12px; height: 12px; flex: none; margin: 0 28px; background: linear-gradient(var(--sand), var(--sand)) center / 100% 2px no-repeat, linear-gradient(var(--sand), var(--sand)) center / 2px 100% no-repeat; transition: transform 1.2s var(--ease); }
.facts.is-in li + li::before { transform: rotate(180deg); }
.js .facts li { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .facts.is-in li { opacity: 1; transform: none; }

/* ---------- секции ---------- */
.section { padding: clamp(84px, 11vw, 168px) var(--pad) 0; }
.section__head { max-width: 1100px; margin-bottom: clamp(28px, 3.4vw, 48px); }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.h2 { font: 800 clamp(36px, 5.2vw, 80px)/.94 var(--font); text-transform: uppercase; letter-spacing: -.02em; text-wrap: balance; }
.h3 { font: 800 clamp(20px, 1.8vw, 26px)/1.15 var(--font); text-transform: uppercase; letter-spacing: -.005em; }
.section__lead { margin-top: 20px; max-width: 54ch; font-size: 18px; color: var(--ink2); text-wrap: pretty; }

/* слова заголовков поднимаются из шва */
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.js [data-split] .w > span { display: inline-block; transform: translateY(108%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.js [data-split].is-in .w > span { transform: none; }
.js [data-reveal] { opacity: 0; transform: translateY(36px); filter: blur(8px); transition: opacity .9s var(--ease), transform 1.1s var(--ease), filter .9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* ---------- работы ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(28px, 3vw, 44px); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink2);
  transition: background-color .35s, color .35s, border-color .35s, transform .4s var(--ease);
}
.chip sup { font-size: 11px; font-weight: 700; opacity: .7; top: 0; }
.chip:hover { color: var(--ink); border-color: var(--ink2); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--dark); }
.chip:active { transform: scale(.96); }

.works__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.7vw, 26px); align-items: start; }
.work { display: block; width: 100%; text-align: left; }
.works__grid > .work:nth-child(4n+2), .works__grid > .work:nth-child(4n+4) { margin-top: 64px; }
.work__media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: var(--s2); }
.work__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .7s var(--ease); }
.work__media .work__b { opacity: 0; transform: scale(1.12); }
.work:hover .work__a { transform: scale(1.06); }
.work:hover .work__b { opacity: 1; transform: scale(1.02); }
.work__go { position: absolute; right: 14px; bottom: 14px; z-index: 2; width: 48px; height: 48px; }
.work__go svg { transform: rotate(-45deg); transition: transform .5s var(--ease); }
.work:hover .work__go svg { transform: none; }
.work__info { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 4px 0; }
.work__info b { font-size: 16.5px; font-weight: 700; line-height: 1.3; }
.work__info span { flex: none; font-size: 13.5px; color: var(--ink2); white-space: nowrap; }
.work { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.work.is-pre { opacity: 0; transform: translateY(40px); }

/* ---------- видео ---------- */
.reel__nav { display: flex; gap: 10px; }
.reel__track {
  display: flex;
  gap: 18px;
  margin: 0 calc(var(--pad) * -1);
  padding: 0 var(--pad) 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad);
  scrollbar-width: none;
  cursor: grab;
}
.reel__track::-webkit-scrollbar { display: none; }
.reel__track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.vcard { flex: 0 0 clamp(216px, 21vw, 300px); scroll-snap-align: start; text-align: left; }
.vcard__media { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 24px; overflow: hidden; background: var(--s2); }
.vcard__media video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.vcard:hover video { transform: scale(1.04); }
.vcard__play { position: absolute; left: 14px; bottom: 14px; width: 46px; height: 46px; }
.vcard__play svg { width: 18px; height: 18px; margin-left: 2px; }
.vcard__cap { display: block; padding: 12px 4px 0; font-size: 15px; font-weight: 600; }

/* ---------- цены ---------- */
.prices { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 104px); align-items: start; }
.prices__card { position: sticky; top: 108px; background: var(--s1); border: 1px solid var(--line); border-radius: 30px; padding: clamp(28px, 3.4vw, 52px); }
.price { margin: 30px 0 18px; font: 800 clamp(58px, 7vw, 96px)/.9 var(--font); color: var(--sand); letter-spacing: -.03em; white-space: nowrap; }
.price__from { font-size: max(16px, .34em); color: var(--ink); letter-spacing: 0; margin-right: .1em; vertical-align: .95em; }
.price__unit { font-size: max(16px, .3em); color: var(--ink2); letter-spacing: 0; }
.prices__text { font-size: 17px; color: var(--ink2); max-width: 40ch; }
.prices__label { margin-top: 22px; font-weight: 700; font-size: 16px; }
.prices__list { margin-top: 10px; display: grid; gap: 8px; }
.prices__list li { position: relative; padding-left: 22px; font-size: 16px; color: var(--ink2); max-width: 44ch; }
.prices__list li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 10px; height: 10px; background: linear-gradient(var(--sand), var(--sand)) center / 100% 2px no-repeat, linear-gradient(var(--sand), var(--sand)) center / 2px 100% no-repeat; }
.prices__note { margin: 20px 0 30px; font-weight: 700; font-size: 17px; max-width: 40ch; }
.services .h3 { margin-bottom: 22px; }
.acc__item { border-top: 1px solid var(--line); }
.acc__item:last-child { border-bottom: 1px solid var(--line); }
.acc__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 0; text-align: left; font: 700 clamp(19px, 1.9vw, 27px)/1.2 var(--font); transition: color .3s, padding .5s var(--ease); }
.acc__btn svg { width: 44px; height: 44px; flex: none; padding: 11px; border-radius: 50%; border: 1.5px solid var(--line); transition: transform .5s var(--ease), background-color .3s, border-color .3s, color .3s; }
.acc__btn:hover { color: var(--sand); padding-left: 10px; }
.acc__btn:hover svg { border-color: var(--sand); }
.acc__btn[aria-expanded="true"] svg { transform: rotate(45deg); background: var(--sand); border-color: var(--sand); color: var(--dark); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.acc__panel > div { overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 168px; gap: 24px; align-items: start; }
.acc__panel p { font-size: 17px; color: var(--ink2); max-width: 46ch; padding-bottom: 26px; }
.acc__panel > div:not(:has(img)) { grid-template-columns: minmax(0, 1fr); }
.acc__panel img { width: 168px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; margin-bottom: 26px; }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }

/* ---------- как начать ---------- */
.steps__list { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; counter-reset: st; }
.steps__list::before, .steps__list::after { content: ""; position: absolute; left: 26px; right: 26px; top: 25px; height: 2px; border-radius: 2px; background: var(--line); }
.steps__list::after { background: var(--sand); transform-origin: left; transform: scaleX(var(--draw, 0)); }
.steps__list li { position: relative; z-index: 1; padding-top: 74px; counter-increment: st; }
.steps__list li::before {
  content: counter(st);
  position: absolute;
  left: 0; top: 0;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--line);
  font-weight: 800; font-size: 17px;
  transition: background-color .5s, border-color .5s, color .5s;
}
.steps__list li.is-lit::before { background: var(--sand); border-color: var(--sand); color: var(--dark); }
.steps__list b { display: block; font-size: 18px; font-weight: 800; line-height: 1.25; margin-bottom: 8px; }
.steps__list span { display: block; font-size: 15px; color: var(--ink2); }

/* ---------- о мастере ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 104px); align-items: start; }
.about__lead { margin-top: 22px; font-size: 19px; max-width: 34ch; color: var(--ink); }
.about__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.about__facts > div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.about__facts > div:nth-child(odd) { padding-right: 20px; }
.about__facts dt { font-size: 14px; color: var(--ink2); }
.about__facts dd { margin-top: 4px; font-size: clamp(19px, 1.8vw, 24px); font-weight: 800; }
.about__more { margin-top: 36px; padding: clamp(22px, 2.4vw, 32px); border-radius: 24px; background: var(--s1); border: 1px solid var(--line); }
.about__more p { margin-top: 10px; color: var(--ink2); max-width: 56ch; }

/* ---------- контакты ---------- */
.contacts {
  margin-top: clamp(84px, 11vw, 168px);
  padding-bottom: clamp(84px, 9vw, 140px);
  text-align: center;
  background: radial-gradient(60% 70% at 50% 100%, #2a2d31, var(--bg) 75%);
  border-top: 1px solid var(--line);
}
.contacts__title { font: 800 clamp(38px, 6vw, 96px)/.94 var(--font); text-transform: uppercase; letter-spacing: -.02em; }
.contacts__phone { display: inline-block; margin-top: 26px; font: 800 clamp(32px, 6vw, 88px)/1 var(--font); color: var(--sand); font-variant-numeric: tabular-nums; letter-spacing: -.02em; background: linear-gradient(var(--sand), var(--sand)) 0 100% / 0 3px no-repeat; padding-bottom: 8px; transition: background-size .7s var(--ease); }
.contacts__phone:hover { background-size: 100% 3px; }
.contacts__hours { margin: 20px auto 0; max-width: 52ch; font-size: 18px; color: var(--ink2); }
.contacts__btns { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.contacts__insta { margin-top: 30px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; color: var(--ink2); font-weight: 600; transition: color .3s; }
.contacts__insta svg { width: 22px; height: 22px; }
.contacts__insta:hover { color: var(--ink); }

.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 32px; padding: 30px var(--pad) 34px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink2); }

/* ---------- нижняя панель на телефоне ---------- */
.dock { display: none; }

/* ---------- окна ---------- */
dialog { color: var(--ink); }
dialog::backdrop { background: rgba(8, 9, 10, .72); backdrop-filter: blur(4px); }
.viewer {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: clamp(12px, 2vw, 26px);
  border: 0;
  background: rgba(14, 15, 16, .97);
}
.viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 14px; animation: fade .4s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.viewer__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.viewer__title { display: block; font-size: clamp(17px, 1.6vw, 22px); font-weight: 800; }
.viewer__count { display: block; font-size: 14px; color: var(--ink2); font-variant-numeric: tabular-nums; }
.viewer__frame { position: relative; min-height: 0; touch-action: pan-y; }
.viewer__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; animation: pop .55s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.97); } }
.viewer__prev, .viewer__next { position: absolute; z-index: 1; top: 50%; margin-top: -28px; }
.viewer__prev { left: 0; }
.viewer__next { right: 0; }
.viewer__text { max-width: 70ch; margin: 0 auto; text-align: center; color: var(--ink2); font-size: 15px; }
.viewer__thumbs { display: flex; gap: 8px; overflow-x: auto; justify-content: safe center; padding-bottom: 4px; scrollbar-width: none; }
.viewer__thumbs button { flex: none; width: 56px; height: 70px; border-radius: 10px; overflow: hidden; opacity: .45; outline-offset: 2px; transition: opacity .3s, transform .4s var(--ease); }
.viewer__thumbs button:hover { opacity: .8; }
.viewer__thumbs button[aria-current="true"] { opacity: 1; outline: 2px solid var(--sand); }
.viewer__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.viewer--video[open] { grid-template-rows: auto minmax(0, 1fr); }
.viewer--video video { justify-self: center; max-height: 100%; max-width: 100%; aspect-ratio: 9 / 16; border-radius: 18px; background: #000; }

.sheet {
  width: min(460px, calc(100vw - 24px));
  padding: 26px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--s1);
}
.sheet[open] { display: grid; gap: 10px; animation: rise .5s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }
.sheet__title { font-weight: 800; font-size: 20px; text-transform: uppercase; margin-bottom: 8px; }
.sheet .pill { width: 100%; justify-content: flex-start; }
.sheet .pill--sand { justify-content: space-between; }
.sheet__close { margin-top: 6px; height: 48px; border-radius: 999px; color: var(--ink2); font-weight: 600; }
.sheet__close:hover { color: var(--ink); }
.sheet--menu nav { display: grid; margin-bottom: 14px; }
.sheet--menu nav a { padding: 12px 4px; font: 800 26px/1.1 var(--font); text-transform: uppercase; border-bottom: 1px solid var(--line); }

/* ---------- телефон и планшет ---------- */
@media (max-width: 1120px) {
  .top__phone { display: none; }
}
@media (max-width: 899px) {
  :root { --top-h: 64px; }
  .top { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .top__menu { display: grid; width: 46px; height: 46px; }
  .top__call { gap: 10px; }
  .brand { font-size: 24px; }

  .hero { min-height: 600px; max-height: none; background: radial-gradient(90% 46% at 50% 52%, #2b2e32 0%, #1d1f22 55%, var(--bg) 85%); }
  .hero::after { display: none; }
  .hero__slides { left: 0; right: 0; top: calc(var(--top-h) + 14px); bottom: 0; width: auto; padding: 0 var(--pad); grid-template-areas: "s"; }
  .slide { display: flex; flex-direction: column; height: 100%; padding-bottom: 156px; }
  .slide__title { font-size: clamp(34px, 10.4vw, 64px); }
  .slide__sub { font-size: max(16px, .44em); }
  .slide__lead { margin-top: auto; font-size: 15px; line-height: 1.5; max-width: 44ch; }
  .hero__actions { position: absolute; left: var(--pad); right: var(--pad); bottom: 62px; margin: 0; flex-wrap: nowrap; gap: 8px; }
  .hero__actions .pill { --h: 52px; flex: 1 1 auto; padding-left: 18px; font-size: 14.5px; min-width: 0; }
  .hero__actions .pill--sand { max-width: 300px; }
  .hero__actions .pill--line { flex: 0 1 auto; padding: 0 18px; }
  .hero__actions .pill span:first-child { overflow: hidden; text-overflow: ellipsis; }
  .hero__stage { left: var(--pad); right: var(--pad); top: 25%; bottom: 34%; }
  .room::after {
    background:
      linear-gradient(180deg, rgba(22, 23, 25, .92) 0%, rgba(22, 23, 25, .55) 24%, rgba(22, 23, 25, .1) 42%, rgba(22, 23, 25, .25) 58%, rgba(22, 23, 25, .95) 74%);
  }
  .hero.has-room .hero__stage { left: 30%; right: var(--pad); top: 34%; bottom: 33%; }
  .room__note { right: var(--pad); top: calc(34% - 36px); font-size: 12px; padding: 5px 10px; }
  .hero.has-room .tag3d { display: none; }
  .stagebar { left: 0; right: 0; width: auto; bottom: -22px; transform: none; justify-content: space-between; }
  .hero__grab { inset: 0 14%; }
  .clip { height: 100%; }
  .clip.is-on { transform: translate(-56%, -50%) rotate(-3deg); }
  .clip__back { right: -40%; width: 66%; }
  .tag3d, .tagvid { font-size: 12px; padding: 6px 12px 6px 10px; }
  .hero__prev { left: 8px; }
  .hero__next { right: 8px; }
  .m-hide { display: none; }
  .m-show { display: inline; }
  .proof { margin-left: auto; padding: 5px 12px 5px 5px; gap: 9px; }
  .proof img { width: 36px; height: 36px; }
  .proof__text b { font-size: 12.5px; }
  .proof__text span { font-size: 12px; }
  .proof__arrow { display: none; }
  .hero__prev, .hero__next { width: 44px; height: 44px; top: 48%; margin-top: -22px; }
  .hero__prev { left: 8px; }
  .hero__next { right: 8px; }
  .hero__prev, .hero__next { top: 46%; }
  .hero__foot { bottom: 22px; justify-content: center; }
  .hero__who { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tabs { gap: 8px; align-items: center; }
  .tab { width: 22px; padding: 10px 0; transition: width .6s var(--ease); }
  .tab[aria-selected="true"] { width: 48px; }
  .tab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tab i { margin-top: 0; }

  .facts { padding: 18px var(--pad); }
  .facts ul { justify-content: flex-start; gap: 10px 0; }
  .facts li { font-size: 13px; }
  .facts li + li::before { margin: 0 14px; width: 10px; height: 10px; }
  .works__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .works__grid > .work:nth-child(4n+2), .works__grid > .work:nth-child(4n+4) { margin-top: 0; }
  .works__grid > .work:nth-child(even) { margin-top: 40px; }
  .work__info { flex-direction: column; gap: 2px; padding-top: 10px; }
  .work__info b { font-size: 14.5px; }
  .work__go { width: 40px; height: 40px; right: 10px; bottom: 10px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--pad) * -1) 26px; padding: 0 var(--pad); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; height: 42px; padding: 0 16px; font-size: 14px; }
  .reel__nav { display: none; }
  .vcard { flex-basis: 62vw; }
  .prices, .about { grid-template-columns: minmax(0, 1fr); }
  .prices__card { position: relative; top: 0; }
  .acc__panel > div { grid-template-columns: minmax(0, 1fr) 104px; gap: 14px; }
  .acc__panel img { width: 104px; }
  .acc__btn { padding: 22px 0; }
  .steps__list { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps__list::before, .steps__list::after { left: 25px; right: auto; top: 26px; bottom: 26px; width: 2px; height: auto; }
  .steps__list::after { transform-origin: top; transform: scaleY(var(--draw, 0)); }
  .steps__list li { padding: 12px 0 30px 74px; }
  .steps__list li::before { top: 0; }
  .contacts__btns .pill { flex: 1 1 calc(50% - 6px); }
  .contacts__btns .pill--sand { flex-basis: 100%; }
  .foot { padding-bottom: 108px; }
  .dock {
    display: flex;
    gap: 10px;
    position: fixed;
    left: 12px; right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 60;
    transform: translateY(150%);
    transition: transform .6s var(--ease);
  }
  .dock.is-on { transform: none; }
  .dock .pill { flex: 1; justify-content: space-between; box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .8); }
  .sheet[open] { margin: auto auto 0; width: 100%; max-width: 100%; border-radius: 28px 28px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}
@media (max-width: 899px) and (max-height: 700px) {
  .lead-more { display: none; }
  .hero__stage { top: 27%; bottom: 36%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* снимки для проверки: ?settle */
.settle *, .settle *::before, .settle *::after { transition: none !important; animation: none !important; }

