/* ==========================================================================
   ЮЛИЯ ЭЙХМАН — фактурная живопись
   Композиция снята с natashahegai.com: центрованное меню, вордмарк, ряд
   вертикальных кадров, разделы плитками с подписью под кадром, кнопка-таблетка,
   полноширинная лента фрагментов.
   Палитра — из интерьерной подборки заказчицы, тема тёмная.
   ========================================================================== */

:root {
  --bg:      #171b1f;
  --bg-2:    #1d2329;
  --plane:   #243139;
  --cream:   #edeae0;
  --cream-2: rgba(237, 234, 224, .70);
  /* .42 давало 3.58:1 при норме 4.5 — на этом токене сидит весь мелкий текст:
     размеры под карточками, крошки, подписи характеристик, подвал. .60 → 5.6:1. */
  --cream-3: rgba(237, 234, 224, .60);
  --ochre:   #c89a55;
  --line:    rgba(237, 234, 224, .14);       /* только линии, не текст */
  --line-2:  rgba(237, 234, 224, .34);       /* контур интерактивного: норма 3:1 */
  --frame:   rgba(237, 234, 224, .50);

  --maxw: 1440px;
  --pad: clamp(22px, 4.4vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font: 400 clamp(14px, .95vw, 15px)/1.75 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3 { margin: 0; font-weight: 300; font-family: 'Cormorant Garamond', Georgia, serif; line-height: 1.08; }

::selection { background: var(--ochre); color: #14171a; }
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--cream); color: var(--bg); padding: 12px 18px; }
.skip:focus { left: 12px; top: 12px; }

.eyebrow {
  margin: 0 0 12px;
  font: 500 clamp(9.5px, .7vw, 11px)/1.4 Inter, sans-serif;
  letter-spacing: .26em; text-transform: uppercase; color: var(--ochre);
}

/* ── шапка: центрованное меню с точками ──────────────────────────── */

.head {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: center;
  padding: 20px var(--pad);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.nav__dot { color: var(--cream-3); font-size: 10px; }
.nav__link {
  font: 500 clamp(9.5px, .78vw, 11px)/1 Inter, sans-serif;
  letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; color: var(--cream-2);
  padding: 5px 0; border-bottom: 1px solid transparent;
  transition: color .22s, border-color .22s;
}
.nav__link:hover { color: var(--cream); }
/* текущий раздел был самым тусклым на странице и читался как отключённый */
.nav__link.is-active { color: var(--cream); border-color: var(--ochre); }

.burger {
  display: none; position: absolute; right: calc(var(--pad) - 10px);
  flex-direction: column; justify-content: center; gap: 6px;
  padding: 10px; min-width: 44px; min-height: 44px; align-items: center;
}
.burger span { display: block; width: 24px; height: 1px; background: var(--cream); transition: transform .25s; }

/* ── вордмарк ────────────────────────────────────────────────────── */

.wordmark-bar { padding: clamp(34px, 5vw, 66px) var(--pad) clamp(26px, 3.6vw, 46px); text-align: center; }
.wordmark {
  display: inline-block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: clamp(27px, 4vw, 58px);
  letter-spacing: .055em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
}

/* ── первый экран: три вертикальных кадра ────────────────────────── */

.hero__row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; padding: 0 var(--pad);
  max-width: var(--maxw); margin: 0 auto;
}
.hero__cell { display: block; overflow: hidden; height: clamp(380px, 62vh, 700px); background: var(--bg-2); }
.hero__cell img { width: 100%; height: 100%; object-fit: cover; }

/* ── центрованный блок с кнопкой ─────────────────────────────────── */

.creed {
  max-width: 760px; margin: 0 auto;
  padding: clamp(64px, 9vw, 132px) var(--pad);
  display: grid; justify-items: center; gap: clamp(20px, 2.4vw, 34px);
  text-align: center;
}
.creed--slim { padding-block: clamp(48px, 6vw, 88px); }
.creed__title { font-size: clamp(24px, 3.1vw, 46px); text-transform: uppercase; letter-spacing: .05em; }
.creed__text { margin: 0; max-width: 52ch; color: var(--cream-2); font-size: clamp(14px, 1.05vw, 16px); }
.creed__mark { width: clamp(84px, 8vw, 118px); height: auto; opacity: .85; }

.center-title {
  font-size: clamp(24px, 3.1vw, 46px); text-transform: uppercase; letter-spacing: .05em;
  text-align: center;
}
.center-lead { margin: 18px auto 0; max-width: 56ch; text-align: center; color: var(--cream-2); }

/* кнопка-таблетка, как у Натальи */
.pill {
  display: inline-block; padding: 16px 34px;
  border: 1px solid var(--cream-3); border-radius: 999px;
  font: 500 11px/1 Inter, sans-serif; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; color: var(--cream);
  transition: border-color .22s, background .22s, color .22s;
}
.pill:hover { border-color: var(--cream); background: var(--cream); color: #14171a; }
.pill--solid { background: var(--cream); border-color: var(--cream); color: #14171a; }
.pill--solid:hover { background: var(--ochre); border-color: var(--ochre); color: #14171a; }

/* ── разделы плитками ────────────────────────────────────────────── */

.tiles { max-width: var(--maxw); margin: 0 auto; padding: clamp(20px, 3vw, 40px) var(--pad) clamp(56px, 8vw, 110px); }
.tiles--tight { padding-top: 0; }
.tiles__grid {
  margin-top: clamp(34px, 4.4vw, 64px);
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(48px, 6vw, 96px) clamp(20px, 3vw, 48px);
  align-items: start;
}
.tile { display: grid; justify-items: center; gap: 18px; text-decoration: none; }
.tile__frame {
  display: block; width: 100%; overflow: hidden;
  border: 1px solid var(--frame); background: var(--bg-2);
  transition: border-color .3s;
}
.tile__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .3, 1); }
.tile:hover .tile__frame { border-color: var(--ochre); }
.tile:hover .tile__frame img { transform: scale(1.028); }
.tile__title {
  font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 300;
  font-size: clamp(19px, 2.3vw, 34px); line-height: 1.12;
  text-transform: uppercase; letter-spacing: .05em; text-align: center;
}
.tile__more {
  font: 400 12.5px/1 Inter, sans-serif; letter-spacing: .06em; color: var(--cream-2);
  border-bottom: 1px solid transparent; padding-bottom: 5px; transition: border-color .22s, color .22s;
}
.tile:hover .tile__more { color: var(--ochre); border-color: var(--ochre); }

/* ── полноширинная лента фрагментов ──────────────────────────────── */

.closer { padding: clamp(56px, 8vw, 110px) var(--pad) clamp(30px, 4vw, 54px); }
.bleed { display: grid; grid-template-columns: repeat(5, 1fr); }
.bleed img { width: 100%; height: clamp(150px, 19vw, 300px); object-fit: cover; }
.bleed button { display: block; overflow: hidden; }
.bleed button img { transition: transform .7s cubic-bezier(.2, .7, .3, 1); }
.bleed button:hover img { transform: scale(1.05); }
.bleed--three { grid-template-columns: repeat(3, 1fr); }
.bleed--three img { height: clamp(200px, 26vw, 420px); }
/* «Вблизи» и «В интерьере» — не декоративная лента, а кадры, которые
   рассматривают. Поэтому обычная сетка по ширине контента и родные пропорции:
   ничего не режем, как и в галерее. Ряды выходят неровными по низу — это то же
   поведение, что у плиток разделов, и читается как замысел. */
.bleed--details {
  grid-template-columns: repeat(auto-fit, minmax(212px, 1fr));
  gap: clamp(14px, 2vw, 26px);
  max-width: var(--maxw); margin: 0 auto clamp(34px, 4vw, 60px);
  padding: 0 var(--pad);
  align-items: start;
}
.bleed--details button {
  border: 1px solid var(--frame); background: var(--bg-2);
  transition: border-color .25s;
}
.bleed--details button:hover { border-color: var(--ochre); }
.bleed--details button:hover img { transform: none; }  /* наезд обрезал бы кадр */
.bleed--details img { height: auto; object-fit: fill; }
/* страховка на случай кадра без записанной пропорции: коробка не схлопнется */
.bleed--details img:not([width]) { aspect-ratio: 4 / 3; height: auto; }

/* Один кадр в ленте не растягиваем: коробка обнимает картину, полей по бокам нет. */
.bleed:has(> :only-child) { grid-template-columns: minmax(0, auto); justify-content: center; }
.bleed:has(> :only-child) img,
.bleed:has(> :only-child) button img {
  width: auto; height: auto;
  max-width: min(100%, 760px);
  max-height: clamp(280px, 44vw, 560px);
  object-fit: fill;
}
.tile__frame--empty { background: var(--bg-2); }

/* ── сетка работ ─────────────────────────────────────────────────── */

.all { max-width: var(--maxw); margin: 0 auto; padding: clamp(46px, 6vw, 92px) var(--pad); }
.grid {
  margin-top: clamp(30px, 4vw, 56px);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(230px, 24vw, 320px), 1fr));
  gap: clamp(40px, 5vw, 76px) clamp(20px, 2.6vw, 40px);
  align-items: start;
}
/* подсказка над сеткой раздела: карточка кликается, но с телефона это не видно */
.grid-hint {
  margin: 0; text-align: center;
  font: 500 clamp(10px, .78vw, 11px)/1.6 Inter, sans-serif;
  letter-spacing: .18em; text-transform: uppercase; color: var(--cream-3);
}
.grid-hint::before { content: '↓'; display: block; margin-bottom: 8px; font-size: 14px; letter-spacing: 0; color: var(--ochre); }

.card { display: grid; justify-items: center; gap: 9px; text-decoration: none; text-align: center; }
.card__frame {
  display: block; width: 100%; overflow: hidden;
  border: 1px solid var(--frame); background: var(--bg-2); transition: border-color .3s;
  margin-bottom: 8px;
}
.card__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .3, 1); }
.card:hover .card__frame { border-color: var(--ochre); }
.card:hover .card__frame img { transform: scale(1.03); }
.card__title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(19px, 1.7vw, 25px); line-height: 1.18; }
.card__sub { font-size: 12px; color: var(--cream-3); letter-spacing: .04em; }
.card__price { font-size: 12.5px; color: var(--cream-2); letter-spacing: .06em; }
.card.is-hidden { display: none; }

/* ── фильтры ─────────────────────────────────────────────────────── */

.filters {
  max-width: 900px; margin: clamp(28px, 3.4vw, 48px) auto 0;
  display: grid; gap: 12px; padding: clamp(18px, 2vw, 26px) 0; border-block: 1px solid var(--line);
}
.filters__row { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: baseline; }
.filters__label { font: 500 10px/1.6 Inter, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--cream-3); }
.filters__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 12px 17px; min-height: 44px; font: 400 12.5px/1 Inter, sans-serif; letter-spacing: .04em;
  color: var(--cream-2); border: 1px solid var(--line-2); border-radius: 999px;
  transition: border-color .2s, color .2s, background .2s;
}
.chip:hover { border-color: var(--cream-3); color: var(--cream); }
.chip.is-on { background: var(--cream); border-color: var(--cream); color: #14171a; }
.chip--reset { border-style: dashed; }
/* На широком экране фильтры всегда раскрыты, кнопка не нужна. */
.filters__toggle { display: none; }
.counter { margin: 18px 0 0; text-align: center; font-size: 12px; color: var(--cream-3); letter-spacing: .06em; }
.empty { margin: 26px 0 0; text-align: center; color: var(--cream-2); }

/* ── крошки, заголовок страницы ──────────────────────────────────── */

.crumbs {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center;
  font: 500 10px/1.6 Inter, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--cream-3);
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ochre); }

.phead { padding: clamp(26px, 3.4vw, 48px) var(--pad) 0; text-align: center; }
.phead__title { font-size: clamp(26px, 3.4vw, 50px); text-transform: uppercase; letter-spacing: .05em; }
.phead__lead { margin: 20px auto 0; max-width: 52ch; color: var(--cream-2); font-size: clamp(14px, 1.05vw, 16px); }

/* ── страница работы ─────────────────────────────────────────────── */

.work {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(30px, 4vw, 60px) var(--pad) clamp(30px, 4vw, 56px);
  display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(290px, .82fr);
  gap: clamp(28px, 4vw, 68px); align-items: start;
}
/* Картина висит прямо на фоне страницы: ни плиты, ни обводки — ничто не
   соревнуется с работой за внимание. Обводка остаётся только в сетке и плитках,
   где превью размером с ладонь и границу видеть нужно. */
.work__stage {
  --stage-pad: 0px;
  --stage-top: 78px;                 /* прилипшая шапка ~62px плюс воздух */
}
.frame { display: block; position: relative; border: 1px solid var(--frame); background: var(--bg-2); overflow: hidden; }

/* Рамка обнимает картину, а не является коробкой с полями: полос внутри
   не бывает, даже если пропорции кадра не совпали с записанными сантиметрами.
   width/height у img заданы из сантиметров — место под картину зарезервировано,
   макет при загрузке не прыгает. */
.frame--big {
  width: fit-content; max-width: 100%; margin-inline: auto;
  border: 0; background: transparent;
}
.frame--big img { width: auto; height: auto; max-width: 100%; max-height: var(--stage-max, none); background: var(--bg-2); }

/* Картина остаётся на месте, пока читается описание рядом.
   Только на широких экранах: ниже 900px колонки складываются в одну. */
@media (min-width: 901px) {
  .work__stage {
    position: sticky;
    top: var(--stage-top);
    --stage-max: calc(100vh - var(--stage-top) - 2 * var(--stage-pad) - 28px);
  }
}
.frame__lens {
  position: absolute; right: 14px; bottom: 14px; padding: 7px 13px; z-index: 2;
  font: 500 9.5px/1 Inter, sans-serif; letter-spacing: .18em; text-transform: uppercase;
  background: color-mix(in srgb, var(--bg) 82%, transparent); border: 1px solid var(--line);
  opacity: 0; transition: opacity .25s; pointer-events: none;
}
.frame__lens--hover { display: none; }
/* На телефоне наведения не бывает, поэтому подсказка видна сразу —
   иначе она не показывалась бы никогда именно там, где нужна. */
.frame__lens--touch { opacity: 1; }

/* Лупа по наведению: картина увеличивается прямо в рамке и следует за курсором.
   Рамка обрезает лишнее, поэтому получается окошко увеличителя, а не прыжок макета.
   Кратность считается из настоящего разрешения кадра — увеличение никогда не мылит. */
@media (hover: hover) and (pointer: fine) {
  .frame__lens--touch { display: none; }
  .frame__lens--hover { display: block; }
  .frame--big { cursor: zoom-in; }
  .frame--big img { transition: transform .2s ease-out; will-change: transform; }
  .frame--big.is-lens img { transition: none; transform: scale(var(--lens, 2.4)); }
  .frame--big.is-lens .frame__lens { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .frame--big img { transition: none; }
}

.work__title { font-size: clamp(26px, 3.1vw, 44px); margin-bottom: 12px; }
.work__series { margin: 0 0 18px; color: var(--ochre); font-size: 13px; letter-spacing: .04em; }
.work__note { margin: 0 0 8px; }
.work__note p { margin: 0 0 14px; color: var(--cream-2); }

/* авторский текст раздела — узкая колонка по центру, как в каталоге */
.words {
  max-width: 68ch; margin: 0 auto;
  padding: 0 var(--pad) clamp(56px, 7vw, 100px);
}
.words p { margin: 0 0 18px; color: var(--cream-2); font-size: clamp(14px, 1.08vw, 16px); }
/* рассказ о себе на главной — тот же столбец, но со своим заголовком */
.words .center-title { margin: 0 0 clamp(22px, 2.6vw, 38px); }
.words--about { padding-top: clamp(6px, 1.4vw, 18px); padding-bottom: clamp(30px, 4vw, 56px); }
/* вступление к разделу: между заголовком и работами, а не под ними */
/* два класса, чтобы правило пережило .words из адаптива ниже по файлу */
.words.words--intro { padding-top: clamp(22px, 2.8vw, 40px); padding-bottom: 0; }
.words--intro + .all { padding-top: clamp(32px, 3.6vw, 56px); }
.tiles__foot { margin: clamp(30px, 4vw, 54px) 0 0; text-align: center; }
.specs { margin: 26px 0; display: grid; border-top: 1px solid var(--line); }
.specs > div { display: grid; grid-template-columns: 118px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs dt { margin: 0; font: 500 10px/1.7 Inter, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--cream-3); }
.specs dd { margin: 0; font-size: 14px; }
.work__price { margin: 0 0 24px; font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(28px, 3vw, 42px); }
.cta { display: grid; gap: 12px; justify-items: start; }
.cta__hint { margin: 2px 0 0; font-size: 11.5px; color: var(--ochre); }
.work__ship { margin: 24px 0 0; font-size: 13px; color: var(--cream-3); }
.work__ship a { color: var(--cream-2); }

.pager {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(30px, 4vw, 52px) var(--pad) clamp(56px, 7vw, 100px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border-top: 1px solid var(--line);
}
.pager__side { text-decoration: none; display: grid; gap: 6px; }
.pager__side--next { text-align: right; justify-items: end; }
.pager__name { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(19px, 2vw, 29px); line-height: 1.15; }
.pager__side:hover .pager__name { color: var(--ochre); }

/* ── лупа ────────────────────────────────────────────────────────── */

.zoom {
  --zoom-pad: clamp(14px, 3vw, 48px);
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center; padding: var(--zoom-pad);
  background: color-mix(in srgb, var(--bg) 96%, transparent);
}
.zoom[hidden] { display: none; }
/* Высоту считаем от окна, а не в процентах: процент здесь ссылался бы на строку
   сетки, а высота строки — на содержимое, и браузер брал натуральный размер. */
.zoom img {
  width: auto; height: auto;
  max-width: calc(100vw - 2 * var(--zoom-pad));
  max-height: calc(100dvh - 2 * var(--zoom-pad));
  border: 1px solid var(--frame);
}
.zoom__close { position: absolute; top: 14px; right: 20px; font-size: 34px; line-height: 1; color: var(--cream-2); }
.zoom__close:hover { color: var(--cream); }

/* ── информация и контакты ───────────────────────────────────────── */

.info {
  max-width: 1100px; margin: 0 auto;
  padding: clamp(36px, 5vw, 68px) var(--pad) 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: clamp(28px, 4vw, 56px);
}
.info__block { border-top: 1px solid var(--line); padding-top: 22px; }
.info__head { font-size: clamp(20px, 2.2vw, 30px); margin-bottom: 16px; }
.info__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.info__list li { color: var(--cream-2); padding-left: 20px; position: relative; }
.info__list li::before { content: ''; position: absolute; left: 0; top: .72em; width: 9px; height: 1px; background: var(--ochre); }
.info__plain { margin: 0 0 16px; color: var(--cream-2); }

.contacts {
  max-width: 1100px; margin: 0 auto;
  padding: clamp(36px, 5vw, 72px) var(--pad) clamp(60px, 8vw, 110px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(26px, 4vw, 56px);
  text-align: center;
}
.contacts__block { border-top: 1px solid var(--line); padding-top: 22px; }
.contacts__big { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(20px, 2.2vw, 31px); line-height: 1.2; text-decoration: none; }
.contacts__big:not(.contacts__big--plain):hover { color: var(--ochre); }

/* ── подвал ──────────────────────────────────────────────────────── */

.foot {
  border-top: 1px solid var(--line);
  padding: clamp(48px, 6vw, 84px) var(--pad) 40px;
  display: grid; justify-items: center; gap: 14px; text-align: center;
}
.foot__mark { width: 58px; opacity: .8; }
.foot__full { margin: 4px 0 0; color: var(--cream-2); font-size: 14px; }
.foot__contacts, .foot__links { margin: 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; font-size: 13.5px; }
.foot__contacts a, .foot__links a { color: var(--cream-2); text-decoration: none; border-bottom: 1px solid transparent; }
.foot__contacts a:hover, .foot__links a:hover { color: var(--cream); border-color: var(--ochre); }
.foot__contacts span { color: var(--cream-3); font-size: 10px; }
.foot__addr { margin: 0; color: var(--cream-3); font-size: 13.5px; }
.foot__rights {
  margin: 18px auto 0; max-width: 62ch;
  font-size: 11.5px; line-height: 1.6; color: var(--cream-3);
}

/* ── переходы ────────────────────────────────────────────────────── */

@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  @view-transition { navigation: none; }
}

/* ── адаптив ─────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .work { grid-template-columns: 1fr; }
  .bleed { grid-template-columns: repeat(3, 1fr); }
  .bleed img:nth-child(n+4), .bleed button:nth-child(n+4) { display: none; }
  .bleed--details { grid-template-columns: repeat(2, 1fr); }
  .bleed--details button:nth-child(n+4) { display: block; }
}

@media (max-width: 720px) {
  .head { justify-content: flex-start; }
  .nav {
    position: fixed; inset: 100% 0 auto; z-index: 39;  /* стыкуется с шапкой, а не с магическим числом */
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 22px;
    transform: translateY(-120%); transition: transform .32s cubic-bezier(.3, .8, .3, 1);
  }
  .nav.is-open { transform: translateY(0); }
  .nav__link {
    padding: 15px 0; min-height: 44px; text-align: center;
    font-size: 12px; letter-spacing: .18em;      /* 9,5px в раскрытом меню не читались */
    border-bottom: 1px solid var(--line);
  }
  .foot__contacts a, .foot__links a { padding: 10px 0; }
  .foot__contacts, .foot__links { gap: 8px 16px; }

  /* Крошки. На странице работы название дословно повторяет заголовок строкой
     ниже и рвёт строку — его убираем. На странице раздела крошки короткие
     и в строку помещаются, там режем нельзя: остаётся одно слово без пути. */
  .crumbs { font-size: 10.5px; gap: 8px; }
  .crumbs > a { padding: 12px 0; }
  .p-work .crumbs > :last-child, .p-work .crumbs > :nth-last-child(2) { display: none; }

  /* Рубрики и подписи: 9,5-10px с широкой разрядкой на телефоне уже неразборчивы. */
  .eyebrow { font-size: 10.5px; }
  .specs dt, .filters__label { font-size: 10.5px; }
  .pill { font-size: 11.5px; padding: 16px 28px; }
  .nav__dot { display: none; }
  .burger { display: flex; }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

  /* Три кадра в ряд на 390 точках дают полосы по 170 — от работы остаётся
     обрезок с порезанными посреди слов надписями. Оставляем один кадр:
     портрет в зале, где за спиной автора видны её же работы. Макро фактуры
     уходит ниже, в свою полосу, — там она и должна быть. */
  .hero__row { grid-template-columns: 1fr; gap: 0; }
  .hero__cell { height: auto; aspect-ratio: 3 / 4; }
  .hero__cell:first-child, .hero__cell:last-child { display: none; }
  .hero__cell img { object-position: 50% 22%; }

  /* Отбивки считались от ширины экрана и на телефоне сели в минимумы — но
     минимумы складывались друг с другом и давали провалы по 300 точек. */
  .creed { padding-block: 44px; gap: 18px; }
  .creed--slim { padding-block: 38px; }
  .creed__title, .center-title { font-size: 22px; }
  .creed__mark { width: 76px; }
  .closer { padding: 42px var(--pad) 22px; }
  .center-lead { margin-top: 14px; }
  .tiles { padding-bottom: 44px; }
  .tiles__grid { grid-template-columns: 1fr; gap: 38px; margin-top: 26px; }
  .all { padding-block: 40px; }
  .phead { padding-top: 30px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 30px 14px; margin-top: 24px; }
  .words { padding-bottom: 44px; }
  /* Четыре ряда кнопок отодвигали первую работу на 800 точек вниз.
     Панель сворачивается, а счётчик на кнопке говорит, что внутри что-то выбрано. */
  .filters__toggle {
    display: block; width: 100%; margin: 22px 0 0; padding: 15px 20px;
    border: 1px solid var(--line-2); border-radius: 999px;
    font: 500 11.5px/1 Inter, sans-serif; letter-spacing: .18em; text-transform: uppercase;
    color: var(--cream);
  }
  .filters__toggle[aria-expanded="true"] { border-color: var(--ochre); color: var(--ochre); }
  .filters { display: none; margin-top: 14px; border-top: 0; }
  .filters.is-open { display: grid; }
  .filters__row { grid-template-columns: 1fr; gap: 8px; }
  .pager { grid-template-columns: 1fr; }
  .pager__side--next { text-align: left; justify-items: start; }
  /* Лента в 150 точек высотой с обрезкой по центру превращала фактуру в кашу.
     На телефоне — сетка два на два в родных пропорциях: кадр видно целиком. */
  .bleed { grid-template-columns: repeat(2, 1fr); gap: 6px; padding: 0 var(--pad); }
  .bleed img { height: auto; }
  /* блок «до 900» скрывал с четвёртого — на 390 оба запроса действуют разом
     и в сетке два на два оставалась дырка */
  .bleed img:nth-child(-n+4) { display: block; }
  .bleed img:nth-child(n+5) { display: none; }
  .bleed--three { grid-template-columns: repeat(2, 1fr); }
  .bleed--three img { height: auto; }
  .bleed--three img:nth-child(n+3) { display: none; }
  .bleed button:nth-child(n+5) { display: none; }
  .bleed--details { grid-template-columns: repeat(2, 1fr); }
  .bleed--details button:nth-child(n+3) { display: block; }
  .cta { justify-items: stretch; }
  .cta .pill { text-align: center; }
}
