/* ─────────────────────────────────────────────
   yeshkere · светлый туманный коллаж
   ───────────────────────────────────────────── */

:root {
  --fog: #eceee7;
  --fog-light: #f6f5ef;
  --fog-deep: #dde2d6;
  --paper: #faf9f3;
  --ink: #343830;
  --ink-soft: #5c6255;
  --haze: #a9b1a1;
  --red: #a8432f;
  --line: rgba(52, 56, 48, 0.22);
  --line-soft: rgba(52, 56, 48, 0.12);
  --shadow: 0 14px 34px rgba(52, 56, 48, 0.16);

  --font-display: 'Forum', 'Georgia', serif;
  --font-body: 'EB Garamond', 'Georgia', serif;
  --font-hand: 'Caveat', cursive;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--fog-light);
  overflow-x: hidden;
  font-variant-numeric: oldstyle-nums;
}

/* зерно поверх всего — как плёнка */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }

::selection { background: var(--red); color: var(--fog-light); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

a:focus-visible,
.btn:focus-visible,
.faq-list summary:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ссылка «пропустить меню» — видна только при фокусе с клавиатуры */
.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 100;
  transform: translate(-50%, -120%);
  background: var(--paper);
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--ink);
  border-radius: 0 0 999px 999px;
  text-decoration: none;
  transition: transform 0.2s;
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ── фоновые фото-полосы ── */
.band {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
/* снимок выше своей рамки — запас хода для параллакса */
.band-photo {
  position: absolute;
  top: -9%;
  left: 0;
  width: 100%;
  height: 118%;
  object-fit: cover;
  will-change: transform;
}

/* ── рваный край между полосами ── */
.torn {
  position: absolute;
  left: 0; right: 0;
  bottom: -1px;
  height: 44px;
  z-index: 4;
  background: var(--paper);
  clip-path: polygon(0 100%, 100% 100%, 100% 45%, 96% 70%, 93% 30%, 89% 60%, 85% 25%, 81% 55%, 77% 35%, 73% 75%, 68% 30%, 64% 55%, 60% 20%, 56% 65%, 52% 35%, 48% 70%, 44% 25%, 40% 60%, 36% 40%, 32% 75%, 28% 30%, 24% 55%, 20% 25%, 16% 65%, 12% 35%, 8% 60%, 4% 30%, 0 55%);
}
.quote-band .torn { background: var(--fog-light); }
.torn-top {
  top: -1px;
  bottom: auto;
  background: var(--fog-light);
  clip-path: polygon(0 0, 100% 0, 100% 55%, 96% 30%, 93% 70%, 89% 40%, 85% 75%, 81% 45%, 77% 65%, 73% 25%, 68% 70%, 64% 45%, 60% 80%, 56% 35%, 52% 65%, 48% 30%, 44% 75%, 40% 40%, 36% 60%, 32% 25%, 28% 70%, 24% 45%, 20% 75%, 16% 35%, 12% 65%, 8% 40%, 4% 70%, 0 45%);
}

/* ── шапка ── */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.2rem 2.2rem;
  flex-wrap: wrap;
  padding: 1.5rem clamp(1.2rem, 4vw, 3.5rem);
}
.logo {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.14em;
  text-decoration: none;
}
.logo-mark { color: var(--red); font-size: 0.8em; margin-left: 0.25em; }
.site-nav { display: flex; gap: 1.7rem; margin-left: auto; }
.site-nav a {
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, color 0.25s;
}

/* ── кнопки ── */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  padding: 0.85rem 2rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  background: rgba(250, 249, 243, 0.55);
}
.btn-small { font-size: 0.92rem; padding: 0.5rem 1.4rem; }
.btn-big { font-size: 1.15rem; padding: 1rem 2.6rem; }
.btn-ghost { border-color: var(--line); background: rgba(250, 249, 243, 0.35); }

/* ─────────────────────────────────────────────
   герой
   ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 7.5rem clamp(1.2rem, 4vw, 4rem) 6rem;
  overflow: hidden;
}
.hero .band-photo { object-position: center 62%; }
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(rgba(246, 245, 239, 0.72), rgba(246, 245, 239, 0) 32%),
    linear-gradient(102deg, rgba(246, 245, 239, 0.9) 0%, rgba(246, 245, 239, 0.62) 34%, rgba(246, 245, 239, 0.12) 58%, rgba(246, 245, 239, 0.28) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

/* мягкая бумажная подложка под текстом на фото — как наклеенный лист:
   без неё тёмная трава на снимке съедает читаемость */
.paper-wash { position: relative; }
.paper-wash::before {
  content: '';
  position: absolute;
  inset: -14% -18%;
  z-index: -1;
  /* closest-side, иначе градиент упирается в края блока и виден прямоугольник */
  background: radial-gradient(ellipse closest-side at 50% 50%,
    rgba(248, 247, 241, 0.94) 0%,
    rgba(248, 247, 241, 0.9) 40%,
    rgba(248, 247, 241, 0.6) 68%,
    rgba(248, 247, 241, 0.18) 87%,
    rgba(248, 247, 241, 0) 100%);
}

.hero-copy { max-width: 34rem; }
.hero-eyebrow {
  font-size: 0.92rem;
  letter-spacing: 0.3em;
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
}
.hero-eyebrow .dot, .hero-sub .dot { color: var(--red); }
.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 8.5vw, 6.6rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 0.95;
}
.hero-sub {
  margin-top: 1rem;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  letter-spacing: 0.2em;
  color: var(--ink-soft);
}
.hero-lede {
  margin-top: 1.8rem;
  font-style: italic;
  font-size: 1.18rem;
  max-width: 30rem;
  color: var(--ink-soft);
}
.hero-cta {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.hero-birds {
  width: clamp(110px, 12vw, 170px);
  stroke: var(--ink-soft);
  stroke-width: 1.4;
  opacity: 0.55;
  margin-top: 2.4rem;
}

/* коллаж справа */
.hero-collage {
  position: relative;
  aspect-ratio: 1 / 1.04;
  max-width: 560px;
  justify-self: end;
  width: 100%;
}
.lace-card {
  position: absolute;
  top: 1%; left: 4%;
  width: 64%;
  transform: rotate(-2deg);
  z-index: 2;
}
.lace-frame {
  position: relative;
  background: var(--paper);
  padding: clamp(12px, 1.6vw, 20px);
  box-shadow: var(--shadow);
}
/* кружевные фестоны по краю рамки */
.lace-frame::before {
  content: '';
  position: absolute;
  inset: -10px;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 50% 100%, var(--paper) 9.5px, transparent 10px),
    radial-gradient(circle at 50% 0%, var(--paper) 9.5px, transparent 10px),
    radial-gradient(circle at 100% 50%, var(--paper) 9.5px, transparent 10px),
    radial-gradient(circle at 0% 50%, var(--paper) 9.5px, transparent 10px);
  background-size: 24px 10px, 24px 10px, 10px 24px, 10px 24px;
  background-position: top left, bottom left, left top, right top;
  /* round вместо repeat: целые фестоны попадают в углы при любой ширине рамки */
  background-repeat: round no-repeat, round no-repeat, no-repeat round, no-repeat round;
}
.lace-frame::after {
  content: '';
  position: absolute;
  inset: 6px;
  pointer-events: none;
  border: 1px dotted var(--line);
}
.lace-caption {
  text-align: center;
  margin: 0.9rem auto 0;
  transform: rotate(-1deg);
  display: table;
  background: rgba(250, 249, 243, 0.78);
  padding: 0.1em 0.7em 0.25em;
  box-shadow: 0 4px 14px rgba(52, 56, 48, 0.1);
}

/* полароид */
.polaroid {
  background: var(--paper);
  padding: 9px 9px 0;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
  position: relative;
}
.polaroid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.polaroid figcaption {
  font-family: var(--font-hand);
  font-size: 1.15rem;
  color: var(--ink-soft);
  text-align: center;
  padding: 0.45rem 0.2rem 0.55rem;
}
.polaroid::before {
  content: '';
  position: absolute;
  top: -12px; left: 30%;
  width: 42%; height: 24px;
  background: rgba(255, 255, 250, 0.55);
  border: 1px solid rgba(52, 56, 48, 0.06);
  transform: rotate(-3deg);
  box-shadow: 0 2px 6px rgba(52, 56, 48, 0.08);
}
.polaroid-hero {
  position: absolute;
  top: 10%; right: 0;
  width: 37%;
  transform: rotate(3.5deg);
  z-index: 3;
}

/* почтовая марка */
.stamp {
  background: var(--paper);
  padding: 7px;
  clip-path: polygon(0% 2.5%, 5% 0%, 10% 2.5%, 15% 0%, 20% 2.5%, 25% 0%, 30% 2.5%, 35% 0%, 40% 2.5%, 45% 0%, 50% 2.5%, 55% 0%, 60% 2.5%, 65% 0%, 70% 2.5%, 75% 0%, 80% 2.5%, 85% 0%, 90% 2.5%, 95% 0%, 100% 2.5%, 97.5% 5%, 100% 10%, 97.5% 15%, 100% 20%, 97.5% 25%, 100% 30%, 97.5% 35%, 100% 40%, 97.5% 45%, 100% 50%, 97.5% 55%, 100% 60%, 97.5% 65%, 100% 70%, 97.5% 75%, 100% 80%, 97.5% 85%, 100% 90%, 97.5% 95%, 100% 97.5%, 95% 100%, 90% 97.5%, 85% 100%, 80% 97.5%, 75% 100%, 70% 97.5%, 65% 100%, 60% 97.5%, 55% 100%, 50% 97.5%, 45% 100%, 40% 97.5%, 35% 100%, 30% 97.5%, 25% 100%, 20% 97.5%, 15% 100%, 10% 97.5%, 5% 100%, 0% 97.5%, 2.5% 95%, 0% 90%, 2.5% 85%, 0% 80%, 2.5% 75%, 0% 70%, 2.5% 65%, 0% 60%, 2.5% 55%, 0% 50%, 2.5% 45%, 0% 40%, 2.5% 35%, 0% 30%, 2.5% 25%, 0% 20%, 2.5% 15%, 0% 10%, 2.5% 5%);
}
.stamp img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.stamp-hero {
  position: absolute;
  right: 7%; bottom: 8%;
  width: 31%;
  transform: rotate(-6deg);
  z-index: 4;
  filter: drop-shadow(0 10px 18px rgba(52, 56, 48, 0.22));
}

.hero-note {
  --tilt: -2deg;
  margin-top: 1.6rem;
  font-size: 1.55rem;
  transform: rotate(var(--tilt));
  display: inline-block;
}

.fleuron { fill: var(--red); }
.handwritten {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  color: var(--red);
}

.side-note {
  position: absolute;
  top: 50%;
  writing-mode: vertical-rl;
  font-size: 0.8rem;
  letter-spacing: 0.34em;
  color: var(--ink-soft);
  opacity: 0.7;
  z-index: 2;
}
.side-left { left: 1.2rem; transform: translateY(-50%) rotate(180deg); }
.side-right { right: 1.2rem; transform: translateY(-50%); }

/* ── бегущая строка ── */
.marquee {
  position: relative;
  /* без подложки и линейки: строка просто лежит на бумаге между блоками */
  overflow: hidden;
  padding: 0.85rem 0;
  z-index: 5;
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  width: max-content;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─────────────────────────────────────────────
   секции
   ───────────────────────────────────────────── */
.section {
  position: relative;
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(3.2rem, 6vw, 5.5rem) clamp(1.2rem, 4vw, 3rem);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 1.1rem;
}
.section-num {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--red);
  letter-spacing: 0.2em;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3rem);
  letter-spacing: 0.06em;
  line-height: 1;
}
.section-note {
  margin-left: auto;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1rem;
}

/* ─────────────────────────────────────────────
   работы: развороты альбома
   Каждый разворот — пропорциональный холст 12x22:
   grid + aspect-ratio дают точное art-direction размещение,
   которое масштабируется вместе с шириной экрана.
   ───────────────────────────────────────────── */
.spreads {
  position: relative;
  padding: clamp(3rem, 6vw, 5.5rem) clamp(1.2rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem);
  /* без overflow: hidden — иначе position: sticky у фонового окна не работает */
}
/* пейзаж стоит неподвижным окном, коллаж проплывает над ним:
   одна картинка на всю высоту секции растягивалась бы до неузнаваемости */
.ground {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.ground-window {
  position: sticky;
  top: 0;
  height: 100vh;
}
.ground-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 72%;
}
.ground-wash {
  position: absolute;
  inset: 0;
  /* фотография остаётся видимой по краям, но в середине уходит в бумагу,
     чтобы карточки читались как наклеенные на лист */
  background:
    radial-gradient(ellipse 70% 55% at 50% 46%, rgba(248, 247, 241, 0.82) 0%, rgba(248, 247, 241, 0.7) 48%, rgba(248, 247, 241, 0.24) 78%, rgba(248, 247, 241, 0) 100%),
    /* тёплый тон: снимок сам по себе уходит в синеву и спорит с бумагой */
    linear-gradient(rgba(226, 214, 190, 0.34), rgba(226, 214, 190, 0.34)),
    linear-gradient(rgba(248, 247, 241, 0.42), rgba(244, 242, 234, 0.1) 40%, rgba(248, 247, 241, 0.45));
}

/* холст разворота: предметы стоят в процентах от него, поэтому
   композиция масштабируется целиком и её легко править мышью */
.spread {
  position: relative;
  z-index: 2;
  aspect-ratio: 1220 / 1200;
  max-width: 1220px;
  margin: 0 auto;
}
.spread-b { margin-top: clamp(2rem, 4vw, 4rem); }
.spread > * {
  position: absolute;
  left: var(--x, 0%);
  top: var(--y, 0%);
  width: var(--w, 30%);
  z-index: var(--z, 1);
  transform: rotate(var(--tilt, 0deg));
}
.pin { min-width: 0; }

/* крупная призрачная цифра под заголовком */
.ghost-num {
  font-family: var(--font-display);
  font-size: clamp(5rem, 13vw, 11rem);
  line-height: 0.8;
  color: rgba(52, 56, 48, 0.09);
  letter-spacing: 0.02em;
  user-select: none;
}
.spread-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  letter-spacing: 0.04em;
  line-height: 1;
  transform-origin: left center;
}
.spread-sub {
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  line-height: 1.25;
  color: var(--ink-soft);
}

/* карточка работы: наклеенный кадр с ярлыком-подписью поверх угла */
.card { transition: transform 0.4s ease; }
.card-frame {
  background: var(--paper);
  padding: clamp(7px, 0.9vw, 13px);
  border: 1px solid var(--line-soft);
  box-shadow: 0 16px 34px rgba(52, 56, 48, 0.18);
}
.card-frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.card figcaption {
  position: absolute;
  left: 5%;
  bottom: -1.6rem;
  max-width: 66%;
  background: rgba(250, 249, 243, 0.95);
  box-shadow: 0 4px 14px rgba(52, 56, 48, 0.12);
  padding: 0.28rem 0.7rem 0.36rem;
  font-size: clamp(0.84rem, 1vw, 0.98rem);
  line-height: 1.3;
  color: var(--ink-soft);
  transform: rotate(1.4deg);
}
/* ярлык уходит вправо там, где карточку перекрывает сосед слева */
.label-right figcaption {
  left: auto;
  right: 5%;
  text-align: right;
  transform: rotate(-1.2deg);
}
.card figcaption b {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--red);
  letter-spacing: 0.08em;
  margin-right: 0.4em;
}
.card figcaption span { color: var(--haze); }
.card figcaption span::before { content: ' · '; }

/* полоска скотча поверх кадра */
.tape {
  position: absolute;
  top: -0.7rem;
  left: 50%;
  width: 34%;
  height: 1.5rem;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(255, 255, 250, 0.5);
  border-left: 1px solid rgba(52, 56, 48, 0.07);
  border-right: 1px solid rgba(52, 56, 48, 0.07);
  box-shadow: 0 2px 7px rgba(52, 56, 48, 0.1);
  z-index: 2;
}
.tape-left { left: 22%; transform: translateX(-50%) rotate(-14deg); }

/* полароид внутри разворота */
.polaroid-pin {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  padding: clamp(6px, 0.7vw, 10px) clamp(6px, 0.7vw, 10px) 0;
  border: 1px solid var(--line-soft);
  box-shadow: 0 16px 34px rgba(52, 56, 48, 0.18);
}
.polaroid-pin img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.polaroid-pin figcaption {
  font-family: var(--font-hand);
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  color: var(--ink-soft);
  text-align: center;
  padding: 0.35rem 0.2rem 0.5rem;
}

/* марка внутри разворота */
.stamp-pin {
  background: var(--paper);
  padding: 6px;
  filter: drop-shadow(0 10px 20px rgba(52, 56, 48, 0.22));
  clip-path: polygon(0% 2.5%, 5% 0%, 10% 2.5%, 15% 0%, 20% 2.5%, 25% 0%, 30% 2.5%, 35% 0%, 40% 2.5%, 45% 0%, 50% 2.5%, 55% 0%, 60% 2.5%, 65% 0%, 70% 2.5%, 75% 0%, 80% 2.5%, 85% 0%, 90% 2.5%, 95% 0%, 100% 2.5%, 97.5% 5%, 100% 10%, 97.5% 15%, 100% 20%, 97.5% 25%, 100% 30%, 97.5% 35%, 100% 40%, 97.5% 45%, 100% 50%, 97.5% 55%, 100% 60%, 97.5% 65%, 100% 70%, 97.5% 75%, 100% 80%, 97.5% 85%, 100% 90%, 97.5% 95%, 100% 97.5%, 95% 100%, 90% 97.5%, 85% 100%, 80% 97.5%, 75% 100%, 70% 97.5%, 65% 100%, 60% 97.5%, 55% 100%, 50% 97.5%, 45% 100%, 40% 97.5%, 35% 100%, 30% 97.5%, 25% 100%, 20% 97.5%, 15% 100%, 10% 97.5%, 5% 100%, 0% 97.5%, 2.5% 95%, 0% 90%, 2.5% 85%, 0% 80%, 2.5% 75%, 0% 70%, 2.5% 65%, 0% 60%, 2.5% 55%, 0% 50%, 2.5% 45%, 0% 40%, 2.5% 35%, 0% 30%, 2.5% 25%, 0% 20%, 2.5% 15%, 0% 10%, 2.5% 5%);
}
/* multiply убирает белый фон вырезки — лист будто отпечатан на бумаге,
   а не наклеен белым прямоугольником */
.stamp-pin img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  mix-blend-mode: multiply;
}

/* заметки на полях внутри разворота */
.note-right { text-align: right; }
.margin-note {
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  line-height: 1.25;
  color: var(--ink-soft);
}
.works-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}
.works-cta .handwritten { font-size: clamp(1.1rem, 1.5vw, 1.4rem); color: var(--ink-soft); }

/* ── цитата на фото ── */
.quote-band {
  position: relative;
  min-height: 74vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(6rem, 12vw, 9rem) 1.5rem;
  overflow: hidden;
}
.quote-band .band-photo { object-position: center 68%; }
.quote-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 62% 46% at 50% 42%, rgba(246, 245, 239, 0.66), rgba(246, 245, 239, 0) 100%),
    linear-gradient(rgba(246, 245, 239, 0.42), rgba(246, 245, 239, 0.08) 55%, rgba(246, 245, 239, 0.25));
}
.quote-inner { position: relative; z-index: 2; }
.band-corner-note {
  position: absolute;
  right: clamp(1rem, 3vw, 3rem);
  bottom: 3.4rem;
  z-index: 3;
  font-size: 1.2rem;
  color: var(--ink-soft);
  transform: rotate(-3deg);
  background: rgba(250, 249, 243, 0.7);
  padding: 0.1em 0.6em 0.2em;
}
.quote {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: 0.05em;
  margin-right: -0.05em;
  text-wrap: balance;
  line-height: 1.3;
  color: var(--ink);
}
.quote-sub {
  /* уже цитаты — иначе концы строки вылезают за бумажную подложку */
  max-width: 32rem;
  margin: 1.3rem auto 0;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--ink);
  opacity: 0.85;
}
.quote-band .paper-wash::before { inset: -20% -22%; }

/* ── о мастере ── */
.about-grid {
  display: grid;
  grid-template-columns: minmax(260px, 400px) 1fr;
  gap: clamp(2.2rem, 5vw, 4.5rem);
  align-items: start;
}
.about-portrait { position: relative; }
.portrait-arch {
  border: 1px solid var(--line);
  border-radius: 999px 999px 6px 6px;
  padding: 12px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.portrait-arch img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 985px 985px 4px 4px;
}
.portrait-caption {
  text-align: center;
  margin-top: 1rem;
  transform: rotate(-1.5deg);
}
.portrait-fine {
  font-size: 1.05rem;
  color: var(--ink-soft);
}
.round-stamp {
  position: absolute;
  right: -14px; bottom: 3.2rem;
  width: 116px;
  color: var(--red);
  transform: rotate(-12deg);
  opacity: 0.9;
}
.round-stamp text {
  font-family: var(--font-display);
  fill: currentColor;
}

.about-lede {
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 1.3rem;
}
.about-text > p { color: var(--ink-soft); }

.about-features {
  list-style: none;
  margin-top: 2.2rem;
  display: grid;
  gap: 1.2rem;
}
.about-features li {
  display: flex;
  gap: 1.3rem;
  align-items: baseline;
  border-top: 1px solid var(--line-soft);
  padding-top: 1.2rem;
}
.feature-num {
  font-family: var(--font-display);
  color: var(--red);
  font-size: 1.05rem;
  min-width: 1.6rem;
  letter-spacing: 0.1em;
}
.about-features strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}
.about-features li span:not(.feature-num) {
  color: var(--ink-soft);
  font-size: 1rem;
}

.about-strip {
  margin-top: clamp(2.6rem, 5vw, 4rem);
  display: flex;
  align-items: flex-start;
  gap: clamp(1.2rem, 2.5vw, 2.2rem);
  flex-wrap: wrap;
}
.about-strip .polaroid {
  flex: 1 1 200px;
  max-width: 250px;
  transform: rotate(var(--tilt, 0deg));
}
.strip-note {
  --tilt: -3deg;
  order: -1;
  align-self: center;
  font-size: 1.45rem;
  color: var(--ink-soft);
  transform: rotate(var(--tilt));
  min-width: 150px;
}

/* ── цены ── */
.section-prices { padding-top: 0; }
.prices-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: stretch;
}
.price-panel {
  --tilt: -0.4deg;
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  transform: rotate(var(--tilt));
  display: flex;
  flex-direction: column;
}
.panel-note {
  position: absolute;
  right: clamp(1.2rem, 3vw, 2.4rem);
  bottom: clamp(1.4rem, 3vw, 2.6rem);
  font-size: 1.3rem;
  color: var(--ink-soft);
  transform: rotate(-2.5deg);
  text-align: right;
}
.price-list { list-style: none; }
.price-list li {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 1.05rem 0;
}
.price-list li + li { border-top: 1px solid var(--line-soft); }
.price-name { white-space: nowrap; }
.price-name em {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-left: 0.4em;
}
.leader {
  flex: 1;
  border-bottom: 1px dotted var(--line);
  transform: translateY(-0.25em);
  min-width: 2rem;
}
.price-value {
  font-family: var(--font-display);
  font-variant-numeric: lining-nums;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.price-note {
  margin-top: 1.4rem;
  font-style: italic;
  color: var(--ink-soft);
}
.price-panel .btn { margin-top: 1.6rem; align-self: flex-start; }

.price-photo {
  --tilt: 0.6deg;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
  padding: 12px;
  transform: rotate(var(--tilt));
  display: flex;
  flex-direction: column;
}
.price-photo img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  flex: 1;
}
.price-photo figcaption {
  text-align: center;
  padding: 0.8rem 0 0.4rem;
  font-size: 1.4rem;
}

/* ── вопросы ── */
.faq-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.faq-list details { border-top: 1px solid var(--line-soft); }
.faq-list details:last-child { border-bottom: 1px solid var(--line-soft); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 2.5rem 1.25rem 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  position: relative;
  transition: color 0.25s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  content: '+' / '';
  position: absolute;
  right: 0.3rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-size: 1.5rem;
  color: var(--red);
  transition: transform 0.3s;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p {
  padding: 0 2.5rem 1.3rem 0;
  color: var(--ink-soft);
}

.faq-aside { position: relative; padding-top: 0.6rem; }
.stamp-faq {
  width: min(240px, 80%);
  transform: rotate(3deg);
  filter: drop-shadow(0 10px 18px rgba(52, 56, 48, 0.2));
}
.faq-hand {
  margin-top: 1.2rem;
  font-size: 1.45rem;
  transform: rotate(-2deg);
}
.faq-aside-text {
  margin-top: 0.8rem;
  color: var(--ink-soft);
  font-size: 1rem;
  max-width: 26rem;
}

/* ── финал на фото ── */
.final-cta {
  position: relative;
  padding: clamp(6rem, 11vw, 9rem) 1.5rem;
  text-align: center;
  overflow: hidden;
}
.final-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* слабее, чем раньше: читаемость держит бумажная подложка под текстом,
     а лес должен остаться видимым */
  background: linear-gradient(rgba(246, 245, 239, 0.5), rgba(246, 245, 239, 0.26) 45%, rgba(246, 245, 239, 0.42));
}
.final-inner { position: relative; z-index: 2; }
.fleuron-final { width: 30px; margin: 0 auto 1.4rem; display: block; }
.final-hand { font-size: 1.5rem; }
.final-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 5.5vw, 3.7rem);
  letter-spacing: 0.05em;
  margin-right: -0.05em;
  text-wrap: balance;
  line-height: 1.25;
  margin: 0.4rem 0 2rem;
}
.final-links {
  margin-top: 1.6rem;
  font-style: italic;
  color: var(--ink-soft);
}

/* ── подвал ── */
.site-footer {
  position: relative;
  text-align: center;
  padding: 2.8rem 1.5rem 2.4rem;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.16em;
  margin-bottom: 0.5rem;
}
.footer-fine {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
}

/* ── мягкие переходы между фотоблоками ──
   Каждая полноэкранная фотография растворяется в бумагу по верхнему и
   нижнему краю, поэтому на стыках нет горизонтального среза.
   Маска накладывается и на фото, и на его осветляющую пелену,
   иначе от пелены оставалась бы заметная светлая полоса. */
.hero .band,
.hero-scrim {
  -webkit-mask-image: linear-gradient(to bottom, #000 52%, rgba(0, 0, 0, 0.55) 76%, rgba(0, 0, 0, 0.18) 92%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 52%, rgba(0, 0, 0, 0.55) 76%, rgba(0, 0, 0, 0.18) 92%, transparent 100%);
}
.quote-band .band,
.quote-scrim {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.35) 12%, #000 30%, #000 72%, rgba(0, 0, 0, 0.35) 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.35) 12%, #000 30%, #000 72%, rgba(0, 0, 0, 0.35) 90%, transparent 100%);
}
.final-cta .band,
.final-scrim {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.35) 11%, #000 28%, #000 78%, rgba(0, 0, 0, 0.4) 92%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.35) 11%, #000 28%, #000 78%, rgba(0, 0, 0, 0.4) 92%, transparent 100%);
}
/* маска на контейнере, а не на самом снимке: снимок «прилипший» и
   его собственные края ездили бы вместе с прокруткой */
.ground {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.4) 5%, #000 13%, #000 87%, rgba(0, 0, 0, 0.4) 95%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.4) 5%, #000 13%, #000 87%, rgba(0, 0, 0, 0.4) 95%, transparent 100%);
}

/* ── ховеры — только для устройств с курсором ── */
@media (hover: hover) and (pointer: fine) {
  a:hover { color: var(--red); }
  .site-nav a:hover { border-color: var(--red); color: var(--red); }
  .btn:hover { background: var(--ink); color: var(--fog-light); border-color: var(--ink); }
  .faq-list summary:hover { color: var(--red); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn, .site-nav a { transition: none; }
  .faq-list summary::after { transition: none; }
}

/* ─────────────────────────────────────────────
   Анимации и переключатель
   Всё движение живёт под html.motion-on. Класс ставится в <head>
   до первой отрисовки, поэтому при выключенных анимациях страница
   даже не мигает. Выбор хранится в localStorage; если в системе
   включено «уменьшить движение», по умолчанию всё выключено.
   ───────────────────────────────────────────── */

/* кнопка переключения */
.motion-toggle {
  position: fixed;
  right: clamp(0.8rem, 2vw, 1.6rem);
  bottom: clamp(0.8rem, 2vw, 1.6rem);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem 0.5rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  background: rgba(250, 249, 243, 0.82);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: color 0.25s, border-color 0.25s;
}
.motion-toggle:hover { color: var(--red); border-color: var(--line); }
.motion-toggle .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  transition: background 0.25s, opacity 0.25s;
}
.motion-off .motion-toggle .dot { background: var(--haze); opacity: 0.6; }
.motion-label { white-space: nowrap; }
.motion-toggle .state-on { display: none; }
.motion-on .motion-toggle .state-on { display: inline; }
.motion-on .motion-toggle .state-off { display: none; }

/* ── появление блоков при прокрутке ── */
.motion-on .reveal {
  opacity: 0;
  transform: translateY(26px) rotate(var(--tilt, 0deg));
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.motion-on .reveal.visible {
  opacity: 1;
  transform: translateY(0) rotate(var(--tilt, 0deg));
}
/* предметы коллажа «ложатся» на лист: приходят чуть плоскими и мельче */
.motion-on .pin.reveal {
  transform: translateY(34px) scale(0.965) rotate(calc(var(--tilt, 0deg) * 0.25));
}
.motion-on .pin.reveal.visible {
  transform: translateY(0) scale(1) rotate(var(--tilt, 0deg));
}
.motion-on .card.reveal,
.motion-on .polaroid-pin.reveal { transition-delay: calc(var(--delay, 0) * 90ms); }

/* фокус с клавиатуры показывает блок сразу */
.motion-on .reveal:focus-within {
  opacity: 1;
  transform: rotate(var(--tilt, 0deg));
  transition: none;
}
/* после появления снимаем переход — иначе ховер карточек тормозит */
.motion-on .reveal.settled { transition: none; }
.motion-on .card.reveal.settled { transition: transform 0.4s ease; transition-delay: 0s; }

/* ── медленное дыхание фонового снимка в работах ── */
.motion-on .ground-photo {
  animation: slow-drift 46s ease-in-out infinite alternate;
  transform-origin: 60% 70%;
}
@keyframes slow-drift {
  from { transform: scale(1); }
  to { transform: scale(1.07); }
}

/* ── бегущая строка ── */
.motion-on .marquee-track { animation: marquee 38s linear infinite; }
.motion-on .marquee:hover .marquee-track { animation-play-state: paused; }

/* ── ховер карточек ── */
@media (hover: hover) and (pointer: fine) {
  .motion-on .card:hover { transform: rotate(0deg) translateY(-5px); }
  .motion-on .card.reveal.visible:hover { transform: rotate(0deg) translateY(-5px); }
}

/* при выключенных анимациях всё стоит на своих местах и сразу видно */
.motion-off .reveal { opacity: 1; transform: rotate(var(--tilt, 0deg)); transition: none; }
.motion-off .band-photo { transform: none !important; }

/* ── печать ── */
@media print {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  body::after, .band-photo, .hero-scrim, .quote-scrim, .final-scrim,
  .side-note, .marquee, .torn, .ground-photo, .ground-wash, .skip-link { display: none !important; }
  .hero { min-height: auto; }
  .quote-band, .final-cta { min-height: auto; padding: 2rem 1rem; }
}

/* ── адаптив ── */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-collage { justify-self: center; max-width: 480px; margin-top: 1rem; }
  .hero { padding-bottom: 5rem; }
}

/* ── развороты: планшет и телефон ──
   Свободный холст держится только на широких экранах. Ниже 900px
   предметы встают в поток, но сохраняют наклон, скотч и ярлыки. */
@media (max-width: 900px) {
  .spread {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.8rem;
    aspect-ratio: auto;
    max-width: 460px;
  }
  /* сбрасываем абсолютные координаты холста — иначе поток не соберётся */
  .spread > * {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    max-width: 100%;
  }
  /* stretch вместо width:100% — иначе ширина складывается с отступом
     и наклонённые карточки вылезают за край экрана */
  .spread > .card,
  .spread > .polaroid-pin { align-self: stretch; }
  .card-frame { height: auto; }
  .card-frame img { aspect-ratio: 3 / 4; }
  .polaroid-pin img { aspect-ratio: 4 / 3; flex: none; }
  .stamp-pin { width: 62%; align-self: flex-end; }
  .stamp-pin img { aspect-ratio: 4 / 3; }
  .ghost-num {
    align-self: flex-start;
    font-size: clamp(4.5rem, 22vw, 7rem);
    margin-bottom: -3.2rem;
  }
  .spread-title { align-self: flex-start; transform: rotate(-2deg); }
  .spread-sub { align-self: flex-start; }
  .margin-note { align-self: flex-start; max-width: 20rem; }
  .works-cta { align-self: flex-start; }
  /* лёгкий сдвиг вправо-влево, чтобы поток не выглядел колонкой */
  .spread > .card:nth-of-type(even) { margin-left: 1.6rem; }
  .spread > .card:nth-of-type(odd) { margin-right: 1.6rem; }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 360px; margin: 0 auto; width: 100%; }
  .prices-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-aside { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; }
  .faq-hand { margin-top: 0; }
  .side-note { display: none; }


  /* заметка на полях исчезает — вместо неё вставка прямо в потоке коллажа */
}

/* на средних экранах отрицательный отступ карточки 06 перекрывал подпись 04 */
@media (min-width: 901px) and (max-width: 1020px) {
}

@media (max-width: 740px) {
  .site-header { justify-content: center; text-align: center; }
  .site-nav { margin-left: 0; gap: 1.1rem; order: 3; width: 100%; justify-content: center; flex-wrap: wrap; }
  .hero { padding-top: 9.5rem; }
}

@media (max-width: 620px) {
  body { font-size: 1.02rem; }
  .hero { padding-left: 1.1rem; padding-right: 1.1rem; }
  .hero-scrim {
    background:
      linear-gradient(rgba(246, 245, 239, 0.8), rgba(246, 245, 239, 0.35) 40%, rgba(246, 245, 239, 0.15)),
      linear-gradient(102deg, rgba(246, 245, 239, 0.75) 0%, rgba(246, 245, 239, 0.45) 50%, rgba(246, 245, 239, 0.2) 100%);
  }
  .hero-cta .btn { font-size: 0.98rem; padding: 0.8rem 1.5rem; }
  .hero-birds { display: none; }
  .hero-collage { aspect-ratio: 1 / 1.12; }

  /* на телефоне — одна колонка: две делают карточки работ слишком мелкими,
     лёгкий сдвиг вправо-влево сохраняет ощущение коллажа */
  .hero-note { font-size: 1.25rem; }
  .section-head { gap: 0.8rem; }
  .section-note { margin-left: 0; width: 100%; }
  .btn-big { font-size: 1rem; padding: 0.85rem 1.5rem; }
  .price-list li { flex-wrap: wrap; }
  .price-list .price-value { margin-left: auto; }
  .price-name em { display: block; margin-left: 0; }
  .final-title br { display: none; }
  /* сетка 2x2: заметка и лебедь встают во вторую строку, стрелка снова
     показывает на фото, а лебедь не растягивается на всю ширину */
  .about-strip .polaroid { flex: 1 1 42%; max-width: none; }
  .about-strip .polaroid:last-of-type { order: 1; }
  .strip-note { flex: 1 1 42%; min-width: 0; order: 0; text-align: center; }
  .round-stamp { width: 92px; right: -6px; }
  .band-corner-note { bottom: 2.6rem; font-size: 1.05rem; }
  .panel-note { position: static; margin-top: 1rem; text-align: left; }
}
