/* Страница мастерской */
:root {
  --ink: #21231e;
  --paper: #f7f6f0;
  --muted: #53564d;
  --rule: #c9cbc1;
  --orange: #f19138;
  --gutter: clamp(22px, 5.3vw, 90px);
}
body { background: var(--paper); }
header { position: relative; z-index: 2; background: #f7f6f0; border-color: #d6d5ca; }
.nav { min-height: clamp(64px, 5.4vw, 82px); }
.mark { color: #bd581c; }
.top-cta, .button, .back-to-top { border-radius: 3px; }
.top-cta { background: var(--ink); color: white; }
.workshop {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(630px, 82svh, 860px);
  grid-area: 1 / 1;
  background: linear-gradient(90deg,rgba(246,245,235,.93),rgba(245,244,231,.71) 43%,rgba(239,238,227,.21) 73%), #e8e5d9 url("assets/story/workshop.webp") center 54% / cover;
}
.workshop-copy { position:relative; z-index:3; width:100%; padding-block:clamp(42px,6vh,80px) clamp(90px,13vh,145px); }
.workshop .eyebrow { color: #44473c; font-size: clamp(10px,.94vw,14px); }
.workshop .eyebrow::before { width: 22px; height: 4px; background: #b85317; }
.workshop h1 {
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(86px,9.8vw,164px);
  font-weight: 650;
  line-height: .88;
  letter-spacing: -.082em;
  margin: 24px 0 23px -.055em;
}
.workshop h1 span { color: #b95014; }
.workshop .lead { max-width: 45ch; color: #30332d; }
.workshop .button { gap: 22px; }
.workshop .button span { color: #ffac64; }
.back-to-top { z-index: 6; }
@media (max-width:680px) {
  .workshop { min-height: clamp(500px,75svh,670px); }
  .workshop-copy { z-index:5; padding-block:35px 99px; }
  .workshop { background-position: center,65% center; background-image: linear-gradient(92deg,rgba(246,245,235,.94),rgba(245,244,231,.73) 60%,rgba(239,238,227,.36)),url("assets/story/workshop.webp"); }
  .workshop h1 { font-size: clamp(76px,16vw,105px); margin-block: 26px 23px; }
  .workshop .lead { font-size: 16px; line-height: 1.43; max-width: 35ch; }
  .workshop .actions { gap: 13px 20px; }
  .workshop .text-link { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* One full-bleed foreground runs from the workshop through both chapters. */
.print-story { display:grid; grid-template-columns:minmax(0,1fr); isolation:isolate; }
.scene-track { position:relative; grid-area:1 / 1; z-index:2; pointer-events:none; min-height:0; }
.scene-pin { position:absolute; bottom:0; width:100%; height:0; }
.scene-image { position:absolute; right:var(--scene-right,0px); width:var(--scene-width,100%); aspect-ratio:8/5; top:var(--scene-y,0px); transform:translateY(-50%); }
.scene-image picture, .scene-image canvas, .scene-image img { position:absolute; inset:0; display:block; width:100%; height:100%; }
.scene-image [hidden] { display:none; }
.story-running .scene-track { grid-row:1 / 3; }
.story-running .scene-pin { position:sticky; top:0; height:100svh; overflow:clip; }
.story-copy { grid-area:2 / 1; }
.chapter-inner { --copy-width:min(38vw, 445px); }
@media (min-width:681px) {
  .story-running .scene-pin {
    mask-image:linear-gradient(to right,transparent var(--rail-edge,-72px),black calc(var(--rail-edge,-72px) + var(--feather,64px))),
      linear-gradient(to bottom,rgb(0 0 0 / var(--upper-rail,1)) calc(var(--title-top,0px) - 65px),transparent var(--title-top,0px));
  }
}
.chapter { position:relative; display:grid; align-items:center; padding:clamp(64px,9vh,118px) 0; min-height:min(96svh,1040px); border:0; }
.chapter.pricing { display:grid; grid-template-columns:1fr; gap:0; padding-block:clamp(55px,8vh,100px) clamp(90px,13vh,170px); border:0; }
.chapter-inner { position:relative; width:100%; }
.chapter h2 {
  max-width:var(--copy-width); margin:0 0 clamp(22px,3.6vh,42px) -.045em;
  font-size:clamp(52px,6.65vw,100px); line-height:.91; letter-spacing:-.069em; font-weight:650;
}
.chapter-facts { width:var(--copy-width); }
.chapter-facts p { line-height:1.45; }
.chapter-intro { margin-bottom:16px; color:var(--muted); }
.work-row {
  display:grid;
  grid-template-columns:min(37%, 155px) minmax(0, 1fr);
  align-items:center;
  gap:clamp(14px, 1.6vw, 24px);
  border-top:1px solid var(--rule);
  padding-block:16px;
}
.work-row img { display:block; width:100%; aspect-ratio:1.12; object-fit:contain; }
.work-row figcaption { padding:0; }
.work-row h3 { font-size:clamp(18px,1.65vw,27px); line-height:1.12; letter-spacing:-.045em; }
.work-row .price { margin-top:5px; font:650 clamp(16px,1.25vw,20px)/1.3 Inter,Arial,sans-serif; white-space:nowrap; }
.work-row .meta { margin-top:7px; color:var(--muted); font-size:.8125rem; }
.chapter .rates { margin-top:16px; }
.still-part { position:absolute; top:50%; right:0; width:72%; transform:translateY(-50%); pointer-events:none;
  mask-image:linear-gradient(to right,transparent 0 24%,black 33%); }
.still-part { aspect-ratio:8/5; background:center / contain no-repeat; }
.examples .still-part { background-image:url("assets/story/film/desktop/walls.webp"); }
.pricing .still-part { background-image:url("assets/story/film/desktop/product.webp"); }
.story-running .scene-image {
  mask-image:linear-gradient(to bottom,rgb(0 0 0 / var(--divider-ink,1)) var(--paper-line,0px),black calc(var(--paper-line,0px) + var(--feather,48px))),
    linear-gradient(to left,rgb(0 0 0 / var(--divider-ink,1)),black var(--feather,48px));
  mask-composite:intersect;
}
.story-running .still-part { display:none; }
@media (min-width:681px) and (max-width:900px) {
  .chapter { min-height:79svh; }
}
@media (max-width: 680px), (pointer: coarse) and (orientation: landscape) and (max-height: 540px) {
  .scene-image { aspect-ratio:27 / 25; }
  .chapter, .chapter.pricing { display:block; min-height:0; padding:48px 0 42px; }
  .chapter.examples { padding-top:clamp(66px,18vw,155px); }
  .chapter h2 { max-width:100%; font-size:clamp(60px,14vw,84px); line-height:.9; margin:0 0 24px -.05em; }
  .chapter-facts { width:100%; }
  .still-part { display:none; }
}
