:root {
  --bg: #07030a;
  --pink: #ff2e93;
  --pink-2: #ff6ec7;
  --pink-3: #ffc2e6;
  --magenta: #c026d3;
  --text: #fff1f8;
  --muted: #c4a0b6;
  --stroke: rgba(255, 120, 200, .22);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.45, 0, .55, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh; min-height: 100dvh;
  background: var(--bg); color: var(--text);
  font-family: "Segoe UI", Inter, system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  display: flex; flex-direction: column;
}

/* ───── фон ───── */
.bg {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background:
    radial-gradient(1100px 650px at 50% -12%, #2b0a26 0%, transparent 62%),
    linear-gradient(180deg, #0b050e 0%, #07030a 100%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; will-change: transform; }
.b1 { width: 48vmax; height: 48vmax; left: -14vmax; top: -16vmax;
  background: radial-gradient(circle at 35% 35%, var(--pink), transparent 66%);
  animation: drift1 24s var(--ease-io) infinite alternate; }
.b2 { width: 42vmax; height: 42vmax; right: -12vmax; top: 18vh;
  background: radial-gradient(circle at 60% 40%, var(--magenta), transparent 66%);
  animation: drift2 28s var(--ease-io) infinite alternate; }
.b3 { width: 40vmax; height: 40vmax; left: 8vw; bottom: -20vmax;
  background: radial-gradient(circle at 50% 50%, #ff5c8a, transparent 66%); opacity: .38;
  animation: drift3 32s var(--ease-io) infinite alternate; }
@keyframes drift1 { to { transform: translate3d(14vw, 10vh, 0) scale(1.15); } }
@keyframes drift2 { to { transform: translate3d(-16vw, -12vh, 0) scale(.88); } }
@keyframes drift3 { to { transform: translate3d(18vw, -14vh, 0) scale(1.2); } }

.grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 80, 170, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 80, 170, .055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 28%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 28%, #000 0%, transparent 72%);
  animation: gridmove 40s linear infinite;
}
@keyframes gridmove { to { background-position: 56px 56px, 56px 56px; } }

#sparks { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* ───── феи ───── */
.fairies { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.fairy { position: absolute; left: 0; top: 0; will-change: transform; }
.fairy .fl { width: 100%; height: 100%; will-change: transform; }
.fairy svg { width: 100%; height: 100%; overflow: visible; display: block; }
.fairy .wA { transform-origin: 76px 60px; animation: flap var(--fs, .3s) ease-in-out infinite alternate; }
.fairy .wB { transform-origin: 82px 60px; animation: flap var(--fs, .3s) ease-in-out infinite alternate; animation-delay: calc(var(--fs, .3s) * -.5); }
.fairy .hair { transform-origin: 78px 28px; animation: sway 1.5s ease-in-out infinite alternate; animation-delay: var(--fd, 0s); }
.fairy .skirt { transform-origin: 82px 88px; animation: skirt 1.2s ease-in-out infinite alternate; animation-delay: var(--fd, 0s); }
.fairy .tw path { transform-box: fill-box; transform-origin: center; animation: twinkle 1.6s ease-in-out infinite alternate; }
.fairy .tw path:nth-child(2) { animation-delay: -.6s; }
.fairy .tw path:nth-child(3) { animation-delay: -1.1s; }
@keyframes flap { from { transform: rotate(-5deg) scaleX(1); } to { transform: rotate(11deg) scaleX(.4); } }
@keyframes sway { from { transform: rotate(-3.5deg); } to { transform: rotate(4deg) skewX(2deg); } }
@keyframes skirt { from { transform: rotate(-2deg) scaleY(1); } to { transform: rotate(2.5deg) scaleY(.96); } }
@keyframes twinkle { from { opacity: .15; transform: scale(.6); } to { opacity: 1; transform: scale(1.15); } }
/* ───── язык ───── */
.top { display: flex; justify-content: flex-end; padding: max(18px, env(safe-area-inset-top)) 20px 0;
  animation: fade 1s var(--ease) both; }
.langs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .05);
  border: 1px solid var(--stroke); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.langs:empty { display: none; }
.langs button {
  font: inherit; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); background: transparent; border: 0; padding: 7px 13px; border-radius: 999px; cursor: pointer;
  transition: color .3s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease), transform .3s var(--ease);
}
.langs button:hover { color: var(--text); transform: translateY(-1px); }
.langs button[aria-pressed="true"] {
  color: #fff; background: linear-gradient(135deg, var(--pink), var(--magenta));
  box-shadow: 0 6px 20px -6px var(--pink);
}
.langs button:focus-visible, .btn:focus-visible { outline: 2px solid var(--pink-2); outline-offset: 3px; }

/* ───── контент ───── */
.stage { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 4vh 20px 40px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 38px; }
.hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }

/* ───── логотип ───── */
.logo { position: relative; width: min(430px, 82vw); --rx: 0deg; --ry: 0deg;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .6s var(--ease); transform-style: preserve-3d; }
.logo-in { position: relative; animation: logoIn 1.4s var(--ease) both; }
.logo-in::before { /* мягкая пульсирующая аура позади */
  content: ""; position: absolute; left: 50%; top: 40%; width: 118%; aspect-ratio: 1.15; translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(255, 46, 147, .5), rgba(192, 38, 211, .22) 55%, transparent 100%);
  filter: blur(22px); z-index: -1; animation: aura 4.8s var(--ease-io) infinite alternate;
}
.emblem { position: relative; width: 93.5%; margin-left: 2.5%; animation: lfloat 7s var(--ease-io) infinite alternate; }
.emblem img, .wordmark img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.wordmark { position: relative; margin-top: -1.2%; animation: wfloat 7s var(--ease-io) infinite alternate-reverse; }

/* блик, скользящий строго по форме логотипа (маска = сама картинка) */
.em-sweep, .wm-sweep { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .85) 50%, transparent 62%) 150% 0 / 260% 100% no-repeat;
  -webkit-mask: var(--m) center / 100% 100% no-repeat; mask: var(--m) center / 100% 100% no-repeat; }
.em-sweep { --m: url("/static/logo-emblem.webp"); animation: sweep 6s var(--ease-io) 1.8s infinite; }
.wm-sweep { --m: url("/static/logo-wordmark.webp"); animation: sweep 6s var(--ease-io) 3.1s infinite; }

/* комета по орбитальному кольцу */
.orbit { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; overflow: visible; }

/* мерцающие звёздочки */
.tw { position: absolute; width: calc(var(--s) * 1%); aspect-ratio: 1; translate: -50% -50%; pointer-events: none;
  filter: drop-shadow(0 0 7px #ff4fb0) drop-shadow(0 0 16px rgba(255, 110, 199, .8));
  animation: twinkle 2.6s ease-in-out infinite; animation-delay: var(--d, 0s); }
.tw::before { content: ""; position: absolute; inset: 0; background: #fff;
  clip-path: polygon(50% 0, 57% 43%, 100% 50%, 57% 57%, 50% 100%, 43% 57%, 0 50%, 43% 43%); }

@keyframes logoIn { from { opacity: 0; transform: scale(.78) translateY(16px); filter: blur(14px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes lfloat { from { transform: translateY(2px) rotate(-.7deg); } to { transform: translateY(-9px) rotate(.8deg); } }
@keyframes wfloat { from { transform: translateY(-2px); } to { transform: translateY(3px); } }
@keyframes aura { from { opacity: .55; scale: .94; } to { opacity: 1; scale: 1.08; } }
@keyframes sweep { 0%, 45% { background-position: 150% 0; } 85%, 100% { background-position: -50% 0; } }
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.45) rotate(0deg); } 50% { opacity: 1; transform: scale(1.1) rotate(25deg); } }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; animation: none !important; filter: none !important; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.title {
  font-size: clamp(2.6rem, 9vw, 4.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.05;
  background: linear-gradient(100deg, #fff 0%, var(--pink-3) 18%, var(--pink-2) 38%, var(--pink) 58%, var(--magenta) 78%, var(--pink-2) 100%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 30px rgba(255, 46, 147, .35));
  animation: rise 1s var(--ease) .15s backwards, shine 7s var(--ease-io) 1.2s infinite alternate;
}
@keyframes shine { to { background-position: 100% 0; } }
.subtitle { color: var(--muted); font-size: clamp(1rem, 3.2vw, 1.2rem); max-width: 34ch; line-height: 1.5;
  animation: rise 1s var(--ease) .3s backwards; }
.subtitle:empty { display: none; }
@keyframes rise { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }

/* ───── кнопки ───── */
.links { width: 100%; display: grid; grid-template-columns: 1fr; gap: 14px; max-width: 480px; }
.links.wide { max-width: 720px; }
@media (min-width: 720px) { .links.wide { grid-template-columns: 1fr 1fr; } }

.btn {
  --mx: 50%; --my: 50%;
  position: relative; display: flex; align-items: center; gap: 16px; padding: 14px 18px 14px 14px;
  border-radius: 22px; color: var(--text); text-decoration: none; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid var(--stroke);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; animation: rise .85s var(--ease) both; animation-delay: calc(.45s + var(--i) * .08s);
  transition: transform .5s var(--ease), border-color .35s, box-shadow .5s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn::before { /* свечение за курсором */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .45s var(--ease);
  background: radial-gradient(280px circle at var(--mx) var(--my), rgba(255, 60, 160, .3), transparent 62%);
}
.btn::after { /* блик */
  content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-130%);
  background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, .13) 50%, transparent 68%);
  transition: transform 1s var(--ease);
}
.btn:hover { transform: translateY(-4px); border-color: rgba(255, 110, 199, .75);
  box-shadow: 0 18px 44px -16px rgba(255, 46, 147, .65), inset 0 0 0 1px rgba(255, 110, 199, .18); }
.btn:hover::before { opacity: 1; }
.btn:hover::after { transform: translateX(130%); }
.btn:active { transform: translateY(-1px) scale(.985); transition-duration: .15s; }

.ico {
  width: 46px; height: 46px; flex: none; border-radius: 15px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--pink), var(--magenta));
  box-shadow: 0 10px 24px -10px var(--pink), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .55s var(--ease), box-shadow .5s var(--ease);
}
.ico svg.filled { fill: #fff; stroke: none; }
.btn:hover .ico { transform: rotate(-8deg) scale(1.08); box-shadow: 0 14px 30px -10px var(--pink), inset 0 1px 0 rgba(255, 255, 255, .4); }
.ico svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lbl { flex: 1; font-weight: 650; font-size: 1.06rem; letter-spacing: .01em; transition: opacity .25s, translate .25s var(--ease); }
.arr { width: 20px; height: 20px; flex: none; stroke: var(--pink-2); fill: none; stroke-width: 2.2; stroke-linecap: round;
  stroke-linejoin: round; opacity: .55; transition: transform .5s var(--ease), opacity .3s; }
.btn:hover .arr { transform: translateX(6px); opacity: 1; }

/* плавная смена языка */
.swap .lbl, .swap .title, .swap .subtitle { opacity: 0; translate: 0 6px; }
.title, .subtitle { transition: opacity .25s, translate .25s var(--ease); }

.foot { text-align: center; padding: 0 20px max(24px, env(safe-area-inset-bottom)); color: rgba(196, 160, 182, .5);
  font-size: .8rem; letter-spacing: .12em; animation: fade 1.4s var(--ease) 1.2s both; }

@media (max-width: 480px) {
  .stage { gap: 30px; padding-top: 2vh; }
}


/* ═════════ СКАЗОЧНАЯ СЦЕНА ═════════ */
.bg { z-index: -5;
  background:
    radial-gradient(820px 560px at 50% 22%, rgba(130, 12, 112, .5), transparent 66%),
    radial-gradient(700px 480px at 50% 78%, rgba(120, 10, 100, .35), transparent 70%),
    linear-gradient(180deg, #15031d 0%, #0c0213 52%, #13031b 100%); }
.blob { opacity: .28; }
.grid { opacity: .5; }

.mist { position: fixed; left: -20%; width: 140%; height: 34vh; z-index: -4; pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 60, 170, .17), transparent 64%); filter: blur(28px);
  animation: mistmove 26s ease-in-out infinite alternate; }
.m1 { top: 34vh; }
.m2 { bottom: 6vh; opacity: .85; animation-duration: 34s; animation-direction: alternate-reverse; }
@keyframes mistmove { from { transform: translateX(-7%); } to { transform: translateX(7%); } }

.castle { position: fixed; right: -1vw; top: 16vh; height: min(35vh, 340px); aspect-ratio: 200 / 340; z-index: -4; pointer-events: none; opacity: .92;
  -webkit-mask-image: linear-gradient(#000 60%, transparent 100%); mask-image: linear-gradient(#000 60%, transparent 100%); }
.castle svg { width: 100%; height: 100%; display: block; }
.cw { animation: flick 3.4s ease-in-out infinite alternate; }
@keyframes flick { from { opacity: .25; } to { opacity: 1; } }

.river { position: fixed; left: 0; right: 0; bottom: 0; height: 46vh; z-index: -3; pointer-events: none;
  background:
    radial-gradient(ellipse 20% 62% at 50% 4%, rgba(255, 70, 180, .55), transparent 72%),
    radial-gradient(ellipse 75% 42% at 50% 0%, rgba(190, 40, 200, .3), transparent 72%),
    linear-gradient(180deg, rgba(60, 6, 70, 0) 0%, rgba(40, 3, 52, .5) 30%, rgba(14, 1, 22, .88) 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 26%); mask-image: linear-gradient(180deg, transparent 0, #000 26%);
  animation: riverglow 7s ease-in-out infinite alternate; }
@keyframes riverglow { from { opacity: .72; } to { opacity: 1; } }

.flora { position: fixed; bottom: 0; z-index: -3; pointer-events: none; height: 80vh; width: min(48vw, 420px);
  filter: drop-shadow(0 0 9px rgba(255, 46, 147, .6)) drop-shadow(0 0 26px rgba(192, 38, 211, .38));
  animation: flsway 11s ease-in-out infinite alternate; }
.flora svg { width: 100%; height: 100%; display: block; }
.fl-l { left: -3vw; transform-origin: 0 100%; }
.fl-r { right: -3vw; transform-origin: 100% 100%; animation-duration: 14s; animation-direction: alternate-reverse; }
.fl-r svg { transform: scaleX(-1); }
@keyframes flsway { from { transform: rotate(-1.2deg); } to { transform: rotate(1.5deg); } }

/* закреплённые феи и бабочки */
.afairy { position: fixed; z-index: -2; pointer-events: none; }
.afairy .fl, .deco-bf .fl { width: 100%; height: 100%; }
.afairy svg, .deco-bf svg, .flyer svg { width: 100%; height: 100%; display: block; overflow: visible; }
.a1 { left: -1vw; top: calc(7vh + 34px); width: clamp(150px, 30vw, 310px); aspect-ratio: 172 / 190; animation: bob1 7s ease-in-out infinite alternate; }
.a1 .fl { transform: scaleX(-1); }
.a2 { right: 0; top: 41vh; width: clamp(110px, 22vw, 240px); aspect-ratio: 506 / 546; opacity: .88; animation: bob2 8s ease-in-out infinite alternate; }
@keyframes bob1 { from { transform: translate(0, 4px) rotate(-1.5deg); } to { transform: translate(10px, -12px) rotate(1.8deg); } }
@keyframes bob2 { from { transform: translate(0, 6px) rotate(1deg); } to { transform: translate(-6px, -10px) rotate(-1.5deg); } }

.fw { animation: wflap var(--fs, .5s) ease-in-out infinite alternate; }
.fw0 { --rs: -1; }
@keyframes wflap {
  from { transform: rotate(calc(var(--rs, 1) * -3deg)) scaleX(1); }
  to { transform: rotate(calc(var(--rs, 1) * 7deg)) scaleX(.6); } }
.bf { transform-origin: 50px 40px; animation: bflap var(--bs, .3s) ease-in-out infinite alternate; }
@keyframes bflap { from { transform: scaleX(1); } to { transform: scaleX(.2); } }
.deco-bf { position: fixed; z-index: -2; pointer-events: none; width: clamp(38px, 9vw, 72px); aspect-ratio: 100 / 80;
  filter: drop-shadow(0 0 8px rgba(255, 90, 200, .7)); animation: bfloat 5s ease-in-out infinite alternate; }
.db1 { left: 4vw; top: 38vh; --bs: .34s; }
.db2 { right: 10vw; top: 15vh; animation-duration: 6.2s; }
.db3 { left: 13vw; top: 56vh; animation-duration: 4.4s; width: clamp(30px, 6vw, 52px); }
@keyframes bfloat { from { transform: translate(0, 0) rotate(-8deg); } to { transform: translate(12px, -16px) rotate(10deg); } }

.flyer { position: absolute; left: 0; top: 0; will-change: transform; }
.flyer .fl { width: 100%; height: 100%; will-change: transform; }

/* ═════════ ТИАРА, ПОДЗАГОЛОВОК ═════════ */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url(/static/cormorant-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url(/static/cormorant-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url(/static/cormorant-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

.logo { margin-top: 38px; }
.tiara { position: absolute; left: 50%; top: 0; width: 50%; translate: -50% -52%; z-index: 3; overflow: visible; pointer-events: none;
  filter: drop-shadow(0 0 5px rgba(255, 110, 199, .9)) drop-shadow(0 0 14px rgba(255, 46, 147, .6)); animation: tiaraglow 3.2s ease-in-out infinite alternate; }
.tl { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s var(--ease) .9s forwards; }
.td { animation: twinkle 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.td:nth-child(2) { animation-delay: -.7s; } .td:nth-child(3) { animation-delay: -1.3s; } .td:nth-child(4) { animation-delay: -.3s; } .td:nth-child(5) { animation-delay: -1.8s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes tiaraglow { from { opacity: .82; } to { opacity: 1; } }

.subtitle { font-family: 'Cormorant Garamond', 'Palatino Linotype', Georgia, serif; font-weight: 600; font-size: clamp(1.3rem, 5.2vw, 1.75rem);
  letter-spacing: .02em; color: #ffd9f0; max-width: none; text-shadow: 0 0 14px rgba(255, 70, 180, .65), 0 0 30px rgba(255, 46, 147, .35); }
.subtitle::before, .subtitle::after { content: "✦"; display: inline-block; margin: 0 .55em; font-size: .62em; color: #ff7ccd; vertical-align: .22em;
  animation: twinkle 2.4s ease-in-out infinite; text-shadow: 0 0 10px #ff2e93; }
.subtitle::after { animation-delay: -1.2s; }
.divider { display: flex; align-items: center; justify-content: center; gap: 12px; width: min(380px, 80vw); margin-top: 4px; animation: rise 1s var(--ease) .5s backwards; }
.divider i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 140, 210, .85)); }
.divider i:last-child { background: linear-gradient(270deg, transparent, rgba(255, 140, 210, .85)); }
.divider svg { width: 22px; height: 20px; fill: none; stroke: #ff8fd6; stroke-width: 1.7; stroke-linejoin: round; filter: drop-shadow(0 0 6px #ff2e93); animation: heart 2.2s ease-in-out infinite; }
@keyframes heart { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }


/* ═════════ КНОПКИ-«ТАБЛЕТКИ» ═════════ */
.links { max-width: 520px; }
.links.wide { max-width: 760px; }
.btn { min-height: 78px; border-radius: 999px; padding: 12px 26px 12px 14px; gap: 18px; border: 0;
  background: linear-gradient(180deg, rgba(46, 8, 58, .55), rgba(16, 2, 24, .66));
  box-shadow: 0 0 0 1.5px rgba(255, 130, 205, .62), 0 0 20px rgba(255, 46, 147, .3), inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 0 26px rgba(255, 46, 147, .1);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.btn:hover { transform: translateY(-3px); border-color: transparent;
  box-shadow: 0 0 0 1.5px rgba(255, 170, 225, .95), 0 0 30px rgba(255, 46, 147, .55), inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 0 32px rgba(255, 46, 147, .18); }
.ico { width: 54px; height: 54px; border-radius: 19px;
  background: linear-gradient(150deg, #ff86d2 0%, #f23aa6 48%, #c026d3 100%);
  box-shadow: 0 10px 22px -8px #ff2e93, inset 0 2px 0 rgba(255, 255, 255, .5), inset 0 -9px 14px rgba(120, 0, 92, .38), inset 0 0 0 1px rgba(255, 255, 255, .18); }
.ico svg { width: 26px; height: 26px; }
.lbl { font-size: 1.18rem; font-weight: 700; letter-spacing: .01em; text-shadow: 0 0 12px rgba(255, 70, 180, .35); }
.arr { width: 24px; height: 24px; stroke: #ffb0e4; opacity: .9; filter: drop-shadow(0 0 5px #ff2e93); }
.btn .orn { position: absolute; top: 0; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.btn .orn-r { right: 0; width: 34%; }
.btn .orn-l { left: 0; width: 20%; }
.btn > .ico, .btn > .lbl, .btn > .arr { position: relative; z-index: 1; }
.orn .bf { animation-duration: .42s; }
.orn .vn { stroke-dasharray: 1; animation: vine 5s ease-in-out infinite alternate; }
@keyframes vine { from { stroke-dashoffset: .12; opacity: .55; } to { stroke-dashoffset: 0; opacity: 1; } }
.orn .lf { animation: leafsway 4.2s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 0 100%; }
@keyframes leafsway { from { transform: rotate(-5deg); } to { transform: rotate(6deg); } }

@media (max-width: 480px) {
  .btn { min-height: 74px; gap: 14px; padding-right: 20px; }
  .ico { width: 50px; height: 50px; border-radius: 17px; }
  .lbl { font-size: 1.1rem; }
}


/* ═════════ ПРОИЗВОДИТЕЛЬНОСТЬ: всё анимируемое - на GPU, никаких размытий поверх движущегося ═════════ */
.blob, .mist, .logo-in::before { filter: none; }
.grid, .river { animation: none; }
.langs { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(30, 6, 40, .72); }
.btn { backdrop-filter: none; -webkit-backdrop-filter: none; background: linear-gradient(180deg, rgba(44, 8, 56, .7), rgba(14, 2, 22, .8)); }
.flora { filter: none; will-change: transform; }
.deco-bf { filter: none; will-change: transform; }
.tw { filter: drop-shadow(0 0 6px #ff4fb0); }
.orbit { mix-blend-mode: normal; }
.tiara { filter: drop-shadow(0 0 6px rgba(255, 110, 199, .9)); animation: none; }
.td { animation: none; }
.divider svg { filter: none; }
.arr { filter: none; }

/* блик по форме логотипа: маска статична, двигается только внутренний слой */
.em-sweep, .wm-sweep { position: absolute; inset: 0; overflow: hidden; pointer-events: none; mix-blend-mode: normal; animation: none; background: none;
  -webkit-mask: var(--m) center / 100% 100% no-repeat; mask: var(--m) center / 100% 100% no-repeat; }
.em-sweep b, .wm-sweep b { position: absolute; top: 0; bottom: 0; left: -45%; width: 45%; will-change: transform;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .8) 50%, transparent); transform: translateX(0) skewX(-14deg);
  animation: sweepx 6s ease-in-out 1.8s infinite; }
.wm-sweep b { animation-delay: 3.1s; }
@keyframes sweepx { 0%, 45% { transform: translateX(0) skewX(-14deg); } 85%, 100% { transform: translateX(340%) skewX(-14deg); } }

/* феи: каждое крыло - отдельный слой, машет на GPU */
.fz { position: relative; width: 100%; height: 100%; }
.fz > * { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.fzw { will-change: transform; animation: fzflap var(--fs, .5s) ease-in-out infinite alternate; }
.fzw0 { --rs: -1; }
@keyframes fzflap {
  from { transform: rotate(calc(var(--rs, 1) * -3deg)) scaleX(1); }
  to { transform: rotate(calc(var(--rs, 1) * 7deg)) scaleX(.62); } }
.bfa { width: 100%; height: 100%; will-change: transform; transform-origin: 50% 50%; animation: bflap var(--bs, .3s) ease-in-out infinite alternate; }

/* виньетки кнопок: статичная графика + один слой с бабочкой */
.ornw { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.ornw .orn { animation: none; }
.ornw .vn, .ornw .lf { animation: none; }
.obf { position: absolute; width: 27px; aspect-ratio: 100 / 80; right: 23%; --bs: .42s; filter: drop-shadow(0 0 4px rgba(255, 90, 200, .8)); }
.obf-t { top: 12%; }
.obf-b { bottom: 12%; }

/* самый слабый режим: останавливаем всё, кроме главного */
.calm .fzw, .calm .bfa, .calm .flora, .calm .mist, .calm .afairy, .calm .deco-bf, .calm .castle .cw, .calm .tw { animation: none; }


/* ═════════ УРОВНИ КАЧЕСТВА (класс на <html> ставит app.js) ═════════ */
.blob { animation: none; }                      /* дрейф фоновых пятен почти незаметен, а стоит дорого */
.logo-in::before { animation: none; opacity: .9; }
.logo { transform: none; transform-style: flat; will-change: auto; }
.logo.tilting { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); }
.q1 .em-sweep, .q1 .wm-sweep { display: none; }
.q1 .emblem, .q1 .wordmark, .q1 .mist, .q1 .flora, .q1 .tw { animation: none; }
.q2 .orbit, .q2 .tw, .q2 .afairy, .q2 .deco-bf { animation: none; }
.q2 .orbit { display: none; }

/* ═════════ НОВЫЙ ЛОГОТИП: крылья, корона, надпись ═════════ */
.logo { width: min(580px, 94vw); margin-top: 4px; }
.logo-in::before { top: 50%; width: 112%; aspect-ratio: 1.9; background: radial-gradient(closest-side, rgba(255, 46, 147, .42), rgba(192, 38, 211, .18) 58%, transparent 100%); }
.lg-float { position: relative; animation: lgfloat 7s ease-in-out infinite alternate; }
.lg-main { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.lg-wing { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; user-select: none; will-change: transform; animation: lgwing 1.15s ease-in-out infinite alternate; }
.lg-wl { transform-origin: 15.15% 50%; }
.lg-wr { transform-origin: 85.73% 50%; }
@keyframes lgfloat { from { transform: translateY(3px) rotate(-.4deg); } to { transform: translateY(-8px) rotate(.5deg); } }
@keyframes lgwing { from { transform: scaleX(1); } to { transform: scaleX(.9); } }
.lg-sweep { position: absolute; inset: 0; overflow: hidden; pointer-events: none; -webkit-mask: url("/static/logo-main.webp") center / 100% 100% no-repeat; mask: url("/static/logo-main.webp") center / 100% 100% no-repeat; }
.lg-sweep b { position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; will-change: transform;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .85) 50%, transparent); transform: translateX(0) skewX(-14deg);
  animation: sweepx 6.5s ease-in-out 2s infinite; }
.q1 .lg-sweep { display: none; }
.q1 .lg-float { animation: none; }
.q2 .lg-wing, .q2 .tw { animation: none; }
.calm .lg-wing { animation: none; }
@media (max-width: 640px) {
  .a1 { top: 27vh; left: -3vw; width: clamp(92px, 27vw, 140px); }
  .a2 { top: 46vh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important;
    animation-delay: 0s !important; transition-duration: .001s !important; }
  #sparks, .orbit { display: none; }
  .em-sweep, .wm-sweep, .lg-sweep { display: none; }
  .tl { stroke-dashoffset: 0 !important; }
}
