/* hitok.online — design D «Кино». Built from variants/shared/proto.css + a/a.css + d/d.css. */
/* Shared base for design variants: reset + the original hitok.online logo, unchanged. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid #d43262; outline-offset: 3px; }

/* Logo: same markup and CSS as the live hitok.online «Hit[пластинка]k». */
.brand {
  font-family: Syne, sans-serif;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.045em;
  line-height: 0.9;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.platter {
  position: relative;
  display: inline-block;
  width: 1.02em;
  height: 1.02em;
  margin: 0 0.03em 0 0.01em;
  vertical-align: -0.16em;
}
.platter-disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.55), transparent 16%),
    radial-gradient(circle, #f7f8f8 0 4.5%, #d43262 5% 14%, transparent 14.4%),
    repeating-radial-gradient(circle, #101216 0 0.018em, #3e444c 0.018em 0.032em);
  box-shadow: inset 0 0 0 0.028em rgba(255, 255, 255, 0.7);
  animation: platter-spin 5.5s linear infinite;
}
.platter-disc::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.07em;
  height: 0.07em;
  margin: -0.035em 0 0 -0.035em;
  border-radius: 50%;
  background: #16181c;
  box-shadow: 0 0 0 0.012em rgba(255, 255, 255, 0.7);
}
.platter-arm {
  position: absolute;
  z-index: 1;
  left: 52%;
  top: 16%;
  width: 44%;
  height: 7%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f4f6f7, #8d939a);
  transform: rotate(38deg);
  transform-origin: left center;
  pointer-events: none;
}
.platter-arm::before {
  content: "";
  position: absolute;
  left: -22%;
  top: 50%;
  width: 34%;
  height: 190%;
  margin-top: -95%;
  border-radius: 2px 5px 5px 2px;
  background: #d7dbde;
  box-shadow: inset 0 0 0 1px #5c656e;
}
@keyframes platter-spin { to { transform: rotate(360deg); } }

/* Toast after «копируем историю и открываем бота». */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 140%);
  max-width: min(92vw, 440px); padding: 14px 18px; border-radius: 14px;
  background: #16181c; color: #fff; font: 600 15px/1.4 Manrope, system-ui, sans-serif;
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.6); transition: transform .3s ease;
}
.toast.is-on { transform: translate(-50%, 0); }

/* Marquee */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 48s linear infinite; }
.marquee-rev .marquee-track { animation-direction: reverse; animation-duration: 56s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Reveal on scroll */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }


/* New Year decorations shared by variants */
.flake { position: absolute; top: -20px; color: #fff; opacity: .8; animation: fall linear infinite; pointer-events: none; font-size: 14px; z-index: 0; }
@keyframes fall { to { transform: translateY(110vh) rotate(360deg); } }
.lights { position: absolute; left: 0; right: 0; top: 0; height: 60px; pointer-events: none; z-index: 1; }
.lights i { position: absolute; top: 18px; width: 10px; height: 14px; border-radius: 50% 50% 45% 45%; animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* Line icons from shared/icons.svg */
.ic { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em; flex: none; }
.badge { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; font-size: 24px; font-style: normal; background: color-mix(in srgb, currentColor 10%, transparent); }
:root { --bg:#fffaf6; --bg2:#fbefe9; --ink:#2a1a24; --ink2:#5d4a55; --pink:#d43262; --pink2:#b8234f; --soft:#f6d9e1; --gold:#f2c66d; --line:rgba(42,26,36,.12); }
body { background: var(--bg); color: var(--ink); font: 400 17px/1.6 Manrope, system-ui, sans-serif; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.serif { font-family: Lora, Georgia, serif; }
.hand { font-family: Caveat, cursive; color: var(--pink); font-weight: 700; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 17px 28px; border-radius: 999px; background: var(--pink); color: #fff; text-decoration: none; font: 800 17px/1 Manrope, sans-serif; border: 0; cursor: pointer; box-shadow: 0 14px 30px -14px rgba(212,50,98,.8); transition: transform .15s, background .15s; }
.btn:hover { background: var(--pink2); transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; }
.btn-soft { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-soft:hover { background: var(--bg2); }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255,250,246,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.top .wrap { display: flex; align-items: center; height: 70px; gap: 26px; }
.nav { display: flex; gap: 24px; margin-left: auto; font-weight: 600; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink2); }
.nav a:hover { color: var(--pink); }
.top .btn { padding: 11px 18px; font-size: 15px; }

/* hero */
.hero { position: relative; text-align: center; padding: 46px 0 60px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 680px; background: radial-gradient(40% 50% at 20% 30%, #fde3ea 0, transparent 70%), radial-gradient(35% 45% at 85% 20%, #fff0cf 0, transparent 70%); z-index: -1; }
.hero .hand { font-size: 28px; display: inline-block; transform: rotate(-3deg); }
.hero h1 { font-family: Lora, serif; font-weight: 700; font-size: clamp(40px, 6.2vw, 78px); line-height: 1.04; letter-spacing: -.02em; margin: 10px auto 18px; max-width: 14em; }
.squiggle { position: relative; white-space: nowrap; }
.squiggle svg { position: absolute; left: 0; right: 0; bottom: -.12em; width: 100%; height: .32em; }
.squiggle path { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.4s .4s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.rot { display: inline-block; color: var(--pink); font-style: italic; transition: opacity .28s, transform .28s; }
.rot.out { opacity: 0; transform: translateY(-.25em); }
.hero .sub { font-size: 19px; color: var(--ink2); max-width: 36em; margin: 0 auto 30px; }

.story { max-width: 820px; margin: 0 auto; text-align: left; background: #fff; border-radius: 28px; padding: 18px; border: 2px solid #f0bccb; box-shadow: 0 30px 70px -40px rgba(212,50,98,.6), 0 0 0 8px rgba(246,217,225,.45); }
.who { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 4px 12px; }
.who span { font-weight: 700; color: var(--ink2); font-size: 14px; align-self: center; margin-right: 4px; }
.who button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font: 700 14px/1 Manrope, sans-serif; cursor: pointer; color: var(--ink); }
.who button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.story textarea { width: 100%; min-height: 130px; border: 0; resize: vertical; font: 400 18px/1.55 Manrope, sans-serif; color: var(--ink); padding: 8px 6px; outline: none; background: transparent; }
.story textarea::placeholder { color: #a8939d; }
.story-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.story-bar { align-items: flex-start; justify-content: space-between; }
.story-bar small { color: #a8939d; }
.sb-main { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.sb-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.btn-sm { padding: 9px 16px; font-size: 14px; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-sm svg, .btn-sm .ic { width: 16px; height: 16px; }
.story-bar .link-soft { border: 0; background: none; padding: 6px 4px; font: 600 14px/1 Manrope, sans-serif; color: var(--ink2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.story-bar .link-soft:hover { color: var(--pink); }
.story-bar .link-soft svg { width: 15px; height: 15px; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin-top: 22px; color: var(--ink2); font-size: 15px; }
.trust b { color: var(--ink); }

/* occasions marquee */
.occ { padding: 30px 0 80px; }
.occ h2 { text-align: center; font: 700 clamp(30px, 4vw, 46px)/1.1 Lora, serif; margin-bottom: 28px; }
.oc { flex: none; width: 250px; padding: 20px 22px; border-radius: 22px; background: #fff; border: 1px solid var(--line); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.oc:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 18px 30px -20px rgba(42,26,36,.5); }
.oc i { font-style: normal; font-size: 26px; }
.oc b { display: block; font: 700 21px/1.2 Lora, serif; margin: 8px 0 2px; }
.oc span { color: var(--ink2); font-size: 15px; }
.oc.hot { background: #1d2340; color: #fff; border-color: #1d2340; }
.oc.hot span { color: #cfd3ea; }
.marquee + .marquee { margin-top: 14px; }

/* steps */
.sec { padding: 90px 0; }
.sec-h { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.sec-h .hand { font-size: 26px; }
.sec-h h2 { font: 700 clamp(32px, 4.4vw, 52px)/1.08 Lora, serif; margin: 6px 0 12px; }
.sec-h p { color: var(--ink2); font-size: 18px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: #fff; border-radius: 26px; padding: 26px; border: 1px solid var(--line); position: relative; }
.step .n { position: absolute; top: -18px; left: 24px; width: 44px; height: 44px; border-radius: 50%; background: var(--pink); color: #fff; display: grid; place-items: center; font: 700 22px Lora, serif; box-shadow: 0 8px 18px -8px var(--pink); }
.step h3 { font: 700 22px/1.25 Lora, serif; margin: 14px 0 8px; }
.step p { color: var(--ink2); font-size: 16px; }
.mini { margin-top: 18px; padding: 14px; border-radius: 16px; background: var(--bg2); font-size: 14px; display: grid; gap: 8px; }
.bub { padding: 9px 12px; border-radius: 14px; max-width: 92%; line-height: 1.35; }
.bub.me { background: #e1f5d4; justify-self: end; border-bottom-right-radius: 4px; }
.bub.bot { background: #fff; border-bottom-left-radius: 4px; }
.wave { display: flex; align-items: center; gap: 3px; height: 26px; }
.wave i { width: 3px; border-radius: 3px; background: var(--pink); animation: eq 1.1s ease-in-out infinite; }
@keyframes eq { 0%,100% { height: 20%; } 50% { height: 100%; } }

/* moments (stories carousel) */
.moments { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 1fr); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 18px; scrollbar-width: thin; }
.mo { scroll-snap-align: start; border-radius: 26px; overflow: hidden; background: #fff; border: 1px solid var(--line); text-decoration: none; display: flex; flex-direction: column; }
.mo figure { margin: 0; aspect-ratio: 4/3; overflow: hidden; }
.mo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.mo:hover img { transform: scale(1.05); }
.mo div { padding: 20px 22px 24px; }
.mo b { font: 700 21px/1.25 Lora, serif; display: block; margin-bottom: 6px; }
.mo span { color: var(--ink2); font-size: 15px; }

/* features */
.feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fe { padding: 26px; border-radius: 24px; background: var(--bg2); }
.fe i { font-style: normal; font-size: 30px; }
.fe h3 { font: 700 21px/1.25 Lora, serif; margin: 10px 0 6px; }
.fe p { color: var(--ink2); font-size: 16px; }

/* prices */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.pr { padding: 30px 26px; border-radius: 26px; background: #fff; border: 1.5px solid var(--line); display: flex; flex-direction: column; gap: 8px; position: relative; }
.pr.main { border-color: var(--pink); box-shadow: 0 30px 60px -40px rgba(212,50,98,.8); }
.pr .tag { position: absolute; top: -13px; left: 24px; background: var(--pink); color: #fff; font: 800 12px/1 Manrope; padding: 7px 12px; border-radius: 999px; letter-spacing: .06em; text-transform: uppercase; }
.pr h3 { font: 700 24px Lora, serif; }
.pr .sum { font: 700 48px/1 Lora, serif; margin: 8px 0; }
.pr .sum small { font: 600 18px Manrope; color: var(--ink2); }
.pr ul { padding: 0; margin: 6px 0 18px; list-style: none; display: grid; gap: 8px; font-size: 15px; color: var(--ink2); }
.pr li::before { content: "♪"; color: var(--pink); margin-right: 8px; font-weight: 800; }
.pr .btn { margin-top: auto; }
.packs { text-align: center; margin-top: 20px; color: var(--ink2); }

/* gift band */
.gift { background: var(--ink); color: #fff; border-radius: 36px; padding: clamp(36px, 6vw, 70px); display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; overflow: hidden; position: relative; }
.gift h2 { font: 700 clamp(30px, 4vw, 50px)/1.08 Lora, serif; }
.gift p { color: #e3d3db; margin: 16px 0 26px; font-size: 18px; }
.gift ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.gift li { padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,.07); }
.gift li b { display: block; }
.gift li span { color: #d6c4cd; font-size: 15px; }

/* faq */
.faq { max-width: 840px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 30px 20px 0; font-weight: 800; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--pink); font-size: 26px; transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { padding: 0 0 20px; color: var(--ink2); }

.final { text-align: center; padding: 110px 0; }
.final h2 { font: 700 clamp(34px, 5vw, 64px)/1.05 Lora, serif; max-width: 14em; margin: 8px auto 26px; }
footer { background: #20141b; color: #d6c4cd; padding: 50px 0 40px; font-size: 15px; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 26px; }
footer .brand { color: #fff; }
footer ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
footer a { text-decoration: none; }
footer a:hover { color: #fff; }
footer h4 { margin: 0; color: #fff; }

.dock { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: none; transform: translateY(150%); transition: transform .25s; }
.dock .btn { width: 100%; }
.dock.is-on { transform: none; }
#story, #how, #prices, #examples, #faq { scroll-margin-top: 84px; }
.to-top {
  position: fixed; right: 18px; bottom: 24px; z-index: 70; border: 0; cursor: pointer;
  padding: 12px 16px; border-radius: 999px; background: var(--ink); color: #fff;
  font: 800 14px/1 Manrope, sans-serif; box-shadow: 0 14px 30px -16px rgba(42,26,36,.7);
}
.to-top[hidden] { display: none; }
@media (max-width: 640px) { .to-top { bottom: calc(96px + env(safe-area-inset-bottom)); } }

.nav-toggle {
  display: none; border: 0; background: transparent; color: inherit; cursor: pointer;
  font: 800 15px/1 Manrope, sans-serif; padding: 10px 12px; border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px currentColor;
}
.tg-link { display: inline-flex; align-items: center; gap: 8px; }
.tg-link .ic { width: 18px; height: 18px; }
@media (max-width: 900px) {
  .nav { display: none; position: absolute; left: 12px; right: 12px; top: 70px; z-index: 40; flex-direction: column; gap: 4px; padding: 12px; border-radius: 18px; background: rgba(255,250,246,.96); color: var(--ink); box-shadow: 0 18px 40px -20px rgba(42,26,36,.45); }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 10px; border-radius: 12px; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .top .wrap { position: relative; }
  .top .btn { margin-left: 8px; }
  .steps, .feat, .prices, .gift { grid-template-columns: 1fr; }
  footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero { padding-top: 24px; }
  .hero .sub { font-size: 17px; }
  .story { border-radius: 22px; padding: 14px; }
  .story-bar { flex-direction: column; align-items: stretch; }
  .sb-main { align-items: stretch; }
  .sb-side { flex-direction: row; justify-content: space-between; align-items: center; }
  .dock { display: block; }
  .moments { grid-auto-columns: 82%; }
}
.oc .badge, .fe .badge, .nyc .badge { color: var(--pink); }
.oc.hot .badge { color: var(--gold); }
.fe .badge { background: #fff; }
.bub .ic { color: var(--pink); width: 18px; height: 18px; }
.btn .ic { width: 20px; height: 20px; }
.hero .hand { white-space: nowrap; }
@media (max-width: 640px) { .hero .hand { font-size: 22px; } }
/* Variant D = A «История» + cinematic film hero. Loaded after ../a/a.css */
.top.over { position: fixed; inset: 0 0 auto; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background .3s; }
.top.over .brand, .top.over .nav a { color: #fff; }
.top.over.solid { background: rgba(255,250,246,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.top.over.solid .brand { color: var(--ink); }
.top.over.solid .nav a { color: var(--ink2); }

.film { position: relative; min-height: 100svh; overflow: hidden; background: #120a0f; color: #fff; isolation: isolate; cursor: default; }
.scene { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; z-index: -2; }
.scene img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transform-origin: var(--o, 50% 50%); }
.scene.on { opacity: 1; }
.scene.on img { animation: kenburns 7s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.14) translate(var(--dx, 1%), var(--dy, 1%)); } to { transform: scale(1.02) translate(0, 0); } }
.film::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(18,10,15,.86) 0%, rgba(18,10,15,.55) 42%, rgba(18,10,15,.15) 70%, rgba(18,10,15,.45) 100%),
  linear-gradient(0deg, rgba(18,10,15,.75) 0%, transparent 35%); }
.film::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .09; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.film-bars { position: absolute; top: 84px; left: 50%; transform: translateX(-50%); width: min(1160px, 100% - 32px); display: flex; gap: 6px; z-index: 3; }
.film-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.25); overflow: hidden; }
.film-bars b { display: block; height: 100%; width: 0; background: #fff; }
.film-in { position: relative; z-index: 2; min-height: 100svh; display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; padding: 130px 0 120px; }
.film .hand { font-size: 28px; color: var(--gold); }
.film h1 { font: 700 clamp(40px, 5.6vw, 76px)/1.03 Lora, serif; letter-spacing: -.02em; margin: 12px 0 18px; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.film h1 em { font-style: italic; color: #ffd6e2; }
.film .sub { color: #f3e6ec; font-size: 19px; max-width: 30em; }
.film-sub { position: absolute; z-index: 3; left: 50%; bottom: 48px; transform: translateX(-50%); width: min(760px, 100% - 32px); text-align: center; font: italic 600 clamp(18px, 2vw, 24px)/1.4 Lora, serif; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.8); opacity: 0; transition: opacity .5s, transform .5s; }
.film-sub.in { opacity: 1; }
.film-sub span { display: inline; padding: .1em .35em; background: rgba(0,0,0,.35); box-decoration-break: clone; -webkit-box-decoration-break: clone; border-radius: 6px; }
.film-toggle { position: absolute; z-index: 4; right: max(16px, calc((100% - 1160px) / 2)); bottom: 40px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(0,0,0,.25); color: #fff; display: grid; place-items: center; cursor: pointer; }
.film-toggle .ic { width: 18px; height: 18px; }
.film-toggle .i-play { display: none; }
.film.paused .film-toggle .i-play { display: block; }
.film.paused .film-toggle .i-pause { display: none; }
.film.paused .scene.on img { animation-play-state: paused; }
.film .story { background: rgba(255,255,255,.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: rgba(255,255,255,.7); box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); }
.film .trust { justify-content: flex-start; color: #f3e6ec; }
.film .trust b { color: #fff; }
.film .eq { display: inline-flex; gap: 3px; align-items: end; height: 18px; margin-right: 10px; vertical-align: -2px; }
.film .eq i { width: 3px; background: var(--gold); border-radius: 2px; animation: eqd 1s ease-in-out infinite; }
@keyframes eqd { 0%,100% { height: 25%; } 50% { height: 100%; } }
.film.paused .eq i { animation-play-state: paused; }

/* love confession */
.love { position: relative; overflow: hidden; background: linear-gradient(135deg, #3a0f22 0%, #6d1838 55%, #b8234f 100%); color: #fff; border-radius: 40px; padding: clamp(36px, 6vw, 80px); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.love::before { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(255,214,226,.35), transparent 65%); }
.love h2 { font: 700 clamp(32px, 4.4vw, 58px)/1.05 Lora, serif; position: relative; }
.love h2 em { color: #ffd6e2; }
.love p { color: #f6dbe5; font-size: 18px; margin: 18px 0 26px; position: relative; }
.love .btn { background: #fff; color: #b8234f; }
.love .btn:hover { background: #ffe9f0; }
.letter { position: relative; background: #fffaf6; color: var(--ink); border-radius: 22px; padding: 28px 28px 24px; transform: rotate(2deg); box-shadow: 0 40px 70px -30px rgba(0,0,0,.6); font: italic 600 19px/1.6 Lora, serif; }
.letter::before { content: ""; position: absolute; top: -14px; left: 50%; width: 90px; height: 28px; transform: translateX(-50%) rotate(-3deg); background: rgba(242,198,109,.75); border-radius: 4px; }
.letter small { display: block; font: 700 12px/1 Manrope; letter-spacing: .14em; text-transform: uppercase; color: var(--pink); margin-bottom: 12px; font-style: normal; }
.letter .hearts { position: absolute; right: 18px; bottom: 14px; color: var(--pink); font-size: 26px; }
.floaty { position: absolute; color: #ffd6e2; opacity: .5; animation: rise 9s linear infinite; }
@keyframes rise { from { transform: translateY(0) scale(.8); opacity: 0; } 15% { opacity: .55; } to { transform: translateY(-420px) scale(1.2); opacity: 0; } }

@media (max-width: 900px) {
  .film-in { grid-template-columns: 1fr; gap: 26px; padding: 120px 0 110px; }
  .film::before { background: linear-gradient(0deg, rgba(18,10,15,.9) 0%, rgba(18,10,15,.55) 55%, rgba(18,10,15,.65) 100%); }
  .love { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .film-bars { top: 74px; }
  .film h1 { font-size: clamp(32px, 9vw, 42px); }
  .film .sub { font-size: 16px; }
  .film .hand { font-size: 22px; }
  .film-sub { bottom: 22px; font-size: 16px; }
  .film-toggle { bottom: auto; top: 90px; width: 38px; height: 38px; }
  .love { border-radius: 28px; }
}
.film h1 { font-size: clamp(38px, 4.3vw, 62px); }
.film.ny { text-align: left; padding: 0; }
.film .count { margin: 4px 0 18px; }

/* ---- site extras (not in the prototype) ---- */
.sr { position: absolute; left: -9999px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.crumbs { position: relative; z-index: 3; font-size: 14px; color: #f3e6ec; margin-bottom: 14px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }

/* real example songs */
.examples { background: var(--ink); color: #fff; }
.examples .sec-h p { color: #e3d3db; }
.players { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.player { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; padding: 16px; border-radius: 20px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.player button { width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer; background: var(--pink); color: #fff; display: grid; place-items: center; }
.player button svg { width: 22px; height: 22px; }
.player-title { font-weight: 800; line-height: 1.25; }
.player-caption { font-size: 14px; color: #d6c4cd; margin-top: 2px; }
.player-bar { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.14); overflow: hidden; }
.player-bar i { display: block; height: 100%; width: 0; background: var(--gold); }

/* inner-page blocks */
.split { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(28px, 5vw, 70px); align-items: start; }
.prose { display: grid; gap: 16px; font-size: 18px; color: var(--ink2); }
.prose h2 { font: 700 clamp(30px, 3.8vw, 46px)/1.1 Lora, serif; color: var(--ink); }
.photo-frame { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg2); transform: rotate(-1.5deg); box-shadow: 0 40px 70px -40px rgba(42,26,36,.6); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.ideas { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ideas li { padding: 18px 20px; background: #fff; border-radius: 18px; border: 1px solid var(--line); display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; }
.ideas .badge { width: 44px; height: 44px; font-size: 22px; color: var(--pink); }
.ideas b { display: block; margin-bottom: 2px; }
.ideas span { color: var(--ink2); font-size: 16px; }
.letter.plain { transform: rotate(-1deg); margin-top: 22px; }
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.related a { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 18px 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.related a:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -22px rgba(42,26,36,.5); }
.related .badge { width: 44px; height: 44px; font-size: 22px; color: var(--pink); }
.related b { display: block; font: 700 18px/1.2 Lora, serif; }
.related span { font-size: 14px; color: var(--ink2); }
.disclaimer { color: var(--ink2); font-size: 15px; max-width: 46em; }
.oc { color: var(--ink); }

/* Unfinished website order */
.order-resume {
  position: fixed; z-index: 65; left: 16px; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom));
  max-width: 520px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-radius: 20px; background: #fff; color: var(--ink);
  border: 1px solid var(--line); box-shadow: 0 24px 60px -24px rgba(42,26,36,.55);
}
.order-resume b { display: block; font: 800 16px/1.2 Manrope, sans-serif; }
.order-resume span { display: block; margin-top: 4px; color: var(--ink2); font-size: 13px; line-height: 1.35; }
.order-resume-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.order-resume .btn { padding: 11px 16px; font-size: 14px; }
@media (max-width: 640px) {
  .order-resume { bottom: calc(88px + env(safe-area-inset-bottom)); }
}

/* cookie banner */
.cookie { position: fixed; z-index: 70; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); max-width: 420px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: 0 24px 60px -24px rgba(42,26,36,.55); font-size: 14px; }
.cookie[hidden] { display: none; }
.cookie p { margin-bottom: 12px; color: var(--ink2); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cookie-actions button { border: 0; border-radius: 999px; padding: 10px 16px; font: 700 14px/1 Manrope, sans-serif; cursor: pointer; background: var(--ink); color: #fff; }
.cookie-actions button + button { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.cookie-actions a { margin-left: 6px; font-size: 13px; }
.cookie-link { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; }
footer .foot-note { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 22px; margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }

@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .cookie { left: 12px; right: 12px; max-width: none; bottom: calc(84px + env(safe-area-inset-bottom)); }
  .ideas li { grid-template-columns: 1fr; }
}

/* New Year blocks (from variant A/D) */

.ny { position: relative; overflow: hidden; background: radial-gradient(90% 70% at 70% 0%, #2c3c6b 0, #141a33 55%, #0c1024 100%); color: #fff; padding: 40px 0 70px; text-align: center; }
.ny .hand { color: var(--gold); }
.ny h1 { color: #fff; }
.ny .sub { color: #d5d9ec; }
.ny .trust, .ny .trust b { color: #e6e9f6; }
.ny .rot { color: var(--gold); }
.ny .story { border-color: #f2c66d; box-shadow: 0 30px 70px -30px rgba(0,0,0,.7), 0 0 0 8px rgba(242,198,109,.18); color: var(--ink); }
.ny-who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.nyc { border-radius: 26px; padding: 26px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; transition: transform .2s; }
.nyc:hover { transform: translateY(-4px); }
.nyc i { font-style: normal; font-size: 34px; }
.nyc h3 { font: 700 23px/1.2 Lora, serif; }
.nyc p { color: var(--ink2); font-size: 16px; }
.nyc a { margin-top: auto; color: var(--pink); font-weight: 800; text-decoration: none; padding-top: 8px; }
.when { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: w; }
.when div { padding: 24px; border-radius: 22px; background: #141a33; color: #fff; position: relative; overflow: hidden; }
.when div::after { content: "❄"; position: absolute; right: 14px; top: 10px; font-size: 40px; opacity: .1; }
.when b { font: 700 22px/1.2 Lora, serif; display: block; margin-bottom: 8px; color: var(--gold); }
.when p { color: #d5d9ec; font-size: 15px; }
.count { display: inline-flex; gap: 10px; margin-top: 26px; }
.count div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 12px 14px; min-width: 76px; }
.count b { display: block; font: 700 30px/1 Lora, serif; color: #fff; }
.count span { font-size: 12px; color: #c4c9e0; text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 900px) { .ny-who, .when { grid-template-columns: 1fr; } }
.film .count div { background: rgba(255,255,255,.1); }

/* ---- performance: compositor-only animations ---- */
.wave i, .film .eq i { height: 100% !important; transform-origin: bottom; animation-name: eqs !important; will-change: transform; }
@keyframes eqs { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.film-bars b { width: 100% !important; transform: scaleX(0); transform-origin: left; }
.film .story { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
.film-in { align-items: start; }
@media (min-width: 901px) { .film-in > div:first-child { padding-top: 40px; } }

/* ---- Christmas (/rozhdestvo/): night sky, star of Bethlehem, village, candles ---- */
.xm-hero { position: relative; min-height: 100svh; overflow: hidden; isolation: isolate; color: #fff; background:
  radial-gradient(38% 32% at 46% 10%, rgba(255,214,140,.22), transparent 70%),
  radial-gradient(50% 40% at 10% 24%, rgba(128,92,226,.32), transparent 70%),
  radial-gradient(45% 36% at 92% 30%, rgba(64,124,228,.26), transparent 70%),
  linear-gradient(180deg, #060920 0%, #10144a 42%, #262268 74%, #3a2e7c 100%); }
.xm-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.xm-sky i { position: absolute; border-radius: 50%; background: #fff; box-shadow: 0 0 6px rgba(255,255,255,.9); animation: twinkle var(--d, 3s) ease-in-out infinite; animation-delay: var(--dl, 0s); }
.xm-sky i.big { box-shadow: 0 0 8px #fff, 0 0 18px rgba(255,236,180,.8); }
@keyframes twinkle { 50% { opacity: .15; transform: scale(.55); } }
.xm-shoot { position: absolute; left: 6%; top: 9%; width: 150px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, #fff); opacity: 0; animation: shoot 11s 3s ease-out infinite; }
@keyframes shoot { 0% { opacity: 0; transform: rotate(18deg) translateX(-160px); } 3% { opacity: 1; } 9% { opacity: 0; transform: rotate(18deg) translateX(320px); } 100% { opacity: 0; transform: rotate(18deg) translateX(320px); } }
.xm-star { position: absolute; left: 46%; top: 78px; width: clamp(110px, 15vw, 210px); aspect-ratio: 1; transform: translateX(-50%); pointer-events: none; z-index: 0; }
.xm-star svg { position: relative; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 14px rgba(255,236,170,.95)) drop-shadow(0 0 42px rgba(242,198,109,.7)); animation: starpulse 4.5s ease-in-out infinite; }
.xm-star::before { content: ""; position: absolute; inset: -70%; border-radius: 50%; background: repeating-conic-gradient(rgba(255,236,180,.16) 0 3deg, transparent 3deg 15deg); -webkit-mask: radial-gradient(circle, #000 8%, transparent 68%); mask: radial-gradient(circle, #000 8%, transparent 68%); animation: spin 80s linear infinite; }
@keyframes starpulse { 50% { transform: scale(1.08); opacity: .92; } }
@keyframes spin { to { transform: rotate(360deg); } }
.xm-beam { position: absolute; left: 46%; top: 170px; bottom: calc(clamp(170px, 25vw, 360px) * .62); width: min(420px, 50vw); transform: translateX(-50%); z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(255,226,150,.26), rgba(255,226,150,.06) 75%, rgba(255,226,150,.14)); clip-path: polygon(47% 0, 53% 0, 100% 100%, 0 100%); animation: beam 6s ease-in-out infinite; }
@keyframes beam { 50% { opacity: .55; } }
.xm-scene { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(170px, 25vw, 360px); z-index: 1; pointer-events: none; }
.xm-scene svg { width: 100%; height: 100%; display: block; }
.xm-win { fill: #ffcf7a; filter: drop-shadow(0 0 6px rgba(255,190,90,.9)); animation: flicker 3.4s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { opacity: 1; } 40% { opacity: .78; } 55% { opacity: .95; } }
.xm-dome { filter: drop-shadow(0 0 10px rgba(242,198,109,.8)); }
.xm-smoke { fill: rgba(220,226,250,.35); transform-box: fill-box; transform-origin: center; animation: smoke 4s ease-out infinite; }
@keyframes smoke { from { transform: translate(0, 0) scale(.6); opacity: .6; } to { transform: translate(14px, -46px) scale(2.2); opacity: 0; } }
.xm-cstar { transform-box: fill-box; transform-origin: center; animation: spin 9s linear infinite; filter: drop-shadow(0 0 6px rgba(255,214,120,.9)); }
.xm-in { position: relative; z-index: 2; min-height: 100svh; display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: start; padding: 130px 0 clamp(170px, 19vw, 270px); }
.xm-hero .hand { font-size: 28px; color: var(--gold); }
.xm-hero h1 { font: 700 clamp(38px, 4.3vw, 62px)/1.05 Lora, serif; letter-spacing: -.02em; margin: 12px 0 18px; text-shadow: 0 2px 30px rgba(6,9,32,.6); }
.xm-hero h1 em, .xm-carol h2 em { font-style: italic; background: linear-gradient(100deg, #f2c66d 20%, #fff6d6 40%, #f2c66d 60%) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.xm-hero .sub { color: #e2e3f7; font-size: 19px; max-width: 30em; }
.xm-hero .crumbs { color: #d8daf2; }
.xm-hero .trust { justify-content: flex-start; color: #dcdff3; }
.xm-hero .trust b { color: #fff; }
.xm-hero .eq { display: inline-flex; gap: 3px; align-items: end; height: 18px; margin-right: 10px; vertical-align: -2px; }
.xm-hero .eq i { width: 3px; height: 100%; background: var(--gold); border-radius: 2px; transform-origin: bottom; animation: eqs 1s ease-in-out infinite; }
.xm-hero .count { margin: 4px 0 18px; }
.xm-hero .count div { background: rgba(255,255,255,.08); border-color: rgba(242,198,109,.3); }
.xm-hero .story { color: var(--ink); background: #fff; border-color: #f2c66d; box-shadow: 0 40px 80px -30px rgba(0,0,0,.75), 0 0 0 8px rgba(242,198,109,.16), 0 0 70px rgba(242,198,109,.18); }
@media (min-width: 901px) { .xm-in > div:first-child { padding-top: 40px; } }
.xm-hero .flake { z-index: 1; }
.xm-dust { position: absolute; z-index: 3; width: 7px; height: 7px; margin: -3px 0 0 -3px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, #fff 0 25%, #f2c66d 45%, transparent 70%); animation: dust 1s ease-out forwards; }
@keyframes dust { to { transform: translate(var(--x), var(--y)) scale(.2); opacity: 0; } }

.xm-snow { background: linear-gradient(180deg, #eef3ff 0, #f7f3fb 100%); }
.xm-snow .sec-h .hand, .xm-book .sec-h .hand { color: #b8862b; }
.xm-prose p { font: 400 19px/1.75 Lora, Georgia, serif; color: #2b2b4a; margin-bottom: 18px; }
.xm-prose p:first-child::first-letter { float: left; font: 700 64px/.86 Lora, serif; color: #b8862b; margin: 6px 10px 0 0; }
.xm-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.xm-fact { position: relative; overflow: hidden; padding: 24px 22px; border-radius: 22px; color: #fff; background: radial-gradient(120% 90% at 100% 0, #34307e 0, #141a4a 60%); box-shadow: 0 24px 40px -28px rgba(20,26,74,.9); }
.xm-fact::after { content: "✦"; position: absolute; right: 14px; top: 8px; font-size: 30px; color: var(--gold); opacity: .35; }
.xm-fact b { display: block; font: 700 32px/1.1 Lora, serif; color: var(--gold); margin-bottom: 8px; }
.xm-fact p { color: #d9dcf2; font-size: 15px; }

.xm-night { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: radial-gradient(60% 40% at 50% 0, rgba(242,198,109,.12), transparent 70%), linear-gradient(180deg, #0b0f33 0%, #171a55 55%, #241f63 100%); }
.xm-night .sec-h .hand, .xm-final .hand { color: var(--gold); }
.xm-night .sec-h p { color: #cfd3ee; }
.xm-path { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; position: relative; }
.xm-path::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(180deg, #fff6d6, #f2c66d 60%, rgba(242,198,109,.1)); box-shadow: 0 0 12px rgba(242,198,109,.7); transform: scaleY(0); transform-origin: top; transition: transform 2.4s cubic-bezier(.3,.6,.2,1) .2s; }
.xm-path.in::before { transform: none; }
.xm-path li { position: relative; padding: 0 0 34px 84px; }
.xm-path li:last-child { padding-bottom: 0; }
.xm-dot { position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; color: #1a1650; background: radial-gradient(circle at 40% 35%, #fff6d6, #f2c66d 70%); box-shadow: 0 0 0 6px rgba(242,198,109,.15), 0 0 30px rgba(242,198,109,.6); }
.xm-path .hand { font-size: 24px; color: var(--gold); }
.xm-path h3 { font: 700 28px/1.2 Lora, serif; margin: 2px 0 8px; }
.xm-path p { color: #d5d8f0; font-size: 17px; max-width: 40em; }

.xm-book { background: radial-gradient(70% 60% at 50% 0, #fffaf0 0, #f8eedb 100%); }
.xm-big { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.xm-feat { position: relative; overflow: hidden; display: grid; grid-template-columns: 130px 1fr; gap: 22px; align-items: start; padding: 32px; border-radius: 30px; color: #fff; background: radial-gradient(90% 80% at 0 0, #3a2f82 0, #141a4a 65%); box-shadow: 0 30px 60px -36px rgba(20,26,74,.9); }
.xm-feat-church { background: radial-gradient(90% 80% at 0 100%, #5a2e3e 0, #1d1338 70%); }
.xm-feat .hand { font-size: 22px; color: var(--gold); }
.xm-feat h3 { font: 700 32px/1.15 Lora, serif; margin: 0 0 10px; }
.xm-feat p { color: #dcdcf0; font-size: 16px; }
.xm-feat blockquote { margin: 16px 0 0; padding: 12px 16px; border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; background: rgba(255,255,255,.06); font: italic 600 17px/1.5 Lora, serif; color: #fff3d0; }
.xm-feat cite { display: block; font: 600 13px/1.4 Manrope, sans-serif; color: #bfc2e0; margin-top: 4px; }
.xm-feat-art { height: 170px; display: grid; place-items: center; }
.xm-feat-art svg { width: 100%; height: 100%; overflow: visible; }
.xm-candles { display: flex; gap: 12px; align-items: end; justify-content: center; }
.xm-candle { position: relative; width: 13px; height: var(--h); border-radius: 3px 3px 2px 2px; background: linear-gradient(90deg, #e8d3a4, #fff8e6 45%, #e2c993); }
.xm-candle::before { content: ""; position: absolute; bottom: 100%; left: 50%; width: 10px; height: 22px; margin: 0 0 3px -5px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: radial-gradient(circle at 50% 72%, #fff 0 18%, #ffe08a 38%, #ff9a3a 75%, transparent 78%); box-shadow: 0 0 22px 8px rgba(255,180,80,.45); transform-origin: 50% 100%; animation: flame 1.5s ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
@keyframes flame { 0% { transform: scale(1, 1) rotate(-3deg); } 50% { transform: scale(.9, 1.1) rotate(2deg); } 100% { transform: scale(1.06, .94) rotate(-1deg); } }
.xm-trads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.xm-tr { position: relative; padding: 26px; border-radius: 24px; background: #fffdf7; border: 1px solid rgba(184,134,43,.25); box-shadow: 0 18px 36px -30px rgba(120,80,20,.6); transition: transform .2s; }
.xm-tr:hover { transform: translateY(-4px); }
.xm-tr::before { content: ""; position: absolute; inset: 8px; border-radius: 18px; border: 1px dashed rgba(184,134,43,.28); pointer-events: none; }
.xm-tr .badge { color: #b8862b; }
.xm-tr h3 { font: 700 22px/1.2 Lora, serif; margin: 12px 0 8px; }
.xm-tr p { color: var(--ink2); font-size: 16px; }

.xm-carol { background: radial-gradient(70% 90% at 100% 0, #4a3a9a 0, transparent 60%), linear-gradient(135deg, #0d1236 0%, #1d1c5c 55%, #3a2e7c 100%); }
.xm-carol::before { background: radial-gradient(circle, rgba(242,198,109,.3), transparent 65%); }
.xm-carol h2 { font-size: clamp(28px, 3.3vw, 44px); line-height: 1.12; }
.xm-carol p { color: #dcdcf2; }
.xm-carol .btn { background: var(--gold); color: #1a1650; }
.xm-carol .btn:hover { background: #ffe1a0; }
.xm-star-inline { position: relative; left: auto; top: auto; transform: none; width: min(240px, 60%); justify-self: center; }
.xm-final { position: relative; overflow: hidden; isolation: isolate; color: #fff; padding: 160px 0 110px; background: linear-gradient(180deg, #0b0f33 0%, #1d1c5c 70%, #3a2e7c 100%); }
.xm-final h2 { color: #fff; }
.xm-star-final { top: 26px; left: 50%; width: 110px; }

@media (max-width: 900px) {
  .xm-in { grid-template-columns: 1fr; gap: 26px; padding: 120px 0 clamp(160px, 40vw, 260px); }
  .xm-hero > .xm-star { left: auto; right: 4%; top: 74px; transform: none; width: 96px; opacity: .9; }
  .xm-beam { display: none; }
  .xm-scene { height: clamp(150px, 40vw, 260px); }
  .xm-big, .xm-trads, .xm-facts { grid-template-columns: 1fr; }
  .xm-feat { grid-template-columns: 1fr; }
  .xm-feat-art { height: 120px; justify-content: start; }
}
@media (max-width: 640px) {
  .xm-hero h1 { font-size: clamp(32px, 9vw, 42px); }
  .xm-hero .sub { font-size: 16px; }
  .xm-hero .hand { font-size: 22px; }
  .xm-hero > .xm-star { width: 70px; top: 70px; }
  .xm-path li { padding-left: 70px; }
  .xm-dot { width: 46px; height: 46px; font-size: 20px; }
  .xm-path::before { left: 22px; }
  .xm-feat { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .xm-hero *, .xm-hero *::before, .xm-night *, .xm-book *, .xm-book *::before, .xm-carol *, .xm-final * { animation: none !important; }
  .xm-path::before { transition: none; }
}

/* Hero star: the constellation draws itself (hero only; other stars stay the 8-ray one) */
.xm-const::before { display: none; }
.xm-hero > .xm-const { width: clamp(150px, 21vw, 300px); top: 50px; }
.xm-const svg { filter: drop-shadow(0 0 4px rgba(255,236,170,1)) drop-shadow(0 0 14px rgba(242,198,109,.7)); animation: none; }
.xm-const .ln { fill: none; stroke: #ffe3a0; stroke-width: 1.8; stroke-linejoin: round; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw-const 9s ease-in-out infinite; }
.xm-const .ln2 { stroke: rgba(242,198,109,.55); stroke-width: 1.1; animation-delay: .8s; }
@keyframes draw-const { 0% { stroke-dashoffset: var(--len); opacity: 1; } 35% { stroke-dashoffset: 0; } 80% { stroke-dashoffset: 0; opacity: 1; } 95%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.xm-const .pt { fill: #fff; animation: twinkle 2.4s ease-in-out infinite; }
.xm-const .core { fill: #fff; }
.xm-const .burst { fill: #fff6d6; transform-box: fill-box; transform-origin: center; animation: burst 9s ease-out infinite; }
@keyframes burst { 0%, 33% { transform: scale(.2); opacity: 0; } 40% { transform: scale(2.6); opacity: .95; } 60%, 85% { transform: scale(1.4); opacity: .7; } 100% { transform: scale(.2); opacity: 0; } }
@media (max-width: 900px) { .xm-hero > .xm-const { width: 120px; top: 70px; right: 3%; } }
@media (max-width: 640px) { .xm-hero > .xm-const { width: 92px; } }
@media (prefers-reduced-motion: reduce) { .xm-const .ln { stroke-dashoffset: 0 !important; } .xm-const .burst { opacity: .6 !important; transform: scale(1.4) !important; } }

/* Mother's Day /den-materi/: A «Письмо» (light hero, paper notes) and B «Кино» (film hero, rose cards). */
.md-hero { padding: 40px 0 70px; background: radial-gradient(900px 500px at 85% 10%, rgba(246,217,225,.75), transparent 70%), radial-gradient(700px 420px at 0% 100%, rgba(242,198,109,.18), transparent 70%), var(--bg); }
.md-hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px 56px; align-items: center; }
.md-hero .crumbs { color: var(--ink2); }
.md-hero .hand { font-size: 28px; }
.md-hero h1 { font: 700 clamp(38px, 5.2vw, 68px)/1.04 Lora, serif; letter-spacing: -.02em; margin: 10px 0 18px; }
.md-hero h1 em { font-style: italic; color: var(--pink); }
.md-hero .sub { color: var(--ink2); font-size: 19px; max-width: 30em; }
.md-hero .trust { justify-content: flex-start; }
.md-hero .count div { background: #fff; border-color: var(--line); }
.md-hero .count b { color: var(--ink); }
.md-hero .count span { color: var(--ink2); }
.md-hero-story { grid-column: 1 / -1; width: 100%; }
.md-hero-story .story { max-width: none; }
.md-letter { position: relative; background: #fffdf8; border-radius: 6px; padding: 46px 36px 40px; transform: rotate(-2.5deg); box-shadow: 0 40px 70px -40px rgba(42,26,36,.55), 0 2px 0 rgba(42,26,36,.05);
  background-image: repeating-linear-gradient(transparent 0 37px, rgba(212,50,98,.13) 37px 38px); font: 700 clamp(28px, 3vw, 38px)/38px Caveat, cursive; color: var(--ink); }
.md-letter::before { content: ""; position: absolute; top: -14px; left: 50%; width: 110px; height: 30px; transform: translateX(-50%) rotate(3deg); background: rgba(242,198,109,.75); border-radius: 4px; }
.md-letter small { display: block; font: 700 12px/1 Manrope, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--pink); margin-bottom: 18px; }
.md-letter-faded { color: #b9a7b0; text-decoration: line-through; text-decoration-color: rgba(212,50,98,.6); }
.md-letter .hearts { position: absolute; right: 22px; bottom: 16px; color: var(--pink); }
.md-letter .hearts .ic { width: 30px; height: 30px; }

.md-pains { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.md-pain { display: flex; flex-direction: column; gap: 10px; padding: 26px 24px 22px; border-radius: 24px; background: #fff; border: 1px solid var(--line); }
.md-pain .badge { color: var(--pink); }
.md-pain h3 { font: 700 22px/1.2 Lora, serif; }
.md-pain p { color: var(--ink2); font-size: 15.5px; flex: 1; }
.md-fill { align-self: flex-start; margin-top: 6px; border: 0; background: none; padding: 0; font: 800 15px/1.2 Manrope, sans-serif; color: var(--pink); cursor: pointer; text-decoration: underline; text-decoration-color: rgba(212,50,98,.35); text-underline-offset: 4px; }
.md-fill:hover { color: var(--pink2); }
.md-note { text-align: center; color: var(--ink2); font-size: 15px; margin-top: 26px; }
/* A: paper notes, slightly turned */
.md-a .md-pain { background: #fffdf8; border-radius: 6px; border: 0; box-shadow: 0 26px 40px -30px rgba(42,26,36,.55); }
.md-a .md-pain:nth-child(odd) { rotate: -1.2deg; }
.md-a .md-pain:nth-child(even) { rotate: 1.2deg; }
.md-a .md-pain h3 { font: 700 30px/1.05 Caveat, cursive; color: var(--ink); }
/* B: rose gradient band with glass cards */
.md-b.md-pains-sec { background: linear-gradient(135deg, #3a0f22 0%, #6d1838 55%, #b8234f 100%); color: #fff; }
.md-b .sec-h p, .md-b .md-note { color: #f6dbe5; }
.md-b .sec-h .hand { color: #ffd6e2; }
.md-b .md-pain { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }
.md-b .md-pain .badge { color: #ffd6e2; }
.md-b .md-pain p { color: #f3dfe7; }
.md-b .md-fill { color: #ffd6e2; text-decoration-color: rgba(255,214,226,.4); }

.md-one { grid-template-columns: minmax(0, 520px); justify-content: center; }
.md-one .player { padding: 22px; }

.md-demo-wrap { display: grid; grid-template-columns: 1fr minmax(0, 400px); gap: clamp(30px, 6vw, 80px); align-items: center; }
.md-steps { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.md-steps li { display: grid; gap: 2px; padding: 16px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.md-steps b { color: var(--pink); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.md-phone { background: #17121a; border-radius: 38px; padding: 14px; box-shadow: 0 50px 80px -40px rgba(42,26,36,.7); }
.md-phone-top { display: flex; justify-content: space-between; align-items: center; color: #fff; padding: 8px 14px 12px; }
.md-timer { font: 700 15px/1 Manrope, sans-serif; font-variant-numeric: tabular-nums; background: var(--pink); padding: 6px 10px; border-radius: 999px; }
.md-chat { background: #efe5dc; border-radius: 26px; padding: 18px 14px; min-height: 360px; display: grid; gap: 10px; align-content: start; font-size: 15px; }
.md-chat .bub { opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
.md-chat .bub.on { opacity: 1; transform: none; }
.md-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.md-chips span { padding: 6px 10px; border-radius: 999px; background: var(--soft); font-weight: 700; font-size: 13px; }
.md-phone-note { color: #bfb0b8; font-size: 13px; text-align: center; padding: 10px 0 2px; }
.no-js .md-chat .bub, .md-chat.static .bub { opacity: 1; transform: none; }

.md-give div { background: #fff; color: var(--ink); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.md-give div::after { content: none; }
.md-give .badge { color: var(--pink); }
.md-give b { color: var(--ink); margin: 0; }
.md-give p { color: var(--ink2); }

@media (max-width: 1000px) { .md-pains { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .md-hero-in, .md-demo-wrap { grid-template-columns: 1fr; }
  .md-letter { max-width: 460px; margin: 10px auto 0; }
  .md-give { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .md-pains, .md-give { grid-template-columns: 1fr; }
  .md-a .md-pain:nth-child(n) { rotate: none; }
  .md-hero { padding-top: 24px; }
}
@media (prefers-reduced-motion: reduce) { .md-chat .bub { transition: none; } }
.season-strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 16px; padding: 16px; background: var(--soft); color: var(--ink); text-decoration: none; text-align: center; }
.season-strip .hand { font-size: 24px; }
.season-strip:hover b { color: var(--pink); }
