/* SnowVibe — окно покупки, коробка-подарок, страницы «Спасибо» и подарка. Поверх home.css. */

/* ── Коробка с бантом (размер — font-size родителя, коробка 10em × 9em) ── */
.gbox { position: relative; width: 10em; height: 9em; }
.gbox-body { position: absolute; left: .55em; right: .55em; bottom: 0; height: 6.3em; border-radius: .35em;
  background:
    linear-gradient(90deg, transparent 43%, var(--rib2) 43% 44%, var(--rib) 44% 56%, var(--rib2) 56% 57%, transparent 57%),
    linear-gradient(160deg, var(--box), var(--box2));
  box-shadow: inset 0 -.8em 1.4em rgba(0,0,0,.18), inset .5em 0 1em rgba(255,255,255,.12), 0 1.4em 2.6em rgba(0,0,0,.4); }
.gbox-lid { position: absolute; left: 0; right: 0; top: 1.25em; height: 1.75em; border-radius: .32em; z-index: 2;
  background:
    linear-gradient(90deg, transparent 42%, var(--rib2) 42% 43%, var(--rib) 43% 57%, var(--rib2) 57% 58%, transparent 58%),
    linear-gradient(180deg, var(--box), var(--box2));
  box-shadow: 0 .35em .7em rgba(0,0,0,.28), inset 0 .15em 0 rgba(255,255,255,.25); transform-origin: 50% 100%; }
.gbox-bow { position: absolute; left: 50%; bottom: 92%; width: 0; height: 0; }
.gbox-bow i { position: absolute; bottom: -.25em; width: 2.3em; height: 1.55em; box-sizing: border-box; border: .46em solid var(--rib);
  border-radius: 50% 50% 46% 46% / 62% 62% 38% 38%; box-shadow: inset 0 -.15em 0 var(--rib2); }
.gbox-bow i:first-child { right: .1em; transform: rotate(-24deg); transform-origin: right bottom; }
.gbox-bow i:nth-child(2) { left: .1em; transform: rotate(24deg); transform-origin: left bottom; }
.gbox-bow b { position: absolute; left: -.55em; bottom: -.4em; width: 1.1em; height: .95em; border-radius: .32em; background: var(--rib); box-shadow: inset 0 -.18em 0 var(--rib2); }
.gbox.hop { animation: hop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes hop { 0% { transform: scale(1); } 40% { transform: scale(1.08, .94) translateY(-.4em); } 100% { transform: scale(1); } }

/* ── Окно покупки ── */
.buy-dlg { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line); border-radius: 26px; color: var(--ink);
  background: radial-gradient(90% 60% at 80% 0%, rgba(124, 200, 255, .16), transparent), linear-gradient(170deg, #121d48, #0a1130 70%);
  box-shadow: 0 40px 120px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04) inset; overflow: auto; }
.buy-dlg::backdrop { background: rgba(3, 6, 18, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.buy-dlg[open] { animation: dlg-in .32s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.buy { position: relative; padding: 26px 28px 22px; }
.buy .x { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.07); color: var(--ink-2); font-size: 15px; cursor: pointer; }
.buy .x:hover { background: rgba(255,255,255,.14); color: var(--ink); }
.buy-tabs { display: flex; gap: 4px; padding: 4px; width: max-content; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid var(--line); margin-bottom: 20px; }
.buy-tabs button { border: 0; padding: 9px 18px; border-radius: 10px; background: transparent; color: var(--ink-2); font: 700 15px var(--text); cursor: pointer; }
.buy-tabs button[aria-selected="true"] { background: rgba(143, 211, 255, .2); color: var(--ice-2); }
.buy-self-head { display: flex; gap: 16px; align-items: center; }
.buy-self-head img { width: 64px; height: 64px; border-radius: 16px; }
.buy-self-head h3 { font-size: 24px; }
.buy-self-head p { margin: 2px 0 0; color: var(--ink-2); }
.checks.small { margin: 18px 0 4px; text-align: left; }
.checks.small li { font-size: 15px; }
.gift-maker { display: grid; grid-template-columns: 170px 1fr; gap: 20px; align-items: start; }
.gift-preview { position: relative; display: grid; justify-items: center; padding: 18px 0 6px; font-size: 13px; }
.gp-tag { position: relative; margin-top: 12px; min-width: 120px; max-width: 160px; padding: 10px 14px 9px 18px; border-radius: 6px 12px 12px 6px; text-align: left;
  background: linear-gradient(180deg, #fff9ec, #f3e6c8); color: #4a2e10; box-shadow: 0 8px 20px rgba(0,0,0,.3); transform: rotate(-4deg); }
.gp-tag small { display: block; font-size: 11px; opacity: .65; font-weight: 700; }
.gp-tag b { display: block; font: 700 17px/1.2 var(--display); overflow-wrap: anywhere; }
.gp-tag .gp-from { margin-top: 3px; font-size: 12px; opacity: .8; overflow-wrap: anywhere; }
.gp-hole { position: absolute; left: 6px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #c8b48a; }
.gift-fields { display: grid; gap: 12px; }
.buy label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.buy input, .buy textarea { width: 100%; box-sizing: border-box; padding: 11px 13px; border-radius: 12px; border: 1px solid rgba(190, 215, 255, .22); background: rgba(5, 10, 30, .55);
  color: var(--ink); font: 500 16px var(--text); resize: none; transition: border-color .2s, box-shadow .2s; }
.buy input:focus, .buy textarea:focus { outline: none; border-color: var(--ice); box-shadow: 0 0 0 3px rgba(143, 211, 255, .18); }
.buy .wish { position: relative; }
.buy .count { position: absolute; right: 10px; bottom: 8px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.wraps-label { font-size: 14px; color: var(--ink-2); font-weight: 700; }
.wraps-label b { color: var(--ink); }
.wraps { display: flex; gap: 10px; flex-wrap: wrap; }
.wraps button { width: 38px; height: 38px; border-radius: 10px; cursor: pointer; border: 2px solid transparent;
  background: linear-gradient(90deg, transparent 40%, var(--rib) 40% 60%, transparent 60%), linear-gradient(160deg, var(--box), var(--box2));
  box-shadow: 0 4px 10px rgba(0,0,0,.3); transition: transform .15s; }
.wraps button:hover { transform: translateY(-2px); }
.wraps button[aria-checked="true"] { border-color: #fff; box-shadow: 0 0 0 3px rgba(143, 211, 255, .45), 0 4px 10px rgba(0,0,0,.3); }
.gift-how { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(255, 211, 107, .08); border: 1px solid rgba(255, 211, 107, .22); color: #f5e3b8; font-size: 14px; }
.buy .email { margin-top: 18px; }
.buy .pay { width: 100%; margin-top: 16px; justify-content: center; }
.buy .pay:disabled { opacity: .6; cursor: progress; }
.buy .err { margin: 12px 0 0; color: #ff9aa5; font-weight: 700; font-size: 14px; }
.buy .fine { text-align: center; margin-top: 12px; }

/* ── Страницы «Спасибо» и подарка ── */
.page { position: relative; z-index: 2; width: min(860px, calc(100% - 32px)); margin: 0 auto; padding: 120px 0 80px; }
.page h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.1; }
.page h2 { font-size: clamp(22px, 3vw, 28px); margin: 54px 0 18px; }
.page .lead { margin: 16px 0 0; max-width: 640px; text-align: left; }
.demo-ribbon { position: fixed; z-index: 60; left: 50%; bottom: 14px; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); box-sizing: border-box; text-align: center; padding: 9px 16px; border-radius: 12px; font-size: 13.5px; font-weight: 700;
  background: rgba(255, 211, 107, .14); border: 1px solid rgba(255, 211, 107, .4); color: #ffe3a1; backdrop-filter: blur(10px); white-space: nowrap; }
.panel { margin-top: 26px; padding: 26px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(160deg, var(--glass-2), rgba(12, 20, 48, .75)); }
.keybox { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.keybox code { flex: 1 1 280px; padding: 16px 18px; border-radius: 14px; background: rgba(3, 8, 26, .7); border: 1px dashed rgba(143, 211, 255, .45);
  font: 700 clamp(17px, 2.6vw, 22px)/1.2 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .06em; color: var(--ice-2); text-align: center; user-select: all; }
.copy-btn { padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.08); color: var(--ink); font: 700 15px var(--text); cursor: pointer; white-space: nowrap; }
.copy-btn:hover { background: rgba(255,255,255,.14); }
.copy-btn.done { background: rgba(77, 255, 166, .16); border-color: rgba(77, 255, 166, .4); color: #b9ffd9; }
.panel .muted { font-size: 15px; }
.dl-row { display: flex; gap: 12px; flex-wrap: wrap; }
.dl-row .btn { margin: 0; }
.dl-note { margin: 12px 0 0; color: var(--ink-3); font-size: 14px; }
.phone-note { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(143, 211, 255, .08); border: 1px solid rgba(143, 211, 255, .25); color: var(--ice-2); font-size: 14.5px; }

/* Инструкция по шагам */
.guide-tabs { display: flex; gap: 4px; padding: 4px; width: max-content; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.guide-tabs button { border: 0; padding: 9px 22px; border-radius: 10px; background: transparent; color: var(--ink-2); font: 700 15px var(--text); cursor: pointer; transition: background .2s, color .2s; }
.guide-tabs button:hover { color: var(--ink); }
.guide-tabs button[aria-selected="true"] { background: linear-gradient(180deg, #e4f5ff, #8fd3ff); color: #04122b; }
.guide-steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 0; counter-reset: st; }
.guide-steps[hidden] { display: none; }
.guide-steps li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) 320px; gap: 22px; align-items: center; padding: 0 0 34px; }
/* линия-«ниточка» между номерами шагов */
.guide-steps li::before { content: ""; position: absolute; left: 21px; top: 50px; bottom: 6px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, rgba(143,211,255,.45), rgba(143,211,255,.08)); }
.guide-steps li:last-child { padding-bottom: 0; }
.guide-steps li:last-child::before { display: none; }
.guide-steps li > .step-n { align-self: start; margin-top: 2px; }
.guide-steps li > .step-text { align-self: start; padding-top: 8px; }
.step-n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 800 18px var(--display); color: #04122b; background: linear-gradient(180deg, #e4f5ff, #8fd3ff); box-shadow: 0 0 0 6px rgba(143,211,255,.1); }
.step-text b { font: 700 18px var(--display); }
.step-text p { margin: 8px 0 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }

/* Миниатюры окон macOS и Windows */
.ill { position: relative; height: 172px; border-radius: 14px; overflow: hidden; box-sizing: border-box; font: 500 12px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; color: #1d1d1f; box-shadow: 0 18px 40px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.08); }
.ill .ico { display: block; width: 52px; height: 52px; }
.ill .hl { position: relative; z-index: 1; box-shadow: 0 0 0 2px #ffd36b, 0 0 16px rgba(255, 211, 107, .85); animation: hl 1.6s ease-in-out infinite; }
@keyframes hl { 50% { box-shadow: 0 0 0 3px #ffd36b, 0 0 26px rgba(255, 211, 107, 1); } }

.mac-win { background: #fff; }
.mw-bar { height: 30px; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: #ececee; border-bottom: 1px solid #dcdce0; }
.lights { display: flex; gap: 6px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.mw-title { flex: 1; text-align: center; margin-right: 45px; font-weight: 600; color: #4a4a4f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dmg-body { position: relative; height: calc(100% - 30px); display: flex; align-items: center; justify-content: space-evenly; }
.dmg-item { display: grid; justify-items: center; gap: 6px; font-weight: 500; }
.dmg-item .folder { width: 58px; height: 52px; }
.dmg-arrow { width: 60px; height: 2px; background: repeating-linear-gradient(90deg, #a5aab8 0 6px, transparent 6px 11px); position: relative; margin-bottom: 20px; }
.dmg-arrow::after { content: ""; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left: 8px solid #a5aab8; border-right: 0; }
.ill .drag { position: absolute; left: calc(25% - 26px); top: calc(50% - 36px); opacity: 0; animation: dragIt 2.8s ease-in-out infinite; pointer-events: none; }
@keyframes dragIt { 0%, 12% { transform: translate(0, 0); opacity: 0; } 20% { opacity: .75; } 70% { transform: translate(var(--dx, 155px), 0) scale(.85); opacity: .75; } 82%, 100% { transform: translate(var(--dx, 155px), 0) scale(.6); opacity: 0; } }

.ill-wall { background: linear-gradient(160deg, #3b5bbf, #7a63c9 55%, #e48aa4); }
.mac-alert { width: 200px; margin: 8px auto 0; padding: 11px 12px 10px; border-radius: 14px; text-align: center; background: rgba(240, 240, 244, .96); box-shadow: 0 12px 30px rgba(0,0,0,.35); transform-origin: top center; scale: .9; }
.mac-alert .ico { width: 34px; height: 34px; margin: 0 auto 4px; }
.mac-alert b { display: block; font-size: 12.5px; }
.mac-alert p { margin: 3px 0 6px; font-size: 10px; color: #555; }
.mac-alert .ab { display: block; margin-top: 4px; padding: 3px 0; border-radius: 7px; background: #fff; border: 1px solid #d4d4d8; font-weight: 600; font-size: 11.5px; }
.mac-alert .ab.hl { background: #0a84ff; border-color: #0a84ff; color: #fff; }

.set-body { display: flex; height: calc(100% - 30px); }
.set-side { width: 70px; padding: 10px 8px; background: #f2f2f5; border-right: 1px solid #e3e3e8; display: grid; gap: 8px; align-content: start; }
.set-side i { height: 14px; border-radius: 4px; background: linear-gradient(90deg, var(--c) 0 14px, transparent 14px 20px, #d9d9df 20px); }
.set-side i.on { box-shadow: 0 0 0 3px #d8e8ff; background: linear-gradient(90deg, var(--c) 0 14px, transparent 14px 20px, #9cc3ff 20px); }
.set-pane { flex: 1; padding: 12px 14px; }
.set-pane small { display: block; font-weight: 700; font-size: 11px; color: #86868b; }
.set-pane p { margin: 5px 0 10px; font-size: 11.5px; color: #3a3a3f; }
.set-pane .sb { display: inline-block; padding: 4px 12px; border-radius: 7px; background: #fff; border: 1px solid #cfcfd5; font-weight: 600; }

.menubar-ill .mbar { height: 26px; display: flex; align-items: center; gap: 12px; padding: 0 12px; color: #fff; font-weight: 600; background: rgba(20, 24, 50, .35); backdrop-filter: blur(6px); }
.mbar .grow { flex: 1; }
.mbar .mi { display: grid; place-items: center; height: 20px; min-width: 22px; border-radius: 5px; }
.mbar .peng-wrap { background: rgba(255,255,255,.25); }
.peng { width: 16px; height: 16px; color: #fff; }
.dd { position: absolute; display: grid; gap: 1px; padding: 5px; border-radius: 9px; min-width: 132px; font-size: 12px; background: rgba(246, 246, 250, .97); box-shadow: 0 12px 28px rgba(0,0,0,.35); color: #1d1d1f; }
.dd span { padding: 3px 10px; border-radius: 5px; }
.dd .dd-h { font-weight: 700; color: #6e6e73; font-size: 11px; }
.dd .on { background: #0a84ff; color: #fff; }
.dd .sep { padding: 0; height: 1px; margin: 3px 6px; background: #d8d8de; }
.mac-dd { right: 76px; top: 30px; }

.smart { padding: 14px 16px; color: #fff; background: #0067c0; font-family: "Segoe UI", system-ui, sans-serif; }
.smart .sx { position: absolute; right: 12px; top: 8px; opacity: .8; }
.smart b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.25; padding-right: 18px; }
.smart p { margin: 8px 0 0; font-size: 11.5px; color: #dceaff; }
.smart .lnk { display: inline-block; margin-top: 8px; padding: 1px 5px; border-radius: 3px; text-decoration: underline; }
.smart .sbtns { position: absolute; right: 14px; bottom: 12px; display: flex; gap: 8px; }
.smart .sbtns span { padding: 5px 12px; border: 1px solid #fff; font-weight: 600; font-size: 11.5px; }
.smart .sbtns .solid { background: #fff; color: #0067c0; }

.win-wall { background: radial-gradient(120% 90% at 30% 110%, #2b74e8, #8bbcf7 60%, #c9dcf8); }
.taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 38px; display: flex; align-items: center; padding: 0 10px; background: rgba(32, 36, 48, .88); color: #fff; font-family: "Segoe UI", system-ui, sans-serif; }
.tb-mid { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.tb-mid i { width: 20px; height: 20px; border-radius: 5px; background: rgba(255,255,255,.18); }
.tb-mid i.start { background: conic-gradient(#4cc2ff 0 25%, #2b9cf2 0 50%, #4cc2ff 0 75%, #2b9cf2 0); border-radius: 3px; scale: .85; }
.tb-tray { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 11px; }
.tb-tray .chev { opacity: .85; }
.tray-ico { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 5px; }
.tray-ico .ico { width: 18px; height: 18px; }
.tb-tray .clk { text-align: right; line-height: 1.2; }
.tb-tray .clk small { display: block; font-size: 10px; opacity: .85; }
.win-dd { right: 58px; bottom: 46px; border-radius: 8px; background: #f9f9f9; font-family: "Segoe UI", system-ui, sans-serif; }
.win-dd .on { background: #e5f1fb; color: #1d1d1f; box-shadow: inset 2px 0 #0067c0; }

/* Подарок готов: ссылка и кнопки «отправить» */
.gift-ready { display: grid; grid-template-columns: 200px 1fr; gap: 26px; align-items: center; }
.gift-ready .gp-box { font-size: 17px; justify-self: center; }
.share { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.share a, .share button { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.07);
  color: var(--ink); font: 700 15px var(--text); text-decoration: none; cursor: pointer; }
.share a:hover, .share button:hover { background: rgba(255,255,255,.13); }
.share .tg { background: #2aa3e0; border-color: #2aa3e0; color: #fff; }
.share .wa { background: #1fae5b; border-color: #1fae5b; color: #fff; }
.linkbox { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.linkbox input { flex: 1 1 260px; min-width: 0; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(3, 8, 26, .7); color: var(--ice-2); font: 600 14px ui-monospace, Menlo, Consolas, monospace; }

@media (max-width: 760px) {
  .guide-steps li { grid-template-columns: 36px minmax(0, 1fr); gap: 14px 16px; }
  .guide-steps li::before { left: 17px; top: 42px; }
  .guide-steps .ill { grid-column: 2; max-width: 340px; }
  .step-n { width: 36px; height: 36px; font-size: 16px; }
  .gift-ready { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .buy { padding: 22px 18px 18px; }
  .gift-maker { grid-template-columns: 1fr; }
  .gift-preview { grid-template-columns: auto auto; align-items: center; gap: 18px; padding: 4px 0 0; font-size: 10px; justify-content: center; }
  .gp-tag { margin-top: 0; }
}

/* ── Страница подарка ── */
.gift-page .moon { top: 9%; }
.unwrap { position: relative; z-index: 2; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; align-content: center; gap: 18px; padding: 60px 16px; text-align: center; box-sizing: border-box; }
.unwrap-kicker { margin: 0; color: var(--gold); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 14px; }
.unwrap h1 { font-size: clamp(30px, 6vw, 58px); line-height: 1.08; max-width: 900px; text-shadow: 0 6px 40px rgba(124, 200, 255, .35); }
.unwrap-box { position: relative; margin: 34px 0 6px; padding: 0; border: 0; background: none; cursor: pointer; font-size: clamp(17px, 4vw, 27px); color: inherit;
  animation: bob 3.2s ease-in-out infinite; -webkit-tap-highlight-color: transparent; }
.unwrap-box:focus-visible { outline: 2px solid var(--ice); outline-offset: 12px; border-radius: 20px; }
.box-slot { position: relative; z-index: 2; display: block; }
.unwrap-box .gbox { filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); transition: transform .3s; }
.unwrap-box:hover .gbox { transform: scale(1.04) rotate(-1.5deg); }
.unwrap-box::after { content: ""; position: absolute; z-index: 0; left: 10%; right: 10%; bottom: -14px; height: 22px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.45), transparent); }
@keyframes bob { 50% { transform: translateY(-10px); } }
.unwrap-tag { position: absolute; z-index: 3; right: -3.4em; top: 3.6em; font-size: 13px; padding: 10px 14px 9px 18px; min-width: 90px; border-radius: 6px 12px 12px 6px; text-align: left;
  background: linear-gradient(180deg, #fff9ec, #f3e6c8); color: #4a2e10; box-shadow: 0 8px 20px rgba(0,0,0,.3); transform: rotate(9deg); transform-origin: 0 50%; animation: tag 3.2s ease-in-out infinite; }
.unwrap-tag small { display: block; font-size: 11px; opacity: .65; font-weight: 700; }
.unwrap-tag b { display: block; font: 700 16px/1.2 var(--display); max-width: 150px; overflow-wrap: anywhere; }
.unwrap-tag::before { content: ""; position: absolute; left: -2.6em; top: 50%; width: 2.6em; height: 1px; background: rgba(255, 240, 200, .7); }
@keyframes tag { 50% { transform: rotate(4deg); } }
.unwrap-hint { margin: 10px 0 0; color: var(--ink-2); font-weight: 700; animation: pulse-t 1.8s ease-in-out infinite; }
@keyframes pulse-t { 50% { opacity: .45; } }
.rays { position: absolute; z-index: 1; left: 50%; top: 45%; width: 0; height: 0; pointer-events: none; }
.rays::before { content: ""; position: absolute; left: -16em; top: -16em; width: 32em; height: 32em; border-radius: 50%; opacity: 0; transform: scale(.3);
  background: radial-gradient(closest-side, rgba(255, 236, 170, .95), rgba(255, 200, 90, .35) 30%, transparent 70%),
              repeating-conic-gradient(rgba(255, 236, 170, .35) 0 6deg, transparent 6deg 18deg);
  -webkit-mask: radial-gradient(closest-side, #000 40%, transparent); mask: radial-gradient(closest-side, #000 40%, transparent); }

/* Распаковка */
.shaking .unwrap-box { animation: shake .65s ease-in-out; }
@keyframes shake { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(-7deg) scale(1.03); } 30% { transform: rotate(6deg) scale(1.05); } 45% { transform: rotate(-5deg) scale(1.06); } 60% { transform: rotate(4deg) scale(1.07); } 80% { transform: rotate(-2deg) scale(1.08); } }
.opened .unwrap-box { animation: none; cursor: default; }
.opened .unwrap-box:hover .gbox { transform: none; }
.opened .gbox-bow { animation: bow-off .7s cubic-bezier(.3, .7, .4, 1) forwards; }
@keyframes bow-off { to { transform: translate(-2em, -9em) rotate(-70deg) scale(.4); opacity: 0; } }
.opened .gbox-lid { animation: lid-off 1s cubic-bezier(.25, .7, .35, 1) .08s forwards; }
@keyframes lid-off { 40% { transform: translate(1.2em, -6em) rotate(28deg); } to { transform: translate(7em, -3em) rotate(96deg); opacity: 0; } }
.opened .rays::before { animation: rays 3.4s ease-out .1s forwards, spin 18s linear infinite; }
@keyframes rays { 15% { opacity: 1; transform: scale(1); } 100% { opacity: .55; transform: scale(1.1); } }
@keyframes spin { to { rotate: 360deg; } }
.opened .unwrap-tag { animation: tag-off .8s ease-in forwards; }
@keyframes tag-off { to { transform: translate(3em, 10em) rotate(60deg); opacity: 0; } }
.opened .unwrap-hint { animation: none; opacity: 0; transition: opacity .3s; }
.done.unwrap { min-height: 0; padding-bottom: 0; }
.done .unwrap-box { font-size: clamp(12px, 2.6vw, 16px); margin: 20px 0 0; transition: font-size .6s; }
.done .unwrap-hint { display: none; }

/* Открытка внутри */
.gift-card { position: relative; z-index: 2; width: min(820px, calc(100% - 32px)); margin: 10px auto 90px; padding: 34px; border-radius: 28px; box-sizing: border-box;
  background: radial-gradient(80% 50% at 50% 0%, rgba(255, 211, 107, .14), transparent), linear-gradient(170deg, rgba(22, 34, 80, .92), rgba(8, 14, 40, .94));
  border: 1px solid rgba(255, 211, 107, .25); box-shadow: 0 40px 120px rgba(0,0,0,.55); opacity: 0; transform: translateY(40px) scale(.97); transition: opacity .7s, transform .8s cubic-bezier(.2, .9, .3, 1.1); scroll-margin-top: 20px; }
.gift-card.in { opacity: 1; transform: none; }
.gc-head { text-align: center; }
.gc-head h2 { display: inline-flex; gap: 14px; align-items: center; font-size: clamp(32px, 5vw, 46px); margin-top: 8px; }
.gc-head h2 img { width: 54px; height: 54px; border-radius: 14px; }
.gc-sub { color: var(--ink-2); margin: 10px auto 0; max-width: 560px; }
.wish-card { position: relative; margin: 28px auto 0; max-width: 620px; padding: 24px 28px; border-radius: 18px; background: linear-gradient(180deg, #fffaf0, #f4e8cc); color: #3d2a12;
  box-shadow: 0 18px 40px rgba(0,0,0,.35); transform: rotate(-1.2deg); }
.wish-card::before { content: "“"; position: absolute; left: 14px; top: -8px; font: 800 64px/1 var(--display); color: rgba(200, 120, 40, .35); }
.wish-card p { margin: 0; font: 600 clamp(18px, 2.4vw, 21px)/1.5 var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.wish-card cite { display: block; margin-top: 10px; text-align: right; font-style: normal; font-weight: 800; color: #8a5a22; }
.gc-feats { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0; margin: 26px 0 0; }
.gc-feats li { display: grid; justify-items: center; gap: 6px; padding: 14px 8px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--line); text-align: center; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.gc-feats span { font-size: 24px; }
.gift-card h3 { font-size: 20px; margin: 30px 0 12px; }
.gc-guide { margin-top: 30px; }
.gc-guide summary { cursor: pointer; font: 700 20px var(--display); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.gc-guide summary::-webkit-details-marker { display: none; }
.gc-guide summary::after { content: "+"; color: var(--ice); font-size: 26px; transition: transform .25s; }
.gc-guide[open] summary::after { transform: rotate(45deg); }
.gc-guide .guide { margin-top: 16px; }
.gift-card .guide-steps li { grid-template-columns: 44px minmax(0, 1fr) 290px; }
.gc-more { text-align: center; margin-top: 26px; }
@media (max-width: 760px) {
  .gift-card { padding: 24px 18px; }
  .gc-feats { grid-template-columns: repeat(2, 1fr); }
  .gift-card .guide-steps li { grid-template-columns: 36px minmax(0, 1fr); }
  .unwrap-tag { right: -1.6em; top: 6.2em; }
}
