/* Lamast — палитра из логотипа */
:root {
  --violet: #4B2EBF;
  --violet-d: #3A219C;
  --sky: #4F95EE;
  --night: #140F2E;
  --night-2: #1E1744;
  --paper: #FFFFFF;
  --mist: #F1F2FA;
  --ink: #17132B;
  --muted: #5E5A78;
  --line: #E1E2EF;
  --wa: #25D366;
  --wa-d: #1DA851;

  --display: "Geologica", "Onest", system-ui, sans-serif;
  --text: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1520px;
  --pad: clamp(20px, 3.4vw, 56px);
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font: 400 17px/1.6 var(--text);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.2vw, 64px); font-weight: 700; }
p { text-wrap: pretty; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--paper); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--violet); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  font: 600 16px/1 var(--text);
  color: var(--fg); background: var(--bg);
  border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--wa { --bg: var(--wa); --fg: #062814; box-shadow: 0 8px 24px -10px rgba(37, 211, 102, .7); }
.btn--wa:hover { --bg: #2fe172; }
.btn--ghost { --bg: transparent; --fg: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.btn--dark { --bg: var(--ink); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn--sm svg { width: 18px; height: 18px; }
.btn--lg { min-height: 60px; padding: 0 32px; font-size: 17px; width: 100%; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: #fff;
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.nav.is-solid { background: rgba(255,255,255,.92); backdrop-filter: blur(12px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.nav__in { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 24px/1 var(--display); letter-spacing: -0.04em; }
.nav__phone { text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.nav__phone:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { white-space: nowrap; text-decoration: none; font-size: 15px; font-weight: 500; opacity: .85; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .25s ease, opacity .2s; padding-bottom: 2px; }
.nav__links a:hover { opacity: 1; background-size: 100% 1.5px; }
.nav__burger { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh;
  display: flex; align-items: center;
  background: var(--night);
  color: #fff;
  padding: 120px 0 64px;
  isolation: isolate;
}
/* фасад: кирпичная кладка + огни улицы */
.hero__wall {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 20% 35%, rgba(75, 46, 191, .55), transparent 70%),
    radial-gradient(40% 40% at 80% 70%, rgba(79, 149, 238, .28), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 96px),
    var(--night);
}
.hero__wall::after {
  /* логотип как огромный силуэт на стене */
  content: ""; position: absolute; right: -6vw; top: 50%; width: min(62vw, 760px); aspect-ratio: 1;
  transform: translateY(-50%);
  background: url("assets/logo-mark.svg") center / contain no-repeat;
  opacity: .07;
}
.hero__in { width: 100%; }
.hero__title {
  font-size: clamp(48px, 9.6vw, 168px);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -0.05em;
  display: flex; flex-direction: column;
}
.hero__plain { font-weight: 600; font-size: .36em; letter-spacing: -0.03em; margin-top: .5em; color: rgba(255,255,255,.85); }

/* световые буквы */
.neon { display: block; color: #2a2350; }
.neon .ch { display: inline-block; transition: color .08s linear, text-shadow .08s linear; }
.neon .ch.on {
  color: #fff;
  text-shadow: 0 0 6px rgba(255,255,255,.55), 0 0 28px rgba(140, 110, 255, .9), 0 0 70px rgba(75, 46, 191, .9);
}
.neon--blue .ch.on {
  color: #EAF3FF;
  text-shadow: 0 0 6px rgba(255,255,255,.5), 0 0 28px rgba(79, 149, 238, .95), 0 0 70px rgba(79, 149, 238, .8);
}

.hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-top: 48px; flex-wrap: wrap; }
.hero__lead { max-width: 520px; font-size: 19px; color: rgba(255,255,255,.78); }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__facts {
  list-style: none; padding: 28px 0 0; margin: 56px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: 15px; color: rgba(255,255,255,.66);
}
.hero__facts b { display: block; font: 700 22px/1.2 var(--display); color: #fff; margin-bottom: 4px; letter-spacing: -0.02em; }

/* ---------- ticker ---------- */
.ticker { background: var(--violet); color: #fff; overflow: hidden; padding: 16px 0; }
.ticker__track { display: flex; gap: 48px; width: max-content; animation: ticker 40s linear infinite; }
.ticker span { font: 600 16px/1 var(--display); letter-spacing: -0.01em; white-space: nowrap; display: flex; align-items: center; gap: 48px; }
.ticker span::after { content: ""; width: 10px; height: 10px; border-radius: 0 50% 50% 50%; background: var(--sky); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.services, .works, .process, .brief, .contacts { padding: clamp(80px, 11vw, 140px) 0; }
.sec-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.sec-head p { color: var(--muted); max-width: 460px; justify-self: end; }
.sec-head--light h2 { color: #fff; }

/* ---------- каталог услуг ---------- */
.catalog {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(330px, auto);
  grid-template-areas:
    "letters letters lightbox banner"
    "letters letters sticker film"
    "sign mobile interior interior"
    "photozone photozone cards holders"
    "mount mount mount mount";
}
.cat {
  position: relative; display: flex; flex-direction: column; text-align: left;
  border: 0; padding: 0; margin: 0; cursor: pointer; color: inherit; font: inherit;
  border-radius: var(--r-lg); overflow: hidden; background: var(--mist);
  transition: transform .25s ease, box-shadow .25s ease;
}
.cat:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -24px rgba(20, 15, 46, .45); }
.cat__scene { position: relative; flex: 1; min-height: 190px; height: auto; border-radius: 0; pointer-events: none; }
.cat__scene .dim { display: none; }
.cat__body { display: grid; gap: 6px; padding: 18px 22px 22px; background: var(--paper); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.cat__title { font: 700 22px/1.15 var(--display); letter-spacing: -0.03em; }
.cat__text { color: var(--muted); font-size: 15px; line-height: 1.5; }
.cat__go { margin-top: 8px; font-weight: 600; font-size: 15px; color: var(--violet); display: inline-flex; align-items: center; gap: 8px; }
.cat__go::after { content: ""; width: 18px; height: 2px; background: currentColor; transition: width .25s ease; }
.cat:hover .cat__go::after { width: 32px; }

.cat--letters { grid-area: letters; }
.cat--letters .cat__title { font-size: clamp(26px, 2.4vw, 36px); }
.cat--letters .cat__text { font-size: 17px; max-width: 46ch; }
.cat--lightbox { grid-area: lightbox; } .cat--banner { grid-area: banner; }
.cat--sticker { grid-area: sticker; } .cat--film { grid-area: film; }
.cat--sign { grid-area: sign; } .cat--mobile { grid-area: mobile; }
.cat--interior { grid-area: interior; } .cat--photozone { grid-area: photozone; }
.cat--cards { grid-area: cards; } .cat--holders { grid-area: holders; }
.cat--mount { grid-area: mount; flex-direction: row; min-height: 0; }
.cat--mount .cat__scene { flex: 1.3; min-height: 220px; }
.cat--mount .cat__body { flex: 1; align-content: center; border-radius: 0 var(--r-lg) var(--r-lg) 0; border-top: 1px solid var(--line); border-left: 0; padding: 32px; }

/* ---------- works ---------- */
.works { background: var(--mist); }
.works__grid { columns: 3 320px; column-gap: 16px; }
.work { break-inside: avoid; margin: 0 0 16px; border-radius: var(--r-lg); overflow: hidden; background: var(--paper); }
.work img { display: block; width: 100%; height: auto; transition: transform .5s ease; }
.work:hover img { transform: scale(1.025); }
.work figcaption { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 18px; font-size: 15px; background: var(--paper); }
.work figcaption span { color: var(--muted); text-align: right; }

/* ---------- process ---------- */
.process { background: var(--night); color: #fff; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; padding: 28px 24px 32px; border-radius: var(--r-lg); background: var(--night-2); position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 40px; border-radius: 0 50% 50% 50%; background: var(--sky); color: var(--night); font: 700 18px/1 var(--display); }
.steps li:first-child::before { background: var(--wa); }
.steps h3 { margin-bottom: 10px; }
.steps p { color: rgba(255,255,255,.66); font-size: 16px; }

/* ---------- brief ---------- */
.brief__in { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.brief__sub { color: var(--muted); margin: 18px 0 36px; max-width: 520px; }
form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 8px; }
fieldset.field legend { margin-bottom: 12px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
input[type="text"], textarea {
  width: 100%; font: inherit; color: inherit;
  padding: 14px 16px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); background: var(--paper);
  transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 120px; }
input[type="text"]:hover, textarea:hover { border-color: #c8c9dc; }
input[type="text"]:focus, textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(75, 46, 191, .14); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 15px; font-weight: 500; cursor: pointer; user-select: none; transition: background-color .15s, color .15s, border-color .15s, transform .15s; }
.chip span:hover { border-color: var(--violet); }
.chip input:checked + span { background: var(--violet); border-color: var(--violet); color: #fff; }
.chip input:checked + span::before { content: "✓"; font-size: 13px; }
.chip input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.chip.pulse span { animation: pulse .6s ease; }
@keyframes pulse { 40% { transform: scale(1.08); } }

.drop {
  position: relative; display: flex; align-items: center; gap: 16px;
  padding: 22px; border-radius: var(--r); border: 2px dashed #cfd0e3; background: var(--mist);
  cursor: pointer; transition: border-color .2s, background-color .2s;
  color: var(--muted); font-size: 15px;
}
.drop b { color: var(--ink); }
.drop svg { width: 40px; height: 40px; flex: none; fill: none; stroke: var(--violet); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; padding: 8px; background: #fff; border-radius: 12px; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop:hover, .drop.is-over { border-color: var(--violet); background: #ebe7fb; }
.drop:focus-within { outline: 3px solid var(--sky); outline-offset: 3px; }

.files { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.files:empty { display: none; }
.files li { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 8px 8px 8px 8px; border-radius: 12px; background: var(--mist); font-size: 14px; }
.files .thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--violet); color: #fff; display: grid; place-items: center; font: 700 11px/1 var(--display); }
.files .meta { min-width: 0; }
.files .meta b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files .meta small { color: var(--muted); }
.files button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; cursor: pointer; font-size: 20px; line-height: 1; color: var(--muted); }
.files button:hover { background: var(--ink); color: #fff; }

.form-note { font-size: 14px; color: var(--muted); min-height: 1.4em; margin-top: -8px; }
.form-note.is-error { color: #c62f4b; }

/* phone preview */
.phone {
  position: sticky; top: 100px;
  border-radius: 36px; overflow: hidden;
  background: #0b141a; color: #e9edef;
  box-shadow: 0 0 0 10px #1b1b22, 0 40px 80px -30px rgba(20, 15, 46, .55);
  display: flex; flex-direction: column; min-height: 560px;
}
.phone__top { display: flex; align-items: center; gap: 12px; padding: 18px 18px; background: #202c33; }
.phone__top img { background: #fff; border-radius: 50%; padding: 6px; }
.phone__top b { display: block; font-size: 16px; }
.phone__top small { color: #8696a0; font-size: 13px; }
.phone__chat {
  flex: 1; padding: 20px 16px; display: flex; flex-direction: column; gap: 10px;
  background: #0b141a radial-gradient(rgba(255,255,255,.035) 1px, transparent 1.5px) 0 0 / 18px 18px;
}
.bubble { max-width: 86%; padding: 8px 10px 6px; border-radius: 10px; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble--in { background: #202c33; border-top-left-radius: 2px; }
.bubble--out { align-self: flex-end; background: #005c4b; border-top-right-radius: 2px; transition: transform .2s ease; }
.bubble--out.bump { transform: scale(1.02); }
.bubble time { display: block; text-align: right; font-size: 11px; color: rgba(233,237,239,.6); margin-top: 2px; }
.bubble__thumbs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; margin: -2px -4px 6px; }
.bubble__thumbs:empty { display: none; }
.bubble__thumbs > * { border-radius: 6px; aspect-ratio: 1; object-fit: cover; width: 100%; background: #0a4a3d; display: grid; place-items: center; font-size: 12px; text-align: center; padding: 6px; overflow-wrap: anywhere; }
.bubble__thumbs > :only-child { grid-column: span 2; aspect-ratio: 4 / 3; }
.bubble__text .ph { color: rgba(233,237,239,.5); }
.phone__bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #0b141a; }
.phone__bar span { flex: 1; background: #202c33; border-radius: 999px; padding: 10px 16px; color: #8696a0; font-size: 14px; }
.phone__bar i { width: 42px; height: 42px; border-radius: 50%; background: #00a884; }

/* ---------- contacts ---------- */
.contacts { background: var(--violet); color: #fff; }
.contacts__in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; }
.contacts__big { font-size: clamp(36px, 5.6vw, 76px); font-weight: 800; letter-spacing: -0.04em; }
.contacts__list { margin: 0; display: grid; gap: 22px; }
.contacts__list div { padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.22); }
.contacts__list dt { font-size: 14px; color: rgba(255,255,255,.66); }
.contacts__list dd { margin: 4px 0 0; font: 600 20px/1.3 var(--display); letter-spacing: -0.01em; }
.contacts__list a { text-decoration: none; }
.contacts__list a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- footer ---------- */
.footer { background: var(--night); color: rgba(255,255,255,.6); padding: 32px 0; font-size: 14px; }
.footer__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.brand--light { color: #fff; font-size: 18px; }

/* ---------- fab ---------- */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .7);
  transition: transform .2s ease, opacity .3s ease;
}
.fab svg { width: 32px; height: 32px; }
.fab:hover { transform: scale(1.07); }
.fab.is-hidden { opacity: 0; pointer-events: none; transform: scale(.8); }

/* ---------- modal ---------- */
.modal { border: 0; border-radius: var(--r-lg); padding: 36px; max-width: 520px; width: calc(100% - 32px); color: var(--ink); }
.modal::backdrop { background: rgba(20, 15, 46, .6); backdrop-filter: blur(4px); }
.modal[open] { animation: pop .25s ease; }
@keyframes pop { from { transform: translateY(12px); opacity: 0; } }
.modal h3 { font-size: 24px; margin-bottom: 10px; padding-right: 30px; }
.modal > p { color: var(--muted); margin-bottom: 24px; font-size: 15px; }
.modal__x { position: absolute; right: 16px; top: 16px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--mist); font-size: 24px; cursor: pointer; }
.modal__steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.modal__steps li { display: grid; gap: 8px; }
.modal__steps li > span { font-size: 14px; color: var(--muted); }
.modal__steps .btn { width: 100%; }
.modal__steps .btn.is-done { --bg: #e7f8ee; --fg: #136b37; }
kbd { font: 600 12px/1 var(--text); padding: 3px 6px; border-radius: 5px; background: var(--mist); border: 1px solid var(--line); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .brief__in { grid-template-columns: 1fr; }
  .phone { position: relative; top: 0; max-width: 420px; min-height: 460px; margin: 0 auto; width: 100%; }
}
@media (max-width: 820px) {
  .nav__in > .btn { display: none; }

  .sec-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; }
  .sec-head p { justify-self: start; }
  .hero__facts { grid-template-columns: 1fr; gap: 16px; }
  .hero__facts li { display: flex; align-items: baseline; gap: 12px; }
  .hero__facts b { margin: 0; font-size: 18px; white-space: nowrap; }
  .contacts__in { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 104px; }
  .hero__lead { font-size: 17px; }
  .hero__cta, .hero__cta .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .steps li::before { margin-bottom: 20px; }
  .field-row { grid-template-columns: 1fr; }
  .drop { flex-direction: column; text-align: center; }
  .modal { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* =====================================================
   Конструктор
   ===================================================== */
.brief { background: var(--paper); }
.brief__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.prod input { position: absolute; opacity: 0; pointer-events: none; }
.prod span {
  display: flex; align-items: center; gap: 10px; height: 100%;
  padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line);
  cursor: pointer; font-size: 14px; line-height: 1.25; transition: border-color .15s, background-color .15s, color .15s, transform .15s;
}
.prod b { font-weight: 600; }
.prod svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--violet); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.prod span:hover { border-color: var(--violet); transform: translateY(-2px); }
.prod input:checked + span { background: var(--violet); border-color: var(--violet); color: #fff; }
.prod input:checked + span svg { stroke: #fff; }
.prod input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.prod.pulse span { animation: pulse .6s ease; }

.config { display: grid; gap: 22px; padding: 24px; border-radius: var(--r-lg); background: var(--mist); }
.config:empty { display: none; }
.config.is-in { animation: cfgIn .3s ease; }
@keyframes cfgIn { from { opacity: 0; transform: translateY(6px); } }
.config .chip span { background: #fff; }
.config .chip input:checked + span { background: var(--violet); }
.config input[type="text"] { background: #fff; }
.config input:disabled { opacity: .55; }
.field-row--1 { grid-template-columns: 1fr; max-width: 50%; }
.field-row--3 { grid-template-columns: repeat(3, 1fr); }
.chips--sm { margin-top: -10px; }
.chip-btn { padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: 500 13px/1 var(--text); cursor: pointer; color: var(--ink); }
.chip-btn:hover { border-color: var(--violet); }

/* правая колонка */
.preview { position: sticky; top: 96px; display: grid; gap: 14px; }
.stage {
  position: relative; height: clamp(320px, 34vw, 430px); border-radius: var(--r-lg); overflow: hidden;
  display: grid; place-items: center; transition: background .4s ease;
}
.stage__cap { font-size: 14px; color: var(--muted); padding: 0 6px; }
.stage__cap::first-letter { text-transform: uppercase; }

/* фоны сцен */
.bg-desk { background: radial-gradient(80% 70% at 50% 40%, #fff, #e6e7f2); }
.bg-glass { background: linear-gradient(135deg, #cfe3ff 0%, #a9c6ee 45%, #dbe9ff 46%, #b8d1f3 100%); }
.bg-street { background: linear-gradient(180deg, #a9cbff 0%, #dfeaff 58%, #c6c8d6 58%, #b2b4c4 100%); }
.bg-shop { background: linear-gradient(180deg, #d9dbe8 0 10%, #3a3f52 10% 12%, #e9f1ff 12% 88%, #3a3f52 88% 90%, #c8cad8 90%); }
.bg-wall { background: #eceae6 repeating-linear-gradient(0deg, rgba(0,0,0,.03) 0 1px, transparent 1px 38px); }
.bg-night { background: radial-gradient(70% 60% at 50% 45%, #2a2160, var(--night)), var(--night); }
.bg-night::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 34px), repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 80px); }
.bg-facade { background: linear-gradient(180deg, #e3dfd8, #d3cec5); }
.bg-facade::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.035) 0 1px, transparent 1px 30px); }
.bg-expo { background: linear-gradient(180deg, #f3f3f8 0 80%, #d9dae6 80%); }
.bg-room { background: linear-gradient(180deg, #efe9e1 0 82%, #c9b39a 82%); }
.bg-hall { background: radial-gradient(60% 50% at 50% 30%, #fff4f8, #ecdcf3 70%), #ecdcf3; }
.bg-hall::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16%; background: #d9c6e6; }

.pv-obj { position: relative; z-index: 1; transition: width .3s ease, height .3s ease; }
.pv-art { position: absolute; inset: 0; background: center / cover no-repeat; }
.pv-art--empty {
  background:
    radial-gradient(circle at 78% 22%, var(--sky) 0 18%, transparent 18.5%),
    linear-gradient(135deg, var(--violet), #6a4fe0);
  display: grid; place-items: center; color: rgba(255,255,255,.92);
  font: 700 clamp(11px, 1.3vw, 16px)/1 var(--display); letter-spacing: -0.01em;
}
.sheen { position: absolute; inset: 0; pointer-events: none; }

/* размеры */
.dim { position: absolute; font: 600 12px/1 var(--text); color: var(--ink); background: #fff; padding: 4px 8px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.12); white-space: nowrap; z-index: 3; }
.dim--w { left: 50%; bottom: -34px; transform: translateX(-50%); }
.dim--h { right: -14px; top: 50%; transform: translate(100%, -50%); }
.dim--w::before, .dim--h::before { content: ""; position: absolute; z-index: -1; background: rgba(20,15,46,.35); }
.dim--w::before { height: 1px; width: var(--rw, 0); }

/* наклейки */
.pv-sticker { position: absolute; inset: 0; overflow: hidden; background: #fff; box-shadow: 0 0 0 5px #fff, 0 14px 28px -10px rgba(20,15,46,.45); }
.pv-sticker.s-circle, .pv-sticker.s-oval { border-radius: 50%; }
.pv-sticker.s-square, .pv-sticker.s-rect { border-radius: 2px; }
.pv-sticker.s-round { border-radius: 18%; }
.pv-sticker.s-contour { background: none; box-shadow: none; overflow: visible; }
.pv-sticker.s-contour .pv-art--empty { border-radius: 42% 58% 55% 45% / 50% 40% 60% 50%; box-shadow: 0 0 0 6px #fff, 0 14px 28px -10px rgba(20,15,46,.45); }
.pv-contour { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff) drop-shadow(0 10px 14px rgba(20,15,46,.35)); }
.pv-sticker.is-gloss .sheen { background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.65) 42%, transparent 52%, transparent 70%, rgba(255,255,255,.3) 76%, transparent 82%); }
.pv-sticker.is-matte .sheen { background: rgba(255,255,255,.08); backdrop-filter: saturate(.85); }
.pv-sticker.is-clear { background: rgba(255,255,255,.18); box-shadow: 0 0 0 1px rgba(255,255,255,.7), 0 10px 20px -12px rgba(20,15,46,.4); }
.pv-sticker.is-clear .pv-art { mix-blend-mode: multiply; }
.pv-sticker.is-paper { box-shadow: 0 0 0 4px #fbfaf5, 0 8px 16px -8px rgba(20,15,46,.4); }

/* баннер */
.pv-banner { position: absolute; inset: 0; background: #fff; box-shadow: 0 18px 30px -16px rgba(0,0,0,.5); }
.pv-banner .pv-art { inset: 0; }
.pv-banner.edge-eyelets::after { content: ""; position: absolute; inset: 5px; background: radial-gradient(circle, #e8e8ee 2.5px, #6b6f80 3px, transparent 3.5px) 0 0 / 24px 24px; -webkit-mask: linear-gradient(#000 0 8px, transparent 8px calc(100% - 8px), #000 calc(100% - 8px)); mask: linear-gradient(#000 0 8px, transparent 8px calc(100% - 8px), #000 calc(100% - 8px)); }
.pv-banner.edge-pockets { border-top: 8px solid #f1f1f5; border-bottom: 8px solid #f1f1f5; }
.pv-banner.edge-hem { box-shadow: inset 0 0 0 4px rgba(255,255,255,.7), 0 18px 30px -16px rgba(0,0,0,.5); }
.pv-banner.is-mesh .mesh { position: absolute; inset: 0; background: radial-gradient(circle, rgba(255,255,255,.55) 1px, transparent 1.4px) 0 0 / 5px 5px; }
.pv-banner.is-framed { outline: 6px solid #3a3f52; }
.legs { position: absolute; left: 12%; right: 12%; top: 100%; height: 60%; border-left: 7px solid #3a3f52; border-right: 7px solid #3a3f52; }

/* плёнка */
.pv-film { position: absolute; inset: 0; box-shadow: 0 0 0 3px rgba(255,255,255,.6); }
.pv-film.is-perf .pv-art { -webkit-mask: radial-gradient(circle, transparent 1.2px, #000 1.6px) 0 0 / 5px 5px; mask: radial-gradient(circle, transparent 1.2px, #000 1.6px) 0 0 / 5px 5px; }
.pv-film.is-plotter .pv-art { filter: grayscale(1) contrast(9) brightness(.9); mix-blend-mode: multiply; }
.pv-film.is-gloss .sheen { background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.5) 45%, transparent 55%); }
.pv-film.is-board { box-shadow: 3px 3px 0 #cfd1dc, 6px 6px 0 #b9bbca, 0 22px 30px -14px rgba(0,0,0,.45); }
.pv-film.is-acp { box-shadow: 3px 3px 0 #9aa0b3, 4px 4px 0 #5d6276, 0 22px 30px -14px rgba(0,0,0,.45); }

/* буквы */
.pv-letters { position: relative; z-index: 1; padding: .3em .5em; display: grid; place-items: center; }
.pv-letters > span:first-child { font-family: var(--display); font-weight: 800; letter-spacing: .02em; line-height: 1; white-space: nowrap; }
.pv-letters .dim--w { bottom: -28px; }
.pv-letters .dim--h { right: -10px; }
.l-lit > span:first-child { color: #fff; text-shadow: 0 0 4px #fff, 0 0 20px rgba(140, 170, 255, .95), 0 0 50px rgba(79, 149, 238, .9); }
.l-halo > span:first-child { color: #120d2a; text-shadow: 0 0 2px #fff, 0 0 18px rgba(255, 245, 220, .95), 0 0 40px rgba(255, 220, 160, .7); }
.l-solid > span:first-child { color: var(--violet); text-shadow: 1px 1px 0 #2d1c78, 2px 2px 0 #2d1c78, 3px 3px 0 #2d1c78, 4px 4px 0 #2d1c78, 8px 10px 12px rgba(0,0,0,.25); }
.l-flat > span:first-child { color: var(--violet); text-shadow: 1px 1px 0 #d2cde6, 2px 2px 0 #d2cde6, 6px 6px 8px rgba(0,0,0,.18); }
.l-acp > span:first-child { color: #2c3145; text-shadow: 1px 1px 0 #9aa0b3, 2px 2px 0 #9aa0b3, 3px 3px 0 #9aa0b3, 8px 10px 12px rgba(0,0,0,.25); }
.l-acryl > span:first-child { color: rgba(255,255,255,.55); -webkit-text-stroke: 1.5px rgba(75,46,191,.6); text-shadow: 3px 4px 0 rgba(75,46,191,.25), 8px 10px 14px rgba(0,0,0,.18); }
.base-plate { background: linear-gradient(#f5f6fa, #dfe1ea); box-shadow: 0 16px 26px -14px rgba(0,0,0,.5); border-radius: 4px; }
.base-box { background: linear-gradient(#2e3346, #1d2130); box-shadow: 0 0 0 4px #3c4258, 0 18px 30px -12px rgba(0,0,0,.6); border-radius: 4px; }
.bg-night .base-plate { background: linear-gradient(#3a3f52, #2a2e3d); }

/* световой короб */
.pv-lightbox { position: absolute; inset: 0; background: #fff; overflow: hidden; border: 6px solid #e7e9f0; box-shadow: 0 0 30px rgba(255,255,255,.55), 0 0 90px rgba(140,170,255,.5); }
.pv-lightbox .pv-art { filter: brightness(1.12) saturate(1.1); }
.pv-lightbox.s-circle { border-radius: 50%; }
.pv-lightbox.s-round { border-radius: 22px; }
.pv-lightbox.is-double { box-shadow: 10px 0 0 -2px #c8ccd8, 0 0 30px rgba(255,255,255,.55), 0 0 90px rgba(140,170,255,.5); }
.bracket { position: absolute; left: -36px; top: 50%; width: 36px; height: 6px; background: #8a8fa3; }

/* табличка */
.pv-sign { position: absolute; inset: 0; overflow: hidden; background: #fff; box-shadow: 0 14px 24px -12px rgba(0,0,0,.45); }
.pv-sign.s-round { border-radius: 14px; }
.pv-sign.s-circle, .pv-sign.s-oval { border-radius: 50%; }
.pv-sign .pv-art { inset: 0; }
.pv-sign.b-tin { box-shadow: inset 0 0 0 3px #c7cad6, 0 14px 24px -12px rgba(0,0,0,.45); }
.pv-sign.b-backed { box-shadow: 0 0 0 8px #3a3f52, 0 18px 26px -12px rgba(0,0,0,.5); }
.pv-sign.b-pvc { box-shadow: 2px 2px 0 #e3e4ec, 3px 3px 0 #cfd0dc, 0 14px 24px -12px rgba(0,0,0,.4); }
.pv-sign.b-acp { box-shadow: 2px 2px 0 #9aa0b3, 3px 3px 0 #5d6276, 0 14px 24px -12px rgba(0,0,0,.45); }
.pv-sign.b-acryl { box-shadow: 0 0 0 7px rgba(255,255,255,.55), 6px 8px 0 rgba(255,255,255,.25), 0 18px 26px -12px rgba(0,0,0,.4); }
.pv-sign.b-acryl::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.45) 42%, transparent 52%); }
.screws { position: absolute; inset: 8px; background: radial-gradient(circle, #e8e9ef 2.5px, #7c8194 3.2px, transparent 3.6px) 0 0 / 100% 100%; background:
  radial-gradient(circle at 0 0, #7c8194 3.2px, transparent 3.6px) 0 0 / 8px 8px no-repeat,
  radial-gradient(circle at 100% 0, #7c8194 3.2px, transparent 3.6px) 100% 0 / 8px 8px no-repeat,
  radial-gradient(circle at 0 100%, #7c8194 3.2px, transparent 3.6px) 0 100% / 8px 8px no-repeat,
  radial-gradient(circle at 100% 100%, #7c8194 3.2px, transparent 3.6px) 100% 100% / 8px 8px no-repeat; }
.s-circle .screws, .s-oval .screws { display: none; }

/* ролл-ап и штендер */
.pv-rollup { position: absolute; inset: 0 0 6px; background: #fff; box-shadow: 0 10px 24px -10px rgba(0,0,0,.35); }
.pv-rollup::before { content: ""; position: absolute; left: -2px; right: -2px; top: -5px; height: 6px; background: #8a8fa3; border-radius: 3px; z-index: 1; }
.rollup-base { position: absolute; left: -8%; right: -8%; bottom: -4px; height: 14px; border-radius: 6px 6px 3px 3px; background: linear-gradient(#b4b7c6, #7c8194); }
.pv-stand { position: absolute; inset: 0; background: #c79a63; clip-path: polygon(10% 0, 90% 0, 100% 100%, 92% 100%, 84% 6%, 16% 6%, 8% 100%, 0 100%); }
.pv-stand .pv-art { inset: 9% 20% 22% 20%; }
.pv-stand::after { content: ""; position: absolute; left: 14%; right: 14%; top: 82%; height: 3%; background: #a87d4b; }

/* интерьер */
.pv-interior { position: absolute; inset: 0; box-shadow: 0 10px 22px -12px rgba(0,0,0,.35); }
.pv-interior.is-canvas { box-shadow: 5px 5px 0 #d8cbb8, 0 18px 26px -12px rgba(0,0,0,.45); }
.pv-interior.is-poster { outline: 6px solid #fff; box-shadow: 0 0 0 7px #2b2b33, 0 18px 26px -12px rgba(0,0,0,.45); }
.pv-interior.is-wall { box-shadow: none; }
.pv-interior.is-wall .pv-art { -webkit-mask: linear-gradient(90deg, #000 0 33.2%, rgba(0,0,0,.92) 33.3% 33.5%, #000 33.6% 66.5%, rgba(0,0,0,.92) 66.6% 66.8%, #000 66.9%); mask: linear-gradient(90deg, #000 0 33.2%, rgba(0,0,0,.92) 33.3% 33.5%, #000 33.6% 66.5%, rgba(0,0,0,.92) 66.6% 66.8%, #000 66.9%); }
.pv-interior.is-gloss .sheen { background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.45) 45%, transparent 55%); }

/* фотозона */
.pv-zone { position: absolute; inset: 0; overflow: hidden; box-shadow: 0 18px 30px -14px rgba(60, 30, 90, .45); }
.pv-zone.z-arch { border-radius: 999px 999px 0 0; }
.pv-zone.z-shape { border-radius: 40% 60% 8% 8% / 50% 50% 4% 4%; }
.zone-feet { position: absolute; left: 6%; right: 6%; bottom: -6px; height: 8px; border-radius: 4px; background: #6d5a85; }

/* визитки */
.pv-cards { position: relative; z-index: 1; }
.pv-card { position: absolute; inset: 0; border-radius: 3px; overflow: hidden; background: #fff; box-shadow: 0 16px 26px -12px rgba(20,15,46,.45); transform: rotate(-4deg); }
.pv-card.is-round { border-radius: 14px; }
.pv-card--back, .pv-card--blank { transform: translate(14%, 18%) rotate(7deg); }
.pv-card--back { background: var(--violet); display: grid; place-items: center; }
.pv-card--back span { color: #fff; font: 700 22px/1 var(--display); letter-spacing: -0.03em; }
.pv-card.is-gloss .sheen { background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.6) 42%, transparent 54%); }
.pv-card.is-matte .sheen { background: rgba(255,255,255,.06); }
.pv-cards .dim--w { bottom: -54px; }

/* визитница */
.pv-holder { position: relative; z-index: 1; }
.holder-cards { position: absolute; left: 14%; right: 14%; top: 8%; height: 52%; border-radius: 3px; overflow: hidden; box-shadow: 0 -3px 0 #fff, 0 -6px 0 #f0f0f5; }
.holder-glass { position: absolute; left: 6%; right: 6%; top: 34%; bottom: 0; border-radius: 6px 6px 8px 8px; background: linear-gradient(160deg, rgba(255,255,255,.75), rgba(255,255,255,.25)); box-shadow: inset 0 0 0 2px rgba(255,255,255,.9), 0 16px 26px -12px rgba(20,15,46,.4); backdrop-filter: blur(1px); }
.pv-holder.is-tint .holder-glass { background: linear-gradient(160deg, rgba(79,149,238,.55), rgba(75,46,191,.35)); }
.pv-holder.h-wall .holder-glass { top: 30%; bottom: 10%; }
.pv-holder.h-pocket { transform: scale(.75); }
.pv-holder.h-pocket .holder-glass { top: 20%; border-radius: 12px; background: linear-gradient(160deg, #3a3f52, #23273a); }
.pv-holder.h-pocket .holder-cards { top: 0; }

/* монтаж */
.pv-mount { position: absolute; inset: 0; box-shadow: 0 0 0 6px #3a3f52; }
.ladder { position: absolute; right: 8%; top: 70%; width: 36px; height: 120%; background: repeating-linear-gradient(180deg, transparent 0 16px, #8a8fa3 16px 20px); border-left: 4px solid #8a8fa3; border-right: 4px solid #8a8fa3; transform: rotate(8deg); }

/* чат */
.chat { border-radius: var(--r-lg); overflow: hidden; background: #0b141a; color: #e9edef; }
.chat__top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #202c33; }
.chat__top img { background: #fff; border-radius: 50%; padding: 5px; }
.chat__top b { display: block; font-size: 15px; }
.chat__top small { color: #8696a0; font-size: 12px; }
.chat__body { padding: 14px; max-height: 240px; overflow: auto; display: flex; flex-direction: column; background: #0b141a radial-gradient(rgba(255,255,255,.035) 1px, transparent 1.5px) 0 0 / 18px 18px; }
.chat .bubble { max-width: 94%; }

@media (max-width: 1024px) {
  .brief__in { grid-template-columns: 1fr; }
  .preview { position: relative; top: 0; order: -1; }
}
@media (max-width: 560px) {
  .config { padding: 18px; }
  .products { grid-template-columns: 1fr 1fr; }
  .field-row--3 { grid-template-columns: 1fr 1fr; }
  .field-row--1 { max-width: none; }
  .stage { height: 300px; }
}

/* ---------- о нас ---------- */
.about { padding: clamp(80px, 11vw, 140px) 0; }
.about__in { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.about__text h2 { margin-bottom: 28px; }
.about__lead { font: 500 clamp(20px, 2vw, 26px)/1.4 var(--text); margin-bottom: 20px; max-width: 34ch; }
.about__text p:not(.about__lead) { color: var(--muted); max-width: 60ch; }
.about__facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about__facts div { padding: 22px; border-radius: var(--r); background: var(--mist); }
.about__facts div:first-child { background: var(--violet); color: #fff; }
.about__facts div:first-child dt { color: rgba(255,255,255,.7); }
.about__facts dt { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.about__facts dd { margin: 0; font: 700 18px/1.3 var(--display); letter-spacing: -0.01em; }
@media (max-width: 820px) {
  .about__in { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .about__facts { grid-template-columns: 1fr; }
}
.chat .bubble__thumbs { grid-template-columns: repeat(4, 64px); }
.chat .bubble__thumbs > *, .chat .bubble__thumbs > :only-child { grid-column: auto; width: 64px; height: 64px; aspect-ratio: 1; font-size: 9px; padding: 3px; }
.about__facts dd { font-size: 16px; }
.bubble { white-space: normal; }
.bubble__text { white-space: pre-wrap; }
@media (max-width: 1024px) {
  .brief__in { gap: 20px; }
  .preview { display: contents; }
  .stage { order: -2; }
  .stage__cap { order: -1; margin-top: -8px; }
  .chat { order: 1; margin-top: 12px; }
}

/* каталог: адаптив */
@media (max-width: 1100px) {
  .catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "letters letters" "lightbox banner" "sticker film" "sign mobile"
      "interior interior" "photozone photozone" "cards holders" "mount mount";
  }
}
@media (max-width: 820px) {
  .nav__phone { display: none; }
}
@media (max-width: 560px) {
  .catalog { grid-template-columns: 1fr; grid-template-areas: none; grid-auto-rows: auto; }
  .cat { grid-area: auto !important; }
  .cat__scene { min-height: 210px; }
  .cat--mount { flex-direction: column; }
  .cat--mount .cat__body { border-radius: 0 0 var(--r-lg) var(--r-lg); border-left: 1px solid var(--line); border-top: 0; padding: 18px 22px 22px; }
}

/* демо-макеты в каталоге */
.pv-demo { display: grid; place-items: center; text-align: center; color: #fff; font: 800 clamp(12px, 1.6vw, 22px)/1.05 var(--display); letter-spacing: -0.03em; padding: 8%; }
.pv-demo--sticker { background: radial-gradient(circle at 50% 50%, #fff 0 22%, transparent 23%), conic-gradient(from 20deg, #ff8a3d, #ffcf3a, #4F95EE, #4B2EBF, #ff8a3d); }
.pv-demo--banner { background: linear-gradient(135deg, #e8343f, #ff8a3d); }
.pv-demo--film { background: linear-gradient(160deg, rgba(75,46,191,.85), rgba(79,149,238,.85)); }
.pv-demo--lightbox { background: #fff; color: #11a14f; }
.pv-demo--sign { background: #1f4fbf; font-size: clamp(22px, 3vw, 40px); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 6px #1f4fbf; }
.pv-demo--mobile { background: linear-gradient(180deg, var(--violet) 0 55%, #fff 55%); }
.pv-demo--mobile::before { content: ""; width: 46%; aspect-ratio: 1; background: url("assets/logo-mark.svg") center / contain no-repeat; filter: brightness(0) invert(1); align-self: start; margin-top: 18%; }
.pv-demo--interior { background: linear-gradient(180deg, #f6c6a2 0%, #f28f6b 38%, #6b3fa0 70%, #2b1c55 100%); }
.pv-demo--interior::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: linear-gradient(170deg, transparent 40%, #1d143f 41%); }
.pv-demo--photozone { background: radial-gradient(circle at 20% 25%, #ffd6e6 0 10%, transparent 11%), radial-gradient(circle at 82% 30%, #c9b8ff 0 12%, transparent 13%), linear-gradient(160deg, #f7a8c8, #9b7ff0); font-weight: 700; }
.pv-demo--cards { background: #fff url("assets/logo-mark.svg") 14% 50% / 24% no-repeat; }
.pv-demo--holders { background: #fff url("assets/logo-mark.svg") 50% 40% / 30% no-repeat; }
.pv-demo--mount { background: linear-gradient(135deg, #0f7a4b, #19b46c); }

/* ---------- предпросмотр макета на изделии ---------- */
.stage-wrap { position: relative; border-radius: var(--r-lg); }
.stage-wrap .stage { height: clamp(420px, 44vw, 640px); }
.stage-wrap.is-over .stage { outline: 3px dashed var(--violet); outline-offset: -10px; }
.pv-art--contain { background-size: contain; background-color: #fff; }

.stage__upload {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 5;
  display: flex; align-items: center; gap: 14px; text-align: left;
  width: min(420px, calc(100% - 32px)); padding: 14px 18px 14px 14px;
  border: 0; border-radius: 18px; cursor: pointer; font: inherit; color: var(--ink);
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px -16px rgba(20,15,46,.45);
  transition: transform .2s ease, box-shadow .2s ease;
}
.stage__upload:hover { transform: translateX(-50%) translateY(-2px); box-shadow: 0 22px 44px -16px rgba(20,15,46,.5); }
.stage__upload svg { width: 44px; height: 44px; flex: none; padding: 10px; border-radius: 12px; background: var(--violet); fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stage__upload span { font-size: 14px; color: var(--muted); line-height: 1.35; }
.stage__upload b { display: block; font-size: 16px; color: var(--ink); }
.stage-wrap.has-art .stage__upload { display: none; }

.stage__tools {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 5;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.stage__tools[hidden] { display: none; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.94); box-shadow: 0 8px 20px -10px rgba(20,15,46,.4); }
.seg button { border: 0; background: none; padding: 8px 14px; border-radius: 999px; font: 600 13px/1 var(--text); color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.stage__pics { display: flex; gap: 6px; }
.stage__pics button { width: 40px; height: 40px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid #fff; cursor: pointer; box-shadow: 0 6px 14px -8px rgba(0,0,0,.5); background: #fff; }
.stage__pics button[aria-pressed="true"] { border-color: var(--violet); }
.stage__pics img { width: 100%; height: 100%; object-fit: cover; }
.stage__replace { margin-left: auto; border: 0; padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.94); font: 600 13px/1 var(--text); cursor: pointer; box-shadow: 0 8px 20px -10px rgba(20,15,46,.4); }
.stage__replace:hover, .seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"]:hover { color: #fff; }

/* размеры не должны прятаться под панелью */
.stage-wrap .dim--w { bottom: -30px; }

@media (max-width: 1024px) {
  .stage-wrap { order: -2; position: sticky; top: 76px; z-index: 6; }
  .stage-wrap .stage { height: clamp(260px, 62vw, 420px); }
}
@media (max-width: 560px) {
  .stage-wrap .stage { height: 250px; }
  .stage__upload { bottom: 12px; padding: 10px 12px 10px 10px; }
  .stage__upload svg { width: 36px; height: 36px; padding: 8px; }
  .stage__upload span { font-size: 13px; }
  .stage__tools { left: 10px; right: 10px; bottom: 10px; }
}

/* главная работа: по центру над сеткой */
.work--feature { column-span: all; max-width: 760px; margin: 0 auto 16px; }

/* шапка: на средних экранах телефон прячется, ниже 1100 px меню сворачивается */
@media (max-width: 1240px) {
  .nav__phone { display: none; }
}
@media (max-width: 1100px) {
  .nav__links { position: fixed; inset: 72px 0 auto; flex-direction: column; gap: 0; background: #fff; color: var(--ink); padding: 8px var(--pad) 20px; box-shadow: 0 20px 30px -20px rgba(0,0,0,.3); transform: translateY(-10px); opacity: 0; pointer-events: none; transition: .2s ease; }
  .nav__links a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); background: none; }
  .nav.is-menu .nav__links { transform: none; opacity: 1; pointer-events: auto; }
  .nav.is-menu { background: #fff; color: var(--ink); }
  .nav__burger { display: grid; gap: 6px; margin-left: auto; width: 44px; height: 44px; place-content: center; background: none; border: 0; color: inherit; cursor: pointer; }
  .nav__burger span { width: 24px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s; }
  .nav.is-menu .nav__burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-menu .nav__burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav__in > .btn { margin-left: auto; }
  .nav__in > .btn + .nav__burger { margin-left: 0; }
}
@media (max-width: 820px) {
  /* кнопка заявки на телефоне скрыта, бургер прижимаем вправо */
  .nav__in > .btn + .nav__burger { margin-left: auto; }
}

/* Safari не растягивает элементы внутри <button> с flex — задаём ширину явно */
.cat__scene, .cat__body { display: grid; width: 100%; align-self: stretch; }
.cat--mount .cat__scene, .cat--mount .cat__body { width: auto; }
@media (max-width: 560px) {
  .cat--mount .cat__scene, .cat--mount .cat__body { width: 100%; }
}
.cat .cat__scene { border-radius: 0; }

/* атрибут hidden должен побеждать display у полей */
[hidden] { display: none !important; }

/* статус загрузки макета */
.files .meta { display: grid; gap: 2px; }
.files li.is-done small { color: #138a43; }
.files li.is-error small { color: #c62f4b; }
.files .bar { display: block; height: 4px; border-radius: 4px; background: #dcdcec; overflow: hidden; margin-top: 4px; }
.files .bar::before { content: ""; display: block; height: 100%; width: var(--p, 0%); background: var(--violet); transition: width .2s ease; }
button[type="submit"]:disabled { opacity: .7; cursor: progress; transform: none; }
.files .bar--run::before { width: 35%; animation: barRun 1.1s ease-in-out infinite; }
@keyframes barRun { from { transform: translateX(-100%); } to { transform: translateX(290%); } }

/* ---------- обрезка макета ---------- */
.stage__replace--plain { margin-left: 0; }
.crop { border: 0; padding: 0; border-radius: var(--r-lg); width: min(960px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow: hidden; color: var(--ink); }
.crop[open] { display: flex; flex-direction: column; animation: pop .2s ease; }
.crop::backdrop { background: rgba(20, 15, 46, .7); backdrop-filter: blur(4px); }
.crop__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.crop__head h3 { font-size: 20px; }
.crop__x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--mist); font-size: 24px; cursor: pointer; }
.crop__area { flex: 1 1 auto; min-height: 240px; height: min(62dvh, 560px); display: grid; place-items: center; background: #1b1735 repeating-conic-gradient(#221d42 0 25%, #1b1735 0 50%) 0 0 / 24px 24px; padding: 20px; touch-action: none; }
.crop__stage { position: relative; line-height: 0; }
.crop__img { display: block; }
.crop__box { position: absolute; box-shadow: 0 0 0 9999px rgba(10, 8, 25, .62); outline: 2px solid #fff; cursor: move; touch-action: none; }
.crop__box::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  --l: rgba(255,255,255,.45);
  background:
    linear-gradient(90deg, transparent calc(33.33% - 1px), var(--l) 0 calc(33.33% + 1px), transparent 0 calc(66.66% - 1px), var(--l) 0 calc(66.66% + 1px), transparent 0),
    linear-gradient(0deg, transparent calc(33.33% - 1px), var(--l) 0 calc(33.33% + 1px), transparent 0 calc(66.66% - 1px), var(--l) 0 calc(66.66% + 1px), transparent 0); }
.crop__box i { position: absolute; width: 22px; height: 22px; background: #fff; border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,.4); touch-action: none; }
.crop__box i[data-h="nw"] { left: -11px; top: -11px; cursor: nwse-resize; }
.crop__box i[data-h="ne"] { right: -11px; top: -11px; cursor: nesw-resize; }
.crop__box i[data-h="sw"] { left: -11px; bottom: -11px; cursor: nesw-resize; }
.crop__box i[data-h="se"] { right: -11px; bottom: -11px; cursor: nwse-resize; }
.crop__bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--line); }
.crop__bar .seg { background: var(--mist); box-shadow: none; }
.crop__spacer { flex: 1; }
.crop__bar .btn { min-height: 44px; }
@media (max-width: 560px) {
  .crop__area { height: 52dvh; padding: 14px; }
  .crop__bar { padding: 12px; }
  .crop__bar .seg { width: 100%; }
  .crop__bar .seg button { flex: 1; }
  .crop__bar .btn { width: 100%; }
}

/* двусторонние визитки: две стороны рядом */
.pv-sides { position: relative; z-index: 1; display: flex; gap: clamp(14px, 3vw, 32px); align-items: center; justify-content: center; flex-wrap: wrap; padding: 0 12px; }
.pv-side { margin: 0; display: grid; gap: 10px; justify-items: center; }
.pv-side figcaption { font-size: 13px; font-weight: 600; color: var(--muted); }
.pv-card--flat { position: relative; inset: auto; transform: none; }
.pv-side:first-child .pv-card--flat { transform: rotate(-3deg); }
.pv-side:last-child .pv-card--flat { transform: rotate(2deg); }
.pv-card--flat .pv-art--empty { font-size: 13px; }
@media (max-width: 560px) { .pv-sides { gap: 10px; } .pv-side figcaption { font-size: 12px; } }

/* слоты загрузки сторон визитки */
.sides-up { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.side-slot { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 12px; padding: 10px; border: 2px dashed #cfd0e3; border-radius: 14px; background: #fff; cursor: pointer; text-align: left; font: inherit; color: inherit; transition: border-color .2s, background-color .2s; }
.side-slot:hover { border-color: var(--violet); }
.side-slot.is-set { border-style: solid; border-color: var(--line); }
.side-slot__thumb { width: 56px; aspect-ratio: 90 / 50; border-radius: 6px; background: var(--mist) center / cover no-repeat; display: grid; place-items: center; color: var(--violet); font-size: 22px; font-weight: 600; }
.side-slot b { display: block; font-size: 14px; }
.side-slot small { color: var(--muted); font-size: 12px; }
@media (max-width: 420px) { .sides-up { grid-template-columns: 1fr; } }
/* телефон: кнопки под предпросмотром в одну строку и не закрывают изделие */
@media (max-width: 560px) {
  .stage__tools { gap: 6px; flex-wrap: nowrap; }
  .seg { padding: 3px; }
  .seg button { padding: 7px 10px; font-size: 12px; }
  .stage__replace { padding: 8px 11px; font-size: 12px; }
  .stage__pics button { width: 32px; height: 32px; }
  .stage-wrap .dim--w { display: none; }
}
