/* ============================================================
   ДУБРАВА — вариант 2: полноэкранная «галерейная» подача
   Монохром, тонкие линии, крупные заголовки одним словом.
   ============================================================ */

:root {
  --ink: #121212;        /* меню, самый тёмный фон */
  --char: #2a2a2a;       /* тёмные секции */
  --char-2: #333;        /* заявка, подвал */
  --tile: #3d3d3d;
  --grey: #cdcdcd;       /* светлые секции */
  --grey-ink: #2a2a2a;   /* текст на светлом */
  --soft: #d6d6d6;       /* основной текст на тёмном */
  --muted: #9a9a9a;
  --line: rgba(255, 255, 255, .55);
  --error: #ffa08f;

  --gutter: clamp(20px, 5vw, 76px);
  --wrap: 1320px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: 'Jost', 'Futura', 'Century Gothic', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--char);
  color: #fff;
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
address { font-style: normal; }

:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: #fff; color: var(--ink); padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 16px; }

/* ---------- типографика ---------- */

.display {
  display: block;
  margin: 0;
  font-weight: 300;
  font-size: clamp(46px, 8.6vw, 132px);
  line-height: .95;
  letter-spacing: .005em;
}
.display--dark { color: var(--grey-ink); }

.kicker {
  display: block;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
}

.section__sub {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--soft);
}
.section--grey .section__sub { color: #444; }

/* стрелка-ссылка: длинная тонкая стрелка + подпись капителью */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
}
.arrow-link svg,
.btn-line svg,
.tile__arrow,
.lightbox__nav svg {
  width: 48px; height: 14px;
  fill: none; stroke: currentColor; stroke-width: 1.2;
  transition: transform .45s var(--ease);
}
.arrow-link:hover svg,
.arrow-link:focus-visible svg { transform: translateX(10px); }

/* ============================================================
   Шапка
   ============================================================ */

.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 30px var(--gutter);
  pointer-events: none;
  transition:
    transform .55s var(--ease),
    padding .45s var(--ease),
    background-color .45s,
    box-shadow .45s;
}
.top > * { pointer-events: auto; }

/* Ниже первого экрана шапка — компактная полоса с размытым фоном.
   При прокрутке вниз уезжает вверх, при прокрутке вверх возвращается. */
.top.is-solid {
  align-items: center;
  padding-top: 14px;
  padding-bottom: 14px;
  pointer-events: auto;
  background: rgba(18, 18, 18, .78);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}
.top.is-hidden { transform: translateY(-110%); }
.menu-open .top { transform: none; }

.brand {
  display: block;
  color: #fff;
  text-decoration: none;
  line-height: 1;
  transition: color .4s;
}
.brand__name {
  display: block;
  font-size: 23px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.brand__sub {
  display: block;
  margin-top: 7px;
  font-size: 9.5px;
  letter-spacing: .5em;
  text-transform: uppercase;
  opacity: .8;
}

.menu-btn {
  writing-mode: vertical-rl;
  background: none;
  border: 0;
  padding: 6px 4px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .4s;
}
.menu-btn__close { display: none; }
.menu-open .menu-btn__open { display: none; }
.menu-open .menu-btn__close { display: inline; }

/* над светлыми секциями шапка и точки становятся тёмными */
.brand.on-light, .menu-btn.on-light, .dots.on-light { color: var(--grey-ink); }
.menu-open .brand, .menu-open .menu-btn { color: #fff; }

/* в компактной полосе фон всегда тёмный — текст всегда белый */
.top.is-solid .brand,
.top.is-solid .menu-btn { color: #fff; }
.top.is-solid .brand__name { font-size: 19px; }
.top.is-solid .brand__sub { margin-top: 5px; font-size: 8.5px; }
.top.is-solid .menu-btn {
  writing-mode: horizontal-tb;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
/* значок-«бургер» из двух линий рядом со словом «Меню» в компактной полосе */
.top.is-solid .menu-btn::before {
  content: '';
  width: 22px; height: 7px;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}

/* ---------- точки-навигация ---------- */

.dots {
  position: fixed;
  right: calc(var(--gutter) + 2px);
  top: 50%;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(-50%);
  color: #fff;
  transition: color .4s, opacity .4s;
}
.dots a {
  position: relative;
  display: block;
  width: 10px; height: 10px;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: background-color .3s;
}
.dots a.is-active { background: currentColor; }
.dots a::after {
  content: attr(data-label);
  position: absolute;
  right: 24px; top: 50%;
  transform: translate(8px, -50%);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease);
}
.dots a:hover::after,
.dots a:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
.menu-open .dots { opacity: 0; pointer-events: none; }

/* ============================================================
   Полноэкранное меню
   ============================================================ */

.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--gutter);
  align-items: center;
  padding: 120px calc(var(--gutter) + 40px) 60px var(--gutter);
  background: var(--ink);
  overflow-y: auto;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .8s var(--ease), visibility 0s .8s;
}
.menu.is-open {
  transform: none;
  visibility: visible;
  transition: transform .8s var(--ease), visibility 0s;
}

.menu__nav ol { list-style: none; margin: 0; padding: 0; }
.menu__nav li {
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity .5s, transform .5s var(--ease);
}
.menu.is-open .menu__nav li { opacity: 1; transform: none; }
.menu.is-open .menu__nav li:nth-child(1) { transition-delay: .25s; }
.menu.is-open .menu__nav li:nth-child(2) { transition-delay: .3s; }
.menu.is-open .menu__nav li:nth-child(3) { transition-delay: .35s; }
.menu.is-open .menu__nav li:nth-child(4) { transition-delay: .4s; }
.menu.is-open .menu__nav li:nth-child(5) { transition-delay: .45s; }
.menu.is-open .menu__nav li:nth-child(6) { transition-delay: .5s; }
.menu.is-open .menu__nav li:nth-child(7) { transition-delay: .55s; }

.menu__nav a {
  display: inline-flex;
  align-items: baseline;
  gap: 18px;
  padding: 4px 0;
  font-size: clamp(30px, 3.9vw, 50px);
  font-weight: 300;
  line-height: 1.22;
  color: #7d7d7d;
  text-decoration: none;
  transition: color .3s;
}
.menu__nav a small {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  color: #5e5e5e;
}
.menu__nav a:hover,
.menu__nav a:focus-visible,
.menu__nav a.is-current { color: #fff; }

.menu__info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px 32px;
  color: var(--soft);
  font-size: 15px;
}
.menu__info h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
}
.menu__info p, .menu__info address { margin: 0; line-height: 1.7; }
.menu__info a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.25); }
.menu__info a:hover { border-color: #fff; }

/* ============================================================
   Полноэкранные панели с фото
   ============================================================ */

.panel {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--ink);
}

.panel__media {
  position: absolute;
  inset: -9% 0;
  z-index: -2;
  will-change: transform;
}
.panel__media picture { display: block; width: 100%; height: 100%; }
.panel__media img,
.panel__media .bg-video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50%) 50%;
  transform: scale(1.08);
  transition: transform 2.8s var(--ease), opacity 1.2s var(--ease);
}
.panel.is-in .panel__media img,
.panel.is-in .panel__media .bg-video { transform: scale(1); }

/* видео лежит поверх постера и проявляется, когда реально пошло воспроизведение */
.bg-video {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.bg-video.is-playing { opacity: 1; }

/* затемнение слева — под текстом */
.panel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0,0,0,.66) 0%, rgba(0,0,0,.38) 48%, rgba(0,0,0,.12) 100%),
    linear-gradient(0deg, rgba(0,0,0,.25), rgba(0,0,0,0) 30%);
}

.panel__content {
  position: relative;
  width: 100%;
  max-width: calc(760px + var(--gutter));
  padding: 120px var(--gutter);
}
.panel__title { margin: 0; font-weight: inherit; }
.slogan {
  display: block;
  margin-bottom: 8px;
  font-size: 1.25em;
  font-weight: 400;
  color: #fff;
}
.panel__intro i { font-style: normal; font-weight: 500; }
.panel__intro {
  max-width: 33em;
  margin: 28px 0 34px;
  font-size: clamp(16px, 1.22vw, 19px);
  line-height: 1.6;
  color: #ececec;
}

/* ---------- тонкая рамка, «прорисовывается» при появлении ---------- */

.frame {
  position: absolute;
  z-index: 0;
  left: calc(var(--gutter) + 5.5vw);
  right: calc(var(--gutter) + 4vw);
  top: 15%;
  bottom: 15%;
  pointer-events: none;
}
.frame svg { display: block; width: 100%; height: 100%; overflow: visible; }
.frame polyline {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.4s var(--ease) .15s;
}
.is-in .frame polyline { stroke-dashoffset: 0; }

/* ---------- круглый значок ---------- */

.badge {
  position: absolute;
  z-index: 1;
  right: calc(var(--gutter) + 4vw - 82px);
  bottom: calc(15% - 82px);
  width: 164px; height: 164px;
  color: #fff;
}
.badge svg { width: 100%; height: 100%; overflow: visible; }
.badge__ring {
  transform-origin: 100px 100px;
  animation: spin 38s linear infinite;
}
.badge__ring text {
  fill: currentColor;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1em;
}
.badge__line { fill: none; stroke: currentColor; stroke-width: .8; opacity: .55; }
.badge__big, .badge__small { fill: currentColor; text-anchor: middle; }
.badge__big { font-size: 36px; font-weight: 300; letter-spacing: .04em; }
.badge__small { font-size: 12px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- подсказка «листать вниз» ---------- */

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 1px; height: 54px;
  overflow: hidden;
  background: rgba(255,255,255,.25);
}
.scroll-cue span {
  position: absolute;
  inset: 0;
  background: #fff;
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ---------- цифры ---------- */

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 0;
  margin: 0 0 38px;
  padding: 0;
  list-style: none;
}
.stats li { padding: 0 28px; border-left: 1px solid rgba(255,255,255,.35); }
.stats li:first-child { padding-left: 0; border-left: 0; }
.stats strong { display: block; font-size: 34px; font-weight: 300; line-height: 1.15; }
.stats span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #dcdcdc;
}

/* ============================================================
   Обычные секции
   ============================================================ */

.section { position: relative; padding: clamp(96px, 11vw, 160px) 0; }
.section--grey { background: var(--grey); color: var(--grey-ink); }
.section--dark { background: var(--char); }
.section--ink  { background: #1c1c1c; }
.section--char { background: var(--char-2); }

.section__head {
  display: grid;
  grid-template-columns: 1fr minmax(0, 430px);
  align-items: end;
  gap: 32px;
  max-width: var(--wrap);
  margin: 0 auto 60px;
  padding: 0 var(--gutter);
}

/* ---------- плитки мебели ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #5a5a5a;
  color: #fff;
  text-align: left;
  cursor: pointer;
}
.tile img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(.92);
  transform: scale(1.03);
  transition: filter .9s var(--ease), transform 1.4s var(--ease);
}
.tile::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.72) 100%);
}
/* внутренняя рамка появляется при наведении */
.tile::after {
  content: '';
  position: absolute;
  inset: 20px;
  z-index: 1;
  border: 1px solid rgba(255,255,255,.7);
  opacity: 0;
  transform: scale(.965);
  transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.tile:hover img, .tile:focus-visible img { filter: none; transform: scale(1.09); }
.tile:hover::after, .tile:focus-visible::after { opacity: 1; transform: none; }
.tile:hover .tile__arrow, .tile:focus-visible .tile__arrow { transform: translateX(10px); }

.tile__body {
  position: absolute;
  left: 40px; right: 40px; bottom: 40px;
  z-index: 2;
  display: block;
}
.tile__title {
  display: block;
  font-size: clamp(28px, 2.5vw, 38px);
  font-weight: 300;
  line-height: 1.05;
}
.tile__desc {
  display: block;
  margin: 10px 0 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #e4e4e4;
}
.tile__price {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.tile__arrow { display: block; margin-top: 16px; }

/* ---------- галерея работ ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 15.5vw, 240px);
  gap: clamp(10px, 1.2vw, 18px);
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.gallery__item {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #3a3a3a;
  cursor: zoom-in;
}
.gallery__item:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.gallery__item:nth-child(2),
.gallery__item:nth-child(3) { grid-column: span 2; }
.gallery__item:nth-child(4),
.gallery__item:nth-child(5) { grid-column: span 3; grid-row: span 2; }
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter .6s;
  filter: brightness(.9);
}
.gallery__item::after {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255,255,255,.7);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.06); filter: none; }
.gallery__item:hover::after, .gallery__item:focus-visible::after { opacity: 1; }

/* ============================================================
   Процесс: текст слева, фото справа
   ============================================================ */

.split {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  background: var(--grey);
  color: var(--grey-ink);
}
.split__content {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: clamp(110px, 11vw, 150px) clamp(28px, 4vw, 64px) clamp(90px, 9vw, 130px) var(--gutter);
}
.split__intro {
  max-width: 30em;
  margin: 26px 0 40px;
  font-size: clamp(16px, 1.2vw, 18px);
  color: #3c3c3c;
}
.split__media { position: relative; min-height: 420px; overflow: hidden; }
.split__media img,
.split__media .bg-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--focus, 45%) 50%;
  filter: grayscale(1) contrast(1.08);
}
.split__media .bg-video { transition: opacity 1.2s var(--ease); }

.frame--split {
  left: calc(var(--gutter) + 5.5vw);
  right: 14%;
  top: 11%;
  bottom: 11%;
  z-index: 2;
}
.frame--split polyline { stroke: rgba(255,255,255,.8); }

.badge--split {
  right: auto;
  left: -82px;
  bottom: 14%;
  z-index: 3;
  color: #fff;
}
.badge--split .badge__big { font-size: 46px; }

.steps { list-style: none; margin: 0; padding: 0; max-width: 520px; }
.steps li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px;
  padding: 18px 0;
  border-top: 1px solid rgba(0,0,0,.16);
}
.steps li:last-child { border-bottom: 1px solid rgba(0,0,0,.16); }
.steps span {
  padding-top: 3px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  color: #6a6a6a;
}
.steps b { display: block; font-size: 18px; font-weight: 500; }
.steps p { margin: 4px 0 0; font-size: 15px; line-height: 1.55; color: #4a4a4a; }

/* ============================================================
   Вопросы
   ============================================================ */

.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(40px, 6vw, 110px);
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.faq-wrap__head .section__sub { margin-top: 26px; max-width: 22em; }
.faq-wrap__head { align-self: start; position: sticky; top: 120px; }

.faq details { border-top: 1px solid rgba(255,255,255,.16); }
.faq details:last-of-type { border-bottom: 1px solid rgba(255,255,255,.16); }

.faq summary {
  position: relative;
  padding: 26px 60px 26px 0;
  list-style: none;
  font-size: clamp(18px, 1.55vw, 22px);
  font-weight: 400;
  line-height: 1.35;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
/* плюс из двух тонких линий, при раскрытии превращается в минус */
.faq summary::before,
.faq summary::after {
  content: '';
  position: absolute;
  right: 6px; top: 50%;
  width: 20px; height: 1px;
  background: currentColor;
  transition: transform .4s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq summary:hover { color: #fff; }

.faq details p {
  margin: 0 0 28px;
  max-width: 44em;
  font-size: 16px;
  color: var(--soft);
}

.geo { margin-top: 56px; }
.geo h3 { margin: 0 0 10px; font-size: 15px; font-weight: 500; }
.geo p { margin: 0; font-size: 15px; color: var(--muted); max-width: 46em; }

/* ============================================================
   Заявка и контакты
   ============================================================ */

.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(12px, 1.4vw, 20px);
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.contact-tile {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 560px;
  padding: clamp(36px, 4vw, 56px);
  background: var(--tile);
}
.contact-tile::after {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(255,255,255,.2);
  pointer-events: none;
}
.contact-tile__mark {
  position: absolute;
  top: -.12em; left: .02em;
  font-size: clamp(260px, 30vw, 440px);
  font-weight: 300;
  line-height: 1;
  color: rgba(255,255,255,.06);
  pointer-events: none;
}
.contact-tile dl { position: relative; margin: 0; display: grid; gap: 20px; }
.contact-tile dt {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-tile dd { margin: 4px 0 0; font-size: 17px; color: #fff; }
.contact-tile dd a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.25); }
.contact-tile dd a:hover { border-color: #fff; }
.contact-tile dd a[data-phone-link] { font-size: clamp(22px, 2vw, 28px); font-weight: 300; border: 0; }

.form-tile {
  padding: clamp(36px, 4.4vw, 64px);
  background: var(--char);
}
.form-tile .display { font-size: clamp(46px, 6vw, 92px); }
.form-tile .section__sub { margin: 20px 0 34px; max-width: 30em; }

.form { display: grid; gap: 26px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }

.field label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 0 12px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.32);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font: 400 17px/1.4 var(--font);
  transition: border-color .3s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 52px; }
.field input::placeholder, .field textarea::placeholder { color: #6f6f6f; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #fff; }
.field select {
  padding-right: 28px;
  background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(-45deg, transparent 50%, #fff 50%);
  background-position: right 8px center, right 3px center;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.field select option { background: var(--char); color: #fff; }
.field.is-invalid input { border-color: var(--error); }

.err { display: block; min-height: 0; margin-top: 6px; font-size: 13px; color: var(--error); }
.err:empty { display: none; }

.check {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 14px;
  line-height: 1.5;
  color: var(--soft);
  cursor: pointer;
}
.check input {
  width: 18px; height: 18px;
  margin: 2px 0 0;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  display: grid;
  place-content: center;
}
.check input::after {
  content: '';
  width: 10px; height: 10px;
  background: #fff;
  transform: scale(0);
  transition: transform .2s var(--ease);
}
.check input:checked::after { transform: scale(1); }
.check a { text-decoration: underline; text-underline-offset: 3px; }
.check + .err { margin-top: -14px; }

.btn-line {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  margin-top: 6px;
  padding: 18px 30px;
  border: 1px solid #fff;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .35s, color .35s;
}
.btn-line:hover, .btn-line:focus-visible { background: #fff; color: var(--ink); }
.btn-line:hover svg, .btn-line:focus-visible svg { transform: translateX(8px); }

.form__note { margin: -8px 0 0; font-size: 13px; color: var(--muted); }
.form__status { margin: 0; font-size: 15px; color: #fff; }
.form__status:empty { display: none; }

.map {
  max-width: var(--wrap);
  margin: clamp(12px, 1.4vw, 20px) auto 0;
  padding: 0 var(--gutter);
}
.map iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
  filter: grayscale(1) invert(.9) contrast(.9);
}

/* ============================================================
   Подвал
   ============================================================ */

.foot { background: var(--char-2); text-align: center; }
.foot__main { padding: 30px var(--gutter) 56px; }
.foot__brand {
  display: inline-block;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  text-decoration: none;
}
.foot__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-top: 30px;
}
.foot__nav a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--soft);
}
.foot__nav a:hover { color: #fff; }
.foot__credits { margin: 30px auto 0; max-width: 60em; font-size: 12px; color: #8c8c8c; }
.foot__credits a { color: #b5b5b5; }

.foot__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 16px var(--gutter);
  background: #d9d9d9;
  color: #4a4a4a;
  font-size: 12.5px;
  text-align: left;
}

/* ============================================================
   Кнопка «Пауза / Видео»
   ============================================================ */

.video-toggle {
  position: fixed;
  left: var(--gutter);
  bottom: 26px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: .75;
  mix-blend-mode: difference; /* читается и на фото, и на светлых блоках */
  transition: opacity .3s;
}
.video-toggle:hover, .video-toggle:focus-visible { opacity: 1; }
.video-toggle[hidden] { display: none; }
/* значок: две полоски = пауза, треугольник = запуск */
.video-toggle i {
  width: 9px; height: 10px;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}
.video-toggle.is-off i {
  width: 0; height: 0;
  border-left: 9px solid currentColor;
  border-right: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}
.menu-open .video-toggle { opacity: 0; pointer-events: none; }

/* ============================================================
   Виджет WhatsApp
   ============================================================ */

.wa { position: fixed; right: 22px; bottom: 22px; z-index: 50; }
.wa__btn {
  display: grid;
  place-content: center;
  width: 56px; height: 56px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 50%;
  background: var(--ink);
  cursor: pointer;
  transition: background-color .3s, transform .3s var(--ease);
}
.wa__btn svg { width: 26px; height: 26px; fill: #fff; }
.wa__btn:hover { background: #25d366; border-color: #25d366; transform: scale(1.05); }

.wa__card {
  position: absolute;
  right: 0; bottom: 72px;
  width: min(300px, calc(100vw - 44px));
  padding: 24px 24px 22px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}
.wa__close {
  position: absolute;
  right: 8px; top: 4px;
  border: 0; background: none;
  font-size: 26px; line-height: 1;
  color: #777;
  cursor: pointer;
}
.wa__title { margin: 0 0 6px; font-size: 18px; font-weight: 500; }
.wa__text { margin: 0 0 16px; font-size: 14px; line-height: 1.5; color: #444; }
.wa__go {
  display: block;
  padding: 13px;
  background: var(--ink);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.wa__go:hover { background: #25d366; }

/* ============================================================
   Лайтбокс
   ============================================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(12,12,12,.96);
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 86vw; max-height: 86vh; object-fit: contain; }
.lightbox__close,
.lightbox__nav {
  position: absolute;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
}
.lightbox__close { top: 18px; right: 26px; font-size: 40px; font-weight: 300; line-height: 1; }
.lightbox__nav { top: 50%; padding: 20px; transform: translateY(-50%); }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
.lightbox__nav--prev:hover svg { transform: translateX(-8px); }
.lightbox__nav--next:hover svg { transform: translateX(8px); }

/* ============================================================
   Заглушка, если фото не загрузилось
   ============================================================ */

.img-missing {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 14px, rgba(255,255,255,0) 14px 28px),
    #3b3b3b;
}
.img-missing::before {
  content: attr(data-label);
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  text-align: center;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8a8a8a;
}

/* ============================================================
   Появление при прокрутке (только когда JS работает)
   ============================================================ */

.js .rv {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms + 120ms);
}
.js .is-in .rv { opacity: 1; transform: none; }

/* ============================================================
   Адаптив
   ============================================================ */

@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile__body { left: 30px; right: 30px; bottom: 30px; }
}

@media (max-width: 900px) {
  .dots { display: none; }

  .menu { grid-template-columns: 1fr; align-items: start; padding: 110px var(--gutter) 48px; gap: 48px; }
  .menu__info { gap: 28px 20px; }

  .frame { left: calc(var(--gutter) + 18px); right: calc(var(--gutter) - 4px); top: 13%; bottom: 11%; }
  .panel__content { padding: 110px calc(var(--gutter) + 6px) 120px var(--gutter); }

  /* внутри рамки, выше кнопки WhatsApp */
  .badge { width: 116px; height: 116px; right: calc(var(--gutter) + 14px); bottom: calc(11% + 14px); }

  .section__head { grid-template-columns: 1fr; gap: 22px; margin-bottom: 40px; }

  .split { grid-template-columns: 1fr; min-height: 0; }
  .split__media { min-height: 70vw; }
  .frame--split { display: none; }
  .badge--split { left: auto; right: var(--gutter); bottom: auto; top: -58px; }

  .faq-wrap { grid-template-columns: 1fr; }
  .faq-wrap__head { position: static; }

  .lead-grid { grid-template-columns: 1fr; }
  .contact-tile { min-height: 0; padding-top: 140px; }
}

@media (max-width: 640px) {
  .brand__name { font-size: 19px; }
  .top { padding-top: 22px; }

  /* плитки — горизонтальная лента с прокруткой пальцем */
  .tiles {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 80%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--gutter);
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .tiles::-webkit-scrollbar { display: none; }
  .tile { scroll-snap-align: start; }
  .tile img { filter: none; }

  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 42vw; }
  .gallery__item:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .gallery__item:nth-child(1) { grid-column: span 2; }

  .stats li { padding: 0 18px; }
  .stats strong { font-size: 28px; }

  .form__row { grid-template-columns: 1fr; }
  .btn-line { justify-self: stretch; justify-content: space-between; }
  .map iframe { height: 280px; }
  .foot__bar { justify-content: center; text-align: center; }
  .menu__info { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
}
