/* Адвент-календарь 1225. Стиль Изумрудный бархат: зелёный, золото, бордовая дверь дня.
   Шрифты свои (без Google): Prata, Great Vibes, Manrope. */

@font-face { font-family: "Prata"; src: url("/fonts/Prata-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Great Vibes"; src: url("/fonts/GreatVibes-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/Manrope-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/Manrope-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --night: #071F17;
  --em: #0D3528;
  --em-2: #17573F;
  --gold: #CDA85F;
  --gold-l: #EBD49E;
  --gold-d: #9C7A3A;
  --bur: #7B2333;
  --bur-a: #8E2A3B;
  --bur-b: #5E1624;
  --cream: #F3EAD9;
  --ink: #2B0D14;
  --serif: "Prata", Georgia, serif;
  --script: "Great Vibes", cursive;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --swing: cubic-bezier(.65, 0, .25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(110% 60% at 50% 0%, #17573F 0%, rgba(13, 53, 40, .9) 38%, rgba(7, 31, 23, 0) 75%),
    linear-gradient(180deg, #0D3528 0%, #071F17 55%, #04140E 100%);
  background-attachment: fixed;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Холсты: звёзды позади, снег и искры впереди */
.sky, .fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sky { z-index: 0; }
.fx { z-index: 300; }

.wrap { width: min(100% - 40px, 1080px); margin-inline: auto; position: relative; z-index: 2; }

/* ---------- Шапка ---------- */

/* ---------- Луна ---------- */
.moon {
  position: absolute; z-index: 1; top: 70px; right: max(4vw, 18px);
  width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #FFF6DC 0%, #F1D79A 42%, #CDA85F 78%, #A88440 100%);
  box-shadow: 0 0 40px 8px rgba(235, 212, 158, .35), 0 0 120px 40px rgba(205, 168, 95, .12);
  animation: moon 9s ease-in-out infinite;
}
.moon::after { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 64% 60%, rgba(156, 122, 58, .35) 0 9%, transparent 10%),
              radial-gradient(circle at 40% 70%, rgba(156, 122, 58, .25) 0 6%, transparent 7%),
              radial-gradient(circle at 58% 30%, rgba(156, 122, 58, .2) 0 5%, transparent 6%); }
@keyframes moon { 50% { transform: translateY(-6px); box-shadow: 0 0 52px 12px rgba(235, 212, 158, .42), 0 0 140px 50px rgba(205, 168, 95, .14); } }

/* ---------- Сцена: фон, замок, паровоз ---------- */
.scene { position: relative; z-index: 2; height: 100vh; height: 100svh; min-height: 620px; max-height: 1100px; overflow: hidden; background: #071F17; }
.cam { position: absolute; inset: 0; transform-origin: 0 0; transition: transform 1.7s cubic-bezier(.65, 0, .25, 1); filter: brightness(.28) saturate(.6); }
.scene.is-lit .cam { filter: none; transition: transform 1.7s cubic-bezier(.65, 0, .25, 1), filter 2.4s var(--ease); }
.bg, .bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.castle { position: absolute; left: 3%; width: 94%; top: 20%; }
.castle__img { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55)); }
.scene.is-lit .castle__img { animation: glow 5s ease-in-out infinite; }
@keyframes glow { 50% { filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55)) drop-shadow(0 0 26px rgba(255, 200, 110, .35)); } }
.castle__star { position: absolute; left: 49.3%; top: 1.5%; width: 2px; height: 2px; }
.owl-sit { position: absolute; left: 88.5%; top: 59%; width: 12.5%; height: auto; transition: opacity .5s, transform .6s var(--ease); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5)); transform-origin: 50% 100%; animation: owl-idle 6s ease-in-out infinite; }
@keyframes owl-idle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-6deg); } 92% { transform: rotate(4deg); } }
.fly-open .owl-sit { opacity: 0; transform: translateY(-20px) scale(.8); }
.doors { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.track { position: absolute; left: 0; width: 100%; height: 0; transform-origin: 50% 0; }
.train { position: absolute; bottom: 0; left: 0; height: var(--th, 64px); width: auto; transform: translateX(-110%); filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .45)); will-change: transform; }
.intro { position: absolute; z-index: 4; top: max(22px, env(safe-area-inset-top)); left: 0; right: 0; text-align: center; padding: 0 20px; transition: opacity .8s, transform 1.2s var(--ease); }
.intro__script { display: block; font-family: var(--script); color: var(--gold-l); font-size: clamp(34px, 9.5vw, 54px); line-height: 1; text-shadow: 0 0 20px rgba(205, 168, 95, .6), 0 2px 10px rgba(0, 0, 0, .6); }
.intro__title { margin: 4px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 6.2vw, 38px); line-height: 1.15; color: var(--cream); text-shadow: 0 2px 14px rgba(0, 0, 0, .7); }
.scene.is-zoom .intro { opacity: 0; transform: translateY(-30px); pointer-events: none; }
.scene__fade { position: absolute; left: 0; right: 0; bottom: 0; height: 90px; z-index: 3; pointer-events: none; background: linear-gradient(180deg, rgba(7, 31, 23, 0), #071F17); }
.zoomout { position: absolute; z-index: 6; left: 50%; bottom: 26px; transform: translateX(-50%); min-height: 44px; padding: 10px 22px; border-radius: 999px; border: 1px solid rgba(205, 168, 95, .7); background: rgba(7, 31, 23, .72); color: var(--gold-l); font: 600 14px var(--sans); letter-spacing: .04em; cursor: pointer; }

/* ---------- Окошко ---------- */
.d { position: relative; aspect-ratio: 5 / 6; perspective: 320px; cursor: pointer; border-radius: 50% 50% 6px 6px / 30% 30% 6px 6px; -webkit-tap-highlight-color: transparent; }
.d:focus-visible { outline: 2px solid var(--bur); outline-offset: 4px; }
.d__in { position: absolute; inset: 0; border-radius: inherit; overflow: hidden;
  background: radial-gradient(90% 80% at 50% 62%, #FFF3D6 0%, #F2D190 30%, #C8913F 62%, #5A3612 100%);
  box-shadow: inset 0 0 0 1px rgba(156, 122, 58, .9), inset 0 6px 14px rgba(60, 30, 5, .6); display: grid; place-items: center; }
.d__icon { width: 46%; height: auto; opacity: 0; transform: scale(.6) translateY(6px); transition: opacity .6s .35s var(--ease), transform .8s .35s var(--ease); filter: drop-shadow(0 2px 4px rgba(90, 40, 10, .4)); }
.d__num { position: absolute; bottom: 6%; left: 0; right: 0; text-align: center; font-family: var(--serif); font-size: 12px; color: var(--ink); opacity: 0; transition: opacity .5s .5s; }

.sh { position: absolute; top: 0; bottom: 0; width: 50%; overflow: hidden; transition: transform 1.1s cubic-bezier(.34, 1.25, .5, 1);
  background: linear-gradient(165deg, #FFFBF1 0%, #F1E5CA 55%, #E1CDA2 100%);
  box-shadow: inset 0 0 0 1px var(--gold-d), inset 0 0 0 4px #F7EEDB, inset 0 0 0 5px rgba(205, 168, 95, .7); }
.sh--l { left: 0; transform-origin: 0 50%; border-radius: 100% 0 0 6px / 30% 0 0 6px; }
.sh--r { right: 0; transform-origin: 100% 50%; border-radius: 0 100% 6px 0 / 0 30% 6px 0; }
.sh::after { content: ""; position: absolute; top: 58%; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 1px rgba(156, 122, 58, .6); }
.sh--l::after { right: 5px; } .sh--r::after { left: 5px; }
.sh__n { position: absolute; top: 0; bottom: 0; width: 200%; display: grid; place-items: center; padding-top: 12%;
  font-family: var(--serif); font-size: clamp(22px, 6.4vw, 30px); color: var(--bur); transition: opacity .3s; }
.sh--l .sh__n { left: 0; } .sh--r .sh__n { left: -100%; }

.d.is-open .sh--l { transform: rotateY(-100deg); }
.d.is-open .sh--r { transform: rotateY(100deg); }
.d.is-open .sh__n { opacity: 0; }
.d.is-open .d__icon, .d.is-open .d__num { opacity: 1; transform: none; }
.d.is-shake { animation: shake .5s; }
@keyframes shake { 20% { transform: rotate(-4deg); } 45% { transform: rotate(3.5deg); } 70% { transform: rotate(-2deg); } }

/* Двери поверх картинки замка: створки вырезаны из той же картинки */
.castle .d { position: absolute; aspect-ratio: auto; border-radius: 3px; perspective: 260px; opacity: 1; transform: none; }
.castle .d__in { border-radius: 3px; }
.castle .sh { border-radius: 0; background-image: var(--cimg); background-repeat: no-repeat; background-size: var(--cw) var(--ch);
  background-position: calc(var(--x) * var(--cw) * -0.01) calc(var(--y) * var(--ch) * -0.01); box-shadow: inset 0 0 0 .5px rgba(120, 80, 20, .35); }
.castle .sh--r { background-position: calc((var(--x) + var(--w) / 2) * var(--cw) * -0.01) calc(var(--y) * var(--ch) * -0.01); }
.castle .sh::after { content: none; }
.castle .sh__n { padding: 0; font-size: calc(var(--h) * var(--ch) * 0.0043); transform: translateY(calc((var(--ny) - 50) * 1%)); color: var(--bur); text-shadow: 0 1px 0 rgba(255, 255, 255, .35); }
.castle .d--n24 .sh__n { opacity: 0; }
.castle .d--today .sh { background-image: var(--cimg); }
.castle .d--today .sh__n { color: var(--bur); }
.castle .d.is-open .sh--l { transform: rotateY(-105deg); }
.castle .d.is-open .sh--r { transform: rotateY(105deg); }
/* Дверь дня */
.d--today .sh { background: linear-gradient(150deg, #A23447 0%, #8E2A3B 40%, #5E1624 100%); box-shadow: inset 0 0 0 1px #E2C27E, inset 0 0 0 4px rgba(94, 22, 36, .9), inset 0 0 0 5px rgba(235, 212, 158, .5); }
.d--today .sh__n { color: var(--gold-l); text-shadow: 0 0 10px rgba(235, 212, 158, .5); }
.d--today .sh::after { background: var(--gold-l); }
.d--today::before, .d--soon::before { content: ""; position: absolute; inset: -5px; border-radius: inherit; box-shadow: 0 0 20px 4px rgba(205, 140, 60, .65), 0 0 50px 8px rgba(205, 168, 95, .35); animation: pulse 2s ease-in-out infinite; pointer-events: none; opacity: 0; transition: opacity .6s; }
.scene.is-lit .d--today::before, .scene.is-lit .d--soon::before { opacity: 1; }
@keyframes pulse { 50% { opacity: .45; transform: scale(1.04); } }
.d--today.is-away { visibility: hidden; }

/* Луч от звезды и световое пятно */
.spotwrap { position: absolute; inset: 0; z-index: 5; overflow: hidden; pointer-events: none; }
.spot { position: absolute; left: 0; top: 0; width: 3000px; height: 3000px; margin: -1500px 0 0 -1500px; opacity: 0; transition: opacity .9s, transform 1.2s var(--ease);
  background: radial-gradient(circle at 50% 50%, rgba(255, 236, 180, .3) 0 58px, rgba(255, 236, 180, 0) 95px, rgba(3, 14, 10, .55) 230px); }
.beam { position: absolute; width: 110px; margin-left: -55px; transform-origin: 50% 0; transform: rotate(var(--a)) scaleY(0); opacity: 0;
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(255, 245, 215, .85) 0%, rgba(255, 228, 160, .35) 70%, rgba(255, 228, 160, .08) 100%);
  transition: transform 1.3s var(--ease), opacity .5s; mix-blend-mode: screen; }
.scene.is-spot .spot { opacity: 1; }
.scene.is-spot .beam { opacity: 1; transform: rotate(var(--a)) scaleY(1); }

/* Табличка 25 под окошками */
.plaque { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 14px 0 0; padding: 12px 14px; text-decoration: none;
  border-radius: 10px; border: 1px solid var(--gold-d);
  background: linear-gradient(180deg, #FFF8EA, #EFE2C4);
  color: var(--ink); transition: background .3s, transform .3s var(--ease); }
.plaque:hover { background: linear-gradient(180deg, #FFFDF6, #F3E7CC); transform: translateY(-2px); }
.plaque__n { font-family: var(--serif); font-size: 26px; color: var(--bur); line-height: 1; }
.plaque__t { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }

/* Сугроб с ёлками под календарём */
.drift { position: relative; z-index: 3; display: block; width: 100%; max-width: 900px; height: auto; margin: -26px auto 0; pointer-events: none; }
.lantern-glow { animation: flame 2.2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes flame { 50% { opacity: .6; transform: scale(.9); } }

/* Строка статуса */
.status { position: relative; z-index: 4; text-align: center; padding: 10px 20px 70px; }
.status__script { font-family: var(--script); font-size: 34px; color: var(--gold); line-height: 1.1; margin: 0; }
.status__text { margin: 6px auto 0; max-width: 30em; color: rgba(243, 234, 217, .86); }
.status__big { font-family: var(--serif); font-size: 46px; line-height: 1.1; color: var(--cream); margin: 2px 0 0; }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 14px 28px; border-radius: 999px;
  font: 600 15px/1.2 var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer; border: 0;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s; }
.btn--gold { color: var(--em); background: linear-gradient(180deg, #E4C98C 0%, #CDA85F 55%, #B8924A 100%); box-shadow: 0 8px 26px -8px rgba(205, 168, 95, .7), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(205, 168, 95, .85), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn--em { color: var(--cream); background: linear-gradient(180deg, #17573F, #0D3528); box-shadow: 0 8px 20px -8px rgba(7, 31, 23, .8), inset 0 0 0 1px rgba(205, 168, 95, .6); }
.btn--line { color: var(--gold-l); background: transparent; box-shadow: inset 0 0 0 1px rgba(205, 168, 95, .7); }
.btn--line:hover { background: rgba(205, 168, 95, .1); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* ---------- Вылетающая дверь ---------- */
.fly { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.fly[hidden] { display: none; }
.fly__veil { position: absolute; inset: 0; background: radial-gradient(70% 55% at 50% 48%, rgba(16, 66, 48, .86), rgba(4, 18, 13, .97) 70%); opacity: 0; transition: opacity .6s var(--ease); }
.fly__rays { position: absolute; left: 50%; top: 48%; width: 180vmax; height: 180vmax; margin: -90vmax 0 0 -90vmax; opacity: 0; transition: opacity 1s .3s;
  background: repeating-conic-gradient(from 0deg, rgba(255, 222, 150, .13) 0deg 4deg, transparent 4deg 15deg);
  -webkit-mask: radial-gradient(circle, #000 0, rgba(0, 0, 0, .6) 18%, transparent 46%); mask: radial-gradient(circle, #000 0, rgba(0, 0, 0, .6) 18%, transparent 46%);
  animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.fly.is-on .fly__veil, .fly.is-on .fly__rays { opacity: 1; }
.fly__box { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.fly__head { text-align: center; opacity: 0; transform: translateY(-10px); transition: opacity .6s .9s, transform .8s .9s var(--ease); }
.fly.is-on .fly__head { opacity: 1; transform: none; }
.fly__script { font-family: var(--script); color: var(--gold); font-size: 38px; line-height: 1; margin: 0; text-shadow: 0 0 20px rgba(205, 168, 95, .5); }
.fly__date { margin: 4px 0 0; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: rgba(243, 234, 217, .75); }
.fly__hint { margin: 0; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-l); opacity: 0; transition: opacity .5s; }
.fly.is-on:not(.is-opened) .fly__hint { opacity: 1; animation: hint 2s 1.4s ease-in-out infinite; }
.fly__close { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(205, 168, 95, .6); background: rgba(7, 31, 23, .6); color: var(--gold-l); font-size: 22px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .4s .6s; }
.fly.is-on .fly__close { opacity: 1; }

/* Большая дверь и гайд, который из неё поднимается */
.stack { display: grid; place-items: center; }
.stack > * { grid-area: 1 / 1; }
.big { position: relative; width: min(64vw, 280px, 46svh); aspect-ratio: 3 / 4; perspective: 900px; border-radius: 50% 50% 14px 14px / 30% 30% 14px 14px; cursor: pointer; will-change: transform; }
.big::before { content: ""; position: absolute; inset: -14px; border-radius: inherit; box-shadow: 0 0 40px 10px rgba(235, 200, 120, .55), 0 0 120px 30px rgba(205, 168, 95, .3); animation: pulse 2s ease-in-out infinite; pointer-events: none; }
.big .d__in { background: radial-gradient(80% 70% at 50% 55%, #FFFDF6 0%, #FFF0C8 30%, #F0C878 62%, #B57A2C 100%); box-shadow: inset 0 0 0 2px rgba(205, 168, 95, .9), inset 0 10px 30px rgba(120, 70, 15, .45); }
.big .sh { transition: transform 1.35s cubic-bezier(.3, 1.3, .45, 1); background: linear-gradient(165deg, #FFFBF1 0%, #F1E5CA 55%, #E1CDA2 100%);
  box-shadow: inset 0 0 0 1px #B8924A, inset 0 0 0 9px #F6ECD6, inset 0 0 0 10px rgba(205, 168, 95, .8), inset 0 0 0 18px rgba(246, 236, 214, .7), inset 0 0 0 19px rgba(205, 168, 95, .45); }
.big--red .sh { background: linear-gradient(150deg, #A23447 0%, #8E2A3B 40%, #5E1624 100%);
  box-shadow: inset 0 0 0 1px #E2C27E, inset 0 0 0 9px rgba(94, 22, 36, .95), inset 0 0 0 10px rgba(235, 212, 158, .55), inset 0 0 0 18px rgba(94, 22, 36, .6), inset 0 0 0 19px rgba(235, 212, 158, .25); }
.big .sh--l { border-radius: 100% 0 0 14px / 30% 0 0 14px; }
.big .sh--r { border-radius: 0 100% 14px 0 / 0 30% 14px 0; }
.big .sh::after { width: 9px; height: 9px; top: 56%; background: var(--gold-l); box-shadow: 0 0 8px rgba(235, 212, 158, 1); }
.big .sh--l::after { right: 12px; } .big .sh--r::after { left: 12px; }
.big .sh__n { font-size: clamp(64px, 20vw, 92px); padding-top: 10%; color: var(--bur); text-shadow: 0 1px 0 rgba(255, 255, 255, .5); }
.big--red .sh__n { color: var(--gold-l); text-shadow: 0 0 18px rgba(235, 212, 158, .55); }
.big.is-open .sh--l { transform: rotateY(-118deg); }
.big.is-open .sh--r { transform: rotateY(118deg); }
.big.is-open .sh__n { opacity: 0; }
.big.is-open { cursor: default; }

.gift { position: relative; z-index: 2; width: min(88vw, 350px); display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--ink);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s, visibility 0s .3s; }
.fly.is-opened .gift { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .3s .4s, visibility 0s .4s; }
/* Сова прилетает сверху и держит свиток */
@keyframes hover { 50% { transform: translateY(-8px); } }
/* Свиток: две палочки, бумага разворачивается вниз */
.scroll { position: relative; z-index: 2; width: 100%; display: flex; flex-direction: column; align-items: center; opacity: 0; transform: scaleX(.4); transition: opacity .35s, transform .6s cubic-bezier(.2, 1.1, .3, 1); filter: drop-shadow(0 26px 40px rgba(0, 0, 0, .6)) drop-shadow(0 0 40px rgba(255, 220, 150, .35)); }
.scroll__rod { position: relative; z-index: 1; display: block; width: calc(100% + 18px); height: 18px; border-radius: 9px;
  background: linear-gradient(180deg, #5E3A14 0%, #B07D3A 35%, #E9C98A 50%, #A06E2E 70%, #4E300F 100%); }
.scroll__rod::before, .scroll__rod::after { content: ""; position: absolute; top: -4px; width: 14px; height: 26px; border-radius: 6px; background: linear-gradient(180deg, #8C6420, #EBD49E 45%, #9C7A3A); }
.scroll__rod::before { left: -8px; } .scroll__rod::after { right: -8px; }
.scroll__paper { width: 100%; display: grid; grid-template-rows: 0fr; transition: grid-template-rows 1.3s cubic-bezier(.45, 0, .2, 1);
  background: linear-gradient(90deg, #E4D2AA 0%, #F8F0DC 8%, #FFFBF0 50%, #F8F0DC 92%, #E4D2AA 100%); margin: -4px 0; }
.scroll__in { min-height: 0; overflow: hidden; padding: 0 24px; }
.scroll__in > :first-child { margin-top: 26px; } .scroll__in > :last-child { margin-bottom: 26px; }
.fly.is-unrolled .scroll { opacity: 1; transform: none; }
.fly.is-unrolled .scroll__paper { grid-template-rows: 1fr; transition-delay: .45s; }
.gift__script { font-family: var(--script); font-size: 36px; line-height: 1; color: var(--bur); margin: 0; }
.gift__title { font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 5.6vw, 24px); line-height: 1.25; margin: 8px 0 10px; color: var(--ink); }
.gift__text { font-size: 14.5px; line-height: 1.5; margin: 0 0 18px; color: #4A2A1C; }
.gift__text:empty { display: none; }

/* Подсказка снизу */
.toast { position: fixed; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); z-index: 250; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 20px; border-radius: 999px; background: rgba(7, 31, 23, .92); border: 1px solid rgba(205, 168, 95, .6); color: var(--cream); font-size: 14px; white-space: nowrap; transition: opacity .35s, transform .5s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Секции ниже ---------- */
.sec { position: relative; z-index: 2; padding: 84px 0; }
.eyebrow { font-family: var(--script); color: var(--gold); font-size: 38px; line-height: 1; margin: 0 0 6px; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 7.4vw, 46px); line-height: 1.12; margin: 0 0 16px; color: var(--cream); }
.lead { color: rgba(243, 234, 217, .86); max-width: 34em; margin: 0; }
.center { text-align: center; } .center .lead { margin-inline: auto; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* Розыгрыш */
.prizes { display: grid; gap: 16px; margin-top: 36px; }
.pz { position: relative; padding: 30px 24px 26px; border-radius: 18px; text-align: center;
  background: linear-gradient(180deg, rgba(23, 87, 63, .55), rgba(13, 53, 40, .55));
  border: 1px solid rgba(205, 168, 95, .45); box-shadow: inset 0 0 0 5px rgba(7, 31, 23, .5), inset 0 0 0 6px rgba(205, 168, 95, .18); }
.pz--1 { background: linear-gradient(160deg, #8E2A3B 0%, #6C1D2C 55%, #5E1624 100%); border-color: rgba(226, 194, 126, .85); box-shadow: inset 0 0 0 5px rgba(70, 16, 27, .55), inset 0 0 0 6px rgba(235, 212, 158, .35), 0 20px 60px -20px rgba(142, 42, 59, .6); }
.pz__place { font-family: var(--script); font-size: 34px; line-height: 1; color: var(--gold); margin: 0; }
.pz__title { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.25; margin: 10px 0 10px; }
.pz p { margin: 0; color: rgba(243, 234, 217, .85); font-size: 15px; }
.pz__price { display: inline-block; margin-top: 16px !important; padding: 6px 16px; border-radius: 999px; border: 1px solid rgba(205, 168, 95, .55); font-family: var(--serif); font-size: 18px; color: var(--gold-l) !important; }
.prize__rule { margin: 28px auto 0; max-width: 36em; color: rgba(243, 234, 217, .8); font-size: 15px; }
.prize__legal { margin-top: 14px; font-size: 13px; }
.prize__legal a { color: var(--gold-l); }

/* Обо мне */
.about { display: grid; gap: 30px; align-items: center; }
.about__photo { position: relative; border-radius: 20px; overflow: hidden; max-width: 420px; box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .7), 0 0 0 1px rgba(205, 168, 95, .5); }
.about__photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.about p { color: rgba(243, 234, 217, .88); margin: 0 0 14px; }
.about .btn { margin-top: 10px; }

/* Telegram */
.tg { text-align: center; padding: 44px 24px; border-radius: 22px; border: 1px solid rgba(205, 168, 95, .5);
  background: radial-gradient(90% 120% at 50% 0%, rgba(205, 168, 95, .16), transparent 60%), linear-gradient(180deg, rgba(23, 87, 63, .5), rgba(13, 53, 40, .5)); }
.tg .lead { margin: 0 auto 24px; }

/* Подвал */
.foot { position: relative; z-index: 2; padding: 40px 0 50px; border-top: 1px solid rgba(205, 168, 95, .22); margin-top: 40px; }
.foot__in { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.foot__in img { width: 84px; height: auto; opacity: .85; }
.foot__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; font-size: 14px; }
.foot__nav a { color: rgba(243, 234, 217, .8); text-decoration: none; }
.foot__nav a:hover { color: var(--gold-l); }
.foot__copy { font-size: 12px; color: rgba(243, 234, 217, .5); margin: 0; }

@media (min-width: 720px) {
  .cab { width: min(100% - 40px, 720px); }
  .grid { grid-template-columns: repeat(6, 1fr); gap: 16px 14px; }
  .body { padding: 22px 22px 20px; }
  .moon { width: 92px; height: 92px; top: 90px; right: 8vw; }
  .prizes { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .about { grid-template-columns: 5fr 6fr; gap: 60px; }
  .stage { padding-top: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
}

/* Когда гайд поднялся, заголовок над дверью уступает место */
.fly.is-opened .fly__head { opacity: 0; transition-delay: 0s; }
.fly.is-opened .big::before { animation: none; opacity: .5; }
.star-g { transform-box: fill-box; transform-origin: center; filter: drop-shadow(0 0 4px rgba(255, 225, 150, .95)) drop-shadow(0 0 10px rgba(205, 168, 95, .8)); animation: star 4s ease-in-out infinite; }

/* Подвал розыгрыша */
.prize__foot { margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 6px; }

/* ---------- Окно гайда: в стиле 1225 (белый фон, Oswald, Manrope) ---------- */
@font-face { font-family: "Oswald"; src: url("/fonts/Oswald-Variable.woff2") format("woff2"); font-weight: 200 700; font-display: swap; }
.guide { position: fixed; inset: 0; z-index: 400; overflow-y: auto; -webkit-overflow-scrolling: touch; background: #FFFFFF; color: #131515;
  transform: translateY(100%); transition: transform .8s var(--ease); }
.guide[hidden] { display: block; visibility: hidden; }
.guide.is-on { transform: none; visibility: visible; }
.guide__bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); background: rgba(255, 255, 255, .97); border-bottom: 1px solid #E6EEEA; }
.guide__close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #E6EEEA; background: #F5F8F6; color: #1B4136; font-size: 22px; cursor: pointer; }
.guide__dl { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 22px; border-radius: 999px; background: #1B4136; color: #FFFFFF; text-decoration: none; font: 600 14px/1.2 "Oswald", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.guide__body { max-width: 720px; margin: 0 auto; padding: 28px 20px 80px; font-size: 17px; line-height: 1.6; }
.guide__body h1, .guide__body h2, .guide__body h3, .guide__body h4 { font-family: "Oswald", sans-serif; font-weight: 600; line-height: 1.1; color: #131515; margin: 1.6em 0 .5em; }
.guide__body h1 { font-size: clamp(30px, 8vw, 44px); margin-top: .2em; text-transform: uppercase; }
.guide__body h2 { font-size: 26px; } .guide__body h3 { font-size: 21px; }
.guide__body a { color: #1B4136; }
.g-eyebrow { font: 600 13px/1 "Oswald", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #C19A48; margin: 0; }
.g-hint { background: #E6EEEA; border-radius: 12px; padding: 14px 16px; font-size: 15px; }
.g-prompt { position: relative; margin: 16px 0; border-radius: 14px; background: #F5F8F6; border: 1px solid #E6EEEA; padding: 16px 16px 60px; }
.g-prompt pre { margin: 0; white-space: pre-wrap; word-wrap: break-word; font: 15px/1.55 "Manrope", sans-serif; }
.g-copy { position: absolute; left: 16px; bottom: 12px; min-height: 38px; padding: 8px 18px; border-radius: 999px; border: 0; background: #1B4136; color: #FFF; font: 600 14px "Manrope", sans-serif; cursor: pointer; }
.g-copy.is-done { background: #C19A48; }
.g-check { list-style: none; padding: 0; }
.g-check li { margin: 8px 0; }
.g-check label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.g-check input { width: 22px; height: 22px; margin-top: 3px; accent-color: #1B4136; flex: none; }
.g-btn { display: inline-flex; min-height: 48px; align-items: center; padding: 12px 24px; border-radius: 999px; background: #1B4136; color: #FFF !important; text-decoration: none; font-weight: 600; }
.g-video { aspect-ratio: 16 / 9; border-radius: 14px; background: #1B4136; display: grid; place-items: center; text-align: center; color: #FFF; padding: 16px; margin: 16px 0; }
.g-video iframe { width: 100%; height: 100%; border: 0; border-radius: 14px; }
.g-video__play { min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 0; background: #FFF; color: #1B4136; font-weight: 600; cursor: pointer; }
.g-video__note { font-size: 12px; opacity: .7; margin: 8px 0 0; }
.g-video.is-on { padding: 0; }

.owl[hidden] { display: none; }

/* Дверь дня на картинке: без бордовых рамок, свечение вокруг */
.castle .d--today .sh { box-shadow: inset 0 0 0 .5px rgba(120, 80, 20, .35); }
.castle .d--today::before { inset: -3px; border-radius: 4px; box-shadow: 0 0 0 1.5px rgba(255, 226, 160, .95), 0 0 18px 5px rgba(255, 205, 120, .75), 0 0 46px 10px rgba(205, 168, 95, .45); }

/* Розыгрыш: акцент на дате и зачёркнутые цены */
.eyebrow--big { font-size: clamp(56px, 16vw, 92px); line-height: .95; color: var(--gold-l); text-shadow: 0 0 30px rgba(205, 168, 95, .55); margin-bottom: 12px; }
.pz__price s { color: rgba(243, 234, 217, .55); text-decoration-thickness: 1.5px; margin-right: 8px; font-size: 16px; }
.pz__price b { font-weight: 400; color: var(--gold-l); }
.pz__title span { display: block; }

/* Гайд из чата 1225 Контент: свёрстан под 1080px, масштабируем через --u */
@font-face { font-family: "Cormorant"; src: url("/fonts/Cormorant-Italic.woff2") format("woff2"); font-style: italic; font-weight: 300 700; font-display: swap; }
.gx { position: relative; z-index: 0; --u: clamp(.46px, calc(100vw / 1500), .7px); max-width: calc(1080 * var(--u)); margin: 24px auto 0; overflow: hidden; border-radius: 18px; box-shadow: 0 0 0 1px #E6EEEA; }
.g-lead { font-size: 18px; line-height: 1.55; color: #1B4136; border-left: 3px solid #C19A48; padding-left: 14px; margin-top: 18px; }
.guide__end { padding-top: 10px; }
.g-card, .g-next { margin-top: 30px; padding: 26px 22px; border-radius: 18px; background: #F5F8F6; text-align: center; }
.g-card h2, .g-next h2 { margin-top: 0 !important; }
.g-next { background: #1B4136; color: #FFF; }
.g-next h2 { color: #FFF !important; }
.g-small { font-size: 13px; color: #4A5550; margin-top: 12px; }
.g-btn--line { background: transparent; box-shadow: inset 0 0 0 1.5px #C19A48; color: #FFF !important; }
.gx .gx-prompt { position: relative; padding-bottom: calc(150 * var(--u)) !important; }
.gx .g-copy { left: calc(48 * var(--u)); bottom: calc(40 * var(--u)); white-space: normal; }
.gx .gx-mini .g-copy { position: static; display: block; width: fit-content; margin-top: 12px; }
.gx .g-copy { padding: 9px 20px !important; font-size: 14px; line-height: 1.2; }


/* Приглушённая зимняя картинка под гайдом */
.guide { background: #F4EFE4; }
.guide__bg { position: sticky; top: 0; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(250, 246, 238, .38) 0%, rgba(250, 246, 238, .5) 60%, rgba(250, 246, 238, .62) 100%), url("/img/scene/guide-bg.webp") center / cover no-repeat; }
.guide > *:not(.guide__bg):not(.guide__bar) { position: relative; z-index: 1; }
.guide__bar { background: rgba(247, 243, 234, .94); }
.guide .gx { box-shadow: 0 20px 50px -20px rgba(27, 65, 54, .35), 0 0 0 1px rgba(193, 154, 72, .35); }


/* Надпись позади замка */
.intro { position: absolute; z-index: 0; top: 0; left: 0; right: 0; text-align: center; padding: max(14px, env(safe-area-inset-top)) 12px 0; pointer-events: none; }
.intro__script { margin-top: 5vh !important; }
.intro__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(16px, 4.6vw, 30px); letter-spacing: .02em; color: var(--cream); text-shadow: 0 2px 12px rgba(0, 0, 0, .7); }
.intro__script { margin: -.06em 0 0; font-family: var(--script); font-weight: 400; font-size: clamp(44px, 13.5vw, 190px); line-height: 1.05; color: var(--gold-l); text-shadow: 0 0 40px rgba(205, 168, 95, .55), 0 4px 18px rgba(0, 0, 0, .55); white-space: nowrap; }
.castle { z-index: 1; }
.track { z-index: 2; }

/* Старт по касанию: только так браузер разрешает звук */
.gate { position: absolute; inset: 0; z-index: 7; display: grid; place-items: center; border: 0; background: radial-gradient(60% 40% at 50% 55%, rgba(7, 31, 23, 0), rgba(4, 16, 11, .55)); cursor: pointer; transition: opacity .8s; -webkit-tap-highlight-color: transparent; }
.gate.is-gone { opacity: 0; pointer-events: none; }
.gate__ring { position: absolute; top: 50%; left: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; border: 1px solid rgba(235, 212, 158, .8); box-shadow: 0 0 40px rgba(235, 212, 158, .45), inset 0 0 30px rgba(235, 212, 158, .3); animation: ring 2.2s ease-in-out infinite; }
@keyframes ring { 50% { transform: scale(1.12); opacity: .55; } }
.gate__text { position: relative; margin-top: 190px; font-family: var(--serif); font-size: 18px; line-height: 1.35; color: var(--cream); text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.scene:not(.is-started) .zoomout, .scene:not(.is-started) .sound { opacity: 0; }

/* Кнопка звука */
.sound { position: absolute; z-index: 6; right: 14px; bottom: 22px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(205, 168, 95, .7); background: rgba(7, 31, 23, .6); color: var(--gold-l); display: grid; place-items: center; cursor: pointer; transition: opacity .5s; }
.sound svg { width: 22px; height: 22px; }
.sound .sound__off { display: none; }
.sound.is-off .sound__off { display: inline; } .sound.is-off .sound__on { display: none; }

/* Подарок в открытых окошках */
.castle .d__icon { width: 62%; }

/* Сова: летит на нас и растёт, отлетает назад, отпускает свиток, садится на него и складывает крылья.
   Размер сидящей совы подогнан под летящую, чтобы переход был без скачка */
.gift { position: relative; --ow: min(96vw, 440px); }
.owl { position: absolute; z-index: 3; left: 50%; top: calc(9px - var(--ow) * .215); width: var(--ow); height: auto; pointer-events: none; opacity: 0;
  transform-origin: 50% 45%; transform: translateX(-50%) scale(.06); filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .5)); }
.fly.is-opened .owl { animation: owl-in 2.7s .35s cubic-bezier(.45, 0, .2, 1) forwards; }
.fly.is-opened .owl--free { animation: none; }
@keyframes owl-in {
  0% { opacity: 0; transform: translateX(-50%) translateY(6vh) scale(.06); }
  12% { opacity: 1; }
  62% { opacity: 1; transform: translateX(-50%) translateY(14vh) scale(1.9); }
  85% { opacity: 1; transform: translateX(-50%) translateY(-6vh) scale(.82); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(.9); }
}
/* свиток выпал из клюва: та же поза, но уже без свитка */
.fly.is-unrolled .owl:not(.owl--free) { animation: owl-hide .3s forwards; }
@keyframes owl-hide { from { opacity: 1; transform: translateX(-50%) translateY(0) scale(.9); } to { opacity: 0; transform: translateX(-50%) translateY(0) scale(.9); } }
.fly.is-unrolled .owl--free { animation: owl-land 1.3s cubic-bezier(.45, 0, .25, 1) forwards; }
@keyframes owl-land {
  0% { opacity: 0; transform: translateX(-50%) translateY(0) scale(.9); }
  15% { opacity: 1; }
  55% { opacity: 1; transform: translateX(-50%) translateY(calc(-30px - var(--ow) * .38)) scale(1.3); }
  100% { opacity: 1; transform: translateX(-50%) translateY(calc(7px - var(--ow) * .3352)) scale(1.458); }
}
/* села и складывает крылья */
.fly.is-landed .owl--free { animation: owl-fold .45s ease-in forwards; }
@keyframes owl-fold {
  from { opacity: 1; transform: translateX(-50%) translateY(calc(7px - var(--ow) * .3352)) scale(1.458); }
  to { opacity: 0; transform: translateX(-50%) translateY(calc(7px - var(--ow) * .3352)) scale(.5, 1.4); }
}
.owl-perch { position: absolute; z-index: 3; left: 50%; bottom: calc(100% - 16px); width: calc(var(--ow) * .5); height: auto; pointer-events: none; opacity: 0;
  transform-origin: 50% 100%; transform: translateX(-50%); filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .45)); }
.fly.is-landed .owl-perch { opacity: 1; transition: opacity .35s .05s; animation: perch 5s 1.5s ease-in-out infinite; }
@keyframes perch { 0%, 88%, 100% { transform: translateX(-50%) rotate(0); } 92% { transform: translateX(-50%) rotate(-5deg); } 96% { transform: translateX(-50%) rotate(3deg); } }
.fly__box { padding-top: min(30vh, 240px); }

/* Гайд: без полосы сверху, только кнопки */
.guide__bar { background: transparent !important; border-bottom: 0 !important; pointer-events: none; }
.guide__bar > * { pointer-events: auto; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.guide__close { background: rgba(255, 255, 255, .95); }

/* Текст гайда на белых карточках поверх окна */
.guide__body { background: rgba(255, 255, 255, .93); border-radius: 18px; margin: 70px 12px 0; padding: 22px 20px 26px; box-shadow: 0 20px 50px -20px rgba(27, 65, 54, .4); }
.guide__end { background: transparent; box-shadow: none; padding: 0; margin-top: 0; }
.guide__end .g-card { background: rgba(255, 255, 255, .95); }
.gx { margin: 18px 12px 0 !important; }
@media (min-width: 760px) { .guide__body { margin: 80px auto 0; } .gx { margin: 18px auto 0 !important; } }

.train { max-width: none !important; }

/* Приветствие гайда: стиль календаря (Great Vibes, Prata, золото) */
.guide__body:not(.guide__end) { background: linear-gradient(180deg, #FFFDF7, #FBF4E6); text-align: center; padding: 30px 22px 28px;
  box-shadow: inset 0 0 0 1px rgba(193, 154, 72, .55), inset 0 0 0 6px #FFFBF2, inset 0 0 0 7px rgba(193, 154, 72, .3), 0 24px 60px -24px rgba(27, 65, 54, .45); }
.g-door { margin: 0; font-family: var(--script); font-size: 46px; line-height: 1; color: #B8924A; }
.guide__body .g-eyebrow { margin-top: 6px; font-family: var(--sans); font-weight: 600; font-size: 11px; letter-spacing: .2em; color: #1B4136; opacity: .75; }
.guide__body h1.g-hello { margin: 14px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 7.6vw, 40px); line-height: 1.15; text-transform: none; color: #1B4136; }
.g-orn { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 16px 0 18px; color: #C19A48; font-size: 14px; }
.g-orn span { width: 56px; height: 1px; background: linear-gradient(90deg, transparent, #C19A48); }
.g-orn span:last-child { transform: scaleX(-1); }
.guide__body:not(.guide__end) p:not(.g-door):not(.g-eyebrow):not(.g-lead) { text-align: left; font-size: 16.5px; line-height: 1.65; color: #2A2F2C; }
.guide__body .g-lead { text-align: left; margin-top: 22px; border-left: 0; padding: 16px 18px; border-radius: 14px; background: #1B4136; color: #F3EAD9; font-family: "Cormorant", Georgia, serif; font-style: italic; font-size: 22px; line-height: 1.35; }

/* Приветствие без заголовка: только Дверь N и дата */
.guide__body h1.g-door { margin: 0; font-family: var(--script); font-weight: 400; font-size: 52px; line-height: 1; text-transform: none; color: #B8924A; }
.guide__body .g-eyebrow { margin: 6px 0 18px; }

/* Розыгрыш в конце гайда: в стиле календаря */
.g-raffle { position: relative; z-index: 1; margin: 22px 12px 0; padding: 30px 22px 26px; border-radius: 18px; text-align: center; color: var(--cream);
  background: radial-gradient(120% 70% at 50% 0%, #1E6A4D 0%, #0D3528 60%, #071F17 100%);
  box-shadow: inset 0 0 0 1px rgba(205, 168, 95, .7), inset 0 0 0 6px #0D3528, inset 0 0 0 7px rgba(205, 168, 95, .3), 0 24px 60px -24px rgba(7, 31, 23, .7); }
.g-raffle__date { margin: 0; font-family: var(--script); font-size: 54px; line-height: 1; color: var(--gold-l); text-shadow: 0 0 24px rgba(205, 168, 95, .5); }
.g-raffle h2 { margin: 8px 0 10px; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.2; color: var(--cream); text-transform: none; }
.g-raffle__lead { margin: 0 auto 18px; max-width: 30em; font-size: 15px; line-height: 1.55; color: rgba(243, 234, 217, .88); }
.g-raffle__list { list-style: none; margin: 0 0 20px; padding: 0; text-align: left; }
.g-raffle__list li { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid rgba(205, 168, 95, .3); }
.g-raffle__list li:last-child { border-bottom: 1px solid rgba(205, 168, 95, .3); }
.g-raffle__list span { font-family: var(--script); font-size: 24px; line-height: 1; color: var(--gold); }
.g-raffle__list b { font-family: var(--serif); font-weight: 400; font-size: 17px; line-height: 1.3; }
.g-raffle__list i { font-style: normal; font-size: 13px; color: var(--gold-l); }
.g-raffle__list s { color: rgba(243, 234, 217, .5); margin-right: 6px; }
.g-raffle__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 13px 26px; border-radius: 999px; text-decoration: none; font: 600 15px var(--sans); color: var(--em);
  background: linear-gradient(180deg, #E4C98C 0%, #CDA85F 55%, #B8924A 100%); box-shadow: 0 8px 26px -8px rgba(205, 168, 95, .7); }
.g-raffle__legal { margin: 14px 0 0; font-size: 12.5px; }
.g-raffle__legal a { color: var(--gold-l); }
@media (min-width: 760px) { .g-raffle { max-width: 696px; margin: 22px auto 0; } }

/* Конец гайда: розыгрыш, обо мне, Telegram и подвал на изумрудном фоне, как на странице */
.guide__dark { position: relative; z-index: 1; margin-top: 30px; border-radius: 26px 26px 0 0; color: var(--cream); overflow: hidden;
  background: radial-gradient(110% 40% at 50% 0%, #17573F 0%, rgba(13, 53, 40, .95) 45%, #071F17 100%); box-shadow: 0 -20px 60px -30px rgba(7, 31, 23, .7); }
.guide__dark .sec:first-child { padding-top: 56px; }
.guide__dark .foot { margin-top: 0; }

/* Надпись лесенкой: Адвент слева, календарь справа и ниже */
.intro__script { white-space: normal; font-size: clamp(64px, 20vw, 220px); line-height: .9; text-align: left; margin-top: 3vh !important; }
.intro__script .w1 { display: block; padding-left: 4vw; }
.intro__script .w2 { display: block; text-align: right; padding-right: 3vw; margin-top: -.12em; transform: translateY(.18em); }
@media (min-width: 900px) { .intro__script { font-size: clamp(110px, 12vw, 220px); } .intro__script .w1 { padding-left: 12vw; } .intro__script .w2 { padding-right: 10vw; } }
/* Адвент к самому левому краю, календарь к самому правому */
.intro { padding-left: 0; padding-right: 0; }
.intro__script .w1 { padding-left: 2.5vw !important; }
.intro__script .w2 { padding-right: 2vw !important; }
.intro__script .w2 { font-size: .8em; }
.intro__script .w1 { transform: translateY(.14em); }
.intro__script .w2 { font-size: .88em; }
.intro__script .w1 { transform: translateY(.26em); }

/* Блок с книгой в гайде: на телефоне картинка сверху, текст под ней */
@media (max-width: 700px) {
  .gx .gx-book { grid-template-columns: 1fr !important; }
  .gx .gx-book img { width: 72% !important; margin: 0 auto; padding: 22px 0 0 !important; }
  .gx .gx-book .gx-bt { padding: 18px 22px 22px !important; }
  .gx .gx-book .gx-gift { grid-column: 1 !important; }
}

/* Строка про розыгрыш на свитке */
.gift__raffle { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid rgba(184, 146, 74, .45); font-family: var(--serif); font-size: 14.5px; line-height: 1.45; color: #7B2333; }
.gift__raffle a { display: inline-block; margin-top: 4px; font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: .04em; color: #1B4136; text-decoration: underline; text-decoration-color: #C19A48; text-underline-offset: 3px; }

/* Правовые страницы */
.legal-page { background: linear-gradient(180deg, #0D3528 0%, #071F17 100%); }
.legal { position: relative; z-index: 2; width: min(100% - 24px, 760px); margin: 0 auto; padding: 22px 0 40px; }
.legal__back { display: inline-block; margin-bottom: 14px; color: var(--gold-l); text-decoration: none; font-size: 14px; }
.legal__card { background: #FFFDF7; color: #2A2F2C; border-radius: 20px; padding: 30px 22px 34px; box-shadow: inset 0 0 0 1px rgba(193, 154, 72, .5), inset 0 0 0 6px #FFFDF7, inset 0 0 0 7px rgba(193, 154, 72, .25); font-size: 15.5px; line-height: 1.65; overflow-wrap: anywhere; }
.legal__card h1 { margin: 0 0 6px; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 7vw, 40px); line-height: 1.15; color: #1B4136; }
.legal__lead { margin: 0 0 10px; font-family: var(--script); font-size: 26px; color: #B8924A; }
.legal__card h2 { margin: 26px 0 6px; font-family: var(--sans); font-weight: 600; font-size: 17px; color: #1B4136; }
.legal__card p { margin: 0 0 10px; }
.legal__card ul { margin: 0 0 10px; padding-left: 20px; }
.legal__card a { color: #1B4136; text-decoration-color: #C19A48; }
@media (min-width: 720px) { .legal__card { padding: 44px 48px; } }
.legal__card h1 { overflow-wrap: normal; -webkit-hyphens: auto; hyphens: auto; }
.guide .gx { background: #FFFFFF; }

/* Дверь 7: страница книги в стиле календаря */
.gbwrap { position: relative; z-index: 1; }
.gb { margin: 18px 12px 0; padding: 30px 22px; border-radius: 18px; text-align: center; color: #2A2F2C; font-size: 16px; line-height: 1.6;
  background: linear-gradient(180deg, #FFFDF7, #FBF4E6); box-shadow: inset 0 0 0 1px rgba(193, 154, 72, .55), inset 0 0 0 6px #FFFBF2, inset 0 0 0 7px rgba(193, 154, 72, .3), 0 24px 60px -24px rgba(27, 65, 54, .45); }
.gb p { text-align: left; margin: 0 0 12px; }
.gb__cover { width: min(70%, 260px); height: auto; margin: -6px auto 14px; display: block; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .35)); }
.gb .gb__eyebrow { text-align: center; margin: 0; font-family: var(--script); font-size: 30px; line-height: 1.1; color: #B8924A; }
.gb__title { margin: 4px 0 4px; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 7vw, 36px); line-height: 1.15; color: #1B4136; }
.gb .gb__sub { text-align: center; margin: 0 0 18px; font-family: "Cormorant", Georgia, serif; font-style: italic; font-size: 21px; color: #7B2333; }
.gb__h3 { margin: 22px 0 10px; font-family: var(--serif); font-weight: 400; font-size: 21px; color: #1B4136; }
.gb__list { list-style: none; margin: 0 0 18px; padding: 0; text-align: left; }
.gb__list li { position: relative; padding: 9px 0 9px 30px; border-top: 1px solid rgba(193, 154, 72, .3); }
.gb__list li:last-child { border-bottom: 1px solid rgba(193, 154, 72, .3); }
.gb__list li::before { content: "✦"; position: absolute; left: 4px; top: 9px; color: #C19A48; }
.gb__quote { margin: 18px 0; padding: 18px 18px; border-radius: 14px; background: #1B4136; color: #F3EAD9; font-family: "Cormorant", Georgia, serif; font-style: italic; font-size: 24px; line-height: 1.3; }
.gb__quote span { display: block; margin-top: 8px; font-family: var(--sans); font-style: normal; font-size: 13px; color: rgba(243, 234, 217, .75); }
.gb .gb__value { text-align: center; font-family: var(--serif); font-size: 19px; color: #7B2333; margin: 6px 0 0; }
.gb__value s { color: rgba(42, 47, 44, .5); }
.gb__steps { text-align: left; margin: 8px 0 20px; padding-left: 22px; }
.gb__steps li { margin: 8px 0; }
.gb__btn { margin: 6px auto 0; }
.gb .gb__small { text-align: center; font-size: 13px; color: #4A5550; margin: 12px 0 0; }
.gb__books { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 20px; }
.gb__book { display: flex; flex-direction: column; gap: 6px; padding: 12px 10px; border-radius: 14px; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(193, 154, 72, .35); text-decoration: none; color: #2A2F2C; text-align: left; font-size: 13.5px; line-height: 1.45; }
.gb__book img { width: 100%; height: auto; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .25)); }
.gb__book b { font-family: var(--serif); font-weight: 400; font-size: 16px; color: #1B4136; }
@media (min-width: 760px) { .gb { max-width: 696px; margin: 18px auto 0; padding: 40px 44px; } }
.gb .btn--line { color: #1B4136; box-shadow: inset 0 0 0 1.5px #C19A48; }
.gb .gb__ask { margin: 18px 0 0; padding: 16px 18px; border-radius: 14px; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(193, 154, 72, .4); font-size: 15px; line-height: 1.55; color: #2A2F2C; }
.gx .gx-msg .g-copy { position: static; display: block; width: fit-content; margin-top: 12px; background: #FFFFFF; color: #1B4136; }
.gx .g-xlsx { margin: 14px 0 0; font-size: 14px; }
.gx .g-xlsx a { color: #1B4136; font-weight: 600; text-decoration-color: #C19A48; }
@media (max-width: 700px) { .gx .gx-tiers { grid-template-columns: 1fr !important; } }
.gx .gx-ws-btn { display: inline-flex; margin-top: 16px; }
