/* Vitrine — «Тёмная комната» (tasteskill v2, seed 70177750)
   Палитра Charcoal and sage, шрифты Unbounded / Onest. Пять ступеней размера. */

:root {
  color-scheme: dark;
  --bg: #1c1c1c;
  --surface: #262626;
  --surface-2: #2e2f2c;
  --surface-3: #383a35;
  --ink: #f1f1ef;
  --muted: #a3a49f;
  --accent: #8fa68e;
  --accent-ink: #1c1c1c;
  --field-1: #c8c5ba;
  --field-1-ink: #1c1c1c;
  --field-1-muted: #45443f;

  --font-display: 'Unbounded', 'Onest', system-ui, sans-serif;
  --font-text: 'Onest', system-ui, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(1.5rem, 0.8rem + 2.6vw, 3.25rem);

  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(1rem, 1.7vw, 1.5rem);
  --section: clamp(6rem, 12vw, 12rem);
  --radius: 0px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-text); font-size: var(--step-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, figure, ul, ol, table { margin: 0; }
:where(ul[role="list"], ol[role="list"]) { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; background: var(--surface); }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: 2rem; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 300; text-wrap: balance; letter-spacing: -0.03em; }
p { text-wrap: pretty; }
.head { font-size: var(--step-head); line-height: 1.04; }
.lead { font-size: var(--step-lead); line-height: 1.25; }
.wrap { padding-inline: var(--margin); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--margin); top: -4rem; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 0.6rem 1rem; text-decoration: none; }
.skip:focus { top: 1rem; }

.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.25em; text-decoration-thickness: 1px; transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease; }
.link-plain { text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px; transition: color var(--t-hover) ease, text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-decoration-color: currentColor; }
  .link-plain:hover { color: var(--accent); }
}

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0 1.5rem;
  background: var(--accent); color: var(--accent-ink); border-radius: var(--radius);
  font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.button:hover { background: #a3b8a2; }
.button:active { transform: scale(0.97); }

/* ---------- шапка ---------- */
.bar {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: baseline; justify-content: space-between; gap: 2rem;
  padding-top: clamp(1.25rem, 3vw, 2.75rem);
}
.wordmark { font-family: var(--font-display); font-weight: 400; font-size: var(--step-lead); letter-spacing: -0.03em; text-decoration: none; }
.nav { display: flex; gap: clamp(1rem, 2vw, 2rem); font-size: var(--step-small); }
.nav a { padding-block: 0.5rem; }
.nav-action { color: var(--accent); }
.menu-toggle { display: none; font-size: var(--step-small); min-height: 44px; padding-inline: 0.25rem; text-decoration: underline; text-underline-offset: 0.25em; }

.sheet { position: fixed; inset: 0; z-index: 60; background: var(--bg); padding: 5rem var(--margin) 2rem; display: flex; flex-direction: column; justify-content: space-between; }
.sheet[hidden] { display: none; }
.sheet-nav { display: flex; flex-direction: column; gap: 0.75rem; font-family: var(--font-display); font-weight: 300; font-size: var(--step-head); letter-spacing: -0.03em; }
.sheet-nav a { text-decoration: none; padding-block: 0.25rem; }
.sheet-nav a:last-child { color: var(--accent); }
.sheet-close { align-self: flex-start; min-height: 44px; font-size: var(--step-body); text-decoration: underline; text-underline-offset: 0.25em; }

/* ---------- первый экран: освещённая полоса ---------- */
.hero {
  --strip-h: clamp(13.5rem, 34vh, 22rem);
  min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto 1fr auto;
  padding-top: 6.5rem; padding-bottom: clamp(1.5rem, 3vw, 2.75rem);
}
.strip {
  grid-row: 2; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  cursor: grab; outline-offset: -2px;
}
.strip::-webkit-scrollbar { display: none; }
.strip.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.strip-row { display: flex; gap: 10px; width: max-content; padding-inline: calc(50vw - var(--strip-h) * 0.8); }
.frame { scroll-snap-align: center; flex: none; }
.frame figure { width: calc(var(--strip-h) * 1.6); }
.frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; filter: brightness(0.55); user-select: none; -webkit-user-drag: none; }
.frame figcaption { font-size: var(--step-small); padding-top: 0.75rem; color: var(--muted); }
.cap-handle { color: var(--ink); font-weight: 500; margin-right: 0.6em; }
/* подпись только у окна в центре, как у вкладки; без скрипта видны все */
.js .frame figcaption { display: none; }
.js .frame.is-centre figcaption { display: block; }
.frame[data-start] img { filter: none; }

.window {
  aspect-ratio: 16 / 10; background: var(--surface);
  display: flex; align-items: flex-end; padding: clamp(1rem, 2vw, 1.75rem);
  transition: background-color 600ms var(--ease-out);
}
.window-addr { font-family: var(--font-display); font-weight: 300; font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.03em; color: var(--muted); overflow-wrap: anywhere; transition: color 600ms var(--ease-out); }
.window-handle { color: var(--ink); }
.frame--yours.is-lit .window { background: var(--surface-3); }
.frame--yours.is-lit .window-addr { color: var(--ink); }
.frame--yours.is-lit .window-handle { color: var(--accent); }

.hero-foot {
  grid-row: 4;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  align-items: end; padding-top: 2.5rem;
}
.hero-text { grid-column: 1 / 8; }
.hero-text h1 { font-weight: 300; }
.hero-sub { margin-top: 1.75rem; max-width: 34ch; }
.handle-form { grid-column: 9 / 13; }

/* форма ника */
.handle-label { display: block; font-size: var(--step-small); color: var(--muted); margin-bottom: 0.5rem; }
.handle-row { display: flex; gap: 8px; }
.handle-field {
  flex: 1; min-width: 0; display: flex; align-items: center;
  background: var(--surface); border: 1px solid #55564f; border-radius: var(--radius); /* taste-skill-ignore: настоящее поле формы */
  transition: border-color var(--t-hover) ease, background-color var(--t-hover) ease;
}
.handle-field:hover { border-color: #7a7b74; }
.handle-field:focus-within { border-color: var(--accent); background: #2a2a2a; }
.handle-field.is-invalid { border-color: #d98c7a; }
.handle-at { padding-left: 0.9rem; color: var(--muted); }
.handle-field input {
  flex: 1; min-width: 0; min-height: 3.25rem; padding: 0 0.9rem 0 0.25rem;
  background: transparent; border: 0; font-size: max(1rem, var(--step-body));
}
.handle-field input::placeholder { color: #8a8b85; }
.handle-field input:focus { outline: none; }
.handle-error { font-size: var(--step-small); color: #e8a998; min-height: 0; margin-top: 0.5rem; }
.handle-error:empty { display: none; }
.handle-addr { margin-top: 0.85rem; font-size: var(--step-body); }
.addr { color: var(--muted); }
.addr [data-addr] { color: var(--ink); }
.addr.is-typed [data-addr] { color: var(--accent); }
.handle-count { font-size: var(--step-small); color: var(--muted); margin-top: 0.25rem; }

/* ---------- сейчас собираются ---------- */
.lineup { padding-top: var(--section); }
.lineup-title { font-size: var(--step-lead); line-height: 1.5; color: var(--accent); padding-bottom: 1.25rem; position: sticky; top: 0; background: var(--bg); z-index: 2; }
.lineup-table { width: 100%; border-collapse: collapse; font-size: var(--step-lead); line-height: 1.5; font-variant-numeric: tabular-nums; }
.lineup-table td { padding: 0; vertical-align: baseline; }
.lineup-table td:nth-child(1) { width: 33%; }
.lineup-table td:nth-child(2) { width: 33%; }
.lineup-table td:nth-child(4) { text-align: right; }
.lineup-table td:nth-child(3), .lineup-table td:nth-child(4) { color: var(--muted); }
.is-building td:nth-child(3) { color: var(--accent); }

/* ---------- как это работает: диагональ ---------- */
.how { position: relative; padding-top: var(--section); }
.how-title {
  position: absolute; top: var(--section); right: var(--margin);
  width: calc((100% - 2 * var(--margin) - 11 * var(--gutter)) / 12 * 5 + 4 * var(--gutter));
}
.how-list { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 220px auto auto; column-gap: var(--gutter); }
.stage { display: contents; }
.stage-pic { align-self: start; }
.stage-pic img { width: 100%; object-fit: cover; }
.stage-title { font-weight: 300; }
.stage-text p { margin-top: 0.75rem; max-width: 36ch; }
.stage--one .stage-pic { grid-column: 1 / 5; grid-row: 1 / 3; }
.stage--one .stage-text { grid-column: 5 / 8; grid-row: 1; }
.stage--two .stage-pic { grid-column: 6 / 9; grid-row: 2; }
.stage--two .stage-pic img { aspect-ratio: 1 / 1; object-position: 62% 50%; }
.stage--two .stage-text { grid-column: 9 / 13; grid-row: 2; }
.stage--three .stage-pic { grid-column: 8 / 13; grid-row: 3; margin-top: 130px; }
.stage--three .stage-pic img { aspect-ratio: 16 / 10; }
.stage--three .stage-text { grid-column: 4 / 8; grid-row: 3; margin-top: 130px; }

/* профиль, из которого собран сайт (фрагмент интерфейса) */
[data-ui].profile { background: var(--surface); padding: clamp(0.75rem, 1.4vw, 1.25rem); }
[data-ui] .profile-head { display: flex; align-items: center; gap: 0.85rem; padding-bottom: clamp(0.75rem, 1.4vw, 1.25rem); }
[data-ui] .profile-head img { width: 3.25rem; height: 3.25rem; border-radius: 50%; object-fit: cover; }
[data-ui] .profile-name { font-weight: 500; font-size: var(--step-body); }
[data-ui] .profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
[data-ui] .profile-grid img { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; }

/* ---------- работы: по полосе на проект ---------- */
/* overflow-x: clip — полосы въезжают справа (translateX 48px) и не должны раздвигать страницу вбок;
   clip, а не hidden: секция не становится контейнером прокрутки, липкая колонка работает */
.work { padding-top: var(--section); display: grid; grid-template-columns: minmax(0, 23%) minmax(0, 1fr); align-items: start; overflow-x: clip; }
.work-rail { position: sticky; top: 2rem; padding-right: var(--gutter); }
.work-title { font-weight: 300; }
.work-sub { margin-top: 1rem; max-width: 30ch; }
.work-all { display: inline-block; margin-top: 1.25rem; padding-block: 0.4rem; }
.projects { display: flex; flex-direction: column; gap: 3.5rem; min-width: 0; }
.project { min-width: 0; transition: opacity var(--t-ui) ease; }
.pstrip { display: flex; gap: 8px; overflow: hidden; height: clamp(10rem, 17vw, 15rem); outline-offset: -2px; }
.pstrip img { height: 100%; width: auto; flex: none; object-fit: cover; }
.pstrip img[width="1280"] { aspect-ratio: 16 / 10; }
.pstrip img[width="240"] { aspect-ratio: 1 / 1; }
.pmeta { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; padding-top: 0.85rem; padding-right: var(--margin); font-size: var(--step-small); align-items: baseline; }
.pmeta-handle { font-weight: 500; font-size: var(--step-body); }
.pmeta-niche { color: var(--muted); }
.pmeta-links { display: flex; justify-content: flex-end; gap: 1.25rem; font-size: var(--step-body); }
.pmeta-links a { padding-block: 0.4rem; }
@media (hover: hover) and (pointer: fine) {
  .projects:hover .project:not(:hover) .pstrip { opacity: 0.4; }
  .pstrip { transition: opacity var(--t-ui) ease; }
}

/* ---------- тарифы: ступени ---------- */
.pricing { padding-top: var(--section); }
.plans-stage { position: relative; }
.pricing-title { position: absolute; top: 0; left: 0; width: 66%; padding-right: var(--gutter); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: end; min-height: 41rem; }
.plan { display: flex; flex-direction: column; justify-content: space-between; border-radius: var(--radius); }
.plan--free { background: var(--surface); min-height: 25rem; }
.plan--pro { background: var(--surface-2); min-height: 32.5rem; }
.plan--promo { background: var(--surface-3); min-height: 41rem; }
.plan-body { padding: 1.75rem; }
.plan-name { font-weight: 400; }
.plan-price { margin-top: 0.75rem; font-family: var(--font-display); font-weight: 300; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.plan-per { font-size: var(--step-body); letter-spacing: -0.02em; color: var(--muted); }
.plan-lead { margin-top: 1rem; font-weight: 500; }
.plan-list { margin-top: 1rem; display: grid; gap: 0.3rem; }
.plan-action {
  display: flex; align-items: center; min-height: 4rem; padding: 0 1.75rem;
  text-decoration: none; font-weight: 500;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.plan--free .plan-action { background: var(--accent); color: var(--accent-ink); }
.plan--free .plan-action:hover { background: #a3b8a2; }
.plan--pro .plan-action { background: #232421; }
.plan--pro .plan-action:hover { background: #1f201d; color: var(--accent); }
.plan-action:active { transform: scale(0.99); }
.plan-action--off { background: #2d2f2b; color: var(--muted); cursor: not-allowed; }

/* ---------- вопросы: все открыты ---------- */
.faq { padding-top: var(--section); }
.faq-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: baseline; }
.faq-row + .faq-row { margin-top: clamp(3rem, 3.9vw, 3.5rem); }
.faq-row--head + .faq-row { margin-top: clamp(2rem, 3vw, 2.75rem); }
.faq-title { grid-column: 1 / 7; color: var(--muted); font-weight: 300; }
.faq-q { grid-column: 1 / 7; font-weight: 300; }
.faq-a { grid-column: 8 / 13; max-width: 42ch; }

/* ---------- финал: витрина возвращается ---------- */
.final {
  margin-top: var(--section); position: relative; overflow: hidden;
  min-height: 90svh; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  padding-inline: var(--margin); align-items: center; background: var(--bg);
}
.final-pic { grid-column: 1 / 8; align-self: stretch; position: relative; overflow: hidden; margin-left: calc(var(--margin) * -1); min-height: 34rem; }
.final-pic img { position: absolute; right: 0; bottom: -12%; width: 130%; height: 112%; max-width: none; object-fit: cover; object-position: 40% 45%; filter: brightness(0.9) contrast(1.05); }
.final-pic figcaption { position: absolute; left: var(--margin); bottom: 1.25rem; font-size: var(--step-small); color: var(--ink); background: rgba(0, 0, 0, 0.5); padding: 0.3rem 0.6rem; }
.final-text { grid-column: 8 / 13; padding-block: 4rem; padding-left: var(--gutter); }
.final-title { font-weight: 300; margin-bottom: 2rem; }
.handle-form--final .handle-row { flex-wrap: wrap; }

/* ---------- подвал ---------- */
.foot {
  display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr);
  background: var(--field-1); color: var(--field-1-ink);
  padding-top: 2.5rem; padding-bottom: 1.25rem;
}
.foot ::selection { background: var(--field-1-ink); color: var(--field-1); }
.foot :focus-visible { outline-color: var(--field-1-ink); }
.foot-cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); font-size: var(--step-body); }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 0.2rem; color: var(--field-1-muted); }
.foot-col:nth-child(1) { grid-column: 1 / 4; }
.foot-col:nth-child(2) { grid-column: 4 / 7; }
.foot-col:nth-child(3) { grid-column: 7 / 9; }
.foot-col:nth-child(4) { grid-column: 9 / 13; }
.foot-col a { padding-block: 0.15rem; color: var(--field-1-ink); }
.foot-first { color: var(--field-1-ink); font-weight: 500; }
.foot-credits p:not(.foot-first) { max-width: 40ch; }
.foot-mark { grid-row: 3; min-width: 0; margin-top: clamp(6rem, 14vw, 12rem); }
.foot-word { font-family: var(--font-display); font-weight: 400; line-height: 0.9; letter-spacing: -0.02em; display: flex; flex-direction: column; align-items: flex-start; }
.fit { display: block; white-space: nowrap; font-size: 11vw; }
.foot-legal { margin-top: 1.25rem; font-size: var(--step-small); color: var(--field-1-muted); }

/* ---------- телефон и планшет ---------- */
@media (max-width: 60rem) {
  .lineup-table { font-size: var(--step-body); }
  .lineup-table td:nth-child(3), .lineup-table td:nth-child(4) { white-space: nowrap; }
  .hero-text { grid-column: 1 / 13; }
  .handle-form { grid-column: 1 / 13; margin-top: 2rem; max-width: 34rem; }
  .work { grid-template-columns: 1fr; }
  .work-rail { position: static; padding-bottom: 2rem; }
  .work-rail-inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
  .work-title { grid-column: 1 / 7; grid-row: 1 / 3; }
  .work-sub { grid-column: 7 / 13; margin-top: 0; }
  .work-all { grid-column: 7 / 13; justify-self: start; }
  .projects { padding-left: var(--margin); }
  .final { grid-template-columns: 1fr; padding-block: 0; }
  .final-text { grid-column: 1; grid-row: 1; padding-block: 0 2.5rem; padding-left: 0; }
  .final-pic { grid-column: 1; grid-row: 2; min-height: 55svh; margin-right: calc(var(--margin) * -1); }
  .final-pic img { width: 130%; height: 100%; left: auto; right: 0; }
  .foot-col:nth-child(1) { grid-column: 1 / 7; }
  .foot-col:nth-child(2) { grid-column: 7 / 13; }
  .foot-col:nth-child(3) { grid-column: 1 / 7; margin-top: 2rem; }
  .foot-col:nth-child(4) { grid-column: 7 / 13; margin-top: 2rem; }
}

@media (max-width: 48rem) {
  .nav { display: none; }
  .menu-toggle { display: inline-block; }
  .bar { align-items: center; }

  .hero { --strip-h: calc((100vw - 4rem) / 1.6); grid-template-rows: auto auto auto; padding-top: 5rem; min-height: auto; }
  .strip { grid-row: 1; }
  .hero-foot { grid-row: 2; padding-top: 5.5rem; }
  .hero-sub { margin-top: 1.25rem; }
  .handle-form { margin-top: 1.75rem; }
  .handle-row { flex-direction: column; }
  .button { width: 100%; }


  .how-title { position: static; width: auto; margin-bottom: 2.5rem; }
  .how-list { display: flex; flex-direction: column; gap: 3.5rem; }
  .stage { display: flex; flex-direction: column; }
  .how .stage-text { padding-top: 1.25rem; margin-top: 0; }
  .how .stage-pic { margin-top: 0; }
  .stage--one .stage-pic { width: min(100%, 26rem); }
  h1, h2, h3 { letter-spacing: -0.05em; }
  .stage--two .stage-pic { width: 62%; align-self: flex-end; }
  .stage--two .stage-text { align-self: flex-end; width: 62%; }
  .stage--three .stage-pic { width: 78%; }

  .pstrip { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; height: 11.25rem; }
  .pstrip::-webkit-scrollbar { display: none; }
  .pstrip img { scroll-snap-align: start; }
  .pmeta { grid-template-columns: 1fr; gap: 0.25rem; }
  .pmeta-links { justify-content: flex-start; }
  .projects { gap: 3rem; }

  .pricing-title { position: static; width: auto; padding: 0 0 2rem; font-size: var(--step-lead); line-height: 1.25; }
  .plans { grid-template-columns: 1fr; min-height: 0; }
  .plan { min-height: 0 !important; }

  .faq-row { display: block; }
  .faq-row + .faq-row { margin-top: 3.5rem; }
  .faq-a { margin-top: 0.75rem; }

  .foot { min-height: 0; }
  .foot-cols { grid-template-columns: 1fr 1fr; row-gap: 2rem; font-size: var(--step-body); }
  .foot-cols .foot-col { grid-column: auto; margin-top: 0; }
  .foot-mark { margin-top: 6rem; }
}

@media (max-width: 40rem) {
  .work-rail-inner { display: block; }
  .work-sub { margin-top: 1rem; }
  .lineup-table, .lineup-table tbody { display: block; }
  .lineup-table tr { display: grid; grid-template-columns: auto auto 1fr; column-gap: 0.6em; padding-bottom: 1.1rem; }
  .lineup-table td { font-size: var(--step-small); width: auto !important; }
  .lineup-table td:nth-child(1) { grid-column: 1 / 4; font-size: var(--step-lead); line-height: 1.3; }
  .lineup-table td:nth-child(2) { color: var(--muted); }
  .lineup-table td:nth-child(4) { text-align: right; }
}

@media (min-width: 40.01rem) and (max-width: 48rem) {
  .stage--one { flex-direction: row; gap: var(--gutter); align-items: flex-start; }
  .stage--one .stage-pic { width: 58%; flex: none; }
  .how .stage--one .stage-text { padding-top: 0; }
}

/* ---------- движение ---------- */
/* Подпись направления: ряд окон, который тянут в сторону. Окна вне центра притушены тенью (opacity),
   в центре — горят. При загрузке в центральном окне «включается свет». */
.frame figure { position: relative; }
.shade { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 16 / 10; background: #111; opacity: 0.45; pointer-events: none; }
.js .frame img { filter: none; }
@media (hover: hover) and (pointer: fine) {
  .frame:hover .shade { opacity: 0.12 !important; }
}
.lines .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
/* запас сверху под краткую в Й, иначе маска её срезает */
.foot-word .line { padding-top: 0.14em; margin-top: -0.14em; }
.lines [data-line] { display: block; }

@media (prefers-reduced-motion: no-preference) {
  /* загрузка: строки заголовка из маски, затем фраза и форма; всё на месте к 1,2 с */
  .js .hero [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-expo) forwards; animation-delay: calc(100ms + var(--i) * 90ms); }
  .js .hero [data-load] { opacity: 0; transform: translateY(12px); animation: load-rise 500ms var(--ease-out) forwards; animation-delay: var(--d); }
  .js .frame[data-start] .shade { animation: lights-on 1100ms var(--ease-out) 150ms backwards; }
  .js .frame.is-centre figcaption { animation: load-rise 360ms var(--ease-out); }

  /* появления по секциям, каждая своим способом, один раз */
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-expo); transition-delay: calc(var(--d, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js tr[data-reveal] { transform: translateY(12px); transition-duration: 450ms, 500ms; transition-delay: calc(var(--d, 0) * 60ms); }
  .js [data-reveal="slide"] { transform: translateX(48px); transition-duration: 600ms, 1000ms; }
  .js [data-reveal="shutter"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease-in-out); transition-delay: calc(var(--d, 0) * 80ms); }
  .js [data-reveal="shutter"].is-in { clip-path: inset(0); }
  .js [data-reveal="shutter"] > img { transform: scale(1.08); transition: transform 1300ms var(--ease-expo); }
  .js [data-reveal="shutter"].is-in > img { transform: none; }
  .js [data-reveal="wipe"] { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); transition: clip-path 1200ms var(--ease-in-out); }
  .js [data-reveal="wipe"].is-in { clip-path: inset(0); }
  .js [data-reveal="lines"] { opacity: 1; transform: none; }
  .js [data-reveal="lines"] [data-line] { transform: translateY(105%); transition: transform 900ms var(--ease-expo); transition-delay: calc(var(--i) * 110ms); }
  .js [data-reveal="lines"].is-in [data-line] { transform: none; }

  /* одна движущаяся картинка: ночная витрина медленно плывёт, пока она на экране */
  .final-pic img { animation: drift 30s var(--ease-soft) infinite alternate; animation-play-state: paused; }
  .final-pic.is-playing img { animation-play-state: running; }
}
@keyframes line-up { to { transform: none; } }
@keyframes load-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes lights-on { from { opacity: 0.85; } to { opacity: 0; } }
@keyframes drift { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.06) translate3d(-2%, -1%, 0); } }
