/* Rockhockey · блок «Как рождается форма». Все правила начинаются с #production — на остальной сайт не влияют.
   Тему можно переопределить переменными --prod-* на #production (или на :root). */
#production {
  /* палитра print.rockhockey.ru (:root сайта: --black, --dark-grey, --pink; карточки #f5f5f7) */
  --prod-dur: 5s; /* смена этапа */
  --prod-bg: #fff; --prod-surface: #f5f5f7; --prod-ink: #2a292e; --prod-muted: #8b8b8b;
  --prod-line: #e4e3ea; --prod-accent: #8e69e7; --prod-accent-soft: #efeafc; --prod-ice: #6176f0;
  --prod-cta-bg: radial-gradient(circle, #b77ee9, #807dd8); --prod-cta-glow: 0 2px 20px 6px rgba(175, 141, 218, .54);
  /* Montserrat уже self-hosted на сайте (/fonts, кириллица). Space Grotesk из пакета кириллицы
     не имеет, моно-шрифта на сайте нет — всё на Montserrat, без лишних загрузок. */
  --prod-display: Montserrat, "Arial Black", system-ui, sans-serif;
  --prod-mono: Montserrat, system-ui, sans-serif;
  --prod-body: Montserrat, system-ui, -apple-system, sans-serif;
  background: var(--prod-bg); color: var(--prod-ink); font-family: var(--prod-body);
  -webkit-font-smoothing: antialiased; position: relative; overflow: hidden;
}
#production *, #production *::before, #production *::after { box-sizing: border-box; }
#production h2, #production h3, #production p { margin: 0; }
#production h2, #production h3 { text-transform: uppercase; } /* как заголовки остального сайта */
#production .prod-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: 20px; }

/* шапка */
#production .prod-head { padding-block: 56px 26px; display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; }
#production .prod-eyebrow { font-family: var(--prod-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--prod-accent); display: inline-flex; align-items: center; gap: 10px; }
#production .prod-eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--prod-accent); }
#production .prod-head h2 { font-family: var(--prod-display); font-weight: 700; font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1; letter-spacing: 0; margin-top: 14px; text-wrap: balance; color: var(--prod-ink); }
#production .prod-head p { color: var(--prod-muted); font-size: 16px; line-height: 1.55; max-width: 38ch; }

/* колода: сцена слева, текст и этапы справа */
#production .prod-deck { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding-bottom: 64px; }
#production .prod-art { position: relative; background: var(--prod-surface); border: 1px solid var(--prod-line); border-radius: 32px;
  aspect-ratio: 4 / 3; width: 100%; overflow: hidden; touch-action: pan-y; }
#production .prod-chip { position: absolute; z-index: 3; top: 16px; left: 16px; font-family: var(--prod-mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--prod-accent); background: var(--prod-bg);
  border: 1px solid var(--prod-line); padding: 6px 12px; font-weight: 600; border-radius: 999px; }
#production .prod-slot { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s; }
#production .prod-slot.is-on { opacity: 1; visibility: visible; transition: opacity .45s ease, visibility 0s; }

#production .prod-texts { display: grid; }
#production .prod-body { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s; }
#production .prod-body.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .45s ease .1s, transform .45s ease .1s, visibility 0s; }
#production .prod-num { font-family: var(--prod-display); font-weight: 700; font-size: clamp(48px, 7vw, 88px); line-height: .85;
  letter-spacing: -.03em; color: var(--prod-accent); font-variant-numeric: tabular-nums; }
#production .prod-title { font-family: var(--prod-display); font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15;
  letter-spacing: .01em; margin: 10px 0 0; text-wrap: balance; color: var(--prod-ink); }
#production .prod-desc { color: var(--prod-muted); font-size: clamp(14px, 1.6vw, 16px); line-height: 1.6; margin-top: 14px; max-width: 44ch; }
#production .prod-meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
#production .prod-meta span { font-family: var(--prod-mono); font-size: 11px; letter-spacing: .06em; color: var(--prod-ink);
  background: var(--prod-accent-soft); padding: 7px 12px; border-radius: 999px; font-weight: 500; }

/* этапы-вкладки с индикатором автопрокрутки */
#production .prod-tabs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 28px; }
#production .prod-tab { position: relative; appearance: none; border: 0; background: none; cursor: pointer; text-align: left;
  padding: 12px 2px 0; color: var(--prod-muted); font: inherit; display: flex; flex-direction: column; gap: 3px; -webkit-tap-highlight-color: transparent; }
#production .prod-tab::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 3px; background: var(--prod-line); }
#production .prod-fill { position: absolute; left: 0; top: 0; height: 3px; width: 0; border-radius: 3px; background: var(--prod-accent); }
#production .prod-tab b { font-family: var(--prod-mono); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
#production .prod-tab i { font-style: normal; font-size: 13px; line-height: 1.2; }
#production .prod-tab:hover, #production .prod-tab.is-on { color: var(--prod-ink); }
#production .prod-tab:focus-visible { outline: 2px solid var(--prod-ice); outline-offset: 3px; border-radius: 4px; }
#production .prod-tab.is-done .prod-fill { width: 100%; }
#production .prod-tab.is-on .prod-fill { animation: prod-fill var(--prod-dur, 7s) linear forwards; }
@keyframes prod-fill { from { width: 0; } to { width: 100%; } }
#production.is-paused .prod-tab.is-on .prod-fill { animation-play-state: paused; }
#production.is-manual .prod-tab.is-on .prod-fill { animation: none; width: 100%; }

#production .prod-cta { display: inline-block; margin-top: 28px; font-family: var(--prod-body); font-weight: 600; font-size: 14px;
  letter-spacing: .04em; text-transform: uppercase; color: #fff; background-image: var(--prod-cta-bg); box-shadow: var(--prod-cta-glow);
  padding: 16px 28px; border-radius: 20px; text-decoration: none; transition: filter .15s; }
#production .prod-cta:hover { filter: brightness(1.06); }
#production .prod-cta:focus-visible { outline: 2px solid var(--prod-ice); outline-offset: 3px; }

/* мобильная версия: сцена сверху, этапы и текст под ней */
@media (max-width: 760px) {
  #production .prod-wrap { padding-inline: 16px; }
  #production .prod-head { flex-direction: column; align-items: flex-start; gap: 10px; padding-block: 32px 16px; }
  #production .prod-head p { font-size: 14px; }
  #production .prod-deck { grid-template-columns: 1fr; gap: 14px; padding-bottom: 32px; }
  #production .prod-art { border-radius: 24px; }
  #production .prod-chip { top: 10px; left: 10px; font-size: 10px; padding: 4px 8px; }
  #production .prod-panel { display: flex; flex-direction: column; }
  #production .prod-tabs { order: -1; margin-top: 0; margin-bottom: 14px; gap: 4px; }
  #production .prod-tab i { display: none; }
  #production .prod-tab { padding-top: 12px; align-items: center; }
  #production .prod-tab b { font-size: 13px; }
  #production .prod-num { font-size: 40px; }
  #production .prod-head h2 { font-size: 28px; }
  #production .prod-title { font-size: 22px; margin-top: 8px; }
  #production .prod-desc { font-size: 14px; margin-top: 8px; }
  #production .prod-meta { margin-top: 12px; }
  #production .prod-cta { display: block; text-align: center; margin-top: 18px; padding: 15px 16px; }
}

/* слои сцен */
#production .scene, #production .scene3 { position: absolute; inset: 0; --u: 1px; }
#production .scene .l, #production .scene3 .l { position: absolute; display: block; max-width: none; height: auto; margin: 0;
  user-select: none; -webkit-user-drag: none; pointer-events: none; }
#production .scene .full { position: absolute; inset: 0; }
#production .l-fabclip { position: absolute; overflow: hidden; }
#production .l-window { position: absolute; left: 26.75%; top: 31.6667%; width: 41.5%; height: 18.3333%; overflow: hidden; border-radius: calc(14 * var(--u)); }
#production .trail { position: absolute; left: 12.05%; width: 0; height: 4.545%; border-radius: 999px; display: block; }
#production .t-red { top: 78.18%; background: var(--prod-accent); }
#production .t-blue { top: 87.27%; background: var(--prod-ice); }
#production .s1 .l-pen { opacity: 0; }
#production .s6 .c-tape, #production .s6 .l-label, #production .s6 .l-stamp { opacity: 0; }
#production .s2 .l-bar { transform-origin: 0 50%; }
#production .s4 .cutsvg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
#production .s4 .cutsvg path { fill: none; stroke: #F2C94C; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
#production .s5win { position: absolute; overflow: hidden; }
#production .s5 .stitches { position: absolute; display: block; left: 30%; top: 69.7%; width: 51.25%; height: .45%;
  background: repeating-linear-gradient(90deg, var(--prod-accent) 0 calc(6 * var(--u)), transparent calc(6 * var(--u)) calc(10 * var(--u))); }

@media (prefers-reduced-motion: reduce) { #production .prod-slot, #production .prod-body { transition: none; } #production .prod-tab.is-on .prod-fill { animation: none; width: 100%; } }
