/* LeoWood v2 — «Витрина».
   Стена, постамент, экспонат, этикетка. Ультрамарин — только действие:
   кнопки, ссылки, фокус. Фото — целиком, без обрезки. */

/* ---------- токены ---------- */
:root {
  color-scheme: light dark;
  --wall: #F4F2EC;
  --wall-rgb: 244 242 236;
  --wall-2: #ECE9E1;
  --field: #E6E2D7;
  --field-lo: #D9D4C7;
  --spot: rgb(255 255 255 / .92);
  --mat: #FFFFFF;
  --ink: #121212;
  --ink-2: #57544C;
  --line: rgb(18 18 18 / .12);
  --line-2: rgb(18 18 18 / .26);
  --act: #2F3BFF;
  --act-bg: #2F3BFF;
  --act-bg-h: #1B26E6;
  --act-on: #FFFFFF;
  --act-soft: rgb(47 59 255 / .10);
  --sh-ex: 0 1px 1px rgb(56 42 16 / .10), 0 6px 12px -4px rgb(56 42 16 / .16), 0 26px 44px -18px rgb(56 42 16 / .34);
  --sh-ex-hi: 0 2px 2px rgb(56 42 16 / .10), 0 16px 26px -10px rgb(56 42 16 / .24), 0 46px 72px -26px rgb(56 42 16 / .42);
  --f-d: "Unbounded", system-ui, "Segoe UI", sans-serif;
  --f-t: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gut: clamp(16px, 4vw, 48px);
  --maxw: 1320px;
  --r-btn: 12px;
  --r-pl: 6px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --wall: #0D0E1B;
    --wall-rgb: 13 14 27;
    --wall-2: #121429;
    --field: #181B36;
    --field-lo: #0F1125;
    --spot: rgb(255 236 204 / .17);
    --mat: #ECE9E1;
    --ink: #F4F2EC;
    --ink-2: #ABA9BF;
    --line: rgb(244 242 236 / .13);
    --line-2: rgb(244 242 236 / .28);
    --act: #8C94FF;
    --act-bg: #4B55FF;
    --act-bg-h: #636CFF;
    --act-on: #FFFFFF;
    --act-soft: rgb(140 148 255 / .14);
    --sh-ex: 0 1px 1px rgb(0 0 0 / .45), 0 10px 18px -6px rgb(0 0 0 / .55), 0 34px 60px -22px rgb(0 0 0 / .85);
    --sh-ex-hi: 0 2px 2px rgb(0 0 0 / .45), 0 18px 30px -10px rgb(0 0 0 / .6), 0 50px 80px -26px rgb(0 0 0 / .9);
  }
}
/* «свет включается»: одно число на элемент, 0 → 1 */
@property --lit { syntax: "<number>"; inherits: false; initial-value: 1; }

/* ---------- основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-t);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--act); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--act); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--act-bg); color: var(--act-on); }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 10px 16px; background: var(--act-bg); color: var(--act-on); border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gut), var(--maxw)); margin-inline: auto; }
.ico { width: 1.2em; height: 1.2em; flex: none; display: block; }

h1, h2, h3 {
  font-family: var(--f-d);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.h1 { font-size: clamp(1.75rem, .9rem + 3vw, 3.7rem); font-weight: 700; line-height: 1.03; letter-spacing: -.03em; }
.h1--land { font-size: clamp(1.6rem, 1rem + 2.1vw, 3.05rem); font-weight: 600; line-height: 1.07; }
.h1--page { font-size: clamp(1.9rem, 1rem + 2.8vw, 3.5rem); }
.h2 { font-size: clamp(1.45rem, 1rem + 1.5vw, 2.45rem); }
.h3 { font-size: 1.0625rem; }
.lede { margin: 0; font-size: clamp(1.0625rem, 1rem + .35vw, 1.3rem); line-height: 1.5; color: var(--ink-2); max-width: 40ch; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: .7em 1.2em;
  border: 1.5px solid transparent; border-radius: var(--r-btn);
  font: 600 1rem/1.1 var(--f-t); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn .ico { width: 1.3em; height: 1.3em; }
.btn-wa, .btn-act { background: var(--act-bg); color: var(--act-on); box-shadow: 0 10px 24px -12px rgb(47 59 255 / .65); }
.btn-wa:hover, .btn-act:hover { background: var(--act-bg-h); text-decoration: none; box-shadow: 0 14px 30px -12px rgb(47 59 255 / .75); }
.btn-ghost { border-color: var(--act); color: var(--act); background: transparent; }
.btn-ghost:hover { background: var(--act-soft); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 56px; padding: .85em 1.45em; font-size: 1.0625rem; }
.btn-sm { min-height: 42px; padding: .5em .95em; font-size: .9375rem; box-shadow: none; }
.btn .short { display: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 459px) {
  .cta-row { display: grid; grid-template-columns: 1.25fr 1fr; gap: 10px; }
  .cta-row .btn-lg { min-height: 54px; padding-inline: .7em; font-size: 1rem; }
  .cta-row .long { display: none; }
  .cta-row .short { display: inline; }
}

/* ---------- шапка, крошки ---------- */
.hdr { position: relative; z-index: 30; background: var(--wall); }
.hdr-in { display: flex; align-items: center; gap: clamp(14px, 3vw, 40px); min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .55em; color: var(--ink); text-decoration: none; font: 700 1.125rem/1 var(--f-d); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 28px; height: 28px; }
.nav { display: flex; gap: clamp(16px, 2.4vw, 34px); }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding-block: 8px; }
.nav a:hover { color: var(--act); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--act); text-decoration-thickness: 2px; text-underline-offset: .45em; }
.hdr-act { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.hdr-tel { display: inline-flex; align-items: center; gap: .45em; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hdr-tel .ico { width: 18px; height: 18px; color: var(--act); }
.hdr-tel:hover { color: var(--act); }
.hdr--lite { border-bottom: 1px solid var(--line); }
.hdr--lite .hdr-in { min-height: 62px; }
.hdr-all { margin-left: auto; color: var(--ink); font-weight: 500; text-decoration: none; padding-block: 10px; }
.hdr-all:hover { color: var(--act); text-decoration: underline; }
.hdr-works { color: var(--ink); font-weight: 500; text-decoration: none; padding-block: 10px; }
.hdr-works:hover { color: var(--act); text-decoration: underline; }
@media (max-width: 759px) { .hdr-works { display: none; } }
@media (min-width: 760px) { .hdr--lite { position: sticky; top: 0; } }
@media (min-width: 760px) and (max-width: 1099px) {
  .nav a[href$="#kak"], .hdr-tel span { display: none; }
  .hdr-tel { width: 44px; justify-content: center; border: 1.5px solid var(--act); border-radius: 50%; }
}
@media (max-width: 759px) {
  .hdr-in { min-height: 60px; gap: 12px; }
  .nav a:nth-child(n+3), .hdr .btn-sm, .hdr-tel span { display: none; }   /* «Изделия» и «Работы» остаются */
  .nav { margin-left: auto; }
  .hdr-act { margin-left: 0; }
  .hdr-tel { width: 44px; justify-content: center; border: 1.5px solid var(--act); border-radius: 50%; }
  .hdr-tel .ico { width: 20px; height: 20px; }
}
.crumbs { padding-top: clamp(10px, 1.6vw, 18px); font-size: .875rem; line-height: 1.4; color: var(--ink-2); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--act); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-2); }

/* ---------- первый экран главной: раздача → стопка → веер → витрина ---------- */
.hero { position: relative; }
.stage { position: relative; }
.stage-in { display: grid; gap: clamp(20px, 3vh, 44px); padding-block: clamp(14px, 3vh, 36px) clamp(28px, 5vh, 52px); }
.hero-copy { display: grid; gap: clamp(14px, 2.2vh, 24px); align-content: center; position: relative; z-index: 12; }
.hero-prices { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; font-size: .96875rem; max-width: 30rem; }
.hero-prices li { padding: 9px 0; border-top: 1px solid var(--line); }
.hero-prices a { color: var(--ink); font-weight: 600; text-decoration: none; }
.hero-prices a:hover { color: var(--act); text-decoration: underline; }
@media (min-width: 960px) {
  .stage-in { grid-template-columns: minmax(0, .86fr) minmax(0, 1.34fr); align-items: center; column-gap: clamp(28px, 3.5vw, 60px); }
}
.deck {
  --dg: clamp(10px, 1.4vw, 20px);
  --dgr: clamp(12px, 3vh, 40px);
  --ks: 2.2;
  --kf: 1.3;
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--dg); row-gap: var(--dgr);
  position: relative;
}
@media (min-width: 960px) { .deck { --ks: 2.2; --kf: 1.5; --dgr: clamp(52px, 7.5vh, 68px); } }
.cell { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: end center; z-index: var(--z, 1); }
.print {
  display: block; width: var(--fw); padding: clamp(3px, .45vw, 6px);
  background: var(--mat); border-radius: 2px; box-shadow: var(--sh-ex);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.print img { display: block; width: 100%; height: auto; }
.print:hover { transform: translateY(-4px); box-shadow: var(--sh-ex-hi); }
.cell-cap {
  position: absolute; left: 0; right: 0; top: 100%; margin-top: 8px;
  font: 500 .8125rem/1.3 var(--f-t); color: var(--ink-2); text-align: center;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* телефон: сцены нет — обычная высота, сетка 2×3 с подписями */
@media (max-width: 759px) {
  .deck { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .cell { aspect-ratio: auto; display: grid; place-items: stretch; gap: 8px; align-content: end; }
  .print { width: 100%; }
  .cell-cap { position: static; margin: 0; text-align: left; }
}

@keyframes deal {
  0%, 6% {
    transform: translate(calc(var(--sx) * (100% + var(--dg))), calc(var(--sy) * (100% + var(--dgr)))) rotate(var(--sr)) scale(var(--ks));
    animation-timing-function: cubic-bezier(.45, 0, .25, 1);
  }
  48% {
    transform: translate(calc(var(--fx) * (100% + var(--dg))), calc(var(--fy) * (100% + var(--dgr)))) rotate(var(--fr)) scale(var(--kf));
    animation-timing-function: cubic-bezier(.45, 0, .2, 1);
  }
  100% { transform: none; }
}
@keyframes capIn { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
/* раздача при загрузке: отпечатки прилетают снизу с поворотом в позу стопки */
@keyframes dealIn {
  from { opacity: 0; translate: 0 var(--deal-y, 70vh); rotate: calc((var(--i) - 2.5) * 7deg); }
  60% { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  .print { animation: dealIn .7s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i) * 60ms + 60ms); }
  @media (max-width: 759px) { .deck { --deal-y: 44px; } }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 760px) and (min-height: 560px) {
  @supports (animation-timeline: view()) {
    .hero { view-timeline-name: --deck; height: 250vh; }
    .stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; }
    .stage-in { height: 100%; align-content: center; }
    .cell { animation: deal linear both; animation-duration: auto; animation-timeline: --deck; animation-range: contain 0% contain 100%; }
    .cell-cap { animation: capIn linear both; animation-duration: auto; animation-timeline: --deck; animation-range: contain 80% contain 100%; }
  }
  .deck-scrub .hero { height: 250vh; }
  .deck-scrub .stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; }
  .deck-scrub .stage-in { height: 100%; align-content: center; }
  .deck-scrub .cell { animation: deal 1s linear both paused; animation-delay: calc(var(--p, 0) * -1s); }
  .deck-scrub .cell-cap { animation: capIn 1s linear both paused; animation-delay: calc((var(--p, 0) - .8) / .2 * -1s); }
}

/* ---------- секции ---------- */
.sec { padding-block: clamp(56px, 8vw, 116px); }
.sec--top { padding-top: clamp(16px, 3vw, 44px); }
.sec-head { display: grid; gap: 12px; margin-bottom: clamp(28px, 4vw, 52px); max-width: 62ch; }
.sec-lede { margin: 0; color: var(--ink-2); }
.page-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 5vw, 72px); }
.chips { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--act); border-radius: 999px; color: var(--act); text-decoration: none; font-weight: 600; }
.chips a span { font-size: .8125rem; opacity: .8; font-variant-numeric: tabular-nums; }
.chips a:hover { background: var(--act-soft); }

/* ---------- залы и экспонаты ---------- */
.hall { scroll-margin-top: 80px; }
.hall + .hall { margin-top: clamp(52px, 6vw, 92px); }
.hall-head {
  display: flex; align-items: baseline; gap: .75em;
  padding-bottom: 14px; margin-bottom: clamp(20px, 3vw, 34px);
  border-bottom: 1px solid var(--line-2);
}
.hall-h { font-size: clamp(1.25rem, 1rem + .9vw, 1.75rem); }
.hall-n { font: 600 .8125rem/1 var(--f-t); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tiles {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 248px), 1fr));
  gap: clamp(30px, 3vw, 44px) clamp(14px, 2vw, 28px);
}
@media (min-width: 1100px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 599px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { min-width: 0; display: grid; }
/* 14.10.2026: постаменты ровняются по верху ряда, подпись начинается сразу под постаментом, лишняя высота уходит вниз
   (раньше «1fr auto» и align-self: end поднимали плитку с двухстрочным названием на ~20 px выше соседних) */
.tile-a { display: grid; grid-template-rows: auto 1fr; gap: 14px; color: var(--ink); text-decoration: none; }
.tile-a > .label { align-self: start; }
.tile .plinth { align-self: start; }
.plinth {
  position: relative; display: grid; place-items: center; aspect-ratio: 5 / 4;
  border-radius: var(--r-pl);
  background:
    radial-gradient(72% 62% at 50% 0%, var(--spot), transparent 72%),
    linear-gradient(var(--field), var(--field-lo));
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease);
}
.plinth img {
  display: block; width: var(--fw); height: auto; border-radius: 2px;
  box-shadow: var(--sh-ex);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
/* узкий экран: постамент по снимку — отступ 3 % с каждой стороны, кадр 94 % */
@media (max-width: 959px) {
  .tile .plinth { aspect-ratio: auto; padding: 3% 3% 3.5%; }
  .tile .plinth img { width: 100%; }
}
/* 14.10.2026: плитки одинаковые — рамка группы (4:3 или 3:4), кадр её заполняет (подобран по пропорции) */
.tile .plinth img { aspect-ratio: var(--tar, auto); object-fit: cover; }
.tile-a:hover .plinth img { transform: translateY(-6px); box-shadow: var(--sh-ex-hi); }
.tile-a:hover .label-name { color: var(--act); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.label { display: grid; gap: 3px; font-size: .9375rem; line-height: 1.38; }
.label-no { font: 600 .75rem/1.25 var(--f-d); letter-spacing: .03em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.label-name { font-weight: 600; color: var(--ink); }
.label-cap { color: var(--ink); }
.label-meta, .label-kind { color: var(--ink-2); font-size: .875rem; }

/* ---------- коротко о LeoWood ---------- */
.sec--about { background: var(--wall-2); border-block: 1px solid var(--line); }
.about { display: grid; gap: clamp(24px, 4vw, 56px); }
.about-text { margin: 0; font: 500 clamp(1.15rem, 1rem + .85vw, 1.6rem)/1.45 var(--f-t); max-width: 36ch; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 0 28px; align-content: start; }
.facts > div { display: grid; gap: 2px; align-content: start; padding: 14px 0; border-top: 1px solid var(--line-2); }
.facts dt { font-size: .8125rem; color: var(--ink-2); }
.facts dd { margin: 0; font-weight: 600; }
.facts a { color: var(--act); }
@media (min-width: 960px) {
  .about { grid-template-columns: 1.05fr 1fr; align-items: start; }
  .about .h2 { grid-column: 1 / -1; }
}

/* ---------- как работаем: спокойный список ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 32px; }
.step { display: grid; gap: 8px; align-content: start; padding: 18px 0 22px; border-top: 1px solid var(--line-2); }
.step-h { font-size: 1.0625rem; letter-spacing: -.01em; }
.step p { margin: 0; color: var(--ink-2); }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- что входит, из чего: строки ---------- */
.inc { display: grid; gap: clamp(32px, 5vw, 64px); }
.inc .h2 { margin-bottom: clamp(18px, 2.5vw, 28px); }
.inc-r .h3 { margin: 0 0 12px; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { padding: 12px 0; border-top: 1px solid var(--line-2); font-weight: 500; }
.rows li:last-child { border-bottom: 1px solid var(--line-2); }
@media (min-width: 900px) {
  .inc { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; column-gap: clamp(40px, 6vw, 96px); }
  .inc-r { padding-top: clamp(8px, 1.6vw, 22px); }
}

/* ---------- вопросы ---------- */
.sec--faq { background: var(--wall-2); border-block: 1px solid var(--line); }
.faq { display: grid; gap: clamp(24px, 4vw, 48px); }
@media (min-width: 960px) { .faq { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); align-items: start; } }
.qa-list { border-top: 1px solid var(--line-2); }
.qa { border-bottom: 1px solid var(--line-2); }
.qa summary {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 18px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font: 600 1.0625rem/1.4 var(--f-t);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover span { color: var(--act); }
.qa-ico { width: 24px; height: 24px; color: var(--act); transition: transform .35s var(--ease); margin-top: .05em; }
.qa[open] .qa-ico { transform: rotate(45deg); }
.qa-a p { margin: 0 0 22px; color: var(--ink-2); max-width: 64ch; }

/* ---------- призыв ---------- */
.cta {
  text-align: center;
  background:
    radial-gradient(60% 90% at 50% 0%, var(--spot), transparent 70%),
    linear-gradient(var(--field), var(--field-lo));
}
.cta-in { display: grid; justify-items: center; gap: 18px; }
.cta-h { font-size: clamp(1.7rem, 1rem + 2.6vw, 3.4rem); max-width: 20ch; }
.cta-p { margin: 0; color: var(--ink-2); font-size: 1.125rem; max-width: 46ch; }
.cta .cta-row { justify-content: center; margin-top: 6px; }

/* ---------- посадочная: первый экран, свет над экспонатом ---------- */
.lhero { padding-block: clamp(14px, 2.4vw, 36px) clamp(32px, 5vw, 72px); }
.lhero-in { display: grid; gap: 16px; grid-template-areas: "h1" "lead" "ph" "price" "cta"; }
.lhero-in > .h1 { grid-area: h1; }
.lhero-lead { grid-area: lead; }
.lhero-ph { grid-area: ph; }
.lhero-in > .price { grid-area: price; }
.lhero-cta { grid-area: cta; }
@media (min-width: 960px) {
  .lhero-in {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: 1fr auto auto auto auto 1fr;
    grid-template-areas: ". ph" "h1 ph" "lead ph" "price ph" "cta ph" ". ph";
    column-gap: clamp(32px, 4.5vw, 80px); row-gap: 22px;
  }
}
.exhibit { margin: 0; display: grid; gap: 14px; }
.exhibit-field {
  position: relative; isolation: isolate;
  display: grid; place-items: center; padding: clamp(14px, 3.4vw, 52px);
  border-radius: var(--r-pl); cursor: zoom-in;
  background: linear-gradient(var(--field), var(--field-lo));
}
.exhibit-field::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(70% 60% at 50% 0%, var(--spot), transparent 72%);
  opacity: var(--lit);
}
.ex-frame { position: relative; display: block; width: min(100%, calc(var(--hmax, 54vh) * var(--ar))); }
.ex-frame img { display: block; width: 100%; height: auto; border-radius: 2px; }
.ex-frame::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 2px; box-shadow: var(--sh-ex); opacity: var(--lit); }
.label--hero { opacity: var(--lit); }
@keyframes lightOn { from { --lit: 0; } to { --lit: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .exhibit-field::before { animation: lightOn 1.1s cubic-bezier(.3, .7, .2, 1) .15s backwards; }
  .ex-frame::after { animation: lightOn .9s ease .75s backwards; }
  .label--hero { animation: lightOn .8s ease 1.25s backwards; }
}
@media (min-width: 960px) { .ex-frame { --hmax: 62vh; } }
@media (min-width: 600px) and (max-width: 959px) { .ex-frame { --hmax: 40vh; } }
@media (max-width: 959px) {
  .label--hero { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; }
  .label--hero .label-meta, .label--hero .label-cap { display: none; }
  .label--hero .label-name::before { content: "· "; color: var(--ink-2); }
}
.price { margin: 0; display: grid; gap: 4px; }
.price-v { font: 600 clamp(1.45rem, 1rem + 1.3vw, 2.15rem)/1.12 var(--f-d); letter-spacing: -.02em; }
.price-n { color: var(--ink-2); font-size: .9375rem; }
.price--none .price-v { font-size: 1.0625rem; line-height: 1.3; letter-spacing: -.01em; }

/* ---------- полоса доверия ---------- */
.trust { background: var(--wall-2); border-block: 1px solid var(--line-2); }
.trust-in { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.trust li { display: flex; gap: 12px; align-items: baseline; padding: 18px 20px 18px 0; font-weight: 600; line-height: 1.35; }
.trust li::before { content: ""; width: 8px; height: 8px; background: var(--ink); flex: none; transform: translateY(-.1em); }
@media (max-width: 599px) { .trust li { padding: 13px 0; } .trust li + li { border-top: 1px solid var(--line); } }
@media (min-width: 600px) { .trust li + li { padding-left: 20px; border-left: 1px solid var(--line); } }

/* ---------- калькулятор ---------- */
.sec--calc { padding-block: clamp(40px, 6vw, 84px) 0; }
.calc {
  display: grid; gap: 28px; padding: clamp(20px, 4vw, 52px); border-radius: 10px;
  background:
    radial-gradient(70% 80% at 85% 0%, var(--spot), transparent 70%),
    linear-gradient(var(--field), var(--field-lo));
}
@media (min-width: 900px) { .calc { grid-template-columns: 1fr 1fr; align-items: end; column-gap: 48px; } }
.calc-l, .calc-r { display: grid; gap: 14px; align-content: start; justify-items: start; }
.calc-rate { margin: 0; font-weight: 600; }
.calc-fields { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.fld { display: grid; gap: 6px; font-size: .875rem; color: var(--ink-2); }
.fld input {
  width: 8.5rem; min-height: 54px; padding: 0 14px;
  border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--wall); color: var(--ink);
  font: 600 1.3rem/1 var(--f-t); font-variant-numeric: tabular-nums;
}
.fld input:hover { border-color: var(--ink-2); }
.fld input:focus-visible { outline: 3px solid var(--act); outline-offset: 2px; border-color: var(--act); }
.fld-x { font: 600 1.35rem/54px var(--f-d); color: var(--ink-2); }
.calc-q, .calc-note { margin: 0; color: var(--ink-2); }
.calc-sum { margin: 0; font: 700 clamp(2.1rem, 1rem + 3.8vw, 4.2rem)/1 var(--f-d); letter-spacing: -.035em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-from { font-size: .42em; font-weight: 600; letter-spacing: 0; color: var(--ink-2); vertical-align: .6em; }
.calc-sum output.is-tick { color: var(--act); }
.calc .btn { white-space: normal; }

/* ---------- галерея: ровные ряды, фото целиком ---------- */
.jg {
  --rowh: clamp(150px, 21vw, 300px);
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: clamp(28px, 3vw, 40px) clamp(14px, 2vw, 24px);
}
.jg > li { flex: var(--ar) 1 calc(var(--ar) * var(--rowh)); min-width: 0; }
.jg::after { content: ""; flex: 10 1 0; }
@media (max-width: 599px) { .jg > li { flex-basis: max(calc(var(--ar) * var(--rowh)), 40%); } }
.ex { margin: 0; display: grid; gap: 10px; min-width: 0; }
.ex .label { overflow-wrap: anywhere; }
.ex-a { display: block; border-radius: 2px; box-shadow: var(--sh-ex); cursor: zoom-in; transition: transform .5s var(--ease), box-shadow .5s var(--ease); background: var(--field); }
.ex-a img { display: block; width: 100%; height: auto; border-radius: 2px; }
.ex-a:hover { transform: translateY(-4px); box-shadow: var(--sh-ex-hi); }
.ex .label { font-size: .875rem; }

/* «Показать все (N)»: длинная галерея свёрнута до первых кадров; без JS (нет класса js) видны все */
.js .jg[data-fold]:not(.is-open) > li.more { display: none; }
.jg-more { display: none; margin: clamp(28px, 4vw, 44px) 0 0; justify-content: center; }
.js .jg-more { display: flex; }
.jg-more[hidden], .wall-more[hidden] { display: none !important; }

/* ---------- «Все работы»: плитка-кирпич, фильтр по группам, «Показать ещё» ---------- */
.chips--works { display: none; }
.js .chips--works { display: flex; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1.5px solid var(--act); border-radius: 999px; background: transparent; color: var(--act);
  font: 600 1rem/1 var(--f-t); cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .2s, color .2s;
}
.chip span { font-size: .8125rem; opacity: .8; font-variant-numeric: tabular-nums; }
.chip:hover { background: var(--act-soft); }
.chip[aria-pressed="true"] { background: var(--act-bg); color: var(--act-on); }
.wall {
  --rowh: clamp(118px, 14vw, 196px);
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: clamp(14px, 1.6vw, 22px) clamp(8px, 1vw, 14px);
}
.wall > li { flex: var(--ar) 1 calc(var(--ar) * var(--rowh)); min-width: 0; }
.wall::after { content: ""; flex: 10 1 0; }
@media (max-width: 599px) { .wall > li { flex-basis: max(calc(var(--ar) * var(--rowh)), 40%); } }
.wall > li[hidden] { display: none; }
/* до подключения скрипта показана только первая порция (число = data-page + 1; verify сверяет) */
.js .wall:not(.is-ready) > li:nth-child(n+49) { display: none; }
.wt-a { display: grid; gap: 6px; min-width: 0; color: var(--ink); text-decoration: none; }
.wt-a img { display: block; width: 100%; height: auto; border-radius: 2px; box-shadow: var(--sh-ex); background: var(--field); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.wt-a:hover img, .wt-a:focus-visible img { transform: translateY(-3px); box-shadow: var(--sh-ex-hi); }
.wt-l { font-size: .8125rem; line-height: 1.3; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wt-a:hover .wt-l { color: var(--act); text-decoration: underline; }
.wall-more { display: none; margin: clamp(32px, 4vw, 52px) 0 0; justify-content: center; }
.js .wall-more { display: flex; }
.wall-count { margin: 14px 0 0; text-align: center; color: var(--ink-2); font-size: .875rem; font-variant-numeric: tabular-nums; }
.sec-more { margin: clamp(32px, 4vw, 52px) 0 0; }

/* ---------- проект → готово: два постамента ---------- */
.pg-list { display: grid; gap: clamp(36px, 5vw, 64px); }
.pg { margin: 0; display: grid; gap: 14px; max-width: 1040px; }
.pg-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(10px, 2vw, 28px); }
.pg-item { display: grid; gap: 10px; }
.plinth--pg { cursor: zoom-in; }
.pg-tag { font: 600 .8125rem/1.2 var(--f-d); letter-spacing: .02em; color: var(--ink-2); }
.pg-arrow { color: var(--ink-2); }
.pg-arrow .ico { width: 28px; height: 28px; }
@media (max-width: 599px) {
  .pg-row { grid-template-columns: minmax(0, 1fr); }
  .pg-arrow { justify-self: center; transform: rotate(90deg); }
}

/* ---------- похожие, ещё в группе ---------- */
@media (min-width: 760px) { .tiles--rel { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 759px) {
  .tiles--rel {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 64%;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    padding-bottom: 8px; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); scroll-padding-inline: var(--gut);
  }
  .tiles--rel .tile { scroll-snap-align: start; }
}
.more-group { margin: clamp(28px, 3vw, 40px) 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-2); line-height: 1.7; }
.more-group a { white-space: nowrap; }

/* ---------- видео: ролик как экспонат, отзывы ----------
   Ролик стоит на постаменте, как фото: поле с верхним светом, тень экспоната, этикетка «Видео · 1:12 · …».
   Кадр целиком: рамка задана пропорцией файла (--ar), вертикальный ролик ограничен по высоте (--hmax).
   Играет только по нажатию, без автозапуска; тихая петля — фон раздела, на паузе при prefers-reduced-motion. */
.vx { margin: 0; display: grid; align-content: start; gap: 12px; min-width: 0; --hmax: 62vh; }
.vplinth {
  display: grid; place-items: center; padding: clamp(8px, 2vw, 26px);
  border-radius: var(--r-pl);
  background:
    radial-gradient(72% 62% at 50% 0%, var(--spot), transparent 72%),
    linear-gradient(var(--field), var(--field-lo));
}
.vid {
  position: relative; width: min(100%, calc(var(--hmax) * var(--ar))); aspect-ratio: var(--ar);
  background: #0b0c14; border-radius: 2px; box-shadow: var(--sh-ex); overflow: hidden;
  transition: box-shadow .5s var(--ease);
}
.vx:hover .vid { box-shadow: var(--sh-ex-hi); }
.vid-v { display: block; width: 100%; height: 100%; object-fit: contain; background: #0b0c14; }
.vid-play {
  display: none; position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0;
  place-items: center; background: transparent; color: #fff; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.js .vid-play { display: grid; }
.vid-play span {
  display: grid; place-items: center; width: clamp(52px, 6vw, 68px); aspect-ratio: 1; border-radius: 50%;
  background: var(--act-bg); box-shadow: 0 12px 28px -10px rgb(47 59 255 / .8), 0 0 0 6px rgb(255 255 255 / .24);
  transition: transform .35s var(--ease), background-color .2s;
}
.vid-play .ico { width: 46%; height: 46%; margin-left: 7%; }
.vid-play:hover span { background: var(--act-bg-h); transform: scale(1.07); }
.vid-play:focus-visible { outline: 3px solid var(--act); outline-offset: -3px; }
.vx.is-playing .vid-play { display: none; }
/* до первого нажатия — только постер и наша кнопка: штатная панель закрыла бы низ кадра с субтитрами */
.js .vx:not(.is-playing) .vid-v::-webkit-media-controls { display: none !important; }
.vlabel { gap: 3px; }

/* ленты: кейсы 16:9 и короткие 9:16 */
.vgroup + .vgroup { margin-top: clamp(40px, 5vw, 72px); }
.vgroup-h { font-size: clamp(1.125rem, 1rem + .5vw, 1.5rem); padding-bottom: 12px; margin-bottom: clamp(18px, 2.4vw, 28px); border-bottom: 1px solid var(--line-2); }
.vstrip { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(28px, 3vw, 44px) clamp(14px, 2vw, 28px); }
.vitem { min-width: 0; display: grid; }
.vstrip--port .vx { --hmax: 58vh; }
@media (min-width: 760px) {
  .vstrip--land { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vstrip--land.n1 { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
  .vstrip--port { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vstrip--port.n1 { grid-template-columns: minmax(0, 1fr); max-width: 300px; }
  .vstrip--port.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 620px; }
}
@media (min-width: 1100px) {
  .vstrip--land { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vstrip--land.n1 { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
  .vstrip--land.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vstrip--port { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .vstrip--port.n1 { grid-template-columns: minmax(0, 1fr); max-width: 300px; }
  .vstrip--port.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 620px; }
  .vstrip--port.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 940px; }
}
@media (max-width: 759px) {
  .vstrip {
    grid-template-columns: none; grid-auto-flow: column; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    padding-bottom: 8px; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); scroll-padding-inline: var(--gut);
  }
  .vstrip--land { grid-auto-columns: 84%; }
  .vstrip--port { grid-auto-columns: 62%; }
  .vstrip.n1 { grid-auto-flow: row; overflow: visible; grid-auto-columns: auto; scroll-snap-type: none; }
  .vstrip--port.n1 { grid-auto-columns: 62%; }
  .vitem { scroll-snap-align: start; }
}

/* раздел «Видео»: тихая петля за заголовком */
.vhead { position: relative; isolation: isolate; margin-bottom: clamp(28px, 4vw, 52px); }
.vhead .sec-head { margin-bottom: 0; }
.vhead--loop { overflow: hidden; border-radius: var(--r-pl); padding: clamp(28px, 5vw, 64px) clamp(16px, 3.4vw, 48px); }
.vloop { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; background: var(--field); }
.vhead--loop::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgb(var(--wall-rgb) / .95) 0%, rgb(var(--wall-rgb) / .8) 52%, rgb(var(--wall-rgb) / .42) 100%);
}
@media (max-width: 759px) { .vhead--loop::after { background: rgb(var(--wall-rgb) / .86); } }

/* отзывы: ролик на постаменте и рядом слова клиента */
.revs { display: grid; gap: clamp(40px, 5vw, 64px) clamp(24px, 3vw, 44px); }
.rev { display: grid; gap: 22px; align-items: start; min-width: 0; }
.rev .vx { --hmax: 64vh; }
.rev-body { display: grid; gap: 14px; align-content: start; min-width: 0; }
.rev-q { margin: 0; padding-top: 16px; border-top: 2px solid var(--ink); }
.rev-q p { margin: 0; font: 500 clamp(1.1rem, .95rem + .8vw, 1.4rem)/1.36 var(--f-d); letter-spacing: -.015em; text-wrap: balance; }
.rev-who { margin: 0; font-weight: 600; }
.rev-work { margin: 0; color: var(--ink-2); font-size: .9375rem; line-height: 1.55; }
.rev-k { display: block; margin-bottom: 2px; font: 600 .75rem/1.25 var(--f-d); letter-spacing: .03em; color: var(--ink-2); }
@media (min-width: 600px) {
  .rev { grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: clamp(22px, 3vw, 40px); }
  .rev-body { max-width: 40rem; }
}
@media (min-width: 1100px) { .revs.n2, .revs.n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .rev .vx { --hmax: 66vh; } .rev .vplinth { padding: 3%; } }

/* ---------- подвал ---------- */
.ftr { border-top: 1px solid var(--line-2); padding-block: clamp(40px, 6vw, 72px) 32px; font-size: .9375rem; }
.ftr-top { display: grid; gap: 32px; }
@media (min-width: 960px) { .ftr-top { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 56px; } }
.ftr-brand p { color: var(--ink-2); max-width: 44ch; margin: 14px 0 0; }
.ftr-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; }
.ftr-h { font: 600 .8125rem/1.2 var(--f-d); margin: 0 0 10px; letter-spacing: .01em; }
.ftr-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ftr-nav a { color: var(--ink); text-decoration: none; display: inline-block; padding-block: 3px; }
.ftr-nav a:hover { color: var(--act); text-decoration: underline; }
.ftr-nap { margin: 32px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-2); }
.ftr-nap a { color: var(--act); }
.ftr--lite .ftr-nap { margin-top: 0; padding-top: 0; border-top: 0; }
.ftr-more { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 4px 28px; }
.ftr-more a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; min-height: 44px; }

/* ---------- контакты, 404 ---------- */
.contacts { display: grid; gap: clamp(40px, 6vw, 72px); }
@media (min-width: 960px) { .contacts { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.contacts-l { display: grid; gap: 22px; align-content: start; }
.nap { list-style: none; margin: 10px 0 0; padding: 0; }
.nap li { display: grid; gap: 4px; padding: 16px 0; border-top: 1px solid var(--line-2); }
.nap-k { font-size: .8125rem; color: var(--ink-2); }
.nap-v { font: 600 clamp(1.2rem, 1rem + 1vw, 1.75rem)/1.2 var(--f-d); color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
a.nap-v { color: var(--act); }
a.nap-v:hover { text-decoration: underline; }
.contacts-r .h2:not(:first-child) { margin-top: 44px; }
.send { margin: 18px 0 14px; padding-left: 1.3em; display: grid; gap: 8px; }
.send li::marker { font-family: var(--f-d); font-weight: 600; }
.note { color: var(--ink-2); margin: 0 0 8px; }
.contacts-r .facts { margin-top: 18px; }
.nf-in { display: grid; gap: 20px; justify-items: start; padding-block: 24px 40px; }
.nf-code { margin: 0; font: 700 clamp(5rem, 18vw, 12rem)/.9 var(--f-d); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 2px var(--ink); }

/* ---------- липкая панель на телефоне ---------- */
.mbar { display: none; }
@media (max-width: 759px) {
  .mbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--wall); border-top: 1px solid var(--line-2);
    box-shadow: 0 -12px 30px -14px rgb(0 0 0 / .22);
    transition: transform .4s var(--ease);
  }
  .mbar .btn { min-height: 50px; padding-inline: .8em; }
  .mbar.is-hidden { transform: translateY(115%); }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

/* ---------- просмотр крупно ---------- */
.lb { border: 0; padding: 0; margin: 0; width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; background: transparent; color: #fff; overflow: hidden; }
.lb::backdrop { background: rgb(9 10 18 / .93); }
.lb-fig { margin: 0; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; align-items: center; gap: 12px; padding: 64px 16px 18px; }
.lb-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 2px; box-shadow: 0 30px 80px -24px rgb(0 0 0 / .7); }
.lb-cap { display: flex; gap: 12px; align-items: baseline; max-width: 80ch; font-size: .9375rem; line-height: 1.4; color: rgb(255 255 255 / .86); text-align: left; }
.lb-n { font: 600 .8125rem/1.4 var(--f-d); white-space: nowrap; color: #fff; }
.lb-btn { position: fixed; width: 52px; height: 52px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .12); color: #fff; cursor: pointer; transition: background-color .2s; }
.lb-btn:hover { background: var(--act-bg); }
.lb-btn .ico { width: 24px; height: 24px; }
.lb-x { top: 10px; right: 10px; }
.lb-prev, .lb-next { top: 50%; margin-top: -26px; }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb[open] .lb-img { animation: lbIn .45s var(--ease); }
@keyframes lbIn { from { opacity: 0; scale: .965; } }
@media (max-width: 759px) { .lb-prev, .lb-next { top: auto; bottom: 12px; margin-top: 0; } .lb-fig { padding-bottom: 76px; } }

/* ---------- переходы между страницами ---------- */
.is-vt { view-transition-name: exhibit; }
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  html { scroll-behavior: smooth; }
  ::view-transition-group(exhibit) { animation-duration: .62s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
  ::view-transition-old(root) { animation: .26s ease-in both vtOut; }
  ::view-transition-new(root) { animation: .44s cubic-bezier(.2, .8, .2, 1) .05s both vtIn; }
  @keyframes vtOut { to { opacity: 0; } }
  @keyframes vtIn { from { opacity: 0; transform: translateY(12px); } }
  .qa[open] .qa-a { animation: qaIn .45s var(--ease); }
  @keyframes qaIn { from { opacity: 0; transform: translateY(-6px); } }
}

/* ---------- без движения ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .plinth { transform: none; }
}
