/* Кабинет, календарь, галерея, сертификаты, рисовалка, 3D-оттиск, согласование. */

/* ---------- сообщения ---------- */
.flash-wrap { position: fixed; top: calc(var(--header-h) + 50px); left: 50%; transform: translateX(-50%); z-index: 70; display: grid; gap: 8px; width: min(560px, calc(100% - 32px)); }
.flash { padding: 14px 18px; border-radius: 16px; background: var(--choco); color: var(--cream-text); box-shadow: var(--shadow-lg); font-weight: 600; font-size: 14.5px; animation: flash-in .5s var(--ease), flash-out .6s 6s forwards; }
.flash--error { background: var(--berry); }
@keyframes flash-in { from { opacity: 0; transform: translateY(-10px); } }
@keyframes flash-out { to { opacity: 0; visibility: hidden; } }

/* ---------- подпись к своим формам в первом экране ---------- */
.hero__caption {
  position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); z-index: 3; display: grid; justify-items: center; gap: 2px;
  min-width: 240px; max-width: 92%; padding: 10px 20px 12px; border-radius: 22px; text-align: center; text-decoration: none;
  background: rgba(255, 253, 249, .94); backdrop-filter: blur(8px); box-shadow: var(--shadow); color: var(--choco);
  transition: transform .3s var(--ease);
}
.hero__caption:hover { transform: translateX(-50%) translateY(-3px); }
.hero__caption[hidden] { display: none; }
.hero__caption span:first-child { font-family: var(--font-display); font-size: 19px; font-weight: 600; line-height: 1.15; }
.hero__caption b { font-size: 15px; color: var(--ginger); }
.hero__caption-go { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.hero__caption-go .icon { width: 14px; height: 14px; }

/* сегменты-переключатели (3D: пряник / доска / вместе) */
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--flour-2); border: 1px solid var(--linen); }
.seg button {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent;
  font-weight: 700; font-size: 13.5px; color: var(--muted); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; white-space: nowrap;
}
.seg button[aria-pressed="true"] { background: var(--white); color: var(--choco); box-shadow: var(--shadow-sm); }
.seg--wide { display: flex; width: 100%; flex-wrap: wrap; border-radius: 18px; }
.seg--wide button { flex: 1; justify-content: center; border-radius: 14px; }

/* ---------- лесенка скидок ---------- */
.tiers { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tiers__item { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--flour-2); border: 1px solid var(--linen); font-size: 13px; font-weight: 600; color: var(--choco); }
.tiers__item b { color: var(--ginger); }
.tiers__item.is-on { background: var(--choco); color: var(--cream-text); border-color: var(--choco); }
.tiers__item.is-on b { color: var(--honey); }
.tier-hint { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(224, 160, 58, .14); color: var(--choco); font-size: 14px; font-weight: 600; }
.tier-hint .icon { color: var(--honey-deep); }

/* ---------- календарь праздников ---------- */
.holiday {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: clamp(16px, 3vw, 32px); align-items: center;
  padding: clamp(20px, 3vw, 30px); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--linen); box-shadow: var(--shadow-sm); overflow: hidden;
}
.holiday::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: linear-gradient(var(--honey), var(--ginger)); }
.holiday__count { text-align: center; min-width: 96px; }
.holiday__count b { display: block; font-family: var(--font-display); font-size: clamp(54px, 6vw, 76px); line-height: .9; color: var(--ginger); }
.holiday__count span { font-size: 13px; color: var(--muted); font-weight: 600; }
.holiday__title { font-family: var(--font-display); font-size: clamp(26px, 2.8vw, 34px); font-weight: 600; color: var(--choco); line-height: 1.1; }
.holiday__date { font-size: 14px; color: var(--muted); margin: 4px 0 12px; }
.holiday__bar { height: 8px; border-radius: 999px; background: var(--flour-2); overflow: hidden; margin-bottom: 12px; }
.holiday__bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--honey), var(--ginger)); }
.holiday__deadlines { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; }
.holiday__deadlines strong { color: var(--choco); }
.holiday__deadlines .late { color: var(--berry); }
.holiday__actions { display: grid; gap: 8px; justify-items: stretch; }
.holiday--compact { grid-template-columns: auto 1fr; padding: 16px 20px; }
.holiday--compact .holiday__count b { font-size: 46px; }
.holiday--compact .holiday__title { font-size: 22px; }
.cal-list { display: grid; gap: 14px; }
.cal-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; align-items: center; padding: 16px 20px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--linen); }
.cal-row__date { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--ginger); line-height: 1; }
.cal-row__date small { display: block; font-family: var(--font-body); font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.cal-row h3 { font-size: 24px; }
.cal-row p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.subscribe-box { padding: clamp(22px, 3vw, 34px); border-radius: var(--radius-lg); background: var(--choco); color: var(--cream-text); }
.subscribe-box h3 { color: var(--flour); }
.subscribe-box .lead { color: rgba(246, 234, 216, .75); }
.subscribe-box .input { background: rgba(255, 253, 249, .96); color: var(--ink); }
.subscribe-box__row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.subscribe-box__row .input { flex: 1 1 220px; }
.subscribe-box__msg { margin-top: 12px; font-weight: 600; font-size: 14px; }

/* ---------- кабинет ---------- */
.cab { display: grid; grid-template-columns: 250px 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.cab__nav { position: sticky; top: calc(var(--header-h) + 18px); display: grid; gap: 4px; padding: 12px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--linen); }
.cab__nav a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--choco); }
.cab__nav a:hover { background: var(--flour-2); }
.cab__nav a.is-active { background: var(--choco); color: var(--cream-text); }
.cab__nav .count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; font-size: 11.5px; font-weight: 800; background: var(--flour-2); color: var(--ginger); }
.cab__nav .count--hot { background: var(--honey); color: var(--ink); }
.cab__nav form { margin: 6px 0 0; }
.cab__nav button { width: 100%; text-align: left; padding: 11px 14px; border: 0; border-radius: 12px; background: none; cursor: pointer; color: var(--muted); font-weight: 600; }
.cab__body { display: grid; gap: 18px; min-width: 0; }
.cab-card { padding: clamp(18px, 2.4vw, 26px); border-radius: var(--radius); background: var(--white); border: 1px solid var(--linen); }
.cab-card h2 { font-size: clamp(26px, 2.6vw, 32px); margin-bottom: 14px; }
.cab-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
.level-card { position: relative; overflow: hidden; color: var(--cream-text); background: radial-gradient(500px 260px at 100% 0%, rgba(224, 160, 58, .35), transparent 60%), var(--choco); border: 0; }
.level-card h2 { color: var(--flour); margin-bottom: 4px; }
.level-card .rosette { position: absolute; right: -40px; bottom: -40px; width: 180px; color: rgba(246, 234, 216, .08); }
.level-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: 13px; letter-spacing: .04em; color: #fff; }
.level-perks { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 6px; font-size: 14.5px; }
.level-perks li { display: flex; gap: 8px; }
.level-perks .icon { color: var(--honey); }
.level-progress { margin-top: 12px; font-size: 13.5px; color: rgba(246, 234, 216, .75); }
.level-progress .holiday__bar { background: rgba(246, 234, 216, .15); margin: 8px 0 0; }
.ticket { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1.5px dashed var(--linen-2); background: var(--flour); }
.ticket code { font-family: ui-monospace, Consolas, monospace; font-size: 15px; font-weight: 700; letter-spacing: .06em; color: var(--choco); }
.ticket small { display: block; color: var(--muted); font-size: 12.5px; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; padding: 10px 8px; border-bottom: 1px solid var(--linen); }
.table td { padding: 14px 8px; border-bottom: 1px solid var(--linen); vertical-align: middle; }
.table a { font-weight: 700; color: var(--ginger); }
.status-chip { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--flour-2); color: var(--choco); white-space: nowrap; }
.status-chip--hot { background: var(--honey); color: var(--ink); }
.status-chip--ok { background: rgba(79, 122, 58, .15); color: var(--ok); }
.req-card { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; padding: 14px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--linen); text-decoration: none; color: inherit; }
.req-card img { width: 96px; height: 96px; object-fit: cover; border-radius: 14px; background: var(--flour-2); }
.req-card strong { font-family: var(--font-display); font-size: 22px; color: var(--choco); }
.auth { max-width: 460px; margin: 0 auto; }
.auth .cab-card { padding: clamp(24px, 4vw, 40px); }
.auth__alt { text-align: center; margin-top: 16px; font-size: 14.5px; color: var(--muted); }

/* ---------- галерея «Испекли сами» ---------- */
.baked-grid { columns: 4 220px; column-gap: 14px; }
.baked { break-inside: avoid; margin: 0 0 14px; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--linen); }
.baked img { width: 100%; height: auto; }
.baked figcaption { padding: 12px 14px; font-size: 13.5px; color: var(--muted); }
.baked figcaption b { color: var(--choco); }
.baked figcaption a { color: var(--ginger); font-weight: 700; text-decoration: none; }
.photo-cta { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(18px, 3vw, 40px); align-items: start; padding: clamp(22px, 3vw, 36px); border-radius: var(--radius-lg); background: linear-gradient(140deg, #fbefdc, #f3dcb6); }
.photo-cta h3 { font-size: clamp(28px, 3vw, 38px); }
.reward-badge { display: inline-grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: var(--berry); color: #fff; font-weight: 800; font-size: 26px; line-height: 1; text-align: center; transform: rotate(-8deg); box-shadow: var(--shadow); margin-bottom: 14px; }
.reward-badge small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; }

/* ---------- подарочный сертификат ---------- */
.cert-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.cert-preview { position: sticky; top: calc(var(--header-h) + 18px); }
.cert-card {
  position: relative; aspect-ratio: 1.6; border-radius: 26px; padding: clamp(22px, 3.4vw, 40px); overflow: hidden; color: var(--choco);
  background: linear-gradient(135deg, #f6d6a0, #d9953c); box-shadow: var(--shadow-lg); transition: background .4s;
}
.cert-card::before { content: ""; position: absolute; inset: 12px; border-radius: 18px; border: 1.5px solid currentColor; opacity: .35; pointer-events: none; }
.cert-card[data-design="choco"] { background: linear-gradient(135deg, #5c3824, #2a1a10); color: #fbf0de; }
.cert-card[data-design="berry"] { background: linear-gradient(135deg, #fae4d6, #c45c4a); }
.cert-card .rosette { position: absolute; right: 5%; bottom: 9%; width: 15%; height: auto; opacity: .85; }
.cert-card__title { padding-right: 2%; }
.cert-card__brand { font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.cert-card__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.4vw, 44px); line-height: 1; margin-top: 8px; }
.cert-card__sub { font-family: var(--font-display); font-style: italic; font-size: clamp(16px, 1.6vw, 21px); opacity: .85; }
.cert-card__amount { font-size: clamp(40px, 5.4vw, 72px); font-weight: 800; letter-spacing: -.02em; margin-top: clamp(10px, 2vw, 22px); line-height: 1; }
.cert-card__to { font-weight: 700; margin-top: 10px; font-size: clamp(14px, 1.4vw, 18px); }
.cert-card__msg { font-family: var(--font-display); font-style: italic; font-size: clamp(15px, 1.5vw, 20px); opacity: .9; }
.cert-card__code { position: absolute; left: clamp(22px, 3.4vw, 40px); bottom: clamp(18px, 3vw, 34px); font-family: ui-monospace, Consolas, monospace; font-weight: 700; letter-spacing: .1em; opacity: .7; }
.nominals { display: flex; flex-wrap: wrap; gap: 8px; }
.nominals label { cursor: pointer; }
.nominals input { position: absolute; opacity: 0; pointer-events: none; }
.nominals span { display: inline-flex; min-height: 46px; align-items: center; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--linen-2); background: var(--white); font-weight: 800; }
.nominals input:checked + span { background: var(--choco); color: var(--cream-text); border-color: var(--choco); }
.designs { display: flex; gap: 10px; }
.designs label { cursor: pointer; }
.designs input { position: absolute; opacity: 0; }
.designs span { display: block; width: 54px; height: 54px; border-radius: 14px; border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--linen-2); }
.designs input:checked + span { box-shadow: 0 0 0 2.5px var(--ginger); }

/* ---------- рисовалка ---------- */
.pad { display: grid; gap: 10px; }
.pad__canvas { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #fff; border: 2px solid var(--linen-2); touch-action: none; cursor: crosshair; }
.pad__canvas canvas { width: 100%; height: 100%; display: block; }
.pad__hint { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: var(--linen-2); font-family: var(--font-display); font-size: 26px; font-style: italic; pointer-events: none; transition: opacity .3s; }
.pad__tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pad__tools button { min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--linen-2); background: var(--white); cursor: pointer; font-weight: 700; color: var(--choco); display: inline-grid; place-items: center; }
.pad__tools button[aria-pressed="true"] { background: var(--choco); color: var(--cream-text); border-color: var(--choco); }
.pad__tools .dot { border-radius: 50%; background: var(--choco); display: block; }
.pad__tools .sep { width: 1px; height: 28px; background: var(--linen-2); margin: 0 4px; }
.kids-promo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(26px, 4vw, 56px); border-radius: var(--radius-lg); background: linear-gradient(135deg, #fff7e8, #f6e3c2); }
.kids-promo__art { position: relative; aspect-ratio: 1.2; }
.kids-promo__sheet { position: absolute; left: 0; top: 4%; width: 58%; aspect-ratio: .78; background: #fff; border-radius: 10px; box-shadow: var(--shadow); transform: rotate(-5deg); display: grid; place-items: center; }
.kids-promo__sheet svg { width: 80%; }
.kids-promo__pryanik { position: absolute; right: 0; bottom: 0; width: 56%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #c27a3c, #8a4519 70%); box-shadow: var(--shadow-lg), inset 0 -10px 30px rgba(0, 0, 0, .25); display: grid; place-items: center; }
.kids-promo__pryanik svg { width: 62%; filter: drop-shadow(0 2px 0 rgba(255, 220, 170, .5)) drop-shadow(0 -1px 0 rgba(60, 25, 5, .6)); }

/* ---------- 3D-оттиск в карточке ---------- */
.gallery__3d { position: absolute; inset: 0; z-index: 3; background: radial-gradient(circle at 50% 38%, #fffaf3, #ecdcc5); display: none; }
.gallery__3d.is-on { display: block; }
.gallery__3d canvas { width: 100% !important; height: 100% !important; }
.gallery__3d-bar { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 4; display: flex; gap: 6px; }
.gallery__press { position: absolute; left: 14px; top: 14px; z-index: 4; min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--honey); color: var(--ink); font-weight: 800; font-size: 13.5px; cursor: pointer; box-shadow: 0 8px 20px -10px rgba(58, 35, 23, .6); }
.gallery__press:hover { background: #ebb352; }
.gallery__thumb--3d { display: grid; place-items: center; background: linear-gradient(140deg, #fbefdc, #ecd3a8); color: var(--ginger); font-weight: 800; font-size: 15px; }
.gallery__thumb--3d .icon { width: 26px; height: 26px; }
.badge-3d { position: absolute; top: 12px; right: 12px; z-index: 3; }

/* ---------- согласование макета ---------- */
.approval { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(18px, 3vw, 36px); align-items: start; padding: clamp(18px, 3vw, 30px); border-radius: var(--radius-lg); background: var(--white); border: 2px solid var(--honey); box-shadow: var(--shadow); margin-bottom: 30px; }
.approval__viewer { position: relative; aspect-ratio: 1.1; border-radius: var(--radius); overflow: hidden; background: radial-gradient(circle at 50% 38%, #fffaf3, #ecdcc5); }
.approval__viewer canvas { width: 100% !important; height: 100% !important; }
.approval__bar { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: center; }
.approval h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 10px; }
.approval form { margin-top: 14px; }
.approval textarea { width: 100%; min-height: 90px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--linen-2); }

/* ---------- QR-страница доски ---------- */
.qr-hero { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(20px, 4vw, 56px); align-items: center; }
.qr-hero__img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.qr-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.qr-steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 14px 16px; border-radius: 16px; background: var(--white); border: 1px solid var(--linen); }
.qr-steps li::before { content: counter(s); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--honey); color: var(--ink); font-weight: 800; }
.codes { display: grid; gap: 8px; margin-top: 14px; }
.codes form { display: flex; gap: 8px; }
.codes .input { min-height: 44px; padding: 8px 14px; border-radius: 12px; }
.codes .btn { min-height: 44px; }

.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]), .field select {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--linen-2); background: var(--white);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--ginger); box-shadow: 0 0 0 4px rgba(148, 83, 42, .12); }
.field input[disabled] { opacity: .7; }

@media (max-width: 900px) {
  [data-cal-grid] { grid-template-columns: 1fr !important; }
  .holiday { grid-template-columns: auto 1fr; }
  .holiday__actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .cab, .cab-grid, .cert-layout, .photo-cta, .kids-promo, .approval, .qr-hero { grid-template-columns: 1fr; }
  .cab__nav { position: static; grid-auto-flow: column; overflow-x: auto; }
  .cab__nav a { white-space: nowrap; }
  .cert-preview { position: static; }
  .cal-row { grid-template-columns: 80px 1fr; }
  .cal-row .btn { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .holiday__actions { grid-template-columns: 1fr; }
  .req-card { grid-template-columns: 72px 1fr; }
  .req-card img { width: 72px; height: 72px; }
  .table thead { display: none; }
  .table td { display: block; padding: 4px 0; border: 0; }
  .table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--linen); }
}

/* Черновики «Свой пряник» в кабинете */
.cab-subtitle { font-size: 22px; margin: 6px 0 12px; }
.req-card--draft { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: center; border: 1.5px dashed var(--linen-2); }
.req-card--draft img, .req-card--draft > a > span { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; background: var(--flour-2); display: block; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--muted); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Подбор формы за 3 вопроса ---------- */
.quiz-cta { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 16px 20px; border-radius: 20px; background: linear-gradient(135deg, #fff6e6, #fbe3bd); border: 1.5px solid #f0d29c; color: var(--choco); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.quiz-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(148, 83, 42, .6); }
.quiz-cta > .icon:first-child { width: 30px; height: 30px; color: var(--ginger); flex: none; }
.quiz-cta > .icon:last-child { width: 20px; height: 20px; margin-left: auto; flex: none; color: var(--ginger); }
.quiz-cta b { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.quiz-cta span { font-size: 15px; color: var(--muted); }

.quiz { max-width: 980px; margin: 0 auto; padding: clamp(20px, 3vw, 36px); border-radius: var(--radius-lg, 28px); background: var(--white); box-shadow: 0 1px 2px rgba(58, 35, 23, .05), 0 20px 50px -30px rgba(58, 35, 23, .35); }
.quiz.is-collapsed { display: none; }
.quiz__progress { height: 6px; border-radius: 999px; background: var(--flour-2); overflow: hidden; margin-bottom: 22px; }
.quiz__progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--honey), var(--ginger)); transition: width .35s ease; }
.quiz:not(.is-js) .quiz__progress { display: none; }
.quiz__step { border: 0; margin: 0 0 22px; padding: 0; }
.quiz.is-js .quiz__step { display: none; margin: 0; }
.quiz.is-js .quiz__step.is-current { display: block; animation: quizIn .35s ease; }
@keyframes quizIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.quiz__step legend { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 40px); color: var(--choco); margin-bottom: 18px; padding: 0; }
.quiz__step legend span { display: block; font-family: var(--font-body, Manrope), sans-serif; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ginger); margin-bottom: 6px; }
.quiz__options { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.quiz__options--4 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.quiz__options--5 { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.quiz__opt { position: relative; cursor: pointer; }
.quiz__opt input { position: absolute; opacity: 0; pointer-events: none; }
.quiz__opt > span { display: grid; gap: 4px; align-content: start; height: 100%; padding: 16px 16px 18px; border-radius: 18px; background: var(--flour); border: 2px solid transparent; transition: border-color .2s, background .2s, transform .15s; }
.quiz__opt:hover > span { transform: translateY(-2px); border-color: var(--linen-2); }
.quiz__opt input:focus-visible + span { outline: 3px solid var(--honey); outline-offset: 2px; }
.quiz__opt input:checked + span { background: #fff4e3; border-color: var(--ginger); }
.quiz__opt .icon { width: 28px; height: 28px; color: var(--ginger); margin-bottom: 6px; }
.quiz__opt b { font-size: 16.5px; color: var(--choco); line-height: 1.25; }
.quiz__opt small { font-size: 13px; color: var(--muted); line-height: 1.35; }
.quiz__size { display: block; height: 34px; margin-bottom: 8px; background: radial-gradient(circle at center, var(--ginger) 0 var(--r), transparent calc(var(--r) + 1px)) left center / 34px 34px no-repeat; opacity: .85; }
.quiz__size--small { --r: 7px; }
.quiz__size--medium { --r: 11px; }
.quiz__size--large { --r: 16px; }
.quiz__size--many { background: radial-gradient(circle, var(--ginger) 0 7px, transparent 8px) 0 center / 20px 34px repeat-x; width: 60px; }
.quiz__size--any { background: none; border: 2px dashed var(--linen-2); border-radius: 50%; width: 30px; height: 30px; }
.quiz__nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }
.quiz__nav .btn[hidden] { display: none; }
.quiz__nav [data-quiz-back] .icon { transform: rotate(180deg); }
.quiz__nav [data-quiz-submit] { margin-left: auto; }

.quiz-result { margin-top: 10px; }
.quiz-result__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.quiz-result__head h2 { font-size: clamp(32px, 4vw, 48px); }
.quiz-result__chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 10px 0 0; }
.quiz-result__chips .link-arrow { margin-left: 6px; }
.quiz-result__note { margin: 0 0 18px; padding: 14px 18px; border-radius: 16px; background: #fff4e3; border: 1.5px solid #f0d29c; color: var(--choco); }
.quiz-card { display: flex; flex-direction: column; gap: 8px; }
.quiz-card .card { flex: 1; }
.quiz-card__why { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.quiz-card__why span { padding: 4px 10px; border-radius: 999px; background: var(--flour); color: var(--ginger); font-size: 12.5px; font-weight: 700; }
.quiz-custom { display: grid; align-content: center; justify-items: center; gap: 10px; text-align: center; padding: 28px 22px; border-radius: 24px; background: var(--choco); color: var(--cream-text, #f6ead8); }
.quiz-custom .rosette { width: 56px; color: var(--honey); }
.quiz-custom strong { font-family: var(--font-display); font-size: 28px; color: #fbf3e6; }
.quiz-custom p { margin: 0; font-size: 15px; opacity: .85; line-height: 1.5; }
.quiz-custom .link-arrow { color: var(--honey); }

/* ---------- «Посмотреть у себя» (AR) ---------- */
.gallery__ar { position: absolute; right: 14px; top: 14px; z-index: 4; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(255, 252, 247, .94); color: var(--choco); font-weight: 800; font-size: 13.5px; cursor: pointer; box-shadow: 0 8px 20px -10px rgba(58, 35, 23, .6); }
.gallery__ar .icon { width: 16px; height: 16px; color: var(--ginger); }
.gallery__ar:hover { background: #fff; }
.ar-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(42, 26, 16, .55); backdrop-filter: blur(4px); }
.ar-modal[hidden] { display: none; }
.ar-modal__box { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 22px; border-radius: 26px; background: var(--flour); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6); display: grid; gap: 12px; }
.ar-modal__box h2 { margin: 0; font-family: var(--font-display); font-size: 30px; color: var(--choco); }
.ar-modal__box h2 em { color: var(--ginger); }
.ar-modal__x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(58, 35, 23, .08); cursor: pointer; font-size: 16px; }
.ar-modal__stage { aspect-ratio: 4 / 3; border-radius: 18px; background: radial-gradient(circle at 50% 40%, #fffaf3, #ecdcc5); overflow: hidden; }
.ar-modal__stage model-viewer { width: 100%; height: 100%; --poster-color: transparent; }
.ar-modal__go { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); }
.ar-modal__text { margin: 0; color: var(--muted); font-size: 14.5px; }
.ar-modal__qr { display: flex; gap: 14px; align-items: center; }
.ar-modal__qr[hidden] { display: none; }
.ar-modal__qr img { width: 150px; height: 150px; padding: 8px; border-radius: 14px; background: #fff; }
.ar-modal__qr span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 640px) { .gallery__ar { right: 10px; padding: 0 12px; font-size: 12.5px; } .ar-modal__qr { flex-direction: column; text-align: center; } }

/* ---------- Открытка-сюрприз ---------- */
.greet { padding: clamp(24px, 4vw, 56px) 0 70px; background: radial-gradient(circle at 50% 0, #fff6e6, transparent 60%); }
.greet__wrap { display: grid; gap: 20px; justify-items: center; text-align: center; max-width: 760px; }
.greet__hello h1 { font-size: clamp(40px, 6vw, 72px); margin: 8px 0 6px; }
.greet__hello h1 em { color: var(--ginger); }
.greet__hello .lead { margin: 0; transition: opacity .6s; }
.greet.is-open .greet__hello .lead { opacity: 0; height: 0; overflow: hidden; }
.greet__stage { position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 62vh; border-radius: 28px; overflow: hidden; background: radial-gradient(circle at 50% 38%, #fffaf3, #ecdcc5); }
.greet__stage[hidden] { display: none; }
.greet__stage canvas { width: 100% !important; height: 100% !important; }
.greet__again { position: absolute; right: 14px; bottom: 14px; z-index: 3; }
.greet__again[hidden] { display: none; }
.greet__card { width: 100%; display: grid; gap: 16px; justify-items: center; padding: 28px; border-radius: 28px; background: var(--white); box-shadow: 0 24px 60px -34px rgba(58, 35, 23, .45);
  opacity: 0; transform: translateY(26px) scale(.98); transition: opacity .8s, transform .8s; pointer-events: none; }
.greet.is-open .greet__card { opacity: 1; transform: none; pointer-events: auto; }
.greet__video { width: 100%; max-height: 70vh; border-radius: 18px; background: #000; }
.greet__text { margin: 0; font-family: var(--font-display); font-size: clamp(24px, 3.2vw, 34px); line-height: 1.3; color: var(--choco); }
.greet__from { margin: 0; font-family: var(--font-display); font-style: italic; font-size: 26px; color: var(--ginger); }
.greet__brand { font-size: 14px; color: var(--muted); }
.greet-edit { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.greet-edit__form { display: grid; gap: 18px; }
.greet-edit__video { width: 100%; max-height: 360px; border-radius: 16px; background: #000; }
.greet-edit__drop { min-height: 130px; }
.greet-edit__side { display: grid; gap: 12px; position: sticky; top: calc(var(--header-h) + 18px); }
.greet-edit__card img { width: 100%; border-radius: 18px; box-shadow: 0 18px 40px -26px rgba(58, 35, 23, .55); }
.greet-box { margin-top: 24px; display: grid; gap: 8px; justify-items: start; padding: 20px 22px; border-radius: 22px; background: linear-gradient(140deg, #fff6e6, #fbe6c2); border: 1.5px solid #f0d29c; text-align: left; }
.greet-box b { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; color: var(--choco); }
.greet-box b .icon { width: 20px; height: 20px; color: var(--ginger); }
.greet-box p { margin: 0; }
@media (max-width: 860px) { .greet-edit { grid-template-columns: minmax(0, 1fr); } .greet-edit__side { position: static; } }
