/* LUMI — компоненты сайта. Цвета, шрифты и размеры берутся только из переменных theme.css. */

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html.has-modal { overflow: hidden; }
body {
  margin: 0; background: var(--c-bg); color: var(--c-ink);
  font: 400 var(--fs-body)/var(--lh-body) var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--c-ink-3); }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
main { display: block; outline: none; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--c-ink); color: #fff; padding: 10px 14px; border-radius: var(--r-s); }
.skip-link:focus { top: 8px; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.star { width: 1em; height: 1em; color: var(--c-brand); flex: none; }

/* ---------- Кнопки ---------- */
.btn {
  --b-bg: transparent; --b-ink: var(--c-ink); --b-line: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.25em; border-radius: var(--r-pill);
  background: var(--b-bg); color: var(--b-ink); border: 1.5px solid var(--b-line);
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center; white-space: nowrap;
  cursor: pointer; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn--primary { --b-bg: var(--c-accent); --b-ink: var(--c-accent-ink); }
.btn--primary:hover { --b-bg: var(--c-accent-hover); }
.btn--ghost { --b-line: var(--c-line-strong); background: var(--c-surface); }
.btn--ghost:hover { --b-line: var(--c-ink); }
.btn--quiet { --b-ink: var(--c-accent); padding-inline: .6em; }
.btn--quiet:hover { background: var(--c-accent-soft); }
.btn--dark { --b-bg: var(--c-ink); --b-ink: #fff; }
.btn--dark:hover { --b-bg: #000; }
.btn--light { --b-bg: #fff; --b-ink: var(--c-dark); }
.btn--light:hover { --b-bg: var(--c-accent-soft); }
.btn--ghost-light { --b-line: rgba(255,255,255,.4); --b-ink: #fff; }
.btn--ghost-light:hover { --b-line: #fff; }
.btn--sm { min-height: 44px; padding: .5em 1em; font-size: .9375rem; }
.btn--lg { min-height: 56px; padding: .85em 1.6em; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-btn {
  display: inline-flex; align-items: center; gap: .35em; background: none; border: 0; padding: .25em 0; min-height: 32px;
  color: var(--c-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.link-btn:hover { color: var(--c-accent-hover); }

/* ---------- Шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--c-bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--c-line); }
.header__inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.logo { display: inline-flex; flex: none; border-radius: 6px; }
.logo img { height: 40px; width: auto; }
.header__nav { flex: 1; }
.header__nav ul { display: flex; gap: 2px; flex-wrap: nowrap; }
.header__nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--r-pill); text-decoration: none; font-weight: 500; font-size: .9375rem; color: var(--c-ink-2); white-space: nowrap; }
.header__nav a:hover { color: var(--c-ink); background: var(--c-bg-alt); }
.header__tools { display: flex; gap: 6px; }
.header__actions { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.header__menu { display: none; }
.mini-select select {
  appearance: none; -webkit-appearance: none; min-height: 40px; padding: 0 28px 0 12px; border-radius: var(--r-pill);
  border: 1px solid var(--c-line); background: var(--c-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F4C63' stroke-width='2'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 8px center / 14px;
  font-size: .875rem; font-weight: 500; cursor: pointer; max-width: 150px;
}
.notice-bar { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 0; padding: 8px var(--gutter); background: var(--c-accent-soft); color: var(--c-ink); font-size: .875rem; text-align: center; }
.notice-bar--warn { background: var(--c-warn-soft); color: var(--c-warn); }

@media (max-width: 1420px) {
  .header__nav { display: none; }
  .header__menu { display: inline-flex; }
}
@media (max-width: 760px) {
  .header__tools, .header__ask, .header__order { display: none; }
  .logo img { height: 34px; }
}


/* ---------- Меню (выезжающая панель) ---------- */
dialog { color: var(--c-ink); }
.drawer {
  margin: 0 0 0 auto; height: 100%; max-height: 100dvh; width: min(420px, 100%); max-width: 100%;
  border: 0; padding: 20px var(--gutter) 32px; background: var(--c-surface); overflow-y: auto;
}
.drawer::backdrop, .sheet::backdrop { background: rgba(20, 18, 40, .5); }
.drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.drawer__head img { height: 36px; width: auto; }
.drawer__nav a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--c-line); text-decoration: none; font-size: 1.125rem; font-weight: 500; }
.drawer__actions { display: grid; gap: 10px; margin: 24px 0; }
.drawer__tools { display: flex; gap: 8px; flex-wrap: wrap; }
.drawer__tools .mini-select select, .footer__tools .mini-select select { max-width: 100%; min-height: 44px; }
.drawer__hours { display: flex; gap: 8px; align-items: center; margin-top: 20px; color: var(--c-ink-2); font-size: .9375rem; }

/* ---------- Нижняя панель на телефоне ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom)); }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 6px; position: fixed; z-index: 45; left: 0; right: 0; bottom: 0;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--c-surface); border-top: 1px solid var(--c-line);
    box-shadow: 0 -6px 20px rgba(27,26,43,.06);
  }
  .mobile-bar button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 48px;
    border: 0; border-radius: var(--r-m); background: var(--c-bg-alt); font-size: .75rem; font-weight: 600; cursor: pointer; padding: 4px;
  }
  .mobile-bar button.is-primary { background: var(--c-accent); color: var(--c-accent-ink); flex-direction: row; gap: 6px; font-size: .9375rem; }
  html.is-typing .mobile-bar { display: none; }
  html.is-typing body { padding-bottom: 0; }
}

/* ---------- Общие секции ---------- */
.section { padding-block: var(--section-y); }
.section--tight { padding-top: 24px; }
.section--alt { background: var(--c-bg-alt); }
.section--dark { background: var(--c-dark); color: var(--c-dark-ink); }
.sec-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-num { font: 600 .8125rem/1 var(--f-body); letter-spacing: .14em; color: var(--c-brand); margin-bottom: 14px; }
.sec-title, .page-title { font: var(--fw-display) var(--fs-h2)/var(--lh-tight) var(--f-display); letter-spacing: var(--ls-display); text-wrap: balance; }
.sec-title--sm { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); margin-bottom: 28px; }
.page-title { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.6rem); }
.sec-lead { margin-top: 16px; font-size: var(--fs-lead); color: var(--c-ink-2); max-width: 680px; text-wrap: pretty; }
.section--dark .sec-lead { color: var(--c-dark-ink-2); }
.sec-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 36px; }
.sample-note { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 20px; padding: 10px 14px; border-radius: var(--r-m); background: var(--c-warn-soft); color: var(--c-warn); font-size: .875rem; }
.sample-note .ico { margin-top: 2px; }
.panel { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-l); padding: clamp(20px, 3vw, 28px); }
.panel--plain { background: transparent; }
.panel--accent { background: var(--c-accent-soft); border-color: transparent; }
.panel__title { display: flex; gap: 8px; align-items: center; font: 600 var(--fs-h3)/1.25 var(--f-body); margin-bottom: 14px; }
.panel__note { margin-top: 14px; font-size: .9375rem; }
.checklist li, .dotlist li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; }
.checklist .ico { color: var(--c-ok); margin-top: 3px; }
.dotlist li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c-brand); margin-top: .6em; flex: none; }
.numlist { counter-reset: n; display: grid; gap: 10px; }
.numlist li { counter-increment: n; display: flex; gap: 12px; }
.numlist li::before { content: counter(n); flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--c-ink); color: #fff; font-size: .8125rem; font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 12px; border-radius: var(--r-pill); background: var(--c-bg-alt); font-size: .9375rem; }
.tag { display: inline-flex; padding: 4px 10px; border-radius: var(--r-pill); background: var(--c-ok-soft); color: var(--c-ok); font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.tagline { display: flex; gap: 8px; align-items: center; margin-top: 14px; color: var(--c-accent); font-weight: 600; }
.pill { display: inline-block; padding: 2px 8px; border-radius: var(--r-pill); background: var(--c-bg-alt); font-size: .8125rem; white-space: nowrap; }
.pill--ok { background: var(--c-ok-soft); color: var(--c-ok); }
.badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: var(--r-pill); font-size: .75rem; font-weight: 600; }
.badge--sample { background: rgba(255,255,255,.92); color: var(--c-warn); box-shadow: var(--shadow-1); }

/* ---------- Первый экран ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 8vw, 112px); position: relative; overflow: hidden; }
@media (min-width: 901px) {
  .hero { min-height: calc(100svh - var(--header-h)); display: grid; align-items: center; padding-block: clamp(16px, 4vh, 48px); }
  .hero .hero__title { font-size: clamp(2.2rem, min(4.6vw, 8.2vh), 4.8rem); margin-top: clamp(8px, 1.6vh, 18px); }
  .hero .hero__lead { margin-top: clamp(10px, 2vh, 22px); font-size: clamp(1rem, 2.4vh, 1.25rem); }
  .hero .hero__prices, .hero .hero__actions { margin-top: clamp(12px, 2.6vh, 28px); }
  .hero .hero__points { margin-top: clamp(12px, 2.4vh, 28px); display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9375rem; }
  .hero .hero__visual { max-width: min(100%, calc((100svh - var(--header-h)) * 1.05)); justify-self: end; width: 100%; }
}
@media (min-width: 901px) and (max-height: 700px) { .hero .hero__points { display: none; } .hero .price-chip { padding: 8px 14px; } .hero .price-chip strong { font-size: 1.25rem; } }
.hero::before { content: ''; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(closest-side, var(--c-accent-soft), transparent 70%); z-index: -1; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { font: var(--fw-display) var(--fs-hero)/1.02 var(--f-display); letter-spacing: -0.025em; margin-top: 18px; text-wrap: balance; }
.hero__lead { margin-top: 22px; font-size: var(--fs-lead); color: var(--c-ink-2); max-width: 560px; }
.hero__prices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.price-chip { display: inline-flex; flex-direction: column; gap: 2px; padding: 12px 18px; border-radius: var(--r-m); background: var(--c-surface); border: 1px solid var(--c-line); text-decoration: none; min-width: 170px; }
.price-chip span { font-size: .875rem; color: var(--c-ink-2); }
.price-chip strong { font: 600 1.5rem/1.2 var(--f-display); }
.price-chip:hover { border-color: var(--c-ink); }
.price-chip--alt { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.price-chip--alt span { color: rgba(255,255,255,.75); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__points { display: grid; gap: 8px; margin-top: 28px; color: var(--c-ink-2); }
.hero__points li { display: flex; gap: 10px; align-items: center; }
.hero__points .ico { color: var(--c-accent); }
.hero__visual { position: relative; }
.devices { position: relative; padding: 0 0 8% 0; }
.device--laptop { width: 92%; }
.device--laptop .device__screen { border: 10px solid #1d1c2c; border-bottom-width: 14px; border-radius: 14px 14px 0 0; background: #000; overflow: hidden; }
.device__base { height: 14px; margin: 0 -5%; background: linear-gradient(#d9d7e2, #a9a6b8); border-radius: 0 0 14px 14px; }
.device--phone { position: absolute; right: 0; bottom: 0; width: 30%; min-width: 120px; }
.device--phone .device__screen { border: 7px solid #1d1c2c; border-radius: 26px; overflow: hidden; background: #000; box-shadow: var(--shadow-3); }
.fit { position: relative; overflow: hidden; }
.fit iframe, .viewer__frame iframe { max-width: none; }
.fit iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; pointer-events: none; }
.hero__caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 18px; color: var(--c-ink-2); font-size: .9375rem; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero .hero__visual { max-width: 620px; }
}
@media (max-width: 480px) {
  .hero__actions .btn { width: 100%; }
  .price-chip { flex: 1; min-width: 140px; }
}

/* ---------- События ---------- */
.events { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .events { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .events { grid-template-columns: minmax(0, 1fr); } }
.event--wide { flex-direction: row; align-items: center; gap: 18px; margin-top: 14px; background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.event--wide .event__icon { background: rgba(255,255,255,.12); color: #fff; flex: none; }
.event--wide .event__empty { color: rgba(255,255,255,.75); margin-top: 4px; }
.event__wide-text { flex: 1; }
.event--wide .btn--primary { --b-bg: #fff; --b-ink: var(--c-ink); flex: none; }
@media (max-width: 640px) { .event--wide { flex-direction: column; align-items: flex-start; } .event--wide .btn { width: 100%; } }
.event { display: flex; flex-direction: column; gap: 8px; padding: 18px 22px; border-radius: var(--r-l); background: var(--c-surface); border: 1px solid var(--c-line); }
.event__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--c-accent-soft); color: var(--c-accent); }
.event__icon svg { width: 24px; height: 24px; }
.event--empty .event__icon { background: var(--c-bg-alt); color: var(--c-ink-2); }
.event__title { font: 600 1.1875rem/1.25 var(--f-body); }
.event__sub { display: flex; flex-wrap: wrap; gap: 6px; }
.event__empty { color: var(--c-ink-3); font-size: .9375rem; }
.event__link { margin-top: auto; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 44px; padding: 0; background: none; border: 0; color: var(--c-accent); font-weight: 600; text-decoration: none; cursor: pointer; text-align: left; }
.event__link:hover { text-decoration: underline; }
.event__count { color: var(--c-ink-3); font-size: .9375rem; margin-top: auto; }
.event__count + .event__link { margin-top: 0; }
.nowrap { white-space: nowrap; }
@media (max-width: 400px) { .hero__title .nowrap { white-space: normal; } }

/* ---------- Чипы ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--sub { margin-top: 10px; padding-left: 12px; border-left: 2px solid var(--c-line); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill);
  border: 1.5px solid var(--c-line-strong); background: var(--c-surface); font-weight: 500; font-size: .9375rem; text-decoration: none; cursor: pointer;
}
.chip:hover { border-color: var(--c-ink); }
.chip.is-on { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.chip.is-on .chip__n { background: rgba(255,255,255,.18); color: #fff; }
.chip[disabled] { opacity: .45; cursor: not-allowed; }
.chip--sm { min-height: 40px; padding: 0 12px; font-size: .875rem; }
.chip--remove { background: var(--c-accent-soft); border-color: transparent; }
.chip--remove .ico { width: 14px; height: 14px; }
.chip__n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--c-bg-alt); color: var(--c-ink-2); font-size: .75rem; font-weight: 600; }

/* ---------- Карточки дизайнов ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(16px, 2vw, 24px); }
.card { position: relative; display: flex; flex-direction: column; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-l); overflow: hidden; transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); }
.card:hover { box-shadow: var(--shadow-2); }
.card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-bg-alt); }
.card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.card__event { font-size: .8125rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--c-brand); }
.card__title { font: 600 1.3125rem/1.25 var(--f-body); }
.card__title a { text-decoration: none; }
.card__title a:hover { text-decoration: underline; }
.card__summary { color: var(--c-ink-2); font-size: .9375rem; }
.card__tags { display: flex; flex-direction: column; gap: 4px; font-size: .875rem; color: var(--c-ink-2); }
.card__tags li { display: flex; gap: 6px; align-items: center; }
.card__tags .ico { color: var(--c-accent); }
.card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; }
.card__actions { display: flex; gap: 6px; flex-wrap: wrap; }
.price-tag { font: 600 1.375rem/1 var(--f-display); }

/* Обложка-образец из темы дизайна */
.poster {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center;
  background: var(--p-bg); color: var(--p-ink); overflow: hidden;
}
.poster--split { align-items: flex-start; text-align: left; padding-left: 28px; }
.poster__eyebrow { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--p-muted); position: relative; }
.poster__title { font: 600 clamp(1.4rem, 1rem + 1.6vw, 2rem)/1.05 var(--p-display); position: relative; max-width: 90%; }
.poster__date { font-size: .875rem; color: var(--p-muted); position: relative; }
.poster__btn { margin-top: 6px; padding: 6px 14px; border-radius: 999px; background: var(--p-accent); color: var(--p-bg); font-size: .75rem; font-weight: 600; position: relative; }
.poster__orn { position: absolute; inset: 0; pointer-events: none; }
.poster--stars .poster__orn { background: radial-gradient(1.5px 1.5px at 20% 30%, var(--p-accent), transparent), radial-gradient(1px 1px at 70% 20%, var(--p-ink), transparent), radial-gradient(2px 2px at 85% 70%, var(--p-accent), transparent), radial-gradient(1px 1px at 40% 80%, var(--p-ink), transparent), radial-gradient(1.5px 1.5px at 60% 55%, var(--p-accent), transparent); }
.poster--snow .poster__orn { background: radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--p-accent) 25%, transparent) 0 18%, transparent 19%), radial-gradient(circle at 5% 95%, color-mix(in srgb, var(--p-accent) 15%, transparent) 0 22%, transparent 23%); }
.poster--lines .poster__orn { background: repeating-linear-gradient(90deg, transparent 0 46px, color-mix(in srgb, var(--p-ink) 8%, transparent) 46px 47px); border-left: 6px solid var(--p-accent); }
.poster--confetti .poster__orn { background: radial-gradient(circle at 12% 20%, var(--p-accent) 0 6px, transparent 7px), radial-gradient(circle at 85% 18%, #2EC5FF 0 8px, transparent 9px), radial-gradient(circle at 80% 85%, var(--p-accent) 0 5px, transparent 6px), radial-gradient(circle at 18% 82%, var(--p-ink) 0 4px, transparent 5px); }
.poster--planets .poster__orn { background: radial-gradient(circle at 85% 20%, var(--p-accent) 0 22px, transparent 23px), radial-gradient(circle at 12% 85%, #7E6BFF 0 34px, transparent 35px), radial-gradient(1.5px 1.5px at 30% 25%, #fff, transparent), radial-gradient(1.5px 1.5px at 60% 75%, #fff, transparent); }
.poster--leaves .poster__orn { background: radial-gradient(ellipse 40px 18px at 10% 15%, color-mix(in srgb, #6E9B5C 50%, transparent) 98%, transparent), radial-gradient(ellipse 50px 22px at 92% 88%, color-mix(in srgb, var(--p-accent) 40%, transparent) 98%, transparent); }
.poster--frame .poster__orn { inset: 12px; border: 1px solid color-mix(in srgb, var(--p-accent) 60%, transparent); outline: 1px solid color-mix(in srgb, var(--p-accent) 30%, transparent); outline-offset: 4px; }
.poster--blobs .poster__orn { background: radial-gradient(circle at 90% 15%, color-mix(in srgb, var(--p-accent) 30%, transparent) 0 30%, transparent 31%), radial-gradient(circle at 0% 100%, color-mix(in srgb, #FF9EC7 40%, transparent) 0 30%, transparent 31%); }
.poster--hearts .poster__orn { background: radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--p-accent) 30%, transparent) 0 14px, transparent 15px), radial-gradient(circle at 88% 78%, color-mix(in srgb, var(--p-accent) 25%, transparent) 0 22px, transparent 23px); }
.poster--grid .poster__orn { background-image: linear-gradient(color-mix(in srgb, var(--p-ink) 7%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--p-ink) 7%, transparent) 1px, transparent 1px); background-size: 24px 24px; }
.poster--mini { padding: 8px; gap: 3px; }
.poster--mini .poster__eyebrow, .poster--mini .poster__btn, .poster--mini .poster__date { display: none; }
.poster--mini .poster__title { font-size: .8rem; }

/* ---------- Гости и анкета ---------- */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 32px; }
.flow__step { position: relative; padding: 20px; border-radius: var(--r-l); background: var(--c-surface); border: 1px solid var(--c-line); }
.flow__step h3 { font: 600 1.0625rem/1.3 var(--f-body); margin: 12px 0 6px; }
.flow__step p { color: var(--c-ink-2); font-size: .9375rem; }
.flow__n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--c-accent); color: #fff; font-weight: 700; }
@media (max-width: 1000px) {
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow__step { display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; padding: 16px; }
  .flow__step h3 { margin: 4px 0 2px; }
  .flow__step p { grid-column: 2; }
}
.guests__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 20px; align-items: start; }
@media (max-width: 1000px) { .guests__grid { grid-template-columns: minmax(0, 1fr); } }
.demo-flag { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; color: var(--c-warn); font-size: .875rem; }
.demo { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 20px; }
@media (max-width: 640px) { .demo { grid-template-columns: minmax(0, 1fr); } }
.demo__form { display: grid; gap: 8px; align-content: start; padding: 16px; border-radius: var(--r-m); background: var(--c-surface-2); border: 1px dashed var(--c-line-strong); }
.demo__label { font-weight: 700; font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-ink-2); margin-bottom: 6px; }
.demo__form input[type=text], .demo__form select, .demo__nums select { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--c-line-strong); border-radius: var(--r-s); background: var(--c-surface); }
.demo__nums { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo__nums label { display: grid; gap: 4px; font-size: .875rem; font-weight: 600; }
.mini-seg { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mini-seg legend { width: 100%; padding: 0; margin-bottom: 4px; }
.mini-seg label { flex: 1; }
.mini-seg input { position: absolute; opacity: 0; }
.mini-seg span { display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: var(--r-s); border: 1px solid var(--c-line-strong); background: var(--c-surface); font-size: .875rem; cursor: pointer; }
.mini-seg input:checked + span { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.mini-seg input:focus-visible + span { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--c-line); border-radius: var(--r-m); background: var(--c-surface); }
.table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.table thead th { background: var(--c-surface-2); font-size: .8125rem; color: var(--c-ink-2); font-weight: 600; white-space: nowrap; }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; white-space: nowrap; font-weight: 600; }
.table tr.is-new td { background: var(--c-ok-soft); }
.totals { margin-top: 14px; }
.totals dl { display: flex; flex-wrap: wrap; gap: 8px; }
.totals dl > div { padding: 8px 12px; border-radius: var(--r-m); background: var(--c-surface); border: 1px solid var(--c-line); }
.totals dt { font-size: .75rem; color: var(--c-ink-2); }
.totals dd { font: 600 1.25rem/1.2 var(--f-display); }

/* ---------- Цены ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.plan { display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-l); background: var(--c-surface); border: 1px solid var(--c-line); }
.plan--custom { background: var(--c-surface); border: 2px solid var(--c-ink); }
.plan__title { font: 600 1.25rem/1.2 var(--f-body); }
.plan__price { font: var(--fw-display) clamp(2.4rem, 2rem + 2vw, 3.4rem)/1 var(--f-display); letter-spacing: -0.02em; }
.plan__rows { display: grid; gap: 0; flex: 1; }
.plan__rows > div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--c-line); }
.plan__rows dt { color: var(--c-ink-3); font-size: .9375rem; }
@media (max-width: 420px) { .plan__rows > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
@media (max-width: 1000px) { .terms { grid-template-columns: minmax(0, 1fr); } }
.addons-table, .qa { border-radius: var(--r-l); background: var(--c-surface); border: 1px solid var(--c-line); }
.addons-table { margin-top: 20px; padding: 0 clamp(16px, 3vw, 28px); }
.addons-table[open] { padding-bottom: 24px; }
.addons-table summary, .qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none; }
.addons-table summary::-webkit-details-marker, .qa summary::-webkit-details-marker { display: none; }
.addons-table summary > span { display: grid; gap: 4px; }
.addons-table summary strong { font-size: 1.125rem; }
.addons-table summary small { color: var(--c-ink-2); font-size: .9375rem; }
.summary__ico { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--c-bg-alt); transition: transform var(--dur) var(--ease); }
details[open] > summary .summary__ico { transform: rotate(45deg); }

/* ---------- Индивидуальный ---------- */
.custom { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .custom { grid-template-columns: minmax(0, 1fr); } }
.custom .sec-num { color: #E3B98F; }
.custom__price { font: var(--fw-display) clamp(2.4rem, 2rem + 2vw, 3.4rem)/1 var(--f-display); }
.custom__note { margin-top: 12px; color: var(--c-dark-ink-2); max-width: 520px; }
.custom__opts { display: grid; gap: 14px; }
.custom__opts li { padding: 22px 24px; border-radius: var(--r-l); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.custom__opts h3 { font: 600 1.1875rem/1.3 var(--f-body); margin: 10px 0 6px; }
.custom__opts p { color: var(--c-dark-ink-2); }
.custom__n .star { width: 22px; height: 22px; color: #E3B98F; }

/* ---------- Шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: s; }
@media (max-width: 1000px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--r-l); background: var(--c-surface); border: 1px solid var(--c-line); }
@media (max-width: 1000px) { .step { flex-direction: row; } }
.step__n { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--c-ink); font: 600 1.125rem/1 var(--f-display); }
.step h3 { font: 600 1.0625rem/1.3 var(--f-body); margin-bottom: 6px; }
.step p { color: var(--c-ink-2); font-size: .9375rem; }

/* ---------- О LUMI ---------- */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .about { grid-template-columns: minmax(0, 1fr); } }
.about__mark { display: grid; place-items: center; padding: clamp(32px, 6vw, 64px); border-radius: var(--r-l); background: var(--c-surface); border: 1px solid var(--c-line); }
.about__mark img { width: 100%; max-width: 320px; height: auto; }
.about__points { display: grid; gap: 18px; }
.about__points h3 { font: 600 1.125rem/1.3 var(--f-body); }
.about__points p { color: var(--c-ink-2); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .faq { grid-template-columns: minmax(0, 1fr); } }
.faq__side { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 900px) { .faq__side { position: static; } }
.faq__hint { display: flex; gap: 8px; align-items: center; margin-top: 16px; color: var(--c-ink-2); font-size: .9375rem; }
.faq__list { display: grid; gap: 10px; }
.qa { padding: 0 20px; }
.qa summary { font-weight: 600; font-size: 1.0625rem; }
.qa__a { padding-bottom: 20px; color: var(--c-ink-2); max-width: 68ch; }

/* ---------- Финальный призыв ---------- */
.section--cta { background: var(--c-ink); color: #fff; }
.cta { text-align: center; display: grid; justify-items: center; }
.cta .sec-lead { color: rgba(255,255,255,.75); margin-inline: auto; }
.cta__star { width: 44px; height: 44px; color: #E3B98F; margin-bottom: 20px; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.section--cta .btn--primary { --b-bg: #fff; --b-ink: var(--c-ink); }
.section--cta .btn--primary:hover { --b-bg: var(--c-accent-soft); }
.section--cta .btn--ghost { background: transparent; --b-ink: #fff; --b-line: rgba(255,255,255,.4); }
.cta__hours { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 24px; color: rgba(255,255,255,.75); font-size: .9375rem; }
@media (max-width: 560px) { .cta__actions .btn { width: 100%; } }

/* ---------- Подвал ---------- */
.site-footer { background: var(--c-surface); border-top: 1px solid var(--c-line); padding-top: 56px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 1000px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: minmax(0, 1fr); } }
.footer__brand img { height: 56px; width: auto; }
.footer__brand p { margin-top: 14px; color: var(--c-ink-2); font-size: .9375rem; max-width: 340px; }
.footer__hours { display: block; }
.footer__hours .ico { display: inline; vertical-align: -3px; margin-right: 6px; }
.footer__h { font: 700 .8125rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--c-ink-3); margin-bottom: 14px; }
.footer__list { display: grid; gap: 4px; margin-bottom: 14px; }
.footer__list li { display: flex; align-items: center; gap: 8px; min-height: 36px; font-size: .9375rem; flex-wrap: wrap; }
.footer__list--plain li { min-height: 32px; }
.footer__list a { text-decoration: none; }
.footer__list a:hover { text-decoration: underline; }
.footer__label { font-weight: 600; }
.footer__tools { display: grid; gap: 8px; margin-bottom: 14px; }
.footer__legal li { display: block; color: var(--c-ink-2); font-size: .875rem; }
.footer__bottom { padding-block: 28px; margin-top: 40px; border-top: 1px solid var(--c-line); color: var(--c-ink-3); font-size: .875rem; }

/* ---------- Каталог ---------- */
.page-head { padding-top: clamp(28px, 4vw, 48px); }
.crumbs { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .9375rem; color: var(--c-ink-2); margin-bottom: 18px; }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.crumbs__back { font-weight: 600; text-decoration: none; color: var(--c-accent); }
.crumbs__back:hover { text-decoration: underline; }
.filters { display: grid; gap: 16px; padding: clamp(16px, 2.5vw, 24px); border-radius: var(--r-l); background: var(--c-surface); border: 1px solid var(--c-line); margin-bottom: 20px; }
.filter-label { font-weight: 700; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--c-ink-3); margin-bottom: 10px; }
.missing { margin-top: 12px; font-size: .9375rem; color: var(--c-ink-2); }
.more-panel { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--c-line); }
.fgroup { border: 0; margin: 0; padding: 0; }
.fgroup legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.fgroup__vals { display: flex; flex-wrap: wrap; gap: 6px; }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--c-accent); flex: none; margin: 0; }
.check--chip { position: relative; min-height: 0; }
.check--chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check--chip > span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: var(--r-pill); border: 1.5px solid var(--c-line-strong); background: var(--c-surface); font-size: .875rem; font-weight: 500; }
.check--chip input:checked + span { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.check--chip input:checked + span .chip__n { background: rgba(255,255,255,.18); color: #fff; }
.check--chip input:focus-visible + span { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.check--chip.is-dim > span { opacity: .55; }
.check--chip.is-included > span { background: var(--c-ok-soft); border-color: transparent; color: var(--c-ok); cursor: default; }
.check--chip.is-included em { font-style: normal; font-size: .75rem; opacity: .85; }
.active-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.active-bar__chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.empty { display: grid; justify-items: center; text-align: center; gap: 12px; padding: clamp(32px, 6vw, 64px) 20px; border-radius: var(--r-l); background: var(--c-surface); border: 1px dashed var(--c-line-strong); }
.empty__star { width: 36px; height: 36px; }
.empty__title { font: var(--fw-display) clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.2 var(--f-display); }
.empty p { color: var(--c-ink-2); max-width: 520px; }
.empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 40px; padding: clamp(20px, 3vw, 28px); border-radius: var(--r-l); background: var(--c-brand-soft); }
.banner p { flex: 1 1 320px; font-size: 1.0625rem; }
.banner__star { width: 28px; height: 28px; }

/* ---------- Страница дизайна ---------- */
.dpage { padding-top: 20px; padding-bottom: var(--section-y); }
.dhead { max-width: 860px; }
.dhead .page-title { margin-top: 8px; }
.dhead .sample-note { margin-top: 16px; }
.dhead__meta { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 20px; }
.dhead__meta > div { display: grid; gap: 2px; }
.dhead__meta .muted { font-size: .875rem; }
.dhead__price { font: 600 1.75rem/1.1 var(--f-display); }
.dhead__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.dgrid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "view head" "view side"; column-gap: clamp(24px, 4vw, 56px); row-gap: 8px; align-items: start; }
.dgrid > .dhead { grid-area: head; }
.dgrid__view { grid-area: view; position: sticky; top: calc(var(--header-h) + 12px); }
.dgrid__side { grid-area: side; }
@media (max-width: 1000px) {
  .dgrid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "view" "side"; row-gap: 24px; }
  .dgrid__view { position: static; }
}
.ddesc { font-size: 1.0625rem; color: var(--c-ink-2); margin-bottom: 24px; }
.viewer { border-radius: var(--r-l); background: var(--c-bg-alt); padding: 12px; }
.viewer__bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--c-surface); border: 1px solid var(--c-line); }
.seg__btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 0; border-radius: var(--r-pill); background: transparent; font-weight: 600; font-size: .9375rem; cursor: pointer; }
.seg__btn[aria-pressed="true"] { background: var(--c-ink); color: #fff; }
.viewer__stage { position: relative; display: flex; justify-content: center; }
.viewer__frame { position: relative; overflow: hidden; border-radius: var(--r-m); background: var(--c-surface); box-shadow: var(--shadow-2); }
.viewer[data-mode="phone"] .viewer__frame { border-radius: 24px; }
.viewer__frame iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; background: #fff; }
.viewer__loading { position: absolute; inset: auto 0 16px; text-align: center; font-size: .875rem; color: var(--c-ink-2); pointer-events: none; }
.viewer__loading[hidden] { display: none; }
.viewer__error { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 20px; text-align: center; background: var(--c-surface); border-radius: var(--r-m); }
.viewer__error[hidden] { display: none; }
.viewer__error p { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.viewer__error-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.viewer__hint { margin-top: 10px; text-align: center; font-size: .875rem; color: var(--c-ink-2); }
@media (max-width: 560px) {
  .viewer { padding: 8px; margin-inline: calc(var(--gutter) * -1 + 4px); border-radius: var(--r-m); }
  .viewer[data-mode="phone"] .viewer__frame { border-radius: var(--r-m); }
}

/* Калькулятор */
.calc { padding: clamp(20px, 3vw, 28px); border-radius: var(--r-l); background: var(--c-surface); border: 1px solid var(--c-line); }
.calc__title { font: var(--fw-display) 1.75rem/1.2 var(--f-display); }
.calc__lead { margin: 6px 0 16px; color: var(--c-ink-2); }
.calc__list { display: grid; gap: 0; border-top: 1px solid var(--c-line); }
.calc__item { border-bottom: 1px solid var(--c-line); }
.calc__label, .calc__item.is-included { display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: start; padding: 12px 0; min-height: 56px; }
.calc__label { cursor: pointer; }
.calc__label input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--c-accent); }
.calc__text { display: grid; gap: 2px; }
.calc__name { font-weight: 600; }
.calc__scope { font-size: .875rem; color: var(--c-ink-2); }
.calc__price { font-weight: 600; white-space: nowrap; }
.calc__check { color: var(--c-ok); padding-top: 2px; }
.calc__item--blocks fieldset { border: 0; margin: 0; padding: 12px 0; }
.calc__item--blocks legend { display: grid; gap: 2px; padding: 0; margin-bottom: 10px; }
.calc__blocks { display: flex; flex-wrap: wrap; gap: 6px; }
.calc__unavail { margin-top: 12px; font-size: .875rem; color: var(--c-ink-3); }
.calc__sum { margin-top: 18px; }
.sum { display: grid; gap: 0; padding: 16px; border-radius: var(--r-m); background: var(--c-surface-2); }
.sum > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.sum dt { display: grid; font-size: .9375rem; }
.sum dt small { color: var(--c-ink-3); font-size: .8125rem; }
.sum dd { font-weight: 600; white-space: nowrap; }
.sum__sub { border-top: 1px dashed var(--c-line-strong); margin-top: 4px; padding-top: 10px !important; }
.sum__total { border-top: 1px solid var(--c-line-strong); margin-top: 6px; padding-top: 12px !important; align-items: baseline; }
.sum__total dt { font-weight: 700; font-size: 1.0625rem; }
.sum__total dd { font: 600 2rem/1 var(--f-display); }
.sum__note { margin-top: 12px; font-size: .875rem; }
.sum__actions { display: grid; gap: 10px; justify-items: center; margin-top: 16px; }
.suggest { margin-top: 14px; padding: 16px; border-radius: var(--r-m); background: var(--c-brand-soft); }
.suggest__title { display: flex; gap: 8px; align-items: center; font-weight: 700; margin-bottom: 6px; }
.suggest__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dinfo { margin-top: clamp(40px, 6vw, 72px); display: grid; gap: 20px; }
.dinfo__title { font: var(--fw-display) clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem)/1.2 var(--f-display); }
.dinfo__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1000px) { .dinfo__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Окно связи ---------- */
.sheet {
  width: min(640px, 100%); max-width: 100%; max-height: min(92dvh, 900px); padding: 0; border: 0;
  border-radius: var(--r-l); background: var(--c-surface); box-shadow: var(--shadow-3); overflow: hidden;
}
.sheet[open] { display: flex; flex-direction: column; }
@media (max-width: 640px) {
  .sheet { margin: auto 0 0; width: 100%; max-height: 94dvh; border-radius: var(--r-l) var(--r-l) 0 0; }
}
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--c-line); flex: none; }
.sheet__title { font: var(--fw-display) 1.5rem/1.2 var(--f-display); }
.sheet__body { flex: 1 1 auto; min-height: 0; padding: 20px 20px 28px; overflow-y: auto; overscroll-behavior: contain; }
.sheet__intro { margin: 18px 0 12px; color: var(--c-ink-2); }
.sheet__divider { display: flex; align-items: center; gap: 12px; margin: 24px 0 18px; color: var(--c-ink-3); font-size: .875rem; }
.sheet__divider::before, .sheet__divider::after { content: ''; flex: 1; height: 1px; background: var(--c-line); }
.sheet__sub { font: 600 1.1875rem/1.3 var(--f-body); }
.sheet__formlead { color: var(--c-ink-2); margin: 4px 0 16px; font-size: .9375rem; }
.ctx { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 14px; border-radius: var(--r-m); background: var(--c-surface-2); border: 1px solid var(--c-line); }
.ctx--empty { display: flex; align-items: flex-start; gap: 10px; }
.ctx--empty .ico { margin-top: 3px; color: var(--c-ink-3); }
.ctx__thumb { position: relative; width: 84px; height: 84px; border-radius: var(--r-s); overflow: hidden; }
.ctx__label { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-ink-3); }
.ctx__title { font-weight: 700; font-size: 1.0625rem; margin: 2px 0 6px; }
.ctx__calc > div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; font-size: .9375rem; }
.ctx__calc dt { display: grid; }
.ctx__calc dt small { color: var(--c-ink-3); font-size: .8125rem; }
.ctx__calc dd { font-weight: 600; white-space: nowrap; }
.ctx__total { border-top: 1px solid var(--c-line); margin-top: 4px; padding-top: 6px !important; font-weight: 700; }
.ctx__note, .ctx__wishes { font-size: .9375rem; color: var(--c-ink-2); margin-top: 4px; }
.ctx__switch { margin-top: 8px; }
@media (max-width: 420px) { .ctx { grid-template-columns: minmax(0, 1fr); } .ctx__thumb { width: 100%; height: 72px; } }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (max-width: 480px) { .quick { grid-template-columns: minmax(0, 1fr); } }
.quick__btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 76px; padding: 10px; border-radius: var(--r-m); border: 1.5px solid var(--c-line-strong); background: var(--c-surface); font-weight: 600; font-size: .9375rem; text-align: center; text-decoration: none; cursor: pointer; }
@media (max-width: 480px) { .quick__btn { flex-direction: row; min-height: 52px; justify-content: flex-start; padding-inline: 16px; } }
.quick__btn .ico { width: 22px; height: 22px; color: var(--c-accent); }
.quick__btn:hover { border-color: var(--c-ink); }
.quick__btn[aria-expanded="true"] { border-color: var(--c-accent); background: var(--c-accent-soft); }
.msg-panel { margin-top: 12px; padding: 14px; border-radius: var(--r-m); background: var(--c-accent-soft); }
.msg-panel__text { width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--c-line-strong); border-radius: var(--r-s); background: var(--c-surface); font-size: .9375rem; resize: vertical; }
.msg-panel__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.msg-panel__note { margin-top: 8px; font-size: .875rem; }

/* Форма */
.lead-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; align-content: start; border: 0; margin: 0; padding: 0; min-width: 0; }
.field legend, .field__label { font-weight: 600; font-size: .9375rem; padding: 0; }
.field legend { margin-bottom: 6px; }
.req { color: var(--c-danger); }
.opt { font-weight: 400; color: var(--c-ink-3); font-size: .8125rem; }
.field input[type=text], .field input[type=date], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--c-line-strong); border-radius: var(--r-s); background: var(--c-surface); font-size: 1rem;
}
.field textarea { min-height: 88px; resize: vertical; }
.field input:disabled { background: var(--c-bg-alt); color: var(--c-ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--c-accent); outline: 3px solid var(--c-accent-soft); outline-offset: 0; }
.field.has-error input, .field.has-error select, .field.has-error .seg { border-color: var(--c-danger); }
.field__hint { font-size: .8125rem; color: var(--c-ink-3); }
.field__error { font-size: .875rem; color: var(--c-danger); font-weight: 600; }
.field__error:empty { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
.lead-form .seg { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: var(--r-s); width: 100%; }
.seg__opt { position: relative; }
.seg__opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg__opt span, .seg__opt .ico { pointer-events: none; }
.seg__opt { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border-radius: 6px; font-weight: 600; font-size: .9375rem; }
.seg__opt:has(input:checked) { background: var(--c-ink); color: #fff; }
.seg__opt:has(input:focus-visible) { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.form-optional { display: grid; gap: 14px; padding: 16px; border-radius: var(--r-m); background: var(--c-surface-2); }
.form-optional__title { font-size: .875rem; color: var(--c-ink-2); font-weight: 600; }
.form-addons { display: grid; gap: 2px; font-size: .9375rem; color: var(--c-ink-2); }
.form-addons li::before { content: '· '; }
.form-note { display: flex; gap: 8px; align-items: flex-start; font-size: .8125rem; color: var(--c-ink-3); }
.form-note .ico { margin-top: 1px; }
.form-errors { padding: 12px 14px; border-radius: var(--r-s); background: var(--c-danger-soft); color: var(--c-danger); font-weight: 600; font-size: .9375rem; }
.result { padding: 18px; border-radius: var(--r-m); outline: none; }
.result--demo { background: var(--c-warn-soft); }
.result--ok { background: var(--c-ok-soft); }
.result--fail { background: var(--c-danger-soft); }
.result__title { display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: 1.0625rem; margin-bottom: 6px; }
.result__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.result__payload { margin-top: 12px; font-size: .8125rem; }
.result__payload summary { cursor: pointer; font-weight: 600; min-height: 32px; }
.result__payload pre { white-space: pre-wrap; word-break: break-word; max-height: 240px; overflow: auto; padding: 10px; background: rgba(255,255,255,.7); border-radius: var(--r-s); }

/* ---------- Уменьшение движения: без перемещений, мягкая смена цвета и прозрачности остаётся ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-iteration-count: 1 !important; }
  .btn:active, .event--tile:active { transform: none !important; }
}

[hidden] { display: none !important; }
@media (max-width: 480px) {
  .card__actions { width: 100%; }
  .card__actions .btn { flex: 1 1 auto; }
}
@media (max-width: 560px) {
  .btn { white-space: normal; }
  .dhead__actions .btn, .sec-foot .btn, .empty__actions .btn { width: 100%; }
  .dhead__meta { display: grid; grid-template-columns: auto 1fr; gap: 12px 20px; }
  .dhead__meta > div:nth-child(2) { grid-column: 2; }
}


/* ---------- Широкая демо-анкета и дашборд ---------- */
.container--wide { max-width: 1440px; margin-top: 32px; }
.demo-wrap { padding: clamp(18px, 2.5vw, 32px); border-radius: var(--r-l); background: var(--c-bg-alt); }
.demo-wrap__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; margin-bottom: 20px; }
.demo-wrap__title { font: var(--fw-display) clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.2 var(--f-display); }
.demo-wrap__lead { margin-top: 6px; color: var(--c-ink-2); max-width: 640px; }
.demo-wrap .demo-flag { margin: 0; }
.demo { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 24px; }
.demo__form { background: var(--c-surface); }
.demo__table .table-wrap { background: var(--c-surface); }
.mini-multi { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mini-multi legend { width: 100%; padding: 0; margin-bottom: 4px; }
.mini-multi label { position: relative; }
.mini-multi input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mini-multi label span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--c-line-strong); background: var(--c-surface); font-size: .875rem; cursor: pointer; }
.mini-multi label input:checked + span { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.mini-multi input:focus-visible + span { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.demo__status { font-size: .875rem; color: var(--c-ok); font-weight: 600; }
.demo__status:empty { display: none; }
.dash { margin-top: 24px; padding: clamp(16px, 2vw, 24px); border-radius: var(--r-l); background: var(--c-surface); border: 1px solid var(--c-line); }
.dash__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-bottom: 18px; }
.dash__title { font: 600 1.375rem/1.25 var(--f-body); }
.dash__lead { color: var(--c-ink-2); margin-top: 4px; max-width: 560px; }
.dash__opts { display: grid; gap: 6px; max-width: 420px; font-size: .9375rem; }
.dash__reserve { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.dash__reserve input, .dcard__ctrl input, .dcard__ctrl select { min-height: 40px; padding: 0 10px; border: 1.5px solid var(--c-line-strong); border-radius: var(--r-s); background: var(--c-surface); font-size: .9375rem; }
.dash__reserve input { width: 72px; }
.dash__cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1200px) { .dash__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .dash__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 340px) { .dash__cards { grid-template-columns: minmax(0, 1fr); } }
.dcard { display: grid; gap: 6px; align-content: start; padding: 14px; border-radius: var(--r-m); background: var(--c-surface-2); border: 1px solid var(--c-line); }
.dcard.is-zero { opacity: .6; }
.dcard__name { font-weight: 700; }
.dcard__big { font: 600 2.4rem/1 var(--f-display); color: var(--c-accent); }
.dcard__big small { font: 600 .875rem/1 var(--f-body); color: var(--c-ink-2); }
.dcard__meta { font-size: .8125rem; color: var(--c-ink-2); }
.dcard__ctrl { display: grid; gap: 6px; margin-top: 4px; }
.dcard__ctrl label { display: grid; gap: 3px; font-size: .75rem; font-weight: 600; color: var(--c-ink-2); }
.dcard__ctrl input, .dcard__ctrl select { width: 100%; }
.dash__note { margin-top: 14px; font-size: .8125rem; color: var(--c-ink-3); }
@media (max-width: 760px) { .demo { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Что может быть в приглашении ---------- */
.feat__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border-radius: var(--r-pill); border: 1.5px solid var(--c-line-strong); background: var(--c-surface); font-size: .9375rem; font-weight: 500; cursor: pointer; }
.fchip .ico { width: 16px; height: 16px; color: var(--c-ink-3); }
.fchip:hover { border-color: var(--c-ink); }
.fchip.is-on { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.fchip.is-on .ico { color: #fff; }
.feat__note { margin-top: 14px; font-weight: 600; font-size: .9375rem; }
.feat__result { margin-top: 18px; }
.feat__hint { display: flex; gap: 8px; align-items: center; color: var(--c-ink-2); }
.feat__count { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 10px; }
.feat__box { padding: 18px 20px; border-radius: var(--r-l); }
.feat__box--ok { background: var(--c-ok-soft); }
.feat__box--none { background: var(--c-brand-soft); }
.feat__title { display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: 1.0625rem; margin-bottom: 4px; }
.feat__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.ctx-features { margin-top: 10px; padding: 10px 14px; border-radius: var(--r-m); background: var(--c-accent-soft); font-size: .9375rem; }

/* ---------- Дополнения: сразу видны карточками ---------- */
.addons { margin-top: 28px; padding: clamp(20px, 3vw, 32px); border-radius: var(--r-l); background: var(--c-bg-alt); }
.addons__title { font: var(--fw-display) clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.2 var(--f-display); }
.addons__lead { margin-top: 6px; color: var(--c-ink-2); max-width: 680px; }
.addons__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; margin-top: 20px; }
.addon { display: grid; gap: 2px; align-content: start; padding: 14px 16px; border-radius: var(--r-m); background: var(--c-surface); border: 1px solid var(--c-line); }
.addon__price { font: 600 1.25rem/1.2 var(--f-display); color: var(--c-accent); }
.addon__name { font-weight: 600; }
.addon__scope { font-size: .8125rem; color: var(--c-ink-2); }

/* События: компактные плашки — иконка слева, текст справа */
.events .event { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-content: start; }
.events .event__icon { grid-row: span 3; }
.events .event__link { margin-top: 2px; min-height: 36px; }
.sec-head { margin-bottom: clamp(20px, 4vh, 48px); }
.event.event--wide { display: flex; flex-direction: row; align-items: center; gap: 18px; margin-top: 14px; padding: 20px 24px; background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.event.event--wide .event__empty { color: rgba(255,255,255,.75); }
@media (max-width: 640px) { .event.event--wide { flex-direction: column; align-items: flex-start; } }


/* ---------- Правки: заголовки по центру, без номеров ---------- */
.sec-head--center { margin-inline: auto; text-align: center; max-width: 820px; }
.sec-head--center .sec-lead { margin-inline: auto; }
.sec-foot--center { justify-content: center; }

/* Демо-анкета: анкета и таблица одной высоты */
.demo-wrap__head { margin-bottom: clamp(20px, 3vh, 32px); }
.demo-wrap__head .demo-flag { justify-content: center; margin-top: 12px; }
.demo { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: stretch; gap: 20px; }
.demo__form, .demo__table { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--r-l); background: var(--c-surface); border: 1px solid var(--c-line); }
.demo__form { border-style: solid; }
.demo__form .btn { margin-top: auto; }
.demo__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 16px; }
.demo__cell { display: grid; gap: 6px; align-content: start; }
.demo__table .table-wrap { flex: 1; }
.demo__table .totals { margin-top: 0; }
@media (max-width: 900px) { .demo { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .demo__grid { grid-template-columns: minmax(0, 1fr); } }

/* Разделы приглашения: плашки слева, результат справа */
.feat { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.feat__result { position: sticky; top: calc(var(--header-h) + 16px); margin-top: 0; }
.feat .fchip { min-height: 40px; font-size: .875rem; }
.feat__box { padding: clamp(18px, 2vw, 26px); }
.feat__box--idle { background: var(--c-surface); border: 1px dashed var(--c-line-strong); }
.feat__box p + p, .feat__box > p:not(.feat__title) { color: var(--c-ink-2); }
.feat__star { width: 26px; height: 26px; margin-bottom: 10px; }
.feat__result .feat__actions .btn { width: 100%; }
@media (max-width: 900px) { .feat { grid-template-columns: minmax(0, 1fr); } .feat__result { position: static; } }

/* Дополнения: заголовок как у секций */
.addons__head { margin-bottom: 8px; }
.sec-head.demo-wrap__head { display: block; }

/* Прайс дополнений: таблица за кнопкой «Показать дополнения и цены» */
.addons__toggle-wrap { display: flex; justify-content: center; margin-top: 8px; }
.addons__toggle { min-width: min(100%, 360px); }
.addons__arrow { transition: transform var(--dur) var(--ease); }
.addons__toggle[aria-expanded="true"] .addons__arrow { transform: rotate(180deg); }
.addons__panel { max-width: 820px; margin: 24px auto 0; }
.table--prices th[scope="row"] { display: grid; gap: 2px; font-weight: 400; }
.table--prices .addon__name { font-weight: 600; }
.table--prices .addon__scope { font-size: .8125rem; color: var(--c-ink-2); }
.table--prices td.num { font: 600 1.125rem/1.2 var(--f-display); color: var(--c-accent); vertical-align: middle; }
.table--prices thead th.num { text-align: right; }

/* Анкета и таблица: кнопка сразу под последним вопросом, блоки одной высоты */
.demo__form .btn { margin-top: 6px; }
.demo.is-balanced { align-items: start; }
.demo__table .table-wrap { flex: 0 0 auto; }
.demo__grid--mid > .demo__cell:first-child, .demo__grid--mid > .demo__cell:last-child { grid-column: 1 / -1; }
.demo__grid--one { grid-template-columns: minmax(0, 1fr); }


/* ================= Стеклянная система: первый экран ================= */
.site-header { background: color-mix(in srgb, var(--c-bg) 80%, transparent); }

/* Матовое стекло для небольших поверхностей интерфейса */
.glass {
  background: linear-gradient(160deg, rgba(255,255,255,.72), rgba(255,250,244,.42) 60%, rgba(242,228,212,.5));
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--glass-fill-strong); }
}

/* Кнопки: главная шоколадная с мягким бликом, вторичная — светлое стекло */
.btn--primary {
  --b-bg: var(--c-accent); --b-ink: #FFF8F0;
  background-image: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0) 55%);
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 10px 24px -12px rgba(84, 52, 30, .55);
}
.btn--glass {
  --b-ink: var(--c-ink); --b-line: rgba(181, 139, 89, .35);
  background: rgba(255, 252, 248, .55);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 8px 20px -14px rgba(84, 52, 30, .4);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn--glass:hover { --b-line: var(--c-accent); background: rgba(255, 252, 248, .8); }

.hero--glass { position: relative; isolation: isolate; background: var(--c-bg); overflow: hidden; }
.hero--glass::before { display: none; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background: url('../assets/hero/hero-portal.jpg') no-repeat right center / auto 100%;
  /* мягкий переход к цвету страницы слева и снизу — без видимого прямоугольника картинки */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%), linear-gradient(to top, transparent 0, #000 12%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 22%), linear-gradient(to top, transparent 0, #000 12%);
  mask-composite: intersect;
}
.hero--glass .hero__grid { grid-template-columns: minmax(0, 520px) 1fr; }
.hero--glass .hero__copy { position: relative; }
.hero--glass .hero__title { font-weight: 500; letter-spacing: -0.015em; line-height: 1.02; }
.hero--glass .hero__title em { font-style: italic; font-weight: 400; color: var(--c-accent); }
.hero--glass .hero__lead { color: var(--c-ink-2); max-width: 470px; }
.hero--glass .price-chip { border-radius: 18px; min-width: 180px; color: var(--c-ink); }
.hero--glass .price-chip span { color: var(--c-ink-2); }
.hero--glass .price-chip strong { font: 500 1.6rem/1.15 var(--f-display); }
.hero--glass .price-chip:hover { border-color: rgba(181, 139, 89, .55); }
.hero__example { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; min-height: 40px; color: var(--c-accent); font-weight: 600; font-size: .9375rem; text-decoration: underline; text-decoration-color: rgba(104,71,52,.35); text-underline-offset: 4px; }
.hero__example:hover { text-decoration-color: currentColor; }
.hero--glass .hero__points .ico { color: var(--metal); }
.hero__object { display: none; }

@media (min-width: 901px) {
  .hero--glass .hero__example { margin-top: clamp(8px, 1.6vh, 16px); }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .hero__bg { background-position: 70% center; background-size: auto 100%; opacity: .9; }
  .hero--glass .hero__grid { grid-template-columns: minmax(0, 460px) 1fr; }
}

/* Телефон и планшет: текст сверху, стеклянный объект целиком под ним */
@media (max-width: 900px) {
  .hero__bg { display: none; }
  .hero--glass { padding-bottom: 24px; }
  .hero--glass .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__object { display: block; width: min(112%, 640px); max-width: none; height: auto; margin: 8px auto 0; transform: translateX(3%); }
  .hero--glass .price-chip { flex: 1 1 140px; min-width: 0; }
}
@media (prefers-reduced-transparency: reduce) { .glass, .btn--glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--glass-fill-strong); } }
@media (min-width: 1181px) { .hero__bg { background-position: calc(100% + 3vw) center; } }
@media (min-width: 901px) and (max-height: 860px) { .hero--glass .hero__points { display: none; } }
/* На широких экранах композиция фона остаётся в рамке ~1480px, края плавно уходят в цвет страницы */
.hero__bg {
  left: 50%; right: auto; width: min(100%, 1480px); transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%, #000 94%, transparent 100%), linear-gradient(to top, transparent 0, #000 12%);
  mask-image: linear-gradient(to right, transparent 0, #000 22%, #000 94%, transparent 100%), linear-gradient(to top, transparent 0, #000 12%);
}
@media (min-width: 1181px) { .hero__bg { background-position: calc(100% + 20px) center; } }
/* Положение фоновой композиции рассчитывается в JS (fitHeroBg): объект всегда справа от текста и целиком в кадре */
@media (min-width: 901px) {
  .hero__bg { inset: auto; transform: none; background-size: 100% 100%; background-position: 0 0; }
}
@media (min-width: 901px) {
  .hero__bg {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%), linear-gradient(to bottom, transparent 0, #000 8%, #000 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 22%), linear-gradient(to bottom, transparent 0, #000 8%, #000 90%, transparent 100%);
  }
}
@media (max-width: 900px) {
  .hero__object { width: 100%; max-width: 640px; transform: none; margin: 4px auto 0; }
}


/* ================= Стеклянная система: остальные блоки ================= */
/* Акцент в заголовках — курсив антиквы */
.sec-title em, .page-title em { font-style: italic; font-weight: 400; color: var(--c-accent); }
.section--dark .sec-title em { color: var(--metal-light); }
.sec-title, .page-title { font-weight: 500; }

/* Плотное матовое стекло для рабочих карточек: читаемо, с видимой кромкой и тёплой тенью (без размытия — дешевле для телефона) */
.event, .card, .flow__step, .panel:not(.panel--accent):not(.panel--plain), .plan, .step, .qa, .addons-table,
.demo__form, .demo__table, .dash, .dcard, .filters, .calc, .empty, .glass-panel {
  background: linear-gradient(165deg, rgba(255,255,255,.94), rgba(255,250,244,.80) 55%, rgba(246,236,224,.72));
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 0 0 1px rgba(181,139,89,.16), 0 1px 0 #fff inset, 0 -1px 0 rgba(181,139,89,.10) inset, 0 16px 34px -22px rgba(84,52,30,.38);
}
.card:hover, .event:hover { box-shadow: 0 0 0 1px rgba(181,139,89,.30), 0 1px 0 #fff inset, 0 22px 40px -22px rgba(84,52,30,.45); }
.dcard { background: linear-gradient(165deg, #FFFDFA, #F6EEE4); }
.panel--accent { background: linear-gradient(165deg, #F3E8DB, #EBDCCB); border: 1px solid rgba(255,255,255,.7); }

/* Иконки событий: маленькая стеклянная пластина с латунной линией (замена до прихода стеклянных рендеров) */
.event__icon, .flow__n, .step__n {
  background: linear-gradient(145deg, #FFFFFF, #F1E4D4);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 0 0 1px rgba(181,139,89,.25), 0 1px 0 #fff inset, 0 6px 14px -8px rgba(84,52,30,.45);
  color: #8A6238;
}
.event--empty .event__icon { background: linear-gradient(145deg, #FFFFFF, #EEE6DD); color: var(--c-ink-3); }
.flow__n, .step__n { color: var(--c-accent); font-family: var(--f-display); font-weight: 600; border-radius: 50%; }
.step__n { border: 1px solid rgba(255,255,255,.95); }
.event.event--wide { background: linear-gradient(120deg, #3A2418, #2E1D14 60%, #4A3022); border-color: rgba(232,210,175,.18); box-shadow: 0 18px 40px -24px rgba(46,29,20,.8); }
.event.event--wide .event__icon { background: rgba(255,255,255,.08); border-color: rgba(232,210,175,.3); box-shadow: none; color: var(--metal-light); }
.event.event--wide .btn--primary { --b-bg: #FFF8F0; --b-ink: var(--c-ink); background-image: none; }

/* Чипы и плашки выбора */
.chip, .fchip, .check--chip > span { background: rgba(255,253,250,.85); border-color: rgba(181,139,89,.35); }
.chip.is-on, .fchip.is-on, .check--chip input:checked + span { background: var(--c-accent); border-color: var(--c-accent); color: #FFF8F0; }
.fchip .ico { color: var(--metal); }
.feat__box--idle { background: linear-gradient(165deg, rgba(255,255,255,.9), rgba(246,236,224,.7)); border: 1px dashed rgba(181,139,89,.45); }
.feat__box--ok { background: linear-gradient(165deg, #F4ECDF, #EADCC8); }
.feat__box--none { background: linear-gradient(165deg, #F6EBDD, #EFDCC6); }
.feat__result .feat__box { box-shadow: 0 0 0 1px rgba(181,139,89,.2), 0 16px 34px -22px rgba(84,52,30,.4); }

/* Секции: ритм светлых и кремовых фонов */
.section--alt { background: linear-gradient(180deg, #EFE6DC, #F1E9E0); }
.demo-wrap, .addons { background: linear-gradient(180deg, #EFE6DC, #EDE2D5); }
.plan--custom { border: 1px solid rgba(255,255,255,.95); box-shadow: 0 0 0 1.5px var(--c-accent), 0 18px 38px -22px rgba(84,52,30,.45); }
.price-tag, .plan__price, .custom__price, .dcard__big { font-family: var(--f-display); font-weight: 500; }
.dcard__big { color: var(--c-accent); }

/* Тёмная смысловая зона: индивидуальная разработка на шоколадном шёлке */
.section--dark { background: linear-gradient(90deg, rgba(36,22,15,.92) 0%, rgba(36,22,15,.80) 45%, rgba(36,22,15,.55) 100%), url('../assets/decor/silk-dark.jpg') center / cover no-repeat, var(--c-dark); }
.custom__opts li { background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.04)); border: 1px solid rgba(232,210,175,.28); box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 18px 40px -24px rgba(0,0,0,.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.custom__n .star { color: var(--metal-light); }
.section--dark .btn--light { --b-bg: #FFF8F0; --b-ink: var(--c-ink); }

/* Декоративная латунная орбита — за контентом, не пересекает кнопки */
.section--decor { position: relative; overflow: hidden; }
.section--decor > .container { position: relative; z-index: 1; }
.decor-orbit { position: absolute; z-index: 0; top: 24px; right: -9%; width: min(44vw, 620px); height: auto; pointer-events: none; opacity: .9; }
@media (max-width: 900px) { .decor-orbit { width: 70vw; right: -30%; top: 8px; opacity: .5; } }

/* О LUMI */
.about__mark { position: relative; overflow: hidden; }
.about__star { position: absolute; top: 14px; right: 16px; width: 64px; height: auto; }

/* Финальный призыв: светлый шёлк шампанского, тёмный текст, шоколадные кнопки */
.section--cta { background: linear-gradient(180deg, rgba(245,240,236,.25), rgba(245,240,236,.55)), url('../assets/decor/silk-light.jpg') center / cover no-repeat, var(--c-bg); color: var(--c-ink); }
.section--cta .sec-lead { color: var(--c-ink-2); }
.section--cta .cta__star { color: var(--metal); }
.section--cta .btn--primary { --b-bg: var(--c-accent); --b-ink: #FFF8F0; }
.section--cta .btn--primary:hover { --b-bg: var(--c-accent-hover); }
.section--cta .btn--ghost { --b-ink: var(--c-ink); --b-line: rgba(181,139,89,.45); background: rgba(255,252,248,.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.section--cta .cta__hours { color: var(--c-ink-2); }
@media (max-width: 700px) { .section--cta { background-image: linear-gradient(180deg, rgba(245,240,236,.3), rgba(245,240,236,.6)), url('../assets/decor/silk-light-vertical.jpg'); } }

/* Подвал */
.site-footer { background: #EFE6DC; border-top-color: rgba(181,139,89,.2); }

/* Окна: плотная поверхность, чтобы содержимое за окном не мешало тексту */
.sheet, .drawer { background: linear-gradient(170deg, #FFFDFA, #F8F1E9); }
.sheet::backdrop, .drawer::backdrop { background: rgba(52,33,23,.42); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ctx, .form-optional, .sum { background: #F7EFE6; border-color: rgba(181,139,89,.22); }
.mobile-bar { background: rgba(255,252,248,.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.mobile-bar button { background: #F1E8DD; }
.mobile-bar button.is-primary { background: var(--c-accent); color: #FFF8F0; }
.viewer { background: linear-gradient(180deg, #EFE6DC, #EADDCE); }
.seg__btn[aria-pressed="true"], .seg__opt:has(input:checked), .mini-seg input:checked + span { background: var(--c-accent); color: #FFF8F0; border-color: var(--c-accent); }
.mini-multi label input:checked + span { background: var(--c-accent); border-color: var(--c-accent); color: #FFF8F0; }
.tag, .pill--ok { background: #EAF1E6; }
.badge--sample { color: #8A5A00; }
.sample-note { background: #F6ECD9; }
.card__actions { width: 100%; }
.card__actions .btn { flex: 1 1 auto; }
.card__actions .btn--quiet { border: 1px solid rgba(181,139,89,.35); background: rgba(255,252,248,.7); }
.about__mark .about__star { width: 56px; max-width: 56px; top: 18px; right: 20px; }
.decor-orbit { top: auto; bottom: -6%; right: -16%; width: min(40vw, 560px); }
@media (max-width: 900px) { .decor-orbit { bottom: auto; top: 8px; right: -34%; } }
@media (max-width: 700px) { .section--cta { background-image: linear-gradient(180deg, rgba(245,240,236,.62), rgba(245,240,236,.8)), url('../assets/decor/silk-light-vertical.jpg'); } }


/* ================= Фоновые фотографии под стеклом ================= */
/* Картинка — отдельный слой. Сверху и снизу она растворяется в цвет страницы, чтобы не было видимого прямоугольника. */
.section--photo { position: relative; isolation: isolate; overflow: hidden; background: var(--c-bg); }
.section--photo::before {
  content: ''; position: absolute; z-index: -2; left: 0; right: 0; top: 0; bottom: 0;
  background: var(--photo) right center / cover no-repeat;
}
.section--photo::after {
  content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--c-bg) 0, rgba(245,240,236,0) 14%, rgba(245,240,236,0) 86%, var(--c-bg) 100%);
}
/* В длинных секциях картинка занимает только верхнюю часть (в пропорции 16:9), ниже — спокойный фон */
.section--photo-top::before { bottom: auto; height: min(100%, 56.25vw); }
.section--photo-top::after { background: linear-gradient(180deg, var(--c-bg) 0, rgba(245,240,236,0) 10%, rgba(245,240,236,0) calc(min(100%, 56.25vw) - 22%), var(--c-bg) min(100%, 56.25vw)); }
.section--flip::before { transform: scaleX(-1); }
.section--organza { --photo: url('../assets/decor/organza.jpg'); }
.section--peonies { --photo: url('../assets/decor/peonies.jpg'); }

/* Стекло над фотографией: полупрозрачная заливка + размытие того, что за ним */
.section--photo .event:not(.event--wide), .section--photo .flow__step, .section--photo .plan, .section--photo .panel:not(.panel--accent),
.section--photo .feat__box, .section--photo .fchip, .section--photo .addons {
  background: linear-gradient(160deg, rgba(255,255,255,.62), rgba(255,250,244,.40) 60%, rgba(244,232,218,.46));
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: 0 0 0 1px rgba(181,139,89,.18), 0 1px 0 rgba(255,255,255,.95) inset, 0 -1px 0 rgba(181,139,89,.12) inset, 0 20px 40px -24px rgba(84,52,30,.42);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
}
.section--photo .fchip.is-on { background: var(--c-accent); color: #FFF8F0; border-color: var(--c-accent); }
.section--photo .panel--accent { background: linear-gradient(160deg, rgba(243,232,219,.75), rgba(235,220,203,.6)); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.section--photo .addons { background: linear-gradient(160deg, rgba(255,255,255,.55), rgba(244,232,218,.45)); }
.section--photo .sec-lead { color: var(--c-ink-2); }
/* Где размытие не поддерживается — плотнее заливка, чтобы текст оставался читаемым */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .section--photo .event, .section--photo .flow__step, .section--photo .plan, .section--photo .panel, .section--photo .feat__box, .section--photo .fchip, .section--photo .addons { background: rgba(255,252,248,.9); }
}

/* Телефон: картинка сверху секции узкой полосой, без тяжёлого размытия на каждой карточке */
@media (max-width: 760px) {
  .section--photo::before { background-position: 78% center; bottom: auto; height: 70vw; }
  .section--photo::after { background: linear-gradient(180deg, var(--c-bg) 0, rgba(245,240,236,0) 12%, rgba(245,240,236,.2) 45vw, var(--c-bg) 70vw); }
  .section--flip::before { background-position: 22% center; }
  .section--photo .event:not(.event--wide), .section--photo .flow__step, .section--photo .plan, .section--photo .panel:not(.panel--accent), .section--photo .feat__box, .section--photo .fchip, .section--photo .addons {
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  }
}


/* ================= Акцентный цвет действия ================= */
/* Главное действие */
.btn--primary, .section--cta .btn--primary, .mobile-bar button.is-primary { --b-bg: var(--c-cta); --b-ink: var(--c-cta-ink); background-color: var(--c-cta); color: var(--c-cta-ink); }
.btn--primary:hover, .section--cta .btn--primary:hover { --b-bg: var(--c-cta-hover); background-color: var(--c-cta-hover); }
.btn--primary { box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 10px 24px -12px color-mix(in srgb, var(--c-cta) 70%, transparent); }
/* Выбранное состояние */
.chip.is-on, .fchip.is-on, .section--photo .fchip.is-on, .check--chip input:checked + span, .seg__btn[aria-pressed="true"],
.seg__opt:has(input:checked), .mini-seg input:checked + span, .mini-multi label input:checked + span {
  background: var(--c-cta); border-color: var(--c-cta); color: var(--c-cta-ink);
}
.fchip.is-on .ico { color: var(--c-cta-ink); }
.calc__label input, .check input { accent-color: var(--c-cta); }
/* Курсивный акцент в заголовках (кроме тёмной секции, там латунь) */
.sec-title em, .page-title em, .hero--glass .hero__title em { color: var(--c-cta); }
.section--dark .sec-title em { color: var(--metal-light); }
/* Итоги и найденное */
.sum__total dd, .dcard__big, .ctx__total dd { color: var(--c-cta); }
.feat__box--ok { background: linear-gradient(165deg, color-mix(in srgb, var(--c-cta-soft) 85%, #fff), var(--c-cta-soft)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c-cta) 30%, transparent), 0 16px 34px -22px rgba(84,52,30,.4); }
.feat__box--ok .feat__title .ico { color: var(--c-cta); }
.section--photo .feat__box--ok { background: linear-gradient(160deg, color-mix(in srgb, var(--c-cta-soft) 80%, transparent), color-mix(in srgb, var(--c-cta-soft) 60%, transparent)); }
.plan--custom { box-shadow: 0 0 0 1.5px var(--c-cta), 0 18px 38px -22px rgba(84,52,30,.45); }
.hero__example { color: var(--c-cta); text-decoration-color: color-mix(in srgb, var(--c-cta) 40%, transparent); }
.link-btn { color: var(--c-cta); }
.link-btn:hover { color: var(--c-cta-hover); }
:focus-visible { outline-color: var(--c-cta); }


/* ================= Палитра фонов: перекликаются с акцентом ================= */
/* Цветной фон с акцентом занимает всю секцию — переходы сверху и снизу мягче, без белой полосы */
.section--photo-unused::after { background: linear-gradient(180deg, var(--c-bg) 0, rgba(245,240,236,0) 18%, rgba(245,240,236,0) 82%, var(--c-bg) 100%); }
.section--photo-unused2::after { background: linear-gradient(180deg, var(--c-bg) 0, rgba(245,240,236,0) 12%, rgba(245,240,236,0) calc(min(100%, 56.25vw) - 24%), var(--c-bg) min(100%, 56.25vw)); }
/* Кремовые секции и подложки берут оттенок палитры */
.section--alt { background: linear-gradient(180deg, var(--c-section-tint), color-mix(in srgb, var(--c-section-tint) 70%, var(--c-bg))); }
.demo-wrap, .addons, .viewer { background: linear-gradient(180deg, var(--c-section-tint), color-mix(in srgb, var(--c-section-tint) 80%, #DCCBB8)); }
.site-footer { background: var(--c-section-tint); }
/* Тёмная секция: шоколадная ночь с латунными лентами, текст на тёмной левой части */
.section--dark { background: linear-gradient(90deg, rgba(22,8,5,.55) 0%, rgba(22,8,5,.25) 50%, rgba(22,8,5,0) 100%), var(--photo-dark) right center / cover no-repeat, #160704; }
/* Финальный блок: тот же акцентный фон, что у событий и цен */
.section--cta { background: linear-gradient(180deg, var(--c-bg) 0, rgba(245,240,236,.25) 18%, rgba(245,240,236,.35) 82%, var(--c-bg) 100%), url('../assets/decor/sage-eucalyptus.jpg') right center / cover no-repeat, var(--c-bg); }
.section--cta .btn--ghost { background: rgba(255,252,248,.7); }
/* Плашки «Другое событие» и тарифы перекликаются с акцентом */
.event.event--wide { background: linear-gradient(120deg, color-mix(in srgb, var(--c-cta) 55%, #2E1D14), #2E1D14 70%); }
.section--photo .panel--accent { background: linear-gradient(160deg, color-mix(in srgb, var(--c-cta-soft) 85%, transparent), color-mix(in srgb, var(--c-cta-soft) 60%, transparent)); }
.panel--accent { background: linear-gradient(165deg, var(--c-cta-soft), color-mix(in srgb, var(--c-cta-soft) 70%, var(--c-section-tint))); }
.event__icon, .flow__n, .step__n { color: var(--c-cta); }
@media (max-width: 700px) {
  .section--cta { background: linear-gradient(180deg, var(--c-bg) 0, rgba(245,240,236,.45) 20%, rgba(245,240,236,.6) 80%, var(--c-bg) 100%), url('../assets/decor/sage-eucalyptus.jpg') 70% center / cover no-repeat, var(--c-bg); }
}



/* Молочная вуаль под заголовком на фотофоне: текст не теряется, даже если за ним лист или лента */
.section--photo .sec-head, .section--cta .cta { position: relative; isolation: isolate; }
.section--photo .sec-head::before, .section--cta .cta > .sec-title::before {
  content: ''; position: absolute; z-index: -1; inset: -28px -72px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(245,240,236,.92), rgba(245,240,236,.75) 55%, rgba(245,240,236,0));
}
.section--cta .cta > .sec-title { position: relative; }
.section--cta .cta > .sec-title::before { inset: -40px -120px -140px; }
.section--dark .sec-head::before { display: none; }
.section--cta { overflow: hidden; }
@media (max-width: 760px) {
  .section--photo .sec-head::before { inset: -16px -12px; }
  .section--cta .cta > .sec-title::before { inset: -24px -16px -120px; }
}


/* ================= Раунд правок: молочные фоны, подсветка, шаги, карточки ================= */
.bg-organza   { --photo: url('../assets/decor/organza.jpg'); }
.bg-peonies   { --photo: url('../assets/decor/peonies.jpg'); }
.bg-porcelain { --photo: url('../assets/decor/porcelain-peonies.jpg'); }
.section--cta { background: linear-gradient(180deg, rgba(245,240,236,.25), rgba(245,240,236,.55)), url('../assets/decor/silk-light.jpg') center / cover no-repeat, var(--c-bg); }
@media (max-width: 700px) { .section--cta { background: linear-gradient(180deg, rgba(245,240,236,.62), rgba(245,240,236,.8)), url('../assets/decor/silk-light-vertical.jpg') center / cover no-repeat, var(--c-bg); } }
.section--alt { background: linear-gradient(180deg, #EFE6DC, #F1E9E0); }
.site-footer { background: #EFE6DC; }
.event.event--wide { background: linear-gradient(120deg, #3A2418, #2E1D14 60%, #4A3022); }
.event__icon, .flow__n, .step__n { color: var(--c-accent); }

/* ---------- Подсветка при наведении: элемент чуть выдвигается, сзади мягкое тёплое свечение ---------- */
.btn, .event--tile, .card, .plan, .flow__step, .step, .chip, .fchip, .check--chip > span, .quick__btn, .price-chip, .qa, .dcard, .addon, .seg__btn, .lumi-bar__btn, .mobile-bar button {
  transition: transform var(--dur-hover) var(--ease), box-shadow var(--dur-hover) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover, .chip:hover, .fchip:hover, .check--chip:hover > span, .quick__btn:hover, .seg__btn:hover, .lumi-bar__btn:hover { transform: translateY(-2px); box-shadow: var(--glow); }
  .btn--primary:hover { box-shadow: 0 0 0 1px rgba(104,71,52,.25), 0 16px 34px -10px rgba(104,71,52,.55), 0 0 40px -2px rgba(232,210,175,.95); }
  .event--tile:hover, .card:hover, .plan:hover, .flow__step:hover, .step:hover, .price-chip:hover, .qa:hover, .dcard:hover, .section--photo .event--tile:hover, .section--photo .flow__step:hover, .section--photo .plan:hover {
    transform: translateY(-5px) scale(1.012); box-shadow: var(--glow), 0 1px 0 #fff inset; z-index: 3;
  }
  .event--wide:hover { box-shadow: 0 0 0 1px rgba(232,210,175,.35), 0 18px 44px -12px rgba(46,29,20,.75), 0 0 46px -4px rgba(232,210,175,.6); }
}
/* Карточки с полями ввода (расчёт напитков) и вопросы FAQ: только свечение, без сдвига — поле не «убегает», текст не размывается */
@media (hover: hover) and (pointer: fine) {
  .qa:hover, .dcard:hover { transform: none; box-shadow: var(--glow), 0 1px 0 #fff inset; }
}
.qa, .dcard { transition: box-shadow var(--dur-hover) ease, background-color var(--dur) ease, border-color var(--dur) ease; }
/* Стеклянные плашки на фото-фонах: свечение — отдельным слоем (меняется только прозрачность),
   чтобы при наведении не перерисовывать тень поверх размытия backdrop-filter */
.section--photo :is(.event--tile, .flow__step, .plan, .fchip) {
  position: relative;
  transition: transform var(--dur-hover) var(--ease-out), background-color var(--dur) ease, border-color var(--dur) ease;
}
.section--photo :is(.event--tile, .flow__step, .plan, .fchip)::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: var(--glow), 0 1px 0 #fff inset;
  opacity: 0; transition: opacity var(--dur-hover) ease;
}
@media (hover: hover) and (pointer: fine) {
  .section--photo :is(.event--tile, .flow__step, .plan, .fchip):hover { box-shadow: 0 0 0 1px rgba(181,139,89,.18), 0 1px 0 rgba(255,255,255,.95) inset, 0 -1px 0 rgba(181,139,89,.12) inset, 0 20px 40px -24px rgba(84,52,30,.42); }
  .section--photo :is(.event--tile, .flow__step, .plan, .fchip):hover::after { opacity: 1; }
}
.btn:active, .event--tile:active { transform: scale(0.97); transition-duration: var(--dur-press); transition-timing-function: var(--ease-out); }
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .event--tile:hover, .card:hover, .plan:hover, .flow__step:hover, .step:hover, .chip:hover, .fchip:hover, .price-chip:hover, .qa:hover, .dcard:hover { transform: none !important; }
}

/* ---------- События: плашка-ссылка целиком ---------- */
.events > li { display: flex; }
.event--tile { width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-items: start; text-align: left; color: inherit; text-decoration: none; font: inherit; cursor: pointer; position: relative; }
.event--tile .event__text { display: grid; gap: 2px; }
.event--tile .event__title { font: 600 1.1875rem/1.25 var(--f-body); }
.event--tile .event__count, .event--tile .event__empty { font-size: .9375rem; color: var(--c-ink-3); margin: 0; }
.event--tile .event__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; min-height: 0; color: var(--c-accent); font-weight: 600; }
.event--tile .event__link .ico { transition: transform var(--dur-hover) var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .event--tile:hover .event__link .ico { transform: translateX(4px); }
}
.event--tile:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; }
.event.event--wide.event--tile { display: flex; align-items: center; gap: 18px; margin-top: 14px; color: #fff; border: 1px solid rgba(232,210,175,.2); }
.event--wide .event__text { flex: 1; }
.event--wide .event__title { color: #fff; }
.event--wide .event__empty { color: rgba(255,255,255,.75); }
.btn--light-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: #FFF8F0; color: var(--c-ink); font-weight: 600; flex: none; }
@media (max-width: 640px) { .event.event--wide.event--tile { flex-direction: column; align-items: flex-start; } .btn--light-chip { width: 100%; justify-content: center; } }

/* ---------- Шаги: цифры крупнее в 2 раза, стрелка-кружок между карточками ---------- */
.flow, .steps { position: relative; }
.flow__step, .step { position: relative; overflow: visible; }
.flow__n { width: 64px; height: 64px; font-size: 1.875rem; }
.step__n { width: 80px; height: 80px; font-size: 2.25rem; }
.step-arrow {
  position: absolute; z-index: 4; top: 50%; right: -26px; width: 40px; height: 40px; transform: translateY(-50%);
  display: grid; place-items: center; border-radius: 50%; color: var(--c-accent);
  background: linear-gradient(145deg, #FFFFFF, #F1E4D4); border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 0 0 1px rgba(181,139,89,.35), 0 6px 16px -6px rgba(84,52,30,.5);
  pointer-events: none;
}
.step-arrow .ico { width: 20px; height: 20px; }
.flow { gap: 14px; }
@media (max-width: 1000px) {
  .flow__n { width: 56px; height: 56px; font-size: 1.625rem; }
  .flow__step { grid-template-columns: 56px 1fr; }
  .step__n { width: 64px; height: 64px; font-size: 1.875rem; }
  .step-arrow { top: auto; bottom: -25px; right: auto; left: 50%; transform: translateX(-50%) rotate(90deg); }
  .flow, .steps { gap: 18px; }
}

/* ---------- Карточки дизайнов: крупная цена, бейдж адаптации, свёрнутый состав ---------- */
.price-tag { font-size: 2.75rem; line-height: 1; }
.badge--adapt { display: inline-flex; align-items: center; gap: 6px; top: 12px; left: 12px; padding: 6px 12px; background: rgba(255,252,248,.92); color: var(--c-accent); box-shadow: 0 0 0 1px rgba(181,139,89,.3), 0 6px 16px -8px rgba(84,52,30,.5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.badge--adapt .ico { width: 14px; height: 14px; color: var(--metal); }
.card__incl { border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); margin-top: 4px; }
.card__incl summary { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none; font-size: .9375rem; color: var(--c-ink-2); }
.card__incl summary::-webkit-details-marker { display: none; }
.card__incl summary > span:first-of-type { flex: 1; }
.card__incl summary .ico { color: var(--metal); }
.card__more { display: inline-flex; align-items: center; gap: 2px; color: var(--c-accent); font-weight: 600; font-size: .875rem; white-space: nowrap; }
.card__chev { transition: transform var(--dur) var(--ease); }
.card__incl[open] .card__chev { transform: rotate(180deg); }
.card__incl[open] .card__more { font-size: 0; }
.card__incl[open] .card__more::before { content: 'Свернуть'; font-size: .875rem; }
.card__list { display: grid; gap: 4px; padding: 0 0 12px; font-size: .875rem; color: var(--c-ink-2); }
.card__list li { display: flex; gap: 8px; align-items: center; }
.card__list .ico { color: var(--c-ok); width: 16px; height: 16px; }
.card__tags { display: none; }

/* ---------- Страница дизайна: живой пример прокручивается вместе со страницей, калькулятор свёрнут ---------- */
.dgrid__view { position: static; top: auto; }
.calc__intro { display: grid; gap: 8px; justify-items: start; }
.calc__intro .calc__title { font-size: 1.5rem; }
.calc__intro .calc__lead { margin: 0; }
.calc__picked { font-weight: 600; color: var(--c-accent); }
.calc__toggle { margin-top: 6px; }
.calc__toggle .ico { transition: transform var(--dur) var(--ease); }
.calc.is-open .calc__toggle .ico { transform: rotate(45deg); }
.calc__body { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--c-line); }


/* ================= Живой пример в корпусе телефона / ноутбука ================= */
.viewer__stage { flex-direction: column; align-items: center; }
.device-fit { position: relative; margin: 6px auto 0; }
.device { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.device__body { position: relative; }
.device__screen { position: relative; overflow: hidden; background: #fff; }
.device__screen iframe { position: absolute; inset: 0; border: 0; display: block; max-width: none; transition: opacity 180ms var(--ease); background: #fff; }
.device__island, .device__cam, .device__base { display: none; }

/* Телефон в духе современного iPhone: тонкая рамка, скругление, «островок» камеры, боковые кнопки */
.device--phone .device__body {
  padding: 14px; border-radius: 62px;
  background: linear-gradient(145deg, #3B2C22, #1C140F 45%, #2A1E17);
  box-shadow: 0 0 0 1.5px #6E5848 inset, 0 0 0 3px #1A120D, 0 40px 80px -30px rgba(52,33,23,.55), 0 18px 30px -18px rgba(52,33,23,.45);
}
.device--phone .device__screen { border-radius: 48px; }
.device--phone .device__island { display: block; position: absolute; top: 26px; left: 50%; width: 120px; height: 34px; transform: translateX(-50%); border-radius: 20px; background: #0B0807; z-index: 2; pointer-events: none; }
.device--phone .device__body::before, .device--phone .device__body::after { content: ''; position: absolute; width: 4px; border-radius: 2px; background: #2A1E17; }
.device--phone .device__body::before { left: -4px; top: 170px; height: 64px; box-shadow: 0 84px 0 #2A1E17; }
.device--phone .device__body::after { right: -4px; top: 220px; height: 96px; }

/* Ноутбук: экран в тёмной рамке с камерой, алюминиевое основание шире экрана */
.device--desktop .device__body {
  margin: 0 70px; padding: 22px 18px 18px; border-radius: 22px 22px 6px 6px;
  background: linear-gradient(180deg, #2B211B, #17110D);
  box-shadow: 0 0 0 1.5px #5A473A inset, 0 30px 60px -30px rgba(52,33,23,.5);
}
.device--desktop .device__screen { border-radius: 6px; }
.device--desktop .device__cam { display: block; position: absolute; top: 8px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #0B0807; box-shadow: 0 0 0 2px #3A2D24; }
.device--desktop .device__base {
  display: block; height: 26px; border-radius: 2px 2px 22px 22px;
  background: linear-gradient(180deg, #E9DFD4 0%, #CDBFB1 55%, #A99686 100%);
  box-shadow: 0 1px 0 #FFF inset, 0 22px 30px -18px rgba(52,33,23,.5);
  position: relative;
}
.device--desktop .device__base::before { content: ''; position: absolute; top: 0; left: 50%; width: 180px; height: 10px; margin-left: -90px; border-radius: 0 0 12px 12px; background: linear-gradient(180deg, #BBAA99, #D8CBBE); }

/* Узкий экран: телефонный режим без корпуса, на всю ширину */
.device.is-bare .device__body { padding: 0; border-radius: var(--r-m); background: none; box-shadow: 0 0 0 1px var(--c-line); }
.device.is-bare .device__screen { border-radius: var(--r-m); }
.device.is-bare .device__island, .device.is-bare .device__body::before, .device.is-bare .device__body::after { display: none; }

/* Режим «На компьютере»: ноутбук на всю ширину страницы, описание — ниже */
@media (min-width: 1001px) {
  .dgrid.is-wide { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "view" "side"; }
  .dgrid.is-wide > .dhead { max-width: 860px; }
  .dgrid.is-wide .dgrid__side { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; align-items: start; }
}
.viewer { padding: 16px; }
.viewer__frame { display: none; }
.inv-full { display: block; width: 100%; height: calc(100vh - 61px); border: 0; }


/* Пометка «это демо» вне приглашения */
.viewer__demo, .inv-demo-strip { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; padding: 10px 14px; border-radius: var(--r-m); background: #F6ECD9; color: #6B4A12; font-size: .875rem; line-height: 1.45; }
.viewer__demo .ico, .inv-demo-strip .ico { margin-top: 2px; flex: none; }
.inv-demo-strip { margin: 0; border-radius: 0; justify-content: center; font-family: var(--f-body); }
.inv-full { height: calc(100vh - 61px - 42px); }
/* Настоящее превью дизайна в карточке */
.poster-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ctx__thumb .poster-img { object-position: center; }


/* Нижняя панель на телефоне: две кнопки */
@media (max-width: 760px) { .mobile-bar { grid-template-columns: 1fr 1.25fr; } }

/* Страница дизайна: две кнопки в один ряд, компактные условия на телефоне */
.dhead__actions { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 10px; }
@media (max-width: 560px) {
  .dhead__actions { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .dhead__actions .btn { width: 100%; padding-inline: 12px; font-size: .9375rem; }
  .dhead__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
  .dhead__meta > div:nth-child(2) { grid-column: auto; }
  .dhead__meta strong { font-size: .875rem; line-height: 1.3; }
  .dhead__meta .dhead__price { font-size: 1.5rem; }
}

/* Режим «На компьютере»: описание по центру высоты плашки калькулятора */
@media (min-width: 1001px) { .dgrid.is-wide .dgrid__side { align-items: center; } .dgrid.is-wide .ddesc { margin: 0; } }


/* Карточки дизайнов: превью в пропорции экрана 16:10 — первый экран виден целиком, без обрезки */
.card { overflow: visible; }
.card__media { aspect-ratio: 16 / 10; border-radius: var(--r-l) var(--r-l) 0 0; overflow: hidden; }
.card .poster-img { object-fit: cover; object-position: center top; }
/* «Можно адаптировать» — наполовину на карточке, наполовину над ней: не закрывает текст и лица */
.badge.badge--adapt { top: 0; left: 18px; transform: translateY(-50%); z-index: 4; white-space: nowrap; }
.cards { row-gap: clamp(30px, 3vw, 40px); padding-top: 14px; }

/* Каталог: заметный блок «Показать ещё» */
.more-block { display: grid; justify-items: center; gap: 12px; margin: clamp(36px, 5vw, 56px) auto 0; max-width: 520px; padding: 28px 24px; text-align: center; border-radius: var(--r-l);
  background: linear-gradient(165deg, rgba(255,255,255,.94), rgba(246,236,224,.8)); box-shadow: 0 0 0 1px rgba(181,139,89,.2), 0 18px 40px -24px rgba(84,52,30,.4); }
.more-block__count { font-size: 1.0625rem; color: var(--c-ink-2); }
.more-block__count strong { color: var(--c-ink); font-family: var(--f-display); font-size: 1.35rem; }
.more-block__bar { width: 100%; max-width: 320px; height: 6px; border-radius: 3px; background: var(--c-line); overflow: hidden; }
.more-block__bar span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--metal), var(--c-accent)); }
.more-block__btn { min-width: min(100%, 320px); margin-top: 4px; }
.more-block__btn .ico { width: 20px; height: 20px; }
@media (prefers-reduced-motion: no-preference) {
  .more-block__btn .ico { animation: moreBounce 1.2s var(--ease-in-out) .6s 3; }
  @media (hover: hover) and (pointer: fine) {
    .more-block__btn:hover .ico { animation: moreBounce 1.2s var(--ease-in-out) infinite; }
  }
  @keyframes moreBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
}
.more-block__hint { font-size: .875rem; color: var(--c-ink-3); }


/* Вариант фона первого экрана на телефоне: картинка под текстом, предмет справа в кадре */
@media (max-width: 900px) {
  .hero__object--photo { width: 100%; max-width: none; margin: 8px 0 0; aspect-ratio: 4 / 3; object-fit: cover; object-position: 78% center;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%); }
}

/* Фон первого экрана на компьютере: без растушёвки сверху и снизу — картинка доходит до верха окна, меню лежит поверх */
@media (min-width: 901px) {
  .hero--glass .hero__bg { -webkit-mask-image: none; mask-image: none; opacity: 1; }
  .hero--glass .hero__bg.is-fade-left {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 140px); mask-image: linear-gradient(to right, transparent 0, #000 140px);
  }
  .site-header { transition: background-color var(--dur) ease, border-color var(--dur) ease; }
  .site-header.is-on-hero { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
/* Главная, широкие мониторы: текст первого экрана и меню ближе к левому краю — фону хватает места справа, предмет не обрезается */
@media (min-width: 1400px) {
  body[data-page="home"] .site-header .header__inner, body[data-page="home"] .hero--glass .hero__grid { max-width: 1680px; }
}

/* Фоны блоков из картинок «предмет справа, светлое поле слева»: «Индивидуальная разработка» — бант, «О LUMI» — лепестки.
   Класс .sbg + .sbg--<имя> в разметке (home.js). */
.sbg--bow { --sbg-img: url('../assets/decor/lumi-bow.jpg'); }
.sbg--petals { --sbg-img: url('../assets/decor/lumi-petals.jpg'); }
.sbg--envelope { --sbg-img: url('../assets/decor/lumi-envelope.jpg'); }
.section.sbg {
  position: relative; isolation: isolate; color: var(--c-ink);
  background: linear-gradient(90deg, rgba(245,240,236,.78) 0, rgba(245,240,236,.45) 34%, rgba(245,240,236,0) 56%),
              var(--sbg-img) right center / cover no-repeat, var(--c-bg);
}
.section.sbg .sec-head::before, .section.sbg .cta > .sec-title::before { display: none; }
.section.sbg .sec-lead { color: var(--c-ink-2); }
.section.sbg .sec-title em { color: var(--c-cta); }
@media (min-width: 901px) { .section.sbg { padding-block: clamp(80px, 9vw, 140px); } }

/* «Свой дизайн» на светлой картинке: тёмный текст, варианты — матовое стекло поверх предмета */
.section.sbg#custom .custom__note { color: var(--c-ink-2); }
.section.sbg#custom .custom__opts li {
  background: linear-gradient(160deg, rgba(255,252,248,.72), rgba(255,252,248,.48)); border: 1px solid rgba(181,139,89,.32);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 18px 40px -24px rgba(84,52,30,.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}
.section.sbg#custom .custom__opts p { color: var(--c-ink-2); }
.section.sbg#custom .custom__n .star { color: var(--metal); }
.section.sbg#custom .btn--light { --b-bg: var(--c-cta); --b-ink: var(--c-cta-ink); background-color: var(--c-cta); color: var(--c-cta-ink); }
.section.sbg#custom .btn--light:hover { --b-bg: var(--c-cta-hover); background-color: var(--c-cta-hover); }
.section.sbg#custom .btn--ghost-light { --b-ink: var(--c-ink); --b-line: rgba(181,139,89,.5); color: var(--c-ink); background: rgba(255,252,248,.65); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* «О LUMI»: текст слева, картинка справа вместо плашки с логотипом */
.section.sbg#about .about { grid-template-columns: minmax(0, 560px) 1fr; }
.section.sbg#about .about__mark { display: none; }

/* Финальный блок: текст и кнопки слева, предмет справа */
.section.sbg#contacts .cta { text-align: left; justify-items: start; }
.section.sbg#contacts .cta > * { max-width: 560px; }
.section.sbg#contacts .sec-lead { margin-inline: 0; }
.section.sbg#contacts .cta__actions, .section.sbg#contacts .cta__hours { justify-content: flex-start; }

/* Телефон: текст на чистом фоне, картинка отдельной полосой под блоком, предмет в кадре */
@media (max-width: 900px) {
  .section.sbg { background: var(--c-bg); padding-bottom: 0; }
  .section.sbg::after {
    content: ''; display: block; aspect-ratio: 4 / 3; margin-top: 28px;
    background: var(--sbg-img) 80% center / cover no-repeat;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%); mask-image: linear-gradient(180deg, transparent 0, #000 16%);
  }
  .section.sbg#about .about { grid-template-columns: minmax(0, 1fr); }
  .section.sbg#custom .custom__opts li { background: var(--c-surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.section.sbg#contacts .cta__hours { flex-wrap: nowrap; align-items: flex-start; text-align: left; }
/* Бант заходит левее остальных предметов — плотнее молочная вуаль под текстом */
@media (min-width: 901px) {
  .section.sbg--bow {
    background: linear-gradient(90deg, rgba(245,240,236,.94) 0, rgba(245,240,236,.86) 36%, rgba(245,240,236,.35) 50%, rgba(245,240,236,0) 60%),
                var(--sbg-img) right center / cover no-repeat, var(--c-bg);
  }
}


/* Фоны секций с картинкой (section--photo): конверт и «без картинки» */
.bg-envelope { --photo: url('../assets/decor/lumi-envelope.jpg'); }
.section--photo.bg-plain::before, .section--photo.bg-plain::after { display: none; }
.section--photo.bg-plain { background: linear-gradient(180deg, var(--c-bg), color-mix(in srgb, var(--c-section-tint) 60%, var(--c-bg)) 50%, var(--c-bg)); }
/* Конверт: светлое поле слева, предмет справа — без растушёвки сверху, картинка до краёв блока */
.section--photo.bg-envelope::before { background-position: right center; }

/* «Что может быть в приглашении»: свёрнуто по умолчанию, раскрывается кнопкой */
.feat-panel { margin-top: clamp(20px, 3vw, 32px); }
.feat__toggle { min-width: min(100%, 360px); }
.feat__toggle[aria-expanded="true"] .addons__arrow { transform: rotate(180deg); }
.feat__toggle-wrap { margin-top: 8px; }
/* Превью нескольких разделов над кнопкой */
.feat-peek { list-style: none; margin: 0 auto 18px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 980px; }
.feat-peek[hidden] { display: none; }
.fchip--peek { cursor: default; min-height: 40px; font-size: .875rem; }
.fchip--peek .ico { color: var(--metal); }
.fchip--more { font-weight: 600; color: var(--c-ink-2); padding-left: 16px; }
/* Свёрнутый блок короткий — картинка фона целиком помещается, текст на светлом поле слева.
   Чипы разделов — плотное матовое стекло, чтобы надписи не терялись на любом фоне */
#features .fchip { background: rgba(255,252,248,.86); }
#features .fchip.is-on { background: var(--c-cta); color: var(--c-cta-ink); border-color: var(--c-cta); }
@media (max-width: 760px) { .feat-peek li:nth-child(n+6):not(.fchip--more) { display: none; } }

/* «О LUMI»: лепестки видны целиком — картинка вписана по высоте блока и прижата вправо,
   слева её светлый край переходит в молочный цвет страницы */
@media (min-width: 901px) {
  .section.sbg--petals {
    min-height: clamp(560px, 44vw, 780px); display: flex; align-items: center;
    background: linear-gradient(90deg, rgba(245,240,236,.7) 0, rgba(245,240,236,.35) 34%, rgba(245,240,236,0) 52%),
                var(--sbg-img) right center / auto 100% no-repeat, #F4EEEA;
  }
  .section.sbg--petals > .container { width: 100%; }
}

/* ================= Главная: «Лента и плашки» =================
   Под всей страницей — сплошная молочная лента. Блоки с картинкой или тоном (фото, бант, лепестки,
   финальный блок, «Готовые дизайны») лежат на ней скруглёнными плашками с отступом от краёв;
   простые блоки (вопросы, подвал) лежат прямо на ленте. Первый экран снизу тоже скруглён. */
body[data-page="home"] { background: #ECE3D9; }
body[data-page="home"] #main > .section:not(.section--photo):not(.sbg):not(.section--cta):not(.section--alt) { background: transparent; }
body[data-page="home"] :is(.section--photo, .section.sbg, .section--cta, .section--alt) {
  margin: clamp(10px, 1.2vw, 18px) clamp(10px, 1.6vw, 24px); border-radius: clamp(26px, 3vw, 48px); overflow: hidden;
  box-shadow: 0 0 0 1px rgba(181,139,89,.2), 0 34px 60px -44px rgba(84,52,30,.5);
}
body[data-page="home"] .section--photo:not(.section--photo-top)::after { background: none; }
body[data-page="home"] .section--photo-top::after { background: linear-gradient(180deg, rgba(245,240,236,0) 0, rgba(245,240,236,0) calc(min(100%, 56.25vw) - 22%), var(--c-bg) min(100%, 56.25vw)); }
body[data-page="home"] .hero--glass { border-radius: 0 0 clamp(28px, 3.4vw, 56px) clamp(28px, 3.4vw, 56px); box-shadow: 0 34px 60px -44px rgba(84,52,30,.5); }
body[data-page="home"] .site-footer { background: transparent; border-top: 0; }

@media (max-width: 760px) {
  body[data-page="home"] .section--photo::after { background: linear-gradient(180deg, rgba(245,240,236,0) 0, rgba(245,240,236,.2) 45vw, var(--c-bg) 70vw); }
}

/* Анкета гостя свёрнута: что внутри — три пункта и кнопка */
.demo-peek { list-style: none; margin: 0 auto 20px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 900px; }
.demo-peek[hidden] { display: none; }
.demo-peek li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-l);
  background: linear-gradient(165deg, rgba(255,255,255,.9), rgba(255,250,244,.7)); border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 0 0 1px rgba(181,139,89,.16), 0 14px 30px -22px rgba(84,52,30,.38); }
.demo-peek .ico, .demo-peek__star { width: 26px; height: 26px; flex: none; color: var(--metal); }
.demo-peek span { display: grid; gap: 2px; font-size: .875rem; color: var(--c-ink-2); line-height: 1.35; }
.demo-peek strong { font-size: 1rem; color: var(--c-ink); }
.demo__toggle { min-width: min(100%, 320px); }
.demo__toggle[aria-expanded="true"] .addons__arrow { transform: rotate(180deg); }
.demo-panel { margin-top: clamp(20px, 3vw, 28px); }
@media (max-width: 760px) { .demo-peek { grid-template-columns: minmax(0, 1fr); } }

/* Анкета гостя — тёмный блок: те же оттенки LUMI наоборот —
   тёмный шоколад, текст цвета молока, кнопки и выбор — шампань, линии — латунь */
.demo-wrap--dark {
  --c-surface: #2B1B13; --c-surface-2: #34231A; --c-bg-alt: #3B291E;
  --c-ink: #F6EDE2; --c-ink-2: #D6C3B1; --c-ink-3: #B49F8C;
  --c-line: rgba(232,210,175,.16); --c-line-strong: rgba(232,210,175,.32);
  --c-accent: #E3C89E; --c-cta: #DDBE8F; --c-cta-hover: #ECD2A9; --c-cta-ink: #24160F;
  --c-ok: #A9D8B6; --c-ok-soft: rgba(126,182,140,.16); --c-focus: #E8D2AF;
  color-scheme: dark; color: var(--c-ink);
  background: radial-gradient(90% 70% at 85% 0, rgba(181,139,89,.28), rgba(181,139,89,0) 60%),
              radial-gradient(70% 60% at 0 100%, rgba(104,71,52,.45), rgba(104,71,52,0) 70%),
              linear-gradient(165deg, #33211A, #1F130D);
  border: 1px solid rgba(232,210,175,.22);
  box-shadow: 0 1px 0 rgba(255,240,220,.08) inset, 0 40px 80px -40px rgba(30,18,12,.75);
}
.demo-wrap--dark .sec-title, .demo-wrap--dark h3, .demo-wrap--dark strong { color: var(--c-ink); }
.demo-wrap--dark .sec-title em { color: var(--metal-light); }
.demo-wrap--dark .sec-lead, .demo-wrap--dark .muted, .demo-wrap--dark .panel__note { color: var(--c-ink-2); }
.demo-wrap--dark :is(.demo__form, .demo__table, .dash, .dcard, .demo-peek li, .table-wrap) {
  background: linear-gradient(165deg, rgba(255,240,220,.08), rgba(255,240,220,.03));
  border: 1px solid rgba(232,210,175,.18);
  box-shadow: 0 1px 0 rgba(255,240,220,.07) inset, 0 20px 40px -26px rgba(0,0,0,.65);
}
.demo-wrap--dark .table-wrap { box-shadow: none; }
.demo-wrap--dark .dcard { background: linear-gradient(165deg, rgba(255,240,220,.10), rgba(255,240,220,.04)); }
.demo-wrap--dark :is(input[type=text], input[type=number], select, .mini-seg span, .mini-multi label span) {
  background: rgba(15,9,6,.35); color: var(--c-ink); border-color: var(--c-line-strong);
}
.demo-wrap--dark input::placeholder { color: var(--c-ink-3); }
.demo-wrap--dark .table thead th { background: rgba(255,240,220,.06); color: var(--c-ink-2); }
.demo-wrap--dark .table tr.is-new td { background: rgba(221,190,143,.14); }
.demo-wrap--dark :is(.tag, .pill, .pill--ok) { background: rgba(255,240,220,.1); color: var(--c-ink); }
.demo-wrap--dark .pill--ok { background: rgba(126,182,140,.18); color: var(--c-ok); }
.demo-wrap--dark :is(.demo-peek .ico, .demo-peek__star) { color: var(--metal-light); }
.demo-wrap--dark .btn--primary { box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 12px 28px -12px rgba(221,190,143,.55); }
.demo-wrap--dark .btn--ghost, .demo-wrap--dark .link-btn { color: var(--c-ink); }
.demo-wrap--dark .sec-head::before { display: none; }
.demo-wrap--dark :is(.mini-seg input:checked + span, .mini-multi label input:checked + span) { background: var(--c-cta); border-color: var(--c-cta); color: var(--c-cta-ink); }

/* ================= Анимации появления (js/motion.js): «Мягкое проявление» =================
   Включает js/motion.js атрибутом data-anim="a" на <body>. Только transform / opacity; кривая --ease-out.
   Если пользователь просит меньше движения, motion.js ничего не включает — всё видно сразу. */
@media (prefers-reduced-motion: no-preference) {
  /* Общее: до появления блоки, заголовки и элементы «лесенки» скрыты */
  [data-anim] .m-rv:not(.m-in), [data-anim] .m-rv:not(.m-in) .sec-head, [data-anim] .m-rv .mst { opacity: 0; }
  [data-anim] .m-rv.m-in .mst { animation: m-up .8s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms + 220ms); }
  [data-anim] .hero:not(.m-in) .hero__copy > * { opacity: 0; }
  [data-anim] .hero.m-in .hero__copy > * { animation: m-up .7s var(--ease-out) both; animation-delay: calc(var(--h, 0) * 60ms + 60ms); }

  @keyframes m-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
  @keyframes m-fade { from { opacity: 0; } to { opacity: 1; } }

  /* A. Мягкое проявление — блоки всплывают, картинки чуть «оседают», элементы идут лесенкой */
  [data-anim="a"] .m-rv.m-in { animation: a-plate 1s var(--ease-out) both; }
  [data-anim="a"] .m-rv.m-in .sec-head { animation: m-up .9s var(--ease-out) .1s both; }
  [data-anim="a"] .m-rv.m-in.section--photo::before { animation: a-img 1.8s var(--ease-out) both; }
  [data-anim="a"] .hero.m-in .hero__bg { animation: a-img 2s var(--ease-out) both; }
  @keyframes a-plate { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: none; } }
  @keyframes a-img { from { opacity: .4; transform: scale(1.07); } to { opacity: 1; transform: none; } }

}
/* Во время появления (наклон, масштаб) ничего не должно расширять страницу вбок */
html:has(body[data-anim]), body[data-anim] { overflow-x: clip; }


/* ================= Полировка: поверхности браузера, типографика, мелкие состояния ================= */
/* Выделение текста, курсор ввода, полосы прокрутки и галочки — в палитре LUMI, а не браузерные по умолчанию */
::selection { background: var(--c-cta); color: var(--c-cta-ink); }
.demo-wrap--dark ::selection { background: var(--metal-light); color: #24160F; }
input, textarea, select { caret-color: var(--c-cta); accent-color: var(--c-cta); }
html { scrollbar-color: rgba(104,71,52,.45) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(104,71,52,.38); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(104,71,52,.6); }
/* Цифры в таблицах, ценах и расчётах — одинаковой ширины, столбцы не «пляшут» */
.table, .totals, .dcard__big, .price-tag, .plan__price, .custom__price, .price-chip strong, .sum__total dd, .more-block__count { font-variant-numeric: tabular-nums lining-nums; }
/* Заголовки переносятся ровными строками, абзацы — без одиноких слов в конце */
.sec-title, .page-title, .hero__title, .card__title, .plan__title, .v__name { text-wrap: balance; }
.sec-lead, .hero__lead, .card__summary, .step p, .flow__step p, .qa__a p, .about__points p, .custom__opts p { text-wrap: pretty; }
/* Подписи событий на карточках — латунь, но читаемая */
.card__event { color: var(--c-brand-ink); }
/* Ссылки подвала: удобная зона нажатия на телефоне */
.footer__list a { display: inline-flex; align-items: center; min-height: 36px; }
.site-footer a { text-underline-offset: 3px; }


/* ================= Страница «Политика обработки данных» ================= */
.legal { padding-top: clamp(24px, 4vw, 48px); }
.legal__wrap { max-width: 780px; }
.legal__date { margin-top: 10px; color: var(--c-ink-3); font-size: .9375rem; }
.legal__lead { margin-top: clamp(20px, 3vw, 28px); font-size: var(--fs-lead); color: var(--c-ink-2); }
.legal__toc { margin-top: clamp(24px, 3vw, 32px); padding: 20px 24px; border-radius: var(--r-l);
  background: linear-gradient(165deg, rgba(255,255,255,.92), rgba(255,250,244,.75)); border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 0 0 1px rgba(181,139,89,.16), 0 16px 34px -24px rgba(84,52,30,.38); }
.legal__toc-title { font-weight: 700; margin-bottom: 8px; }
.legal__toc ol { margin: 0; padding-left: 1.4em; columns: 2; column-gap: 32px; }
.legal__toc li { break-inside: avoid; }
.legal__toc a { display: inline-flex; min-height: 36px; align-items: center; color: var(--c-ink); text-underline-offset: 3px; }
.legal__toc a:hover { color: var(--c-cta); }
.legal section { margin-top: clamp(36px, 5vw, 56px); scroll-margin-top: calc(var(--header-h) + 24px); }
.legal h2 { font: 500 clamp(1.45rem, 1.2rem + 1vw, 1.9rem)/1.2 var(--f-display); letter-spacing: -.01em; margin-bottom: 14px; text-wrap: balance; }
.legal h3 { font: 600 1.0625rem/1.35 var(--f-body); margin: 22px 0 6px; }
.legal p, .legal li { line-height: 1.65; text-wrap: pretty; }
.legal p + p { margin-top: 10px; }
.legal section ul { margin: 8px 0 0; padding-left: 1.2em; display: grid; gap: 6px; }
.legal section li::marker { color: var(--c-brand); }
.legal a:not(.btn) { color: var(--c-cta); text-underline-offset: 3px; }
.legal__cta { margin-top: 18px; }
@media (max-width: 640px) { .legal__toc ol { columns: 1; } }
.form-note a { color: var(--c-cta); text-underline-offset: 3px; }
.legal section ul { list-style: disc; }
.legal__toc ol { list-style: decimal; }
.legal__toc li::marker { color: var(--c-ink-3); }
.legal section ul + p { margin-top: 14px; }


/* ================= Окно заявки и меню: появление и закрытие =================
   Только CSS: @starting-style + allow-discrete. В старых браузерах окна появляются мгновенно, как раньше. */
@media (prefers-reduced-motion: no-preference) {
  .sheet, .drawer {
    transition: transform 320ms var(--ease-drawer), opacity 280ms var(--ease-drawer),
                overlay 320ms allow-discrete, display 320ms allow-discrete;
  }
  .sheet { opacity: 0; transform: translateY(12px) scale(0.97); }
  .sheet[open] { opacity: 1; transform: none; }
  @starting-style { .sheet[open] { opacity: 0; transform: translateY(12px) scale(0.97); } }

  @media (max-width: 640px) {
    .sheet { opacity: 1; transform: translateY(100%); }
    .sheet[open] { transform: none; }
    @starting-style { .sheet[open] { opacity: 1; transform: translateY(100%); } }
  }

  .drawer { transform: translateX(100%); }
  .drawer[open] { transform: none; }
  @starting-style { .drawer[open] { transform: translateX(100%); } }

  .sheet::backdrop, .drawer::backdrop {
    opacity: 0;
    transition: opacity 280ms var(--ease-drawer), overlay 280ms allow-discrete, display 280ms allow-discrete;
  }
  .sheet[open]::backdrop, .drawer[open]::backdrop { opacity: 1; }
  @starting-style { .sheet[open]::backdrop, .drawer[open]::backdrop { opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  .sheet, .drawer { transition: opacity 200ms ease, overlay 200ms allow-discrete, display 200ms allow-discrete; opacity: 0; }
  .sheet[open], .drawer[open] { opacity: 1; }
  @starting-style { .sheet[open], .drawer[open] { opacity: 0; } }
}

/* Карточки дизайнов: «Развернуть» — список проявляется */
@media (prefers-reduced-motion: no-preference) {
  .card__incl[open] .card__list { animation: incl-in 240ms var(--ease-out) both; }
  @keyframes incl-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
}

/* Демо-анкета: новый ответ вспыхивает и гаснет до обычной подсветки (одна строка, один раз — перерисовка допустима) */
@media (prefers-reduced-motion: no-preference) {
  .demo-wrap--dark .table tr.is-new td { animation: row-new 1.6s var(--ease-out) both; }
  @keyframes row-new { from { background-color: rgba(221,190,143,.45); } to { background-color: rgba(221,190,143,.14); } }
}
/* Тёмная анкета: свечение карточек расчёта при наведении — в тонах шампани */
@media (hover: hover) and (pointer: fine) {
  .demo-wrap--dark .dcard:hover { box-shadow: 0 0 0 1px rgba(232,210,175,.38), 0 1px 0 rgba(255,240,220,.1) inset, 0 0 34px -6px rgba(232,210,175,.45); }
}


/* ================= Дизайны LUMI на телефоне: одна карточка на экран, листание свайпом и стрелками ================= */
.cards-nav { display: none; }
@media (max-width: 760px) {
  .cards-wrap { position: relative; }
  #home-cards {
    display: grid; grid-auto-flow: column; grid-auto-columns: 100%; grid-template-columns: none;
    column-gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none; padding-top: 14px; padding-bottom: 4px;
  }
  #home-cards::-webkit-scrollbar { display: none; }
  #home-cards > .card { scroll-snap-align: center; }
  .cards-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 16px; }
  .cards-nav__btn {
    display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
    background: var(--c-surface); color: var(--c-cta); border: 1.5px solid var(--c-line-strong);
    box-shadow: 0 10px 22px -14px rgba(84,52,30,.45);
  }
  .cards-nav__btn .ico { width: 22px; height: 22px; }
  .cards-nav__btn:disabled { opacity: .35; cursor: default; }
  .cards-nav__count { min-width: 56px; text-align: center; font-weight: 600; color: var(--c-ink-2); font-variant-numeric: tabular-nums; }
  #designs .sec-foot { margin-top: 20px; }
}

/* ================= Вопросы: главные сразу, остальные по кнопке ================= */
.faq__more { display: grid; gap: 10px; }
.faq__more[hidden] { display: none; }
.faq__toggle { justify-self: start; margin-top: 6px; }
.faq__toggle[aria-expanded="true"] .addons__arrow { transform: rotate(180deg); }
@media (max-width: 760px) { .faq__toggle { justify-self: stretch; } }

@media (max-width: 760px) {
  /* Стрелки — по бокам карточки, на высоте картинки; под карточкой — только счётчик */
  .cards-nav { margin-top: 12px; }
  .cards-nav__btn { position: absolute; z-index: 5; top: calc(14px + (100vw - 2 * var(--gutter) - 20px) * .3125); transform: translateY(-50%);
    width: 44px; height: 44px; background: rgba(255,252,248,.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .cards-nav__btn[data-cards="-1"] { left: -6px; }
  .cards-nav__btn[data-cards="1"] { right: -6px; }
  .cards-nav__btn:disabled { opacity: 0; pointer-events: none; }
}

/* ================= Телефон: картинки фоном под текстом =================
   Первый экран — портал на весь блок под молочной дымкой («Арки за текстом»);
   «Индивидуальная разработка» — бант сквозь тёмную шоколадную вуаль, светлый текст;
   «О LUMI» — лепестки поднимаются снизу из-под списка. */
@media (max-width: 900px) {
  /* Первый экран */
  body[data-page="home"] .hero--glass .hero__object--photo { display: none; }
  body[data-page="home"] .hero--glass { position: relative; isolation: isolate; overflow: hidden; padding-bottom: 32vw; }
  body[data-page="home"] .hero--glass .hero__bg {
    display: block; position: absolute; inset: 0; z-index: -1;
    background-repeat: no-repeat; background-size: cover; background-position: 72% center;
    -webkit-mask-image: none; mask-image: none; transform: none; opacity: 1;
  }
  body[data-page="home"] .hero--glass .hero__bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(245,240,236,.9) 0, rgba(245,240,236,.74) 40%, rgba(245,240,236,.5) 70%, rgba(245,240,236,.15) 100%);
  }
  body[data-page="home"] .hero--glass .price-chip, body[data-page="home"] .hero--glass .btn--glass { background: rgba(255,252,248,.82); }

  /* «Индивидуальная разработка»: тёмный шоколад */
  body[data-page="home"] .section.sbg--bow::after { display: none; }
  body[data-page="home"] .section.sbg--bow {
    padding-bottom: var(--section-y); color: #F6EDE2;
    background: linear-gradient(180deg, rgba(30,18,12,.86) 0, rgba(30,18,12,.6) 50%, rgba(30,18,12,.72) 100%), var(--sbg-img) 62% center / cover no-repeat, #24160F;
  }
  body[data-page="home"] .section.sbg#custom :is(.sec-title, .custom__price, .custom__opts h3) { color: #F6EDE2; }
  body[data-page="home"] .section.sbg#custom .sec-title em { color: var(--metal-light); }
  body[data-page="home"] .section.sbg#custom :is(.sec-lead, .custom__note, .custom__opts p) { color: #D6C3B1; }
  body[data-page="home"] .section.sbg#custom .custom__opts li { background: linear-gradient(165deg, rgba(255,240,220,.1), rgba(255,240,220,.04)); border: 1px solid rgba(232,210,175,.22); box-shadow: none; }
  body[data-page="home"] .section.sbg#custom .custom__n .star { color: var(--metal-light); }
  body[data-page="home"] .section.sbg#custom .btn--light { --b-bg: #DDBE8F; --b-ink: #24160F; background-color: #DDBE8F; color: #24160F; }
  body[data-page="home"] .section.sbg#custom .btn--ghost-light { --b-ink: #F6EDE2; --b-line: rgba(232,210,175,.45); color: #F6EDE2; background: transparent; }

  /* «О LUMI»: лепестки поднимаются снизу */
  body[data-page="home"] .section.sbg--petals::after { display: none; }
  body[data-page="home"] .section.sbg--petals {
    padding-bottom: 62vw;
    background: linear-gradient(180deg, var(--c-bg) 0, var(--c-bg) 42%, rgba(245,240,236,.55) 62%, rgba(245,240,236,0) 82%),
                var(--sbg-img) 82% 100% / auto 70% no-repeat, #F4EEEA;
  }

  /* Строки под кнопками первого экрана — шоколадные плашки: тёмное полупрозрачное стекло, текст цвета молока */
  body[data-page="home"] .hero--glass .hero__points { display: grid; gap: 8px; font-weight: 500; }
  body[data-page="home"] .hero--glass .hero__points li {
    padding: 10px 14px; border-radius: 14px; color: #FFF8F0;
    background: rgba(52,33,23,.66); border: 1px solid rgba(232,210,175,.22);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  body[data-page="home"] .hero--glass .hero__points .ico { color: var(--metal-light); }
}

/* Ловушка для спам-ботов в форме заявки — невидима для людей и экранных дикторов */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
