/* Carton group — главная. Токены, затем секции сверху вниз. */

:root {
  --bg: #ffffff;
  --surface: #f2f1ee;
  --surface-2: #e8e7e3;
  --ink: #1b1b19;
  --muted: #6a6964;
  --line: #d6d5d0;
  --accent: #6e7b52;
  --accent-hover: #5d6944;
  --accent-ink: #ffffff;
  --pnkb: #b24b3b;          /* фирменный кирпичный ПНКБ — как на их сайте */
  --pnkb-hover: #963b2d;
  --dark: #1c1d1b;
  --dark-ink: #f2f1ee;
  --dark-muted: #9c9b95;

  --font: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  /* название проекта на фото и названия помещений на страницах проектов */
  --font-title: "Source Serif 4", Georgia, serif;

  /* пять ступеней шрифта */
  --step-small: 0.9375rem;                                  /* 15 */
  --step-body: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);   /* 17–19 */
  --step-lead: clamp(1.3125rem, 1.15rem + 0.6vw, 1.75rem);  /* 21–28 */
  --step-head: clamp(2.125rem, 1.4rem + 2.6vw, 3.75rem);    /* 34–60 */
  --step-h2: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem);     /* 22–30: заголовки главной — как «Проекты» на главной ПНКБ (владелец, 2026-10-30) */
  --step-display: clamp(1.75rem, 0.9rem + 3.4vw, 3.75rem);  /* 28–60 */

  /* поля по бокам: на телефоне ~5% ширины, на ноутбуке 1440 — около 140 px */
  --margin: clamp(16px, max(5.5vw, 14vw - 62px), 240px);
  --gap: clamp(16px, 2vw, 32px);
  --section: clamp(96px, 11vw, 176px);
  --header-h: 64px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }

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

.wrap { padding-inline: var(--margin); }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: var(--step-small);
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(0.98); }
.btn--light { background: var(--bg); color: var(--ink); }
.btn--light:hover { background: var(--surface); }
.btn--ghost { background: var(--surface-2); color: var(--ink); }
.btn--ghost:hover { background: var(--line); }
.btn--pnkb { background: var(--pnkb); }
.btn--pnkb:hover { background: var(--pnkb-hover); }
.btn .arrow { display: inline-flex; transition: transform 0.25s var(--ease); }
/* стрелка ↗ нарисована, а не набрана символом: на iPhone символ превращается в цветной смайлик */
.arrow svg, .pub__go svg { display: block; width: 0.82em; height: 0.82em; fill: none; stroke: currentColor; stroke-width: 1.4; }
.btn:hover .arrow { transform: translate(3px, -3px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--step-small);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: color 0.2s var(--ease);
}
.link-arrow:hover { color: var(--accent-hover); }

/* ---------- шапка ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  color: #fff;
  transition: color 0.35s var(--ease);
}
/* белая полоса въезжает сверху при прокрутке */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg);
  transform: translateY(-101%);
  transition: transform 0.45s var(--ease);
}
.header__row {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  padding-inline: var(--margin);
  transform: translateY(14px);
  transition: transform 0.45s var(--ease);
}
.header.is-scrolled { color: var(--ink); }
.header.is-scrolled::before { transform: translateY(0); }
.header.is-scrolled .header__row { transform: translateY(0); }

.header__logo { display: block; width: 34px; flex: none; color: inherit; transition: transform 0.3s var(--ease); }
.header__logo:hover { transform: rotate(-8deg); }
.header__logo svg { display: block; width: 100%; height: auto; }

.nav { display: flex; gap: clamp(20px, 2.4vw, 40px); margin-left: clamp(40px, 6vw, 96px); }
/* телефон в шапке подчёркивается так же, как пункты меню (владелец, 2026-11-02) */
.nav a, .header__phone {
  position: relative;
  font-size: var(--step-small);
  text-decoration: none;
  padding-block: 6px;
}
.nav a::after, .header__phone::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px; /* taste-skill-ignore: подчёркивание ссылки при наведении, не разделитель */
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav a:hover::after, .header__phone:hover::after { transform: scaleX(1); }
.nav .nav__phone { display: none; }

.header__contacts { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.header__phone { white-space: nowrap; }
.icon-link {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: inherit;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.icon-link:hover { opacity: 0.65; }
.icon-link:active { transform: scale(0.92); }
.icon-link svg { width: 20px; height: 20px; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  left: 11px; right: 11px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 25px; }
.header.menu-open .burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.header.menu-open .burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- первый экран ---------- */

.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--dark);
  color: #fff;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img,
.hero__media video {
  position: absolute;
  max-width: none;
  inset: -2% -6%;
  width: 112%;
  height: 104%;
  object-fit: cover;
  opacity: 0;
  will-change: transform, opacity;
  animation: pan 27s linear infinite;
}
.hero__media img:nth-child(1) { animation-delay: -1.2s; }
.hero__media img:nth-child(2) { animation-delay: 7.8s; }
.hero__media img:nth-child(3) { animation-delay: 16.8s; }

/* медленный пролёт: каждый кадр 9 с в цикле 27 с, плавная смена */
@keyframes pan {
  0%   { opacity: 0; transform: translate3d(-3.5%, 0, 0) scale(1.02); }
  5%   { opacity: 1; }
  33%  { opacity: 1; }
  40%  { opacity: 0; transform: translate3d(3.5%, 0, 0) scale(1.06); }
  100% { opacity: 0; transform: translate3d(3.5%, 0, 0) scale(1.06); }
}

.hero__scrim { position: absolute; inset: 0; background: rgba(18, 18, 16, 0.38); }

.hero__content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--header-h) var(--margin) 0;
}
.hero__title {
  max-width: 17.5em;
  font-size: clamp(2.25rem, 1.1rem + 4vw, 4.5rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
/* мягкий отблеск, который проходит по заголовку слева направо: проход ~3,5 с, затем пауза */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__title {
    /* запас снизу, иначе заливка обрезает хвосты «у» и «р» */
    padding-bottom: 0.22em;
    margin-bottom: -0.22em;
    background: linear-gradient(105deg,
      #bfbab0 0%, #bfbab0 38%,
      #efe6d6 44%, #fff 48%, #fff 52%, #efe6d6 56%,
      #bfbab0 62%, #bfbab0 100%);
    background-size: 300% 100%;
    background-position: 95% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glint 7s cubic-bezier(0.45, 0, 0.35, 1) 1.2s infinite;
  }
}
@keyframes glint {
  0%   { background-position: 95% 0; }
  50%  { background-position: 5% 0; }
  100% { background-position: 5% 0; }
}
.hero__sub {
  margin-top: 24px;
  text-wrap: balance;
  font-size: var(--step-lead);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: rgba(255, 255, 255, 0.88);
}
.hero__content .btn { margin-top: 40px; }

/* ---------- подход ---------- */

/* отступ от первого экрана до фото основателей — как от фото до «Почему нам доверяют» (владелец, 2026-11-02) */
.about { padding-block: calc(var(--section) / 2) 0; }
/* фото основателей — как есть: без обрезки, приближения и фильтров, пропорции снимка (владелец, 2026-11-02) */
.about__photo { grid-column: 1 / 6; }
.about__photo img { width: 100%; height: auto; }
.about__text { grid-column: 8 / 13; align-self: center; }
/* без заголовка, абзацы одного размера — как «Истоки нашего бюро…» на главной ПНКБ (владелец, 2026-10-30;
   «Наш подход» отсюда перенесён во вкладку «Бюро») */
.about__text p { max-width: 34em; font-size: var(--step-body); line-height: 1.55; }
.about__text p + p { margin-top: 1em; }
.about__text strong { font-weight: 500; } /* «Carton group» чуть плотнее (владелец, 2026-10-30) */

/* ---------- почему нам доверяют ---------- */

/* отступ от «Нашего подхода» — половина обычного расстояния между разделами */
.trust { padding-top: calc(var(--section) / 2); }
/* заголовок раздела — размером как «Наш подход», чёрный (владелец, 2026-10-30; раньше был зелёный) */
.trust__kicker {
  font-size: var(--step-h2);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.trust__main { margin-top: clamp(24px, 2.8vw, 40px); align-items: center; row-gap: 40px; }

/* купюра с кольцом вокруг музея и лупой; кольцо и лупа считаются от самой купюры (.note__pic),
   а не от купюры с подписью — иначе на узких экранах, где подпись в потоке, кольцо съезжает вниз.
   Кольцо — по рисунку владельца (Картон\100_.jpg, 2026-11-02); лупа — banknote-100-zoom.jpg, тот же участок */
.note { grid-column: 1 / 8; position: relative; }
.note__pic { position: relative; }
.note__img { width: 100%; }
.note__ring {
  position: absolute;
  left: var(--x); top: var(--y);
  width: 15.6%; aspect-ratio: 1;
  translate: -50% -50%;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(27, 27, 25, 0.25), 0 2px 8px rgba(27, 27, 25, 0.25);
}
.note__lens {
  position: absolute;
  left: 94%; top: 80%;
  width: 34%; aspect-ratio: 1;
  translate: -50% -50%;
  object-fit: cover;
  border: 5px solid #fff;
  border-radius: 50%;
  box-shadow: 0 12px 32px rgba(27, 27, 25, 0.22);
}

/* подпись под купюрой, зелёная: прежняя подпись над купюрой / 1,5, затем × 1,3 (владелец, 2026-10-30) */
.note__caption {
  margin-top: clamp(12px, 1.2vw, 18px);
  font-size: calc(max(calc(var(--step-head) / 2.25), 1.25rem) / 1.5 * 1.3);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--accent);
  max-width: 68%; /* не заходить под лупу, которая свисает ниже купюры справа */
}
/* в две колонки текст справа центрируется по высоте самой купюры (владелец, 2026-10-30):
   подпись выносим из потока, чтобы она не добавляла высоты блоку с купюрой */
@media (min-width: 1101px) {
  .note__caption { position: absolute; top: 100%; left: 0; width: 100%; }
}

/* справа: музей → «Вели проект…» → «Проектировали…» → «Награды…» (зелёным), абзацы одного размера (владелец, 2026-10-30) */
.trust__text { grid-column: 9 / 13; }
.trust__text h3 {
  font-size: var(--step-lead);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.trust__text p { margin-top: 16px; font-size: var(--step-small); line-height: 1.55; }
.trust__text .trust__award { font-size: calc(var(--step-small) * 1.3); line-height: 1.35; color: var(--accent); } /* в 1,3 раза крупнее абзацев (владелец, 2026-10-30) */

/* три пункта — без плашек, только тонкая линия сверху */
.trust__points { --num: clamp(2.25rem, 1.6rem + 1.8vw, 3.5rem); margin-top: clamp(64px, 7vw, 112px); row-gap: 40px; }
.trust__points li { grid-column: span 4; padding-top: 24px; border-top: 1px solid var(--line); }
/* цифры в 1,5 раза меньше высоты знака «Большие перемены»; строка той же высоты, цифры прижаты к низу —
   подписи под всеми тремя пунктами стоят на одном уровне */
.trust__num {
  display: flex;
  align-items: flex-end;
  height: var(--num);
  font-size: calc(var(--num) / 1.5);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.trust__logo { width: auto; height: var(--num); }
.trust__points h3 { margin-top: 20px; font-size: var(--step-body); font-weight: 500; line-height: 1.35; }
.trust__points p:not([class]) { margin-top: 8px; max-width: 26em; font-size: var(--step-small); color: var(--muted); line-height: 1.5; }

/* ---------- бегущая строка ---------- */

.press { padding-block: clamp(80px, 8vw, 128px) clamp(48px, 4.5vw, 72px); }
.press__title { font-size: var(--step-body); font-weight: 400; color: var(--muted); margin-bottom: 28px; }
.marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask: none;
  user-select: none;
}
.marquee__track {
  display: flex;
  flex: none;
  align-items: center;
  gap: clamp(44px, 5vw, 88px);
  padding-right: clamp(44px, 5vw, 88px);
  animation: marquee 60s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
/* логотипы — чёрные на прозрачном фоне */
.logo {
  --k: 1;
  flex: none;
  width: auto;
  height: calc(var(--h) * var(--k) * 1px);
}

/* ---------- услуги ---------- */

.services { padding-block: clamp(72px, 8vw, 128px); background: var(--surface); }
.services__list { grid-column: 1 / 8; }
.services__list h2 {
  font-size: var(--step-h2);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: clamp(24px, 2.6vw, 40px);
}
.service { background: var(--bg); padding-inline: clamp(16px, 1.4vw, 24px); }
.service + .service { margin-top: 4px; }
.service summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: clamp(12px, 1.1vw, 16px);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  letter-spacing: -0.015em;
  line-height: 1.25;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s var(--ease);
}
.service summary::-webkit-details-marker { display: none; }
/* наведение и открытая услуга: зеленеет только квадрат с плюсом, название остаётся чёрным */
.plus {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  background: var(--surface);
  color: var(--ink);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.service summary:hover .plus, .service[open]:not([data-state="closed"]) .plus { background: var(--accent); color: var(--accent-ink); }
.plus::before, .plus::after {
  content: "";
  position: absolute;
  left: 9px; right: 9px; top: 50%;
  height: 1.5px;
  margin-top: -0.75px;
  background: currentColor;
  transition: transform 0.35s var(--ease);
}
.plus::after { transform: rotate(90deg); }
.service[open]:not([data-state="closed"]) .plus::after { transform: rotate(0deg); }
/* высоту раскрытия анимирует main.js; отступ снизу — внутри, чтобы шторка закрывалась до нуля */
.service__body { overflow: hidden; max-width: 36em; font-size: var(--step-small); }
.service__body::after { content: ""; display: block; height: clamp(18px, 1.8vw, 24px); }
.service__body > p { color: var(--muted); }
.service__body > p + p { margin-top: 0.8em; }
.service__steps {
  counter-reset: step;
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.service__steps li { counter-increment: step; display: flex; gap: 10px; line-height: 1.4; }
.service__steps li::before {
  content: counter(step);
  flex: none;
  width: 1.2em;
  color: var(--accent);
  font-weight: 500;
}

.services__more { margin-top: 20px; }
.services__photo { grid-column: 9 / 13; }
.services__photo img {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
}

/* ---------- проекты ---------- */

.projects { padding-top: clamp(56px, 5.5vw, 88px); }
/* слово «Проекты» владелец убрал (2026-10-30): заголовок остался только для экранных чтецов,
   раздел начинается сразу с «Интерьеров»; «Интерьеры», «Виллы», «Архитектура», «Этапы работы» — --step-h2, как «Услуги» */
.group { padding-top: clamp(48px, 5vw, 80px); }
.projects > .visually-hidden + .group { padding-top: 0; }
.group__title {
  margin-bottom: clamp(18px, 2vw, 28px);
  font-size: var(--step-h2);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.group__more { display: flex; justify-content: flex-end; margin-top: clamp(20px, 2vw, 28px); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.card { display: block; text-decoration: none; }
.card__img { position: relative; overflow: hidden; aspect-ratio: 3 / 4; background: var(--surface); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
a.card:hover .card__img img { transform: scale(1.04); }
/* подписи карточек — как на сайте ПНКБ, затем в 1,2 раза крупнее (владелец, 2026-10-30);
   название потом снова в 1,2 раза мельче, площадь и год — как были (владелец, 2026-11-02) */
.card h4 { margin-top: 16px; font-size: calc(var(--step-lead) / 1.5); font-weight: 400; line-height: 1.25; letter-spacing: -0.01em; }
.card p { margin-top: 4px; font-size: calc(var(--step-small) / 1.5 * 1.2); color: var(--muted); }
.card__empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  font-size: var(--step-small);
  color: var(--muted);
  background: var(--surface);
}

/* этапы работ — по мотивам aiyabureau */
.stages { margin-top: clamp(56px, 6vw, 96px); padding-block: clamp(56px, 6vw, 96px); background: var(--surface); }
.stages__title {
  margin-bottom: clamp(32px, 4vw, 56px);
  font-size: var(--step-h2);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.stages__foot { display: flex; justify-content: flex-end; margin-top: clamp(28px, 3vw, 40px); }

.steps { counter-reset: st; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step { counter-increment: st; display: flex; flex-direction: column; }
.step__mark {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}
.step__mark::before {
  content: counter(st, decimal-leading-zero); /* taste-skill-ignore: этапы по образцу aiyabureau, просьба заказчика */
  position: relative;
  z-index: 1;
  padding: 0 14px;
  background: var(--surface);
  font-size: var(--step-small);
  font-variant-numeric: tabular-nums;
}
/* соединительная линия между номерами */
.step__mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100% + 16px);
  height: 1px; /* taste-skill-ignore: линия этапов по образцу aiyabureau */
  background: var(--ink);
  opacity: 0.55;
}
.step:last-child .step__mark::after { display: none; }
.step h5 {
  min-height: 2.6em;
  margin-bottom: 18px;
  font-size: var(--step-body);
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  text-wrap: balance;
}
.step__card {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2vw, 28px);
  background: var(--bg);
}
.step__card ul { display: grid; gap: 10px; }
.step__card li { position: relative; padding-left: 16px; line-height: 1.4; }
.step__card li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* переход на ПНКБ */
/* фото на всю ширину, невысокое (пропорции 3:1); кадр подобран так, что музей с полосой неба
   стоит в верхней части, а текст — на поле под ним */
.pnkb {
  position: relative;
  margin-top: clamp(56px, 6vw, 96px);
  aspect-ratio: 3 / 1;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  background: var(--dark);
}
.pnkb__bg { position: absolute; inset: 0; }
.pnkb__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 57%; }
/* небо светлое, к низу темнее — под текстом */
.pnkb__scrim { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(14, 14, 12, 0.12) 0%, rgba(14, 14, 12, 0.3) 45%, rgba(14, 14, 12, 0.62) 100%); }
.pnkb__body { position: relative; width: 100%; padding-block: clamp(28px, 3vw, 48px); row-gap: 40px; align-items: end; }
.pnkb__text { grid-column: 1 / 9; }
.pnkb__text h3 {
  font-size: clamp(1.75rem, 0.9rem + 2.1vw, 2.75rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.pnkb__text p { margin-top: 18px; max-width: 44em; color: rgba(255, 255, 255, 0.9); }
.pnkb__text .btn { margin-top: 24px; }
.pnkb__list { grid-column: 9 / 13; font-size: var(--step-small); }
.pnkb__list p { color: rgba(255, 255, 255, 0.7); margin-bottom: 8px; }
.pnkb__list li { padding-block: 3px; }

/* ---------- обратная связь ---------- */

.contact { padding-block: var(--section); }
/* плашка «Обсудить проект»: слева заголовок и контакты, справа поля столбиком (невысокие) */
.contact__plate { padding: clamp(28px, 3.6vw, 56px) clamp(20px, 3.6vw, 56px); background: var(--surface); row-gap: 28px; }
.contact__intro { grid-column: 1 / 6; grid-row: 1; display: flex; flex-direction: column; }
.contact__intro h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.contact__ways { margin-top: auto; padding-top: 24px; display: grid; gap: 4px; }
.contact__ways a { text-decoration: none; letter-spacing: -0.01em; width: fit-content; }
.contact__ways a:hover { color: var(--accent-hover); }
.contact__ways span { margin-top: 4px; font-size: var(--step-small); color: var(--muted); }
.contact__plate .form { grid-column: 7 / 13; grid-row: 1; gap: 8px; }
.contact__plate .chips { margin-bottom: 4px; }
.contact__plate .chips span { min-height: 38px; padding: 0 18px; }
.contact__plate .field { min-height: 40px; padding: 8px 14px; line-height: 1.3; }
.contact__plate textarea.field { min-height: 64px; }
.contact__plate .btn { min-height: 44px; }
.contact__plate .form__actions { align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 8px; }
.contact__plate .consent { flex: 1 1 260px; }
/* та же форма, сложенная столбиком: заголовок, контакты, поля (вкладка «Бюро») */
.contact__plate--stack { row-gap: 24px; }
.contact__plate--stack .contact__intro, .contact__plate--stack .form { grid-column: 1 / 13; grid-row: auto; }
.contact__plate--stack .contact__ways { padding-top: 14px; }

.form { grid-column: 7 / 13; display: grid; gap: 22px; }
.form fieldset { margin: 0; padding: 0; border: 0; }
.form legend, .form > label > span { display: block; margin-bottom: 10px; font-size: var(--step-small); color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  background: var(--bg);
  font-size: var(--step-small);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.chips input:checked + span { background: var(--ink); color: var(--bg); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
/* подсветка при наведении — только у невыбранной кнопки и только с мышью:
   на телефоне «наведение» залипает после нажатия и делало выбранную кнопку бледной */
@media (hover: hover) {
  .chips label:hover input:not(:checked) + span { background: var(--surface-2); }
}

.field {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 0;
  border-radius: 0;
  background: var(--bg);
  outline: 2px solid transparent;
  outline-offset: -2px;
  transition: outline-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.field:hover { background: #fbfbfa; }
.field::placeholder { color: var(--muted); opacity: 1; }
.field:focus { outline-color: var(--ink); }
textarea.field { min-height: 104px; resize: vertical; }


.form__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* окно «Обсудить проект» поверх страницы */
.modal {
  width: min(520px, calc(100% - 32px));
  max-height: calc(100svh - 32px);
  margin: auto;
  padding: clamp(28px, 3vw, 44px);
  border: 0;
  background: var(--bg);
  color: var(--ink);
}
.modal::backdrop { background: rgba(18, 18, 16, 0.55); }
.modal[open] { animation: modal-in 0.4s var(--ease); }
.modal[open]::backdrop { animation: fade-in 0.4s var(--ease); }
.modal.is-closing { animation: modal-out 0.25s var(--ease) forwards; }
.modal.is-closing::backdrop { animation: fade-out 0.25s var(--ease) forwards; }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes modal-out { to { opacity: 0; transform: translateY(16px); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
html:has(.modal[open]) { overflow: hidden; }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.modal__head h2 { font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2rem); font-weight: 400; line-height: 1.1; letter-spacing: -0.025em; }
.modal__close {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  margin: -8px -10px 0 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.modal__close:hover { color: var(--accent); transform: rotate(90deg); }
.modal__close svg { width: 22px; height: 22px; }
/* ---------- подвал ---------- */

.footer {
  background: var(--dark);
  color: var(--dark-ink);
  padding-top: clamp(48px, 4.5vw, 72px);
  font-size: var(--step-small);
  line-height: 1.45;
}
.footer__top { row-gap: 32px; }
.footer__logo {
  grid-column: 1 / 4;
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  height: fit-content;
  color: var(--dark-ink);
  text-decoration: none;
}
.footer__logo svg { width: 36px; height: auto; display: block; flex: none; transition: transform 0.3s var(--ease); }
/* эмблема подворачивается при наведении, как в шапке (владелец, 2026-11-02) */
.footer__logo:hover svg { transform: rotate(-8deg); }
.footer__logo span { line-height: 1.05; letter-spacing: -0.01em; }
.footer__nav { grid-column: 5 / 7; display: grid; gap: 6px; align-content: start; }
.footer__nav a, .footer__col a { text-decoration: none; width: fit-content; transition: color 0.2s var(--ease); }
.footer__nav a:hover, .footer__col a:hover { color: #c4ceaa; }
.footer__col { display: grid; gap: 6px; align-content: start; }
.footer__col--contacts { grid-column: 10 / 13; }
.footer__col p { color: var(--dark-muted); margin-bottom: 4px; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  margin-top: clamp(40px, 4vw, 64px);
  padding-block: 20px 24px;
  color: var(--dark-muted);
}
.footer__bottom a { color: inherit; }

/* ---------- страница «Бюро» ---------- */

.bureau { padding-top: calc(var(--header-h) + clamp(40px, 5vw, 88px)); padding-bottom: var(--section); }
.page-title {
  font-size: clamp(3rem, 1.6rem + 6vw, 8.5rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.tabs { display: flex; flex-wrap: wrap; gap: 8px clamp(20px, 2.4vw, 36px); margin-block: clamp(28px, 3vw, 44px) clamp(48px, 5.5vw, 88px); }
/* крупные заголовки разделов скрыты — строка вкладок идёт сразу под шапкой */
.page-title.visually-hidden + .tabs { margin-top: 0; }
.page-title.visually-hidden + .svc-page__intro { margin-top: 0; }
.contacts-page .brief { margin-top: 0; }

.tabs__link {
  position: relative;
  padding-block: 6px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.tabs__link:hover, .tabs__link.is-active { color: var(--ink); }
.tabs__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px; /* в два раза тоньше (владелец, 2026-10-30) */
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.tabs__link.is-active::after { transform: scaleX(1); }

.panel + .panel { margin-top: var(--section); }
.js .panel { display: none; }
.js .panel.is-active { display: block; animation: panel-in 0.5s var(--ease); }
.js .panel + .panel { margin-top: 0; }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } }

.panel__intro {
  max-width: 30em;
  margin-bottom: clamp(40px, 4.5vw, 72px);
  font-size: var(--step-lead);
  line-height: 1.38;
  letter-spacing: -0.015em;
}

/* вкладка «Бюро» */
.about-panel { align-items: start; row-gap: 48px; }
.about-panel__lead { grid-column: 1 / 6; }
/* вкладка «Бюро»: «Наш подход» (перенесён с главной, владелец 2026-10-30) — заголовок как «Образование и награды», абзацы обычного размера */
.about-panel__lead h2 { margin-bottom: 18px; font-size: var(--step-lead); font-weight: 400; line-height: 1.2; letter-spacing: -0.02em; }
.about-panel__lead p { max-width: 34em; line-height: 1.55; }
.about-panel__lead p + p { margin-top: 1em; }
.lead { font-size: var(--step-lead); line-height: 1.38; letter-spacing: -0.015em; }
.lead a { color: var(--muted); text-decoration: none; transition: color 0.2s var(--ease); }
.lead a:hover { color: var(--ink); }
.about-panel__photo { grid-column: 7 / 13; }
.about-panel__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(1) contrast(1.06); }

.about-block h2 { margin-bottom: 18px; font-size: var(--step-lead); font-weight: 400; line-height: 1.2; letter-spacing: -0.02em; }
/* второй ряд: «Образование и награды» слева вровень с формой справа */
.about-panel__rows { margin-top: clamp(80px, 9vw, 144px); row-gap: 48px; align-items: start; }
.about-block--edu { grid-column: 1 / 6; }
/* «Образование и награды» — строки через тонкую линию, как данные проекта */
.honors li { padding-block: 12px; border-top: 1px solid var(--line); line-height: 1.4; }
.honors li:last-child { border-bottom: 1px solid var(--line); }
.about-panel__call { grid-column: 7 / 13; }

/* вкладка «Партнёры и основатели» */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 4.5vw, 72px) var(--gap); }
.person img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.person h3 { margin-top: 18px; font-size: var(--step-lead); font-weight: 400; line-height: 1.2; letter-spacing: -0.02em; }
.person p { margin-top: 6px; font-size: var(--step-small); color: var(--muted); }

/* вкладка «Публикации» */
.pubs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.pubs li { display: flex; }
.pub {
  --pad: clamp(24px, 2.4vw, 36px);
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 300px;
  padding: var(--pad) var(--pad) calc(var(--pad) + 40px);
  background: var(--surface);
  text-decoration: none;
  transition: background-color 0.25s var(--ease);
}
.pub:hover { background: var(--surface-2); }
.pub__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.pub__meta b { font-size: var(--step-lead); font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; }
.pub__meta span { font-size: var(--step-small); color: var(--muted); }
.pub__title { margin-top: 32px; line-height: 1.35; }
.pub__text { margin-top: 10px; font-size: var(--step-small); line-height: 1.45; color: var(--muted); }
/* стрелка без подложки, на фоне карточки; при наведении сдвигается по диагонали */
.pub__go {
  position: absolute;
  right: var(--pad);
  bottom: var(--pad);
  font-size: 1.375rem;
  line-height: 1;
  transition: transform 0.3s var(--ease);
}
.pub:hover .pub__go { transform: translate(4px, -4px); }

/* ---------- страница «Проекты» ---------- */

.projects-page { padding-top: calc(var(--header-h) + clamp(40px, 5vw, 88px)); padding-bottom: var(--section); }
.cards--grid { row-gap: clamp(48px, 5vw, 80px); }
.projects-page .pnkb { margin-top: clamp(80px, 9vw, 144px); margin-bottom: calc(var(--section) * -1); }

/* ---------- страница проекта ---------- */
/* фото на первый экран под прозрачной шапкой, ниже описание и данные, затем помещения (у вилл — разделы) */

.project { padding-bottom: var(--section); }
.project__hero { position: relative; height: 100svh; min-height: 560px; background: var(--dark); }
.project__hero img { width: 100%; height: 100%; object-fit: cover; }
.project__hero picture { display: contents; }
/* затемнение сверху и снизу, чтобы белые шапка и название читались на светлом фото */
.project__hero::before,
.project__hero::after { content: ""; position: absolute; inset: 0 0 auto; height: 200px; background: linear-gradient(rgba(18, 18, 16, 0.5), rgba(18, 18, 16, 0)); pointer-events: none; }
.project__hero::before { inset: auto 0 0; height: 40%; background: linear-gradient(rgba(18, 18, 16, 0), rgba(18, 18, 16, 0.55)); }
/* название проекта — белым на фото, внизу слева по краю поля */
.project__title {
  position: absolute;
  left: var(--margin);
  right: var(--margin);
  bottom: clamp(32px, 4vw, 64px);
  max-width: 14em;
  color: #fff;
  font-family: var(--font-title);
  font-size: clamp(1.9rem, 0.7rem + 2.55vw, 3.3rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.project__head { padding-top: clamp(40px, 4.5vw, 72px); }
.project__back { margin-bottom: clamp(24px, 3vw, 40px); }
.project__intro { row-gap: 40px; align-items: start; }
.project__lead { grid-column: 1 / 7; }
.project__lead p { max-width: 34em; }
.project__lead p + p { margin-top: 1em; }
.project__facts { grid-column: 8 / 13; margin-top: -9px; }
.project__facts div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; padding-block: 9px; }
.project__facts dt { color: var(--muted); }
.nobr { white-space: nowrap; }

.room { margin-top: clamp(80px, 9vw, 144px); }
.room__title {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line); /* taste-skill-ignore: линия под названием помещения, просьба заказчика */
  font-family: var(--font-title);
  font-size: clamp(1.45rem, 1.27rem + 0.66vw, 1.925rem);
  font-weight: 350; /* между Light и Regular — шрифт подключён диапазоном 300..400 */
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.room__photos { display: grid; gap: 16px; margin-top: clamp(24px, 2.5vw, 40px); }
/* ряд кадров одной высоты: ширина каждого пропорциональна его соотношению сторон (--r) */
.room__row { display: flex; gap: 16px; }
.room__row figure { flex: var(--r) 1 0; min-width: 0; }
.room__row img { width: 100%; height: auto; }
.room__row--solo { width: calc(50% - 8px); }
/* одиночный горизонтальный кадр на всю ширину — не выше экрана */
.room__row--wide img { max-height: calc(100svh - var(--header-h) - 32px); object-fit: cover; }

.project__next {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: var(--section);
}
.project__next > span { color: var(--muted); }
/* название следующего проекта — размером с подпись «Следующий проект», как на сайте ПНКБ (владелец, 2026-10-30) */
.project__next a { font-size: inherit; font-weight: 300; line-height: 1.1; letter-spacing: -0.03em; text-decoration: none; transition: color 0.2s var(--ease); }
.project__next a:hover { color: var(--accent-hover); }
.project__next .arrow { display: inline-block; transition: transform 0.25s var(--ease); }
.project__next a:hover .arrow { transform: translateX(6px); }
.project .contact { padding-top: clamp(64px, 7vw, 112px); }
.svc__more { margin-left: 28px; }

/* ---------- страница «Контакты» ---------- */

.contacts-page { padding-top: calc(var(--header-h) + clamp(40px, 5vw, 88px)); padding-bottom: var(--section); }

/* ---------- «Политика обработки персональных данных» и «Согласие» (как у ПНКБ, 2026-11-02) ---------- */

.legal-page { padding-top: calc(var(--header-h) + clamp(40px, 5vw, 88px)); padding-bottom: var(--section); }
.legal { max-width: 46rem; }
.legal h1 { font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.5rem); font-weight: 400; line-height: 1.08; letter-spacing: -0.03em; }
.legal__date { margin-top: 12px; font-size: var(--step-small); color: var(--muted); }
.legal__intro { margin-top: 32px; }
.legal h2 { margin: 40px 0 12px; font-size: var(--step-lead); font-weight: 400; line-height: 1.2; letter-spacing: -0.02em; }
.legal p, .legal li { line-height: 1.55; }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: 0.75em; }
.legal ul { display: grid; gap: 4px; padding-left: 1.2em; list-style: disc; }
.legal a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color 0.2s var(--ease); }
.legal a:hover { color: var(--accent-hover); }
.legal .nw { white-space: nowrap; }
.brief { margin-top: clamp(56px, 6vw, 96px); align-items: start; row-gap: 40px; }
.brief__title { grid-column: 1 / 3; font-size: var(--step-lead); font-weight: 400; line-height: 1.2; letter-spacing: -0.02em; }
.brief__form { grid-column: 3 / 7; }

/* анкета по образцу shilova.studio: поля с линией снизу */
.form--line { gap: 0; }
.form--line fieldset { margin-bottom: 12px; }
.form--line .chips span { background: var(--surface); }
@media (hover: hover) { .form--line .chips label:hover input:not(:checked) + span { background: var(--surface-2); } }
.form--line .field {
  min-height: 0;
  padding: 18px 0 14px;
  border-bottom: 1px solid var(--line); /* taste-skill-ignore: линия поля формы */
  background: transparent;
  outline: none;
  transition: border-color 0.2s var(--ease);
}
.form--line .field:hover { background: transparent; border-bottom-color: #b4b3ad; }
.form--line .field:focus { border-bottom-color: var(--ink); }
.form--line textarea.field { min-height: 104px; resize: vertical; }
.form--line .consent { margin-top: 28px; }
.form--line .form__actions { margin-top: 24px; }
.consent { display: flex; align-items: flex-start; gap: 12px; font-size: var(--step-small); color: var(--muted); cursor: pointer; }
.form > .consent > span { font-size: inherit; } /* не как подписи полей: размер — от самой галочки (на телефоне мельче) */
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); }

/* заявка отправлена: поля прячутся (окно «Обсудить проект» потом открывается снова), на их месте — «Спасибо»;
   не получилось — под кнопкой телефон и почта (владелец, 2026-11-02) */
.form.is-sent { align-content: center; }
.form.is-sent > :not(.form__done) { display: none; }
.form__done-title { font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.02em; }
.form__done p + p { margin-top: 8px; color: var(--muted); }
.form__status { font-size: var(--step-small); line-height: 1.5; }
.form--line .form__status { margin-top: 16px; }
.form__status a, .consent a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 0.2s var(--ease); }
.consent a:hover { color: var(--ink); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.brief__photo { grid-column: 7 / 13; position: sticky; top: calc(var(--header-h) + 24px); }
/* фото владельца — как есть, в своих пропорциях, без обрезки (2026-11-02) */
.brief__photo img { width: 100%; height: auto; }

.ways { margin-top: var(--section); row-gap: 32px; align-items: start; }
.ways h2 { grid-column: 1 / 6; font-size: var(--step-lead); font-weight: 400; line-height: 1.2; letter-spacing: -0.02em; }
.ways__list { grid-column: 7 / 13; }
.ways__row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 24px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line); /* taste-skill-ignore: таблица контактов по образцу shilova.studio */
}
.ways__row dt { color: var(--muted); }
.ways__row a { text-decoration: none; transition: color 0.2s var(--ease); }
.ways__row a:hover { color: var(--accent-hover); }

/* ---------- страница «Услуги» ---------- */

.svc-page { padding-top: calc(var(--header-h) + clamp(40px, 5vw, 88px)); padding-bottom: var(--section); }
.svc-page__intro {
  max-width: 30em;
  margin-top: clamp(24px, 2.6vw, 40px);
  font-size: var(--step-lead);
  line-height: 1.38;
  letter-spacing: -0.015em;
}
.svc { margin-top: var(--section); align-items: start; row-gap: 40px; scroll-margin-top: calc(var(--header-h) + 24px); }
.svc-page { counter-reset: svc-n; }
.svc-page .svc { counter-increment: svc-n; }
/* вводного текста нет — первая услуга сразу под шапкой */
.svc-page__head + .svc { margin-top: 0; }
.svc__text { grid-column: 1 / 6; }
.svc__text h2 { font-size: clamp(1.4375rem, 0.95rem + 1.75vw, 2.5rem); font-weight: 400; line-height: 1.04; letter-spacing: -0.03em; }
.svc__desc { margin-top: 28px; max-width: 34em; }
.svc__desc p + p { margin-top: 1em; }
.svc__label { margin-top: 40px; margin-bottom: 8px; font-size: var(--step-body); font-weight: 400; color: var(--muted); }
.svc__list { counter-reset: svc; }
.svc__list li {
  counter-increment: svc;
  display: flex;
  gap: 16px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line); /* taste-skill-ignore: перечень по образцу shilova.studio, просьба заказчика */
  font-size: clamp(1rem, 0.88rem + 0.46vw, 1.35rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.svc__list li::before {
  content: counter(svc);
  flex: none;
  width: 1.2em;
  padding-top: 0.32em;
  font-size: var(--step-small);
  font-weight: 500;
  color: var(--accent);
}
.svc__text .btn { margin-top: 40px; }
.svc__photo { grid-column: 7 / 13; position: sticky; top: calc(var(--header-h) + 24px); }
.svc__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- узкий ноутбук: блок ПНКБ — фото сверху, текст под зданием на тёмном фоне ---------- */

@media (max-width: 1260px) {
  .pnkb { display: block; aspect-ratio: auto; }
  .pnkb__bg { position: relative; aspect-ratio: 2 / 1; }
  .pnkb__bg img { object-position: 50% 60%; }
  .pnkb__bg::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(to bottom, rgba(28, 29, 27, 0), var(--dark)); }
  .pnkb__scrim { display: none; }
  .pnkb__body { padding-top: 8px; }
  .pnkb__text { grid-column: 1 / 11; }
  .pnkb__list { grid-column: 1 / 13; }
}

/* ---------- планшет ---------- */

@media (max-width: 1100px) {
  .about__photo { grid-column: 1 / 7; }
  .about__text { grid-column: 1 / 13; margin-top: 48px; }
  .note { grid-column: 1 / 11; }
  .trust__text { grid-column: 1 / 10; }
  .services__list { grid-column: 1 / 13; }
  .services__photo { display: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .step:nth-child(2) .step__mark::after { display: none; }
  .contact__intro, .contact__plate .form { grid-column: 1 / 13; grid-row: auto; }
  /* плашка в один столбец, как у ПНКБ: заголовок, затем форма (с Интерьер/Вилла), затем телефон, почта и мессенджеры (владелец, 2026-10-30) */
  .contact__intro { display: contents; }
  .contact__intro h2, .contact__ways { grid-column: 1 / 13; }
  .contact__ways { order: 1; margin-top: 12px; padding-top: 0; }
  .about-panel__lead, .about-panel__photo, .about-block--edu, .about-panel__call { grid-column: 1 / 13; }
  .about-panel__photo { order: -1; }
  .project__lead, .project__facts { grid-column: 1 / 13; }
  .brief__title, .brief__form, .brief__photo, .ways h2, .ways__list { grid-column: 1 / 13; }
  .brief__photo { position: static; grid-column: 1 / 8; } /* вертикальное фото — не во всю ширину планшета */
  .svc__text, .svc__photo { grid-column: 1 / 13; }
  .svc__photo { order: -1; position: static; }
  .svc__photo img { aspect-ratio: 4 / 3; }
  #consult .svc__photo img { object-position: 50% 25%; } /* руки с карандашами — в верхней части кадра */
  .pubs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__logo { grid-column: 1 / 13; }
  .footer__nav { grid-column: 1 / 5; }
  .footer__col--contacts { grid-column: 5 / 10; }
}

@media (max-width: 900px) {
  .header__phone { display: none; }
  .burger { display: block; }
  .header__contacts { gap: 4px; }
  .header.menu-open { color: var(--ink); }
  .header.menu-open::before { transform: translateY(0); }
  .header.menu-open .header__row { transform: translateY(0); }
  /* меню разделов выпадает шторкой сверху вниз, пункты появляются по очереди — как услуги на главной */
  /* белая шторка начинается от верха экрана, под логотипом и иконками (z-index: -1),
     чтобы между шапкой и пунктами не мелькало фото; 16 px сверху — запас на сдвиг шапки на первом экране */
  .nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    z-index: -1;
    top: -16px;
    left: 0; right: 0;
    margin: 0;
    padding: calc(var(--header-h) + 24px) var(--margin) 28px;
    background: var(--bg);
    color: var(--ink);
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.35s;
  }
  .header.menu-open .nav { clip-path: inset(0); visibility: visible; transition: clip-path 0.45s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s; }
  .nav a { font-size: var(--step-lead); padding-block: 12px; opacity: 0; transform: translateY(12px); transition: opacity 0.2s ease-out, transform 0.2s ease-out; }
  .nav a::after { display: none; }
  .nav .nav__phone { display: block; margin-top: 12px; font-size: var(--step-body); }
  .header.menu-open .nav a { opacity: 1; transform: none; transition: opacity 0.32s ease-out, transform 0.32s ease-out; }
  .header.menu-open .nav a:nth-child(1) { transition-delay: 0.08s; }
  .header.menu-open .nav a:nth-child(2) { transition-delay: 0.135s; }
  .header.menu-open .nav a:nth-child(3) { transition-delay: 0.19s; }
  .header.menu-open .nav a:nth-child(4) { transition-delay: 0.245s; }
  .header.menu-open .nav a:nth-child(5) { transition-delay: 0.3s; }
}

/* ---------- телефон ---------- */

@media (max-width: 640px) {
  /* вкладки разделов — в одну строку даже на узком телефоне (320–390 px) */
  .tabs { flex-wrap: nowrap; column-gap: clamp(12px, 3.6vw, 16px); }
  .tabs__link { flex: none; font-size: clamp(0.8125rem, 4.1vw, 1rem); white-space: nowrap; }
  :root { --header-h: 56px; }
  .header__row { transform: translateY(6px); }
  .hero__title { max-width: 15em; letter-spacing: -0.025em; }
  .hero__sub { font-size: var(--step-small); }
  .about__photo, .brief__photo { grid-column: 1 / 13; }
  /* текст у галочки согласия — в две строки, как на сайте ПНКБ (владелец, 2026-11-02) */
  .consent { font-size: 0.8125rem; }
  .modal { padding-inline: 20px; } /* поля окна как у страниц — текст у галочки в две строки и на экранах 360 px */
  /* номера услуг перед названием на телефоне: 01/, 02/… (владелец, 2026-11-02) */
  .svc-page .svc__text h2::before { content: counter(svc-n, decimal-leading-zero) "/"; margin-right: 0.25em; color: var(--accent); font-variant-numeric: tabular-nums; }
  .logo { --k: 0.75; }
  .note { grid-column: 1 / 13; margin-right: 0; }
  .note__lens { left: 86%; top: 98%; width: 30%; border-width: 4px; }
  .note__caption { max-width: 64%; }
  .trust__text { grid-column: 1 / 13; margin-top: 24px; }
  .trust__points li { grid-column: 1 / 13; }
  /* обложки проектов на телефоне — друг под другом */
  .cards { grid-template-columns: 1fr; row-gap: 40px; }
  .steps { grid-template-columns: 1fr; }
  .step__mark { justify-content: flex-start; margin-bottom: 4px; }
  .step h5 { margin-bottom: 12px; }
  .step__mark::before { padding-left: 0; }
  .step__mark::after { display: none; }
  .step h5 { min-height: 0; text-align: left; }
  .pnkb__text { grid-column: 1 / 13; }
  .pnkb__bg { aspect-ratio: 3 / 2; }
  .form__actions .btn { flex: 1 1 100%; }
  .footer__nav { grid-column: 1 / 7; }
  .footer__col--contacts { grid-column: 7 / 13; }
  .cards.cards--grid { row-gap: 48px; }
  .project__hero { height: 72svh; min-height: 420px; }
  /* названия разделов проекта на телефоне в 1,2 раза мельче — как на сайте ПНКБ (владелец, 2026-10-30) */
  .room__title { font-size: calc(clamp(1.45rem, 1.27rem + 0.66vw, 1.925rem) / 1.2); }
  .room__photos { gap: 12px; }
  .room__row { flex-direction: column; gap: 12px; }
  .room__row figure { flex: none; }
  .room__row--solo { width: 100%; }
  .svc__more { margin: 20px 0 0; display: flex; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 16px; }
  .person h3 { font-size: var(--step-body); }
  .pubs { grid-template-columns: 1fr; }
  .pub { min-height: 0; }
}

/* ---------- без анимации ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__media img, .hero__media video { animation: none; transform: none; inset: 0; width: 100%; height: 100%; }
  .hero__media img:first-child { opacity: 1; }
  .marquee__track, .hero__title { animation: none; }
  .hero__title { -webkit-text-fill-color: currentColor; }
  .marquee { flex-wrap: wrap; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
