/* ============================================================
   FOUR ROOMS — прототип лендинга
   Фирстиль: тёплый греж, графит, тонкий геометрический гротеск
   Тема залочена светлая (бренд студии, печатная эстетика PDF)
   ============================================================ */

:root {
  --bg: #FFFFFF;
  --bg-alt: #FFFFFF;
  --paper: #F1EEE9;
  --ink: #22201C;
  --ink-soft: #5C574F;
  --line: #C8C1B6;
  --dark: #161412;
  --accent: #96543F;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad-x: clamp(1.25rem, 5vw, 5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Jost", "Montserrat", sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* full-bleed блоки (100vw) не должны рождать горизонтальный скролл */
}

body.is-loading { overflow: hidden; }

.site-shell {
  opacity: 0;
  transition: opacity 0.65s var(--ease);
}

body.is-ready .site-shell { opacity: 1; }

img { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  letter-spacing: 0.14em;
}

h3 {
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  font-weight: 400;
}

a { color: inherit; text-decoration: none; }

section { padding: clamp(4.5rem, 9vw, 8.5rem) var(--pad-x); }

/* -------- заголовки секций -------- */
.section-head {
  max-width: 34rem;
  margin: 0 auto clamp(2.5rem, 5vw, 4.5rem);
  text-align: center;
}
.section-head--left { margin: 0 0 clamp(2.5rem, 5vw, 4rem); text-align: left; }
.section-head p { margin-top: 1rem; color: var(--ink-soft); }

/* -------- кнопки и ссылки -------- */
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-family: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1.05rem 2.4rem;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.15s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn:active { transform: scale(0.98); }

.btn--light {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.btn--light:hover { background: transparent; color: var(--paper); }

.btn--small { padding: 0.65rem 1.4rem; font-size: 0.72rem; }
.btn--full { width: 100%; }

.link-arrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.3rem;
  transition: border-color 0.3s, color 0.3s;
}
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }
.link-arrow--light { color: var(--paper); border-color: rgba(241, 238, 233, 0.4); }
.link-arrow--light:hover { color: #fff; border-color: #fff; }

/* ============================ NAV ============================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 88px;
  padding: 0 var(--pad-x);
  background: var(--bg);
  border-bottom: 1px solid rgba(34, 32, 28, 0.08);
  transition: transform 0.45s var(--ease);
}

/* шапка прячется при скролле вниз, возвращается при скролле вверх */
.nav.nav--hidden { transform: translateY(-100%); }

/* Логотип приведён к границам самого знака: SVG создан на большой монтажной области. */
.brand-logo { display: block; overflow: visible; }
.nav__logo { display: flex; align-items: center; color: var(--ink); }
.nav__logo .brand-logo {
  width: 42px;
  height: 52px;
  transition: opacity 0.25s;
}
.nav__logo:hover .brand-logo { opacity: 0.65; }

.nav__links { display: flex; align-items: center; gap: clamp(1.1rem, 2.1vw, 2.2rem); }
.nav__links--left { justify-self: start; }
.nav__links--right { justify-self: end; }
.nav__links a {
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #9b9995;
  transition: color 0.25s;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a.is-active {
  color: var(--ink);
  position: relative;
}
.nav__links a.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 1px;
  background: var(--ink);
}

.nav__lang { font-size: 0.82rem; letter-spacing: 0.08em; color: var(--ink-soft); }
.nav__lang a.is-active { color: var(--ink); }
.nav__lang-sep { margin: 0 0.35rem; color: var(--line); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 7px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__burger span { width: 26px; height: 1px; background: var(--ink); transition: transform 0.3s var(--ease); }

/* ============================ PRELOADER ============================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  background: var(--bg);
  transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}

.preloader__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(52vw, 24rem);
  height: min(62vh, 28rem);
  transform: translate(-50%, -50%);
  animation: logoToHeader 2.7s var(--ease) forwards;
}

body.is-ready .preloader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes logoToHeader {
  0% { left: 50%; top: 50%; width: min(52vw, 24rem); height: min(62vh, 28rem); transform: translate(-50%, -50%); }
  68% { left: 50%; top: 50%; width: min(52vw, 24rem); height: min(62vh, 28rem); transform: translate(-50%, -50%); }
  100% { left: 50%; top: 44px; width: 42px; height: 52px; transform: translate(-50%, -50%); }
}

/* ============================ HERO ============================ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(15, 13, 11, 0.42) 0%, rgba(15, 13, 11, 0.28) 60%, rgba(15, 13, 11, 0.38) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 0 var(--pad-x);
  text-align: center;
  color: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* имя студии как главный элемент первого экрана */
.hero__brand {
  font-size: clamp(2.2rem, 8vw, 6.2rem);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  letter-spacing: 0.14em;
  margin-right: -0.14em;
  text-shadow: 0 2px 40px rgba(15, 13, 11, 0.45);
}

body.is-loading .hero__brand {
  opacity: 0;
  transform: translateY(1.25rem) scale(0.96);
}

@keyframes heroBrandReveal {
  from { opacity: 0; transform: translateY(1.25rem) scale(0.96); letter-spacing: 0.2em; }
  to { opacity: 1; transform: none; letter-spacing: 0.14em; }
}

@media (prefers-reduced-motion: no-preference) {
  body.is-ready .hero__brand { animation: heroBrandReveal 1.2s var(--ease) 0.12s both; }
}

.hero__sub {
  margin-top: 0.325rem;
  font-size: 0.92rem;
  letter-spacing: 0.3em;
  margin-right: -0.3em;
  text-transform: uppercase;
  color: rgba(241, 238, 233, 0.85);
}

.hero__actions {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  flex-wrap: wrap;
}

/* призыв к скроллу — левитирующая стрелка внизу первого экрана */
.hero__scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(1.4rem, 4vw, 2.6rem);
  z-index: 1;
  display: grid;
  place-items: center;
  color: var(--paper);
  opacity: 0.8;
  transform: translateX(-50%);
  transition: opacity 0.25s;
  animation: heroScrollCue 2.2s ease-in-out infinite;
}
.hero__scroll-cue:hover { opacity: 1; }
@keyframes heroScrollCue {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__scroll-cue { animation: none; }
}

/* ============================ FACTS ============================ */
.facts { text-align: center; padding-bottom: clamp(3rem, 6vw, 5rem); }

.facts__slogan {
  font-size: 0.85rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.facts__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 66rem;
  margin: 0 auto;
}

.facts__list li {
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.facts__list li + li { border-left: 1px solid var(--line); }

.facts__list strong {
  font-weight: 300;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.facts__list span { font-size: 0.9rem; color: var(--ink-soft); }

/* ============================ PORTFOLIO ============================ */
.portfolio { background: var(--bg); padding-top: 0; }
.hero + .portfolio { padding-top: clamp(3rem, 7vw, 7rem); }

/* верхний отступ + место под кнопку "назад" для отдельных страниц (projects/services/studio/проект) */
.page-top { padding-top: clamp(7rem, 12vw, 10rem); }
.page-top .section-head .link-arrow { display: inline-block; margin-bottom: 1.6rem; }

.portfolio__more { text-align: center; margin-top: clamp(2.5rem, 5vw, 4rem); }

/* -------- сетка проектов (референс framework.eu): чередование "во всю ширину" / "пара рядом", без подписей на самом фото -------- */
.pgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 3rem);
  max-width: 100rem;
  margin: 0 auto;
}

.pgrid__item--wide { grid-column: 1 / -1; }

.pgrid__item { display: block; }
.pgrid__item[id] { scroll-margin-top: calc(88px + 1rem); }

.pgrid__frame {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
}
.pgrid__frame-link { display: block; width: 100%; height: 100%; }
.pgrid__caption-link { display: block; }
.pgrid__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 14 / 9;
  transition: transform 0.7s var(--ease);
}
.pgrid__item:not(.pgrid__item--wide) .pgrid__frame img { aspect-ratio: 4 / 5; }
.pgrid__item:hover .pgrid__frame img { transform: scale(1.035); }

/* стрелки перелистывания фото проекта прямо в превью на главной */
.pgrid__nav {
  position: absolute;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0.5rem;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}
.pgrid__item:hover .pgrid__nav,
.pgrid__item:focus-within .pgrid__nav { opacity: 1; }
.pgrid__nav:hover { color: var(--paper); }
.pgrid__nav--prev { left: 0.4rem; }
.pgrid__nav--next { right: 0.4rem; }
@media (hover: none) {
  .pgrid__nav { opacity: 1; }
}

.pgrid__caption {
  margin-top: 1.1rem;
}
.pgrid__caption h3 { transition: color 0.25s; }
.pgrid__item:hover .pgrid__caption h3 { color: var(--accent); }

/* ============================ PROJECT PAGE ============================ */
.pintro { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.pintro__inner { max-width: 44rem; }
.pintro__title { margin-bottom: 1rem; }
.pintro__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
}
.pintro__meta span + span { padding-left: 1rem; border-left: 1px solid var(--line); }
.pintro__text { color: var(--ink-soft); max-width: 38rem; }

/* Галерея — горизонтальная лента фото внутри обычной страницы (не на весь экран).
   Кнопка Close возвращает к исходной карточке на главной. */
.pgallery {
  position: relative;
  height: min(74vh, 44rem);
  padding: clamp(1rem, 1.4vw, 1.8rem) 0 clamp(2.5rem, 4vw, 3.4rem);
  overflow: hidden;
  background: #fff;
  /* pan-y оставляет вертикальный системный скролл доступным нативно, а
     горизонтальные жесты ловит JS (main.js) для свайпа между фото */
  touch-action: pan-y;
}
.pgallery__track {
  position: relative;
  height: 100%;
}
.pgallery__slide {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  /* больше не создаёт визуальный отступ (слайды сняты с потока абсолютным
     позиционированием) — величина читается в JS как расстояние между слайдами */
  margin-right: clamp(0.75rem, 1.4vw, 1.5rem);
}
.pgallery__slide img {
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
.pgallery__counter {
  position: absolute;
  right: 1.25rem;
  bottom: 1.45rem;
  z-index: 1;
  color: var(--ink-soft);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  pointer-events: none;
}
.pgallery__caption {
  position: absolute;
  left: var(--pad-x);
  bottom: 1.25rem;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.8rem;
  color: var(--ink-soft);
  font-size: clamp(0.72rem, 0.9vw, 0.88rem);
  line-height: 1.4;
  pointer-events: none;
}
.pgallery__caption span + span::before { content: "·"; margin-right: 0.8rem; }

@media (max-width: 760px) {
  .pgallery { padding-bottom: 5.25rem; }
  .pgallery__caption { right: 4.25rem; bottom: 1.25rem; }
  .pgallery__counter { display: none; }
}

.pgallery__slide img { cursor: zoom-in; }

/* стрелки листания фото галереи (для мыши/десктопа — свайп остаётся доступен и жестом) */
.pgallery__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  padding: 0.6rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.25s;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}
.pgallery__nav:hover { opacity: 1; }
.pgallery__nav--prev { left: clamp(0.2rem, 1.2vw, 1.2rem); }
.pgallery__nav--next { right: clamp(0.2rem, 1.2vw, 1.2rem); }
@media (max-width: 760px) {
  .pgallery__nav { font-size: 1.4rem; padding: 0.4rem; }
}

/* ---------- Лайтбокс: увеличенный просмотр фото галереи проекта ---------- */
body.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 20, 18, 0.95);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img {
  max-width: min(92vw, 1500px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: default;
}
.lightbox__close {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
}
.lightbox__close span {
  position: absolute;
  width: 22px;
  height: 1px;
  background: #fff;
}
.lightbox__close span:first-child { transform: rotate(45deg); }
.lightbox__close span:last-child { transform: rotate(-45deg); }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  padding: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.25s;
}
.lightbox__nav:hover { opacity: 1; }
.lightbox__nav--prev { left: clamp(0.5rem, 2.4vw, 2rem); }
.lightbox__nav--next { right: clamp(0.5rem, 2.4vw, 2rem); }
.lightbox__counter {
  position: absolute;
  bottom: clamp(1rem, 3vw, 2rem);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
}
@media (max-width: 760px) {
  .lightbox__nav { font-size: 1.4rem; }
  .lightbox__close { top: 0.75rem; right: 0.75rem; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================ FURNITURE — CATALOGUE GRID ============================ */
.fgrid-section { padding-bottom: clamp(3rem, 6vw, 5rem); }

.fgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.6rem, 3vw, 2.6rem) clamp(1.2rem, 2.5vw, 2rem);
  max-width: 100rem;
  margin: 0 auto;
}
.fgrid__item { display: block; }
.fgrid__item:focus { outline: none; }
.fgrid__frame { position: relative; overflow: hidden; background: var(--bg-alt); }
.fgrid__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  transition: transform 0.7s var(--ease);
}
.fgrid__item:hover .fgrid__frame img { transform: scale(1.035); }
.fgrid__caption {
  margin-top: 0.9rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.fgrid__name {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.25s;
}
.fgrid__item:hover .fgrid__name { color: var(--accent); }
.fgrid__category { font-size: 0.74rem; color: var(--ink-soft); letter-spacing: 0.04em; }

@media (max-width: 760px) {
  .fgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .fgrid { grid-template-columns: 1fr; }
}

/* ============================ FURNITURE — ITEM PAGE ============================ */
.fitem {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  max-width: 100rem;
  margin: 0 auto;
  padding: 0 var(--pad-x) clamp(3rem, 6vw, 5rem);
  align-items: start;
}
.fitem__gallery { display: flex; flex-direction: column; gap: clamp(1rem, 2vw, 1.6rem); }
.fitem__photo { margin: 0; }
.fitem__photo img { width: 100%; height: auto; display: block; background: var(--bg-alt); }

.fitem__info {
  position: sticky;
  top: clamp(6rem, 11vw, 8.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.fitem__back { align-self: flex-start; }
.fitem__info h1 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.fitem__desc { color: var(--ink-soft); max-width: 30rem; }
.fitem__specs { display: flex; flex-direction: column; gap: 0.55rem; font-size: 0.86rem; margin: 0; }
.fitem__spec {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
}
.fitem__spec dt { color: var(--ink-soft); }
.fitem__spec dd { margin: 0; text-align: right; }
.fitem__next {
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.fitem__next:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

@media (max-width: 900px) {
  .fitem { grid-template-columns: 1fr; }
  .fitem__info { position: static; top: auto; }
}

/* ============================ BEFORE / AFTER ============================ */
.ba { background: var(--bg-alt); }

.ba__stage {
  position: relative;
  max-width: 72rem;
  margin: 0 auto;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  user-select: none;
  touch-action: none;
}

.ba__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba__before-wrap {
  position: absolute;
  inset: 0;
  clip-path: inset(0 50% 0 0);
}

.ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 0;
  cursor: ew-resize;
}
.ba__handle-line {
  position: absolute;
  top: 0; bottom: 0;
  left: -1px;
  width: 2px;
  background: var(--paper);
}
.ba__handle-knob {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding: 0.55rem 0.9rem;
  white-space: nowrap;
}

.ba__tag {
  position: absolute;
  bottom: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--paper);
  text-shadow: 0 1px 8px rgba(15, 13, 11, 0.6);
}
.ba__tag--left { left: 1.2rem; }
.ba__tag--right { right: 1.2rem; }

/* ============================ SERVICES ============================ */
.services__ladder {
  list-style: none;
  max-width: 56rem;
  margin: 0 auto;
}

.service {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1.5rem;
  padding: clamp(1.8rem, 3.5vw, 2.8rem) 0;
}
.service + .service { border-top: 1px solid var(--line); }

.service__num {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  line-height: 1;
  color: var(--ink-soft);
}

.service__body h3 { margin-bottom: 0.6rem; }
.service__body p { color: var(--ink-soft); max-width: 36rem; }

/* тарифы */
.services__pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  max-width: 56rem;
  margin: clamp(3rem, 6vw, 5rem) auto 0;
}

.tariff {
  border-top: 2px solid var(--ink);
  padding-top: 1.6rem;
}

.tariff__price {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  margin: 0.8rem 0 1.2rem;
}
.tariff__price span { font-size: 0.9rem; color: var(--ink-soft); letter-spacing: 0.04em; }

.tariff ul { list-style: none; }
.tariff li {
  padding: 0.4rem 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.services__minnote {
  max-width: 56rem;
  margin: 2rem auto 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ============================ PROCESS ============================ */
.process { background: var(--bg-alt); }

.process__inner {
  max-width: 78rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.process__steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.8rem, 3vw, 2.8rem) clamp(1.5rem, 3vw, 3rem);
}

.process__steps li {
  counter-increment: step;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.process__steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  margin-bottom: 0.7rem;
}
.process__steps h3 { margin-bottom: 0.35rem; }
.process__steps p { font-size: 0.92rem; color: var(--ink-soft); }

/* ============================ WHY ============================ */
.why { max-width: 78rem; margin: 0 auto; }

.why__title {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem) clamp(2.5rem, 5vw, 5rem);
}

.why__item h3 { margin-bottom: 0.6rem; }
.why__item p { color: var(--ink-soft); max-width: 32rem; }

/* ============================ RESTO ============================ */
.resto {
  position: relative;
  padding: clamp(7rem, 14vw, 12rem) var(--pad-x);
  overflow: hidden;
}

.resto__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.resto__scrim { position: absolute; inset: 0; background: rgba(15, 13, 11, 0.55); }

.resto__content {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  color: var(--paper);
}
.resto__content p { margin: 1.2rem 0 2rem; color: rgba(241, 238, 233, 0.88); }

/* ============================ STUDIO ============================ */
.studio { max-width: 78rem; margin: 0 auto; }

.studio__intro { max-width: 34rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.studio__intro p { margin-top: 1.2rem; color: var(--ink-soft); }

.studio__slogan {
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--ink) !important;
  margin-top: 2rem !important;
}

/* --- дуэт основателей: большие фото, био появляется по наведению --- */
.studio__members {
  position: relative;
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.member {
  flex: 1;
  min-width: 0;
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}

.member__photo {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
}
.member__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(1);
  transition: transform 0.7s var(--ease);
}
.member:hover .member__photo img { transform: scale(1.03); }

/* имя и роль поверх фото */
.member__overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: clamp(1.2rem, 2.5vw, 2rem);
  background: linear-gradient(to top, rgba(15, 13, 11, 0.62), transparent);
  color: var(--paper);
}
.member--right .member__overlay { text-align: right; }

.member__role {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(241, 238, 233, 0.75);
  margin-bottom: 0.5rem;
}

.member__name {
  font-weight: 300;
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
  line-height: 1.25;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.member__name span { font-weight: 400; }

/* био: на мобильных статично под фото */
.member__bio { margin-top: 1.2rem; }

.member__bio-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 24rem;
}

/* спотлайт-эффект только там, где есть наведение и две колонки */
@media (hover: hover) and (min-width: 901px) {
  .member__bio {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) translateY(14px);
    width: min(24rem, 38%);
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.7s var(--ease) 0.2s, transform 0.7s var(--ease) 0.2s, visibility 0.7s 0.2s;
  }
  .member:first-child .member__bio { right: 3%; }
  .member--right .member__bio { left: 3%; }

  .studio__members.show-1 .member:nth-child(2),
  .studio__members.show-2 .member:nth-child(1) {
    opacity: 0;
    visibility: hidden;
  }
  /* глубину даёт лёгкое сжатие самой картинки внутри рамки,
     а не карточки: transform на карточке смещал бы био-текст */
  .studio__members.show-1 .member:nth-child(2) .member__photo img,
  .studio__members.show-2 .member:nth-child(1) .member__photo img {
    transform: scale(1.04);
  }
  .studio__members.show-1 .member:nth-child(1) .member__bio,
  .studio__members.show-2 .member:nth-child(2) .member__bio {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .member, .member__bio, .member__photo img { transition: none; }
}

/* ============================ INSTA ============================ */
.insta { background: var(--bg-alt); }

.insta__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 78rem;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}

.insta__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.8rem, 1.5vw, 1.5rem);
  max-width: 78rem;
  margin: 0 auto;
}
.insta__post { display: block; }
.insta__post img {
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
}
.insta__post:hover img { opacity: 0.85; }

/* ============================ BRAND STATEMENT ============================ */
.brand-statement {
  --brand-left-offset: -18vw;
  --brand-right-offset: 18vw;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(14rem, 30vw, 28rem);
  padding: clamp(3rem, 7vw, 6rem) var(--pad-x);
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
}

.brand-statement h2 {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: clamp(2.5rem, 10vw, 11rem);
  font-size: clamp(3rem, 10.5vw, 12rem);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 0.82;
  white-space: nowrap;
}
.brand-statement h2 span {
  display: block;
  will-change: transform;
}
.brand-statement h2 span:first-child { transform: translateX(var(--brand-left-offset)); }
.brand-statement h2 span:last-child { transform: translateX(var(--brand-right-offset)); }

/* ============================ CONTACT ============================ */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  max-width: 72rem;
  margin: 0 auto;
}

.contact__text p { margin-top: 1.2rem; color: var(--ink-soft); max-width: 26rem; }

.contact__messengers {
  margin-top: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.contact__messengers a {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.25s;
  width: fit-content;
}
.contact__messengers a:hover { color: var(--accent); }
.contact__messengers img { opacity: 0.85; }

.contact__direct {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.contact__direct a {
  font-size: 1rem;
  letter-spacing: 0.04em;
  transition: color 0.25s;
  width: fit-content;
}
.contact__direct a:hover { color: var(--accent); }

.contact__form { display: flex; flex-direction: column; gap: 1.4rem; }

.field { display: flex; flex-direction: column; gap: 0.5rem; }

.field label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.field__opt { color: var(--ink-soft); text-transform: none; letter-spacing: 0.02em; }

.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.85rem 1rem;
  transition: border-color 0.25s;
  border-radius: 0;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2322201C' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.field.is-error input { border-color: var(--accent); }
.field__error { font-size: 0.85rem; color: var(--accent); }

.contact__success { color: var(--ink); font-size: 0.95rem; border-top: 1px solid var(--line); padding-top: 1rem; }

/* ============================ FOOTER ============================ */
.footer {
  background: var(--bg);
  color: var(--ink-soft);
  padding: clamp(3.5rem, 7vw, 5.5rem) var(--pad-x) 2.5rem;
  border-top: 1px solid var(--line);
}

.footer__addresses {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 0 0 2.5rem;
  border-bottom: 1px solid var(--line);
}
.footer__addresses h3 {
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  margin-bottom: 0.7rem;
}
.footer__addresses p { font-size: 0.88rem; line-height: 1.7; }
.footer__addresses a { transition: color 0.25s; }
.footer__addresses a:hover { color: var(--accent); }
.footer__addresses-contacts { text-align: right; }

.footer__social { display: flex; gap: 0.9rem; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition: border-color 0.25s, background 0.25s;
}
.footer__social a:hover { border-color: var(--ink); background: var(--paper); }
.footer__social img { width: 1.05rem; height: 1.05rem; display: block; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 2rem;
}

.footer__nav { display: flex; flex-wrap: wrap; gap: 1rem 1.8rem; }
.footer__nav a,
.footer__mail {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.25s;
}
.footer__nav a:hover, .footer__mail:hover { color: var(--accent); }

.footer__bottom-right { display: flex; align-items: center; gap: 1.4rem; }
.footer__copy { font-size: 0.8rem; color: var(--ink-soft); opacity: 0.7; }

/* ============================ REVEAL ============================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn { to { opacity: 1; } }

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  }
  .reveal.in { opacity: 1; transform: none; }

  /* карточки основателей появляются без сдвига: transform у карточки
     сделал бы её контейнером для абсолютного био-текста, и текст
     на мгновение прилипал бы к самой фотографии */
  .member.reveal { transform: none; }

  /* --- ступенчатое появление текста внутри секций ---
     скрыто до .in, затем keyframe-анимация с каскадом задержек;
     анимации не трогают transition, поэтому hover-эффекты живут */
  .section-head h2, .section-head p,
  .studio__intro h2, .studio__intro p,
  .resto__content > *,
  .facts__slogan, .facts__list li,
  .why__title, .why__item,
  .insta__head > *, .insta__grid > *,
  .contact__text > *,
  .contact__form .field, .contact__form .btn--full {
    opacity: 0;
  }

  .in .section-head h2, .section-head.in h2,
  .in .section-head p, .section-head.in p,
  .studio__intro.in h2, .studio__intro.in p,
  .resto.in .resto__content > *,
  .facts.in .facts__slogan, .facts.in .facts__list li,
  .why.in .why__title, .why.in .why__item,
  .insta.in .insta__head > *, .insta.in .insta__grid > *,
  .contact__text.in > *,
  .contact__form.in .field, .contact__form.in .btn--full {
    animation: fadeUp 0.7s var(--ease) both;
  }

  /* заголовок секции, затем подводка */
  .in .section-head h2, .section-head.in h2 { animation-delay: 0.1s; }
  .in .section-head p,  .section-head.in p  { animation-delay: 0.28s; }

  /* слоган и полоса фактов */
  .facts.in .facts__slogan { animation-delay: 0.1s; }
  .facts.in .facts__list li:nth-child(1) { animation-delay: 0.25s; }
  .facts.in .facts__list li:nth-child(2) { animation-delay: 0.37s; }
  .facts.in .facts__list li:nth-child(3) { animation-delay: 0.49s; }
  .facts.in .facts__list li:nth-child(4) { animation-delay: 0.61s; }

  /* «почему мы» */
  .why.in .why__title { animation-delay: 0.05s; }
  .why.in .why__item:nth-child(1) { animation-delay: 0.2s; }
  .why.in .why__item:nth-child(2) { animation-delay: 0.32s; }
  .why.in .why__item:nth-child(3) { animation-delay: 0.44s; }
  .why.in .why__item:nth-child(4) { animation-delay: 0.56s; }

  /* ресторанный блок */
  .resto.in .resto__content > :nth-child(1) { animation-delay: 0.1s; }
  .resto.in .resto__content > :nth-child(2) { animation-delay: 0.28s; }
  .resto.in .resto__content > :nth-child(3) { animation-delay: 0.46s; }

  /* студия */
  .studio__intro.in h2 { animation-delay: 0.1s; }
  .studio__intro.in p  { animation-delay: 0.28s; }
  .studio__intro.in .studio__slogan { animation-delay: 0.46s; }

  /* instagram */
  .insta.in .insta__head > * { animation-delay: 0.1s; }
  .insta.in .insta__grid > :nth-child(1) { animation-delay: 0.22s; }
  .insta.in .insta__grid > :nth-child(2) { animation-delay: 0.32s; }
  .insta.in .insta__grid > :nth-child(3) { animation-delay: 0.42s; }
  .insta.in .insta__grid > :nth-child(4) { animation-delay: 0.52s; }

  /* контакты: текст, затем поля формы по очереди */
  .contact__text.in > :nth-child(1) { animation-delay: 0.1s; }
  .contact__text.in > :nth-child(2) { animation-delay: 0.26s; }
  .contact__text.in > :nth-child(3) { animation-delay: 0.42s; }
  .contact__form.in .field:nth-child(1) { animation-delay: 0.15s; }
  .contact__form.in .field:nth-child(2) { animation-delay: 0.27s; }
  .contact__form.in .field:nth-child(3) { animation-delay: 0.39s; }
  .contact__form.in .field:nth-child(4) { animation-delay: 0.51s; }
  .contact__form.in .btn--full { animation-delay: 0.63s; }
}

/* ============================ MOBILE ============================ */
@media (max-width: 900px) {
  .process__inner, .contact__inner, .studio__members { grid-template-columns: 1fr; }
  .pgrid { grid-template-columns: 1fr; }
  .facts__list { grid-template-columns: 1fr 1fr; gap: 2rem 0; }
  .facts__list li:nth-child(3) { border-left: none; }
  .why__grid { grid-template-columns: 1fr; }
  .insta__grid { grid-template-columns: 1fr 1fr; }
  .studio__members { flex-direction: column; gap: 3rem; }
}

@media (max-width: 760px) {
  .nav {
    grid-template-rows: 72px;
    height: 72px;
  }
  .nav__links { display: none; }
  .nav__logo { grid-column: 2; grid-row: 1; }
  .nav__burger { display: flex; grid-column: 3; grid-row: 1; justify-self: end; }

  .nav.is-open {
    height: auto;
    grid-template-rows: 72px auto auto;
    padding-bottom: 1.8rem;
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open .nav__links--left,
  .nav.is-open .nav__links--right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    grid-column: 1 / -1;
  }
  .nav.is-open .nav__links--left { grid-row: 2; padding-top: 0.5rem; }
  .nav.is-open .nav__links--right { grid-row: 3; padding-top: 1.2rem; }
  .nav.is-open .nav__burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .process__steps { grid-template-columns: 1fr; }
  .hero__actions { gap: 1.4rem; }
  .pgrid__caption { margin-top: 0.5rem; }
  .pgrid__caption h3 { font-size: 0.72rem; letter-spacing: 0.09em; }
  .services__pricing { grid-template-columns: 1fr; }
  .footer__addresses { grid-template-columns: 1fr; }
  .footer__addresses-contacts { text-align: left; }
  /* однострочный вариант на узких экранах не помещается по ширине ни при каком vw-подборе
     (вылезает за края) — надёжнее развести "FOUR" и "ROOMS" по двум строкам, тогда
     переполнение невозможно в принципе */
  .brand-statement { min-height: 10rem; }
  .brand-statement h2 {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    font-size: clamp(2.6rem, 17vw, 5.5rem);
    line-height: 1.05;
  }
  .brand-statement h2 span:first-child,
  .brand-statement h2 span:last-child { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .site-shell, .preloader { transition: none; }
  .preloader__logo { animation: none; top: 44px; width: 42px; height: 52px; }
  body.is-ready .hero__brand { opacity: 1; transform: none; }
  .brand-statement { --brand-left-offset: 0; --brand-right-offset: 0; }
}
