/* ==========================================================================
   ПОНИРОГИ — радужная пекарня единорогов
   ========================================================================== */

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('../fonts/nunito-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('../fonts/nunito-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('../fonts/nunito-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;
}

:root {
  --pink: #f9a8d4;
  --lilac: #c4b5fd;
  --mint: #6ee7b7;
  --yellow: #fde68a;
  --peach: #fdba74;
  --sky: #7dd3fc;

  --bg: #fdf4ff;
  --bg-2: #f7efff;
  --white: #ffffff;
  --text: #3b2a5a;
  --ink: #241638;
  --muted: #6b5c86;

  --violet: #7c3aed;
  --magenta: #c026d3;
  --cyan: #0891b2;
  --gold: #fbbf24;

  --radius: 1.6rem;
  --radius-lg: 2.2rem;
  --shadow-sm: 0 2px 14px rgba(74, 45, 122, .08);
  --shadow: 0 12px 38px rgba(74, 45, 122, .12);
  --shadow-lg: 0 28px 70px rgba(74, 45, 122, .2);
  --ease: cubic-bezier(.22, .8, .28, 1);
  --font: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; }
::selection { background: rgba(192, 38, 211, .22); }

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- layout helpers ---------- */
.container { width: 100%; max-width: 1180px; margin: 0 auto; }
.container--narrow { max-width: 880px; }

.skip-link {
  position: fixed;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: .7rem 1.2rem;
  border-radius: 0 0 12px 12px;
  z-index: 200;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* ---------- scroll progress + sparkle canvas ---------- */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0;
  height: 4px;
  background: rgba(124, 58, 237, .08);
  z-index: 120;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f472b6, #fbbf24, #6ee7b7, #7dd3fc, #a78bfa);
  box-shadow: 0 0 12px rgba(192, 38, 211, .6);
  transition: width .08s linear;
}

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

/* ---------- buttons / pills ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 2.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #c026d3, #7c3aed);
  color: #fff;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: .01em;
  border: 0;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(124, 58, 237, .32);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), filter .22s;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px) scale(1.015); box-shadow: 0 16px 34px rgba(124, 58, 237, .42); }
.btn:active { transform: translateY(-1px) scale(.99); }
.btn--sm { padding: .65rem 1.35rem; font-size: .92rem; }
.btn--ghost {
  background: rgba(255, 255, 255, .72);
  color: var(--violet);
  border: 1.5px solid rgba(124, 58, 237, .22);
  box-shadow: 0 6px 20px rgba(124, 58, 237, .1);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: #fff; box-shadow: 0 12px 28px rgba(124, 58, 237, .2); }
.btn--white { background: #fff; color: var(--violet); box-shadow: 0 10px 26px rgba(0, 0, 0, .18); }
.btn--white:hover { box-shadow: 0 16px 34px rgba(0, 0, 0, .26); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--violet);
  background: rgba(124, 58, 237, .1);
  border: 1px solid rgba(124, 58, 237, .16);
  padding: .4rem .95rem;
  border-radius: 999px;
  margin-bottom: .9rem;
}
.eyebrow--light {
  color: #fff;
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .3);
}

/* ---------- section shell ---------- */
.section {
  position: relative;
  padding: clamp(3.6rem, 7.5vw, 6.4rem) clamp(1.1rem, 4vw, 2rem);
  scroll-margin-top: 84px;
}
.section--white { background: var(--white); }
.section--tint  { background: linear-gradient(180deg, #fdf4ff 0%, #f3ecff 55%, #eef7ff 100%); }
.section--dark  {
  background:
    radial-gradient(900px 500px at 15% 0%, rgba(192, 38, 211, .3), transparent 65%),
    radial-gradient(800px 500px at 90% 100%, rgba(14, 165, 233, .25), transparent 60%),
    linear-gradient(160deg, #1c1036 0%, #251746 45%, #170e2e 100%);
  color: #fff;
  overflow: hidden;
}
.section--stats {
  background: linear-gradient(120deg, #fce7f3, #ede9fe 40%, #dbeafe 75%, #d1fae5);
  padding-block: clamp(2.6rem, 5vw, 4rem);
}
.section--cta {
  background:
    radial-gradient(700px 400px at 12% 10%, rgba(253, 230, 138, .28), transparent 60%),
    radial-gradient(700px 400px at 88% 90%, rgba(110, 231, 183, .24), transparent 60%),
    linear-gradient(135deg, #c026d3 0%, #7c3aed 55%, #4c1d95 100%);
  padding-block: clamp(3rem, 6vw, 5rem);
  color: #fff;
}

.section-head { text-align: center; margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.section-head--light .section-sub { color: rgba(255, 255, 255, .72); }
.section-head--light .section-sub { opacity: 1; }

.section-title {
  font-size: clamp(1.9rem, 4.6vw, 3.05rem);
  font-weight: 900;
  background: linear-gradient(120deg, #c026d3, #7c3aed 45%, #0891b2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: .6rem;
}
.section-head--light .section-title {
  background: linear-gradient(120deg, #fbcfe8, #c4b5fd 40%, #7dd3fc 75%, #fde68a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-sub {
  max-width: 620px;
  margin: 0 auto;
  font-size: clamp(.98rem, 2vw, 1.1rem);
  color: var(--muted);
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 4px 0 auto 0;
  z-index: 100;
  background: rgba(253, 244, 255, .72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(124, 58, 237, .09);
  transition: box-shadow .3s, background .3s;
}
.nav.is-scrolled { box-shadow: 0 8px 30px rgba(74, 45, 122, .1); background: rgba(253, 244, 255, .9); }

.nav__inner {
  max-width: 1260px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 clamp(1rem, 3vw, 1.6rem);
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.brand { display: flex; align-items: center; gap: .65rem; flex-shrink: 0; }
.brand__mark {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #fce7f3, #c4b5fd 60%, #a5f3fc);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), 0 4px 14px rgba(124, 58, 237, .18);
}
.brand__text {
  font-weight: 900;
  font-size: 1.18rem;
  line-height: 1.05;
  display: flex;
  flex-direction: column;
  letter-spacing: -.01em;
}
.brand__text small {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand--light .brand__text { color: #fff; }
.brand--light .brand__text small { color: rgba(255, 255, 255, .55); }

.nav__links {
  display: flex;
  align-items: center;
  gap: .1rem;
  margin-left: auto;
}
.nav__link {
  position: relative;
  padding: .5rem .7rem;
  font-size: .9rem;
  font-weight: 700;
  color: rgba(59, 42, 90, .78);
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav__link:hover { color: var(--violet); background: rgba(124, 58, 237, .07); }
.nav__link.is-active { color: var(--violet); }
.nav__link.is-active::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 1px;
  width: 16px; height: 3px;
  border-radius: 99px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #c026d3, #7c3aed);
}
.nav__link--star { color: #b91c74; }
.nav__link--star::before { content: '✦ '; font-size: .78em; }
.nav__link--mobile { display: none; }
.nav__cta { margin-left: .5rem; }

.nav__burger {
  display: none;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: rgba(124, 58, 237, .08);
  margin-left: auto;
  position: relative;
}
.nav__burger span {
  position: absolute;
  left: 13px; right: 13px;
  height: 2.5px;
  border-radius: 3px;
  background: var(--violet);
  transition: transform .28s var(--ease), opacity .2s;
}
.nav__burger span:nth-child(1) { top: 16px; }
.nav__burger span:nth-child(2) { top: 22px; }
.nav__burger span:nth-child(3) { top: 28px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(72px + clamp(1.6rem, 4vw, 3rem)) clamp(1.1rem, 4vw, 2rem) clamp(3rem, 6vw, 4.5rem);
  background:
    radial-gradient(1200px 700px at 20% 10%, #fce7f3 0%, transparent 55%),
    radial-gradient(1000px 700px at 85% 20%, #e0e7ff 0%, transparent 60%),
    radial-gradient(900px 600px at 50% 100%, #cffafe 0%, transparent 65%),
    linear-gradient(160deg, #fff5fb 0%, #f5efff 48%, #eef9ff 100%);
  overflow: hidden;
  isolation: isolate;
}

.hero__aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  pointer-events: none;
  z-index: -1;
}
.hero__aurora--a {
  width: min(58vw, 620px); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(249, 168, 212, .85), transparent 65%);
  top: -12%; left: -14%;
  animation: aurora-a 16s ease-in-out infinite;
}
.hero__aurora--b {
  width: min(52vw, 560px); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(110, 231, 183, .6), transparent 65%);
  bottom: -18%; right: -10%;
  animation: aurora-b 19s ease-in-out infinite;
}
.hero__aurora--c {
  width: min(40vw, 420px); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(196, 181, 253, .8), transparent 65%);
  top: 34%; left: 42%;
  animation: aurora-a 22s ease-in-out infinite reverse;
}
@keyframes aurora-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(40px, -30px, 0) scale(1.12); }
}
@keyframes aurora-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.05); }
  50% { transform: translate3d(-50px, 26px, 0) scale(.94); }
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding: 0 clamp(.2rem, 2vw, 1rem);
}

.hero__copy { position: relative; z-index: 2; }

.hero__title {
  font-size: clamp(3.4rem, 9.5vw, 7.2rem);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: .92;
  margin: .1rem 0 .9rem;
  background: linear-gradient(112deg, #c026d3 0%, #7c3aed 40%, #2563eb 68%, #0891b2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 18px 60px rgba(124, 58, 237, .18);
}

.hero__lead {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: #5b4a7a;
  max-width: 46ch;
  margin-bottom: 1.8rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-bottom: 2.2rem;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  padding-top: 1.4rem;
  border-top: 1px solid rgba(124, 58, 237, .14);
  max-width: 480px;
}
.hero__stats dt {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -.02em;
}
.hero__stats dd { font-size: .83rem; color: var(--muted); font-weight: 600; }

.hero__art { position: relative; animation: hero-float 7s ease-in-out infinite; }
.hero__window {
  position: relative;
  border-radius: clamp(1.6rem, 3vw, 2.4rem);
  padding: clamp(.5rem, 1vw, .8rem);
  background: rgba(255, 255, 255, .45);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 30px 80px rgba(91, 33, 182, .2), inset 0 0 0 1px rgba(255, 255, 255, .4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}
.hero__window .scene { border-radius: clamp(1.2rem, 2.4vw, 1.8rem); overflow: hidden; }
.hero__window .scene svg { width: 100%; height: auto; }
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero__glow {
  position: absolute;
  inset: 12% 10% -8%;
  background: linear-gradient(120deg, rgba(249, 168, 212, .6), rgba(196, 181, 253, .5), rgba(125, 211, 252, .55));
  filter: blur(45px);
  z-index: -1;
  border-radius: 50%;
}

.float-chip {
  position: absolute;
  font-size: .72rem;
  font-weight: 800;
  padding: .42rem .8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 8px 22px rgba(74, 45, 122, .16);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
.float-chip--a { top: 9%; right: 5%; animation: chip-a 6s ease-in-out infinite; }
.float-chip--b { bottom: 9%; left: 30%; animation: chip-a 7.5s ease-in-out infinite .8s; }
@keyframes chip-a {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.scroll-hint {
  position: absolute;
  left: 50%; bottom: 1.4rem;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border-radius: 999px;
  border: 2px solid rgba(124, 58, 237, .35);
  display: grid;
  place-items: start center;
  padding-top: 7px;
  z-index: 3;
}
.scroll-hint span {
  width: 5px; height: 9px;
  border-radius: 99px;
  background: var(--violet);
  animation: scroll-dot 1.7s ease-in-out infinite;
}
@keyframes scroll-dot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(13px); opacity: .2; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ---------- marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #7c3aed, #c026d3 30%, #db2777 55%, #7c3aed);
  color: #fff;
  padding: .85rem 0;
  transform: rotate(-1deg) scale(1.03);
  margin-block: -1px;
  z-index: 2;
}
.marquee__track {
  display: flex;
  gap: 2.2rem;
  width: max-content;
  animation: marquee-run 26s linear infinite;
  font-weight: 800;
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.marquee__track span { white-space: nowrap; opacity: .94; }
@keyframes marquee-run {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- cards / flavors ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid--flavors { grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); }

.card {
  position: relative;
  border-radius: var(--radius);
  padding: 1.9rem 1.5rem 1.6rem;
  background: #fff;
  border: 1px solid rgba(124, 58, 237, .08);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card::after {
  content: '';
  position: absolute;
  inset: auto -30% -60% auto;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 181, 253, .35), transparent 70%);
  opacity: 0;
  transition: opacity .35s;
}
.card:hover { transform: translateY(-7px); box-shadow: var(--shadow); border-color: rgba(124, 58, 237, .2); }
.card:hover::after { opacity: 1; }

.card--flavor:nth-child(8n + 1) { background: linear-gradient(160deg, #fff1f7, #fff 70%); }
.card--flavor:nth-child(8n + 2) { background: linear-gradient(160deg, #f3efff, #fff 70%); }
.card--flavor:nth-child(8n + 3) { background: linear-gradient(160deg, #ecfdf5, #fff 70%); }
.card--flavor:nth-child(8n + 4) { background: linear-gradient(160deg, #fefce8, #fff 70%); }
.card--flavor:nth-child(8n + 5) { background: linear-gradient(160deg, #fff5eb, #fff 70%); }
.card--flavor:nth-child(8n + 6) { background: linear-gradient(160deg, #eef4ff, #fff 70%); }
.card--flavor:nth-child(8n + 7) { background: linear-gradient(160deg, #ffeef4, #fff 70%); }
.card--flavor:nth-child(8n + 8) { background: linear-gradient(160deg, #eefaff, #fff 70%); }

.badge {
  position: absolute;
  top: 1.05rem; right: 1.05rem;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .26rem .58rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #fce7f3, #ede9fe);
  color: #9333ea;
  border: 1px solid rgba(147, 51, 234, .16);
}
.card__emoji {
  width: 66px; height: 66px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  border-radius: 20px;
  margin-bottom: .9rem;
  background: rgba(255, 255, 255, .8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 8px 20px rgba(74, 45, 122, .08);
  transition: transform .3s var(--ease);
}
.card:hover .card__emoji { transform: rotate(-8deg) scale(1.08); }
.card h3 { font-size: 1.16rem; font-weight: 800; margin-bottom: .4rem; }
.card p { font-size: .92rem; color: var(--muted); line-height: 1.6; }
.card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-top: auto;
  padding-top: 1.1rem;
  font-weight: 900;
  font-size: .95rem;
  color: var(--ink);
}
.tag {
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #7c3aed;
  background: rgba(124, 58, 237, .09);
  border-radius: 999px;
  padding: .2rem .55rem;
}

/* ---------- builder ---------- */
.builder {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(1rem, 2.4vw, 1.6rem);
  align-items: start;
}
.builder__preview {
  position: sticky;
  top: 96px;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, #ffffff, #fbf5ff 70%);
  border: 1px solid rgba(124, 58, 237, .1);
  box-shadow: var(--shadow);
  padding: 1.6rem;
  overflow: hidden;
}
.builder__badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #16a34a;
  background: rgba(22, 163, 74, .09);
  border-radius: 999px;
  padding: .25rem .65rem;
  margin-bottom: .4rem;
}
.builder__badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .18);
}

.pie { width: 100%; max-width: 330px; margin: 0 auto; }
.pie * { transition: fill .35s ease; }
.pie__toppings { display: none; }
.pie[data-topping="stars"] .pie__toppings[data-topping="stars"],
.pie[data-topping="glaze"] .pie__toppings[data-topping="glaze"],
.pie[data-topping="cream"] .pie__toppings[data-topping="cream"],
.pie[data-topping="unicorn"] .pie__toppings[data-topping="unicorn"],
.pie[data-topping="hooves"] .pie__toppings[data-topping="hooves"] { display: block; }

.pie__steam path {
  fill: none;
  stroke: #fff;
  stroke-width: 4;
  stroke-linecap: round;
  opacity: 0;
  animation: steam-rise 4.2s ease-in-out infinite;
}
.pie__steam-2 { animation-delay: 1.1s; }
.pie__steam-3 { animation-delay: 2.2s; }
@keyframes steam-rise {
  0% { opacity: 0; transform: translateY(10px); }
  30% { opacity: .55; }
  70% { opacity: .3; }
  100% { opacity: 0; transform: translateY(-16px); }
}

.pie__sparkles path, .pie__sparkles circle { animation: pie-twinkle 2.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.pie__sparkles > *:nth-child(2n) { animation-delay: .9s; }
.pie__sparkles > *:nth-child(3n) { animation-delay: 1.6s; }
@keyframes pie-twinkle {
  0%, 100% { opacity: .35; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.25); }
}

.builder__meter { margin-top: .2rem; text-align: center; }
.builder__meter-label {
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .3rem;
}
.magic { display: flex; justify-content: center; gap: .2rem; font-size: 1.4rem; }
.magic span {
  filter: grayscale(1);
  opacity: .28;
  transform: scale(.9);
  transition: filter .3s, opacity .3s, transform .3s var(--ease);
}
.magic span.is-on {
  filter: none;
  opacity: 1;
  transform: scale(1);
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, .75));
}

.builder__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(124, 58, 237, .18);
}
.builder__total small {
  display: block;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.builder__total strong { font-size: 1.9rem; font-weight: 900; color: var(--ink); letter-spacing: -.03em; }

.builder__panel {
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(124, 58, 237, .1);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.3rem, 2.4vw, 2rem);
}
.builder__group { border: 0; margin-bottom: 1.5rem; }
.builder__group legend {
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: .7rem;
  padding: 0;
}
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  padding: .55rem 1rem;
  border-radius: 999px;
  border: 1.5px solid rgba(124, 58, 237, .16);
  background: #fdfbff;
  font-size: .86rem;
  font-weight: 700;
  color: #5b4a7a;
  transition: transform .18s var(--ease), border-color .2s, background .2s, color .2s, box-shadow .2s;
}
.chip:hover { transform: translateY(-2px); border-color: rgba(124, 58, 237, .4); background: #fff; }
.chip.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #c026d3, #7c3aed);
  box-shadow: 0 8px 20px rgba(124, 58, 237, .28);
}

.builder__hint {
  font-size: .86rem;
  line-height: 1.65;
  color: #6d5a8a;
  background: linear-gradient(135deg, #fdf2f8, #f5f3ff);
  border: 1px dashed rgba(192, 38, 211, .25);
  border-radius: 1rem;
  padding: .9rem 1.1rem;
}
.builder__hint strong { color: var(--magenta); }

/* ---------- 3D viewer ---------- */
.viewer {
  position: relative;
  height: clamp(430px, 64vh, 640px);
  border-radius: clamp(1.4rem, 3vw, 2.2rem);
  overflow: hidden;
  background:
    radial-gradient(600px 300px at 50% 110%, rgba(168, 85, 247, .35), transparent 70%),
    radial-gradient(500px 260px at 8% 0%, rgba(236, 72, 153, .28), transparent 65%),
    radial-gradient(460px 260px at 95% 8%, rgba(56, 189, 248, .25), transparent 65%),
    linear-gradient(165deg, #1a1033 0%, #241744 45%, #120b26 100%);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .04);
  touch-action: none;
  user-select: none;
}
.viewer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 25%, rgba(255, 255, 255, .8), transparent 100%),
    radial-gradient(1px 1px at 75% 15%, rgba(255, 255, 255, .7), transparent 100%),
    radial-gradient(1.5px 1.5px at 60% 70%, rgba(255, 255, 255, .5), transparent 100%),
    radial-gradient(1px 1px at 35% 80%, rgba(255, 255, 255, .6), transparent 100%),
    radial-gradient(1px 1px at 88% 55%, rgba(255, 255, 255, .55), transparent 100%);
  pointer-events: none;
  opacity: .7;
}
#unicorn-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
  cursor: grab;
}
#unicorn-canvas:active { cursor: grabbing; }
#unicorn-canvas:focus-visible {
  outline: 3px solid rgba(240, 171, 252, .9);
  outline-offset: -8px;
  border-radius: 1.6rem;
}

.viewer__hud {
  position: absolute;
  top: 1rem; left: 1rem; right: 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  pointer-events: none;
  z-index: 3;
}
.viewer__name { display: flex; align-items: center; gap: .7rem; color: #fff; }
.viewer__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 5px rgba(74, 222, 128, .16);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(74, 222, 128, .12); }
  50% { box-shadow: 0 0 0 8px rgba(74, 222, 128, .04); }
}
.viewer__name strong { display: block; font-size: 1rem; font-weight: 900; letter-spacing: .02em; }
.viewer__name small { font-size: .72rem; color: rgba(255, 255, 255, .6); }
.viewer__badge {
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  padding: .32rem .7rem;
  white-space: nowrap;
  backdrop-filter: blur(6px);
}
.viewer__hint {
  position: absolute;
  left: 50%;
  bottom: 5.4rem;
  transform: translateX(-50%);
  font-size: .75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .72);
  background: rgba(15, 8, 30, .45);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  padding: .35rem .9rem;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity .5s;
  z-index: 3;
}
.viewer__hint.is-hidden { opacity: 0; }

.viewer__loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  color: rgba(255, 255, 255, .8);
  font-size: .9rem;
  font-weight: 700;
  background: rgba(18, 11, 38, .65);
  backdrop-filter: blur(4px);
  z-index: 5;
  transition: opacity .6s;
}
.viewer__loading.is-done { opacity: 0; pointer-events: none; }
.spinner {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .18);
  border-top-color: #f0abfc;
  border-right-color: #7dd3fc;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.viewer__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
  color: #fff;
  z-index: 4;
}
.viewer__fallback[hidden] { display: none; }

.viewer__toolbar {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
  width: min(94%, 720px);
  z-index: 4;
}
.viewer__btn {
  font-size: .78rem;
  font-weight: 800;
  color: rgba(255, 255, 255, .86);
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  padding: .45rem .9rem;
  backdrop-filter: blur(10px);
  transition: background .2s, color .2s, transform .2s var(--ease), border-color .2s;
}
.viewer__btn:hover { background: rgba(255, 255, 255, .18); transform: translateY(-2px); }
.viewer__btn[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(240, 171, 252, .3), rgba(125, 211, 252, .28));
  border-color: rgba(240, 171, 252, .5);
  color: #fff;
}

.viewer__speed {
  position: absolute;
  right: 1rem;
  bottom: 5.4rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  z-index: 4;
}
.viewer__speed input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 92px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .22);
  outline: none;
  cursor: pointer;
}
.viewer__speed input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0abfc, #7dd3fc);
  box-shadow: 0 0 10px rgba(240, 171, 252, .8);
  cursor: pointer;
}
.viewer__speed input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0abfc, #7dd3fc);
  cursor: pointer;
}

.viewer__facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.1rem;
}
.viewer__facts > div {
  text-align: center;
  padding: 1rem .8rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(6px);
}
.viewer__facts strong {
  display: block;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 900;
  letter-spacing: -.02em;
  background: linear-gradient(120deg, #fbcfe8, #c4b5fd, #7dd3fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.viewer__facts span { font-size: .72rem; color: rgba(255, 255, 255, .6); line-height: 1.4; display: block; }

/* ---------- gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}
.gallery__card {
  border-radius: var(--radius-lg);
  background: var(--tint, #fdf2f8);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-sm);
  padding: .9rem .9rem 1.4rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  overflow: hidden;
}
.gallery__card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.gallery__card .scene {
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, .55);
  overflow: hidden;
  margin-bottom: 1rem;
}
.gallery__card .scene svg { width: 100%; height: auto; }
.gallery__info { padding: 0 .7rem; }
.gallery__info h3 { font-size: 1.05rem; font-weight: 900; }
.gallery__info h3 span { font-weight: 700; font-size: .78rem; color: var(--muted); letter-spacing: .02em; }
.gallery__info p { font-size: .87rem; color: var(--muted); margin-top: .35rem; line-height: 1.55; }

.namegen {
  margin-top: 1.6rem;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  flex-wrap: wrap;
  padding: clamp(1.2rem, 3vw, 1.8rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #1e1b4b, #4c1d95 55%, #831843);
  color: #fff;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.namegen::before {
  content: '';
  position: absolute;
  inset: -50% -10% auto -10%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, .08), transparent 30%);
  animation: namegen-spin 14s linear infinite;
  pointer-events: none;
}
@keyframes namegen-spin { to { transform: rotate(360deg); } }
.namegen__text { flex: 1 1 220px; position: relative; }
.namegen__text .eyebrow {
  color: #fbcfe8;
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .18);
}
.namegen__text h3 { font-size: clamp(1.2rem, 2.6vw, 1.6rem); font-weight: 900; }
.namegen__text p { font-size: .86rem; color: rgba(255, 255, 255, .7); margin-top: .3rem; }
.namegen__out {
  position: relative;
  flex: 1 1 280px;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 900;
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, .1);
  border: 1px dashed rgba(255, 255, 255, .28);
  min-height: 3.6rem;
  display: flex;
  align-items: center;
  line-height: 1.3;
}
.namegen__out em { font-style: normal; font-weight: 700; font-size: .8em; color: #f0abfc; margin-left: .3rem; }
.namegen__out.is-pop { animation: name-pop .5s var(--ease); }
@keyframes name-pop {
  0% { transform: scale(.96); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}
.namegen .btn { position: relative; background: #fff; color: #6d28d9; box-shadow: 0 10px 26px rgba(0, 0, 0, .25); }

/* ---------- race ---------- */
.race {
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(124, 58, 237, .1);
  box-shadow: var(--shadow);
  padding: clamp(.9rem, 2vw, 1.4rem);
  overflow: hidden;
}
.race__legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  padding: .2rem .4rem 1rem;
  font-size: .78rem;
  font-weight: 800;
  color: #5b4a7a;
}
.race__legend span { display: inline-flex; align-items: center; gap: .4rem; }
.race__legend .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .09);
}
.dot--a { background: #f0abfc; }
.dot--b { background: #93c5fd; }
.dot--c { background: #f9a8d4; }
.race__legend-hint {
  margin-left: auto;
  font-weight: 600;
  font-size: .72rem;
  color: #77688f;
}

.race__track {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding-right: 26px;
}
.race__lane {
  position: relative;
  height: 86px;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(236, 253, 245, .9), rgba(237, 233, 254, .9));
  border: 1px solid rgba(124, 58, 237, .07);
}
.race__lane[data-lane="1"] { background: linear-gradient(90deg, rgba(239, 246, 255, .9), rgba(252, 231, 243, .9)); }
.race__lane[data-lane="2"] { background: linear-gradient(90deg, rgba(255, 247, 237, .95), rgba(236, 254, 255, .9)); }
.race__line {
  position: absolute;
  left: 0; right: 0; bottom: 12px;
  border-bottom: 2px dashed rgba(124, 58, 237, .16);
}
.race__racer {
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 104px;
  height: 84px;
  z-index: 3;
  will-change: transform;
}
.race__racer svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 3px 3px rgba(76, 29, 149, .42)) drop-shadow(0 0 2px rgba(76, 29, 149, .28));
}
.race__racer.is-running { animation: racer-bob .38s ease-in-out infinite; }
@keyframes racer-bob {
  0%, 100% { margin-bottom: 0; }
  50% { margin-bottom: 5px; }
}
.race__racer.is-winner { filter: drop-shadow(0 0 10px rgba(251, 191, 36, .9)); }
.race__finish {
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 22px;
  border-radius: 4px;
  background:
    repeating-conic-gradient(#3b2a5a 0 25%, #fff 0 50%) 0 0 / 22px 22px;
  opacity: .7;
}
.race__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(124, 58, 237, .16);
}
.race__comment {
  flex: 1 1 240px;
  font-size: .88rem;
  color: var(--muted);
  font-weight: 600;
  min-height: 1.4rem;
}
.race__comment strong { color: var(--ink); }
.race__score {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(124, 58, 237, .07);
  border-radius: 999px;
  padding: .45rem .9rem;
}
.race__score strong { font-size: 1rem; color: var(--violet); }

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.stat { text-align: center; padding: .6rem; }
.stat strong {
  display: block;
  font-size: clamp(1.8rem, 4.4vw, 3rem);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.05;
  background: linear-gradient(120deg, #c026d3, #7c3aed 50%, #0891b2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat span { font-size: .8rem; font-weight: 700; color: #5b4a7a; }

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(1rem, 2.4vw, 2rem);
  position: relative;
}
.step {
  position: relative;
  text-align: center;
  padding: 1.8rem 1.1rem;
  border-radius: var(--radius);
  background: linear-gradient(170deg, #fff, #fdf7ff);
  border: 1px solid rgba(124, 58, 237, .08);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.step__num {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #c026d3, #7c3aed);
  color: #fff;
  font-weight: 900;
  font-size: .9rem;
  box-shadow: 0 6px 16px rgba(124, 58, 237, .35);
}
.step__icon {
  width: 62px; height: 62px;
  margin: .5rem auto 1rem;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  background: linear-gradient(140deg, #fce7f3, #ede9fe 55%, #e0f2fe);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 8px 20px rgba(74, 45, 122, .1);
}
.step h3 { font-size: 1.04rem; font-weight: 800; margin-bottom: .35rem; }
.step p { font-size: .87rem; color: var(--muted); line-height: 1.55; }

/* ---------- timeline ---------- */
.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: .4rem 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 3px;
  transform: translateX(-50%);
  border-radius: 99px;
  background: linear-gradient(180deg, #f9a8d4, #c4b5fd 35%, #6ee7b7 70%, #7dd3fc);
  opacity: .55;
}
.timeline__item {
  position: relative;
  width: 50%;
  padding: 0 2.2rem 2rem 0;
}
.timeline__item:nth-child(even) {
  margin-left: 50%;
  padding: 0 0 2rem 2.2rem;
}
.timeline__dot {
  position: absolute;
  top: 1.5rem; right: -8px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #a78bfa;
  box-shadow: 0 0 0 5px rgba(167, 139, 250, .15);
  z-index: 2;
}
.timeline__item:nth-child(even) .timeline__dot { right: auto; left: -8px; }
.timeline__card {
  background: #fff;
  border: 1px solid rgba(124, 58, 237, .09);
  border-radius: 1.3rem;
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.timeline__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.timeline__year {
  display: inline-block;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .12em;
  color: var(--violet);
  background: rgba(124, 58, 237, .09);
  padding: .18rem .55rem;
  border-radius: 999px;
  margin-bottom: .5rem;
}
.timeline__card h3 { font-size: 1.02rem; font-weight: 900; margin-bottom: .3rem; }
.timeline__card p { font-size: .86rem; color: var(--muted); line-height: 1.6; }

/* ---------- team ---------- */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.3rem;
}
.team__card {
  text-align: center;
  padding: 1.6rem 1.2rem 1.4rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, #fff, #fcf7ff);
  border: 1px solid rgba(124, 58, 237, .08);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.team__card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.team__avatar {
  width: 116px; height: 116px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 35% 25%, #fff, #f5edff 60%, #e9dbff);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 10px 26px rgba(124, 58, 237, .18);
}
.team__avatar svg { width: 90%; height: auto; margin-top: 14px; }
.team__card h3 { font-size: 1.1rem; font-weight: 900; }
.team__role {
  display: inline-block;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--magenta);
  margin: .25rem 0 .6rem;
}
.team__card p { font-size: .85rem; color: var(--muted); line-height: 1.55; min-height: 4em; }
.team__tag {
  display: inline-block;
  margin-top: .8rem;
  font-size: .68rem;
  font-weight: 800;
  color: #7c3aed;
  background: rgba(124, 58, 237, .08);
  border-radius: 999px;
  padding: .22rem .65rem;
}

/* ---------- reviews ---------- */
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.3rem;
}
.quote {
  position: relative;
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem 1.5rem;
  background: #fff;
  border: 1px solid rgba(124, 58, 237, .08);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.quote:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.quote::before {
  content: '\201C';
  position: absolute;
  top: .3rem; left: 1rem;
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  color: #e9d5ff;
}
.stars { color: #fbbf24; letter-spacing: 3px; font-size: .95rem; margin-bottom: .3rem; }
.quote p { font-size: .92rem; line-height: 1.65; color: #5b4a7a; padding-top: 1.2rem; }
.quote__author { display: flex; align-items: center; gap: .7rem; margin-top: 1.1rem; }
.avatar {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  background: linear-gradient(140deg, #fce7f3, #ede9fe);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8);
}
.quote__name { font-weight: 800; font-size: .9rem; }
.quote__role { font-size: .75rem; color: var(--muted); }

/* ---------- faq ---------- */
.faq { display: flex; flex-direction: column; gap: .7rem; }
.faq__item {
  background: #fff;
  border: 1px solid rgba(124, 58, 237, .1);
  border-radius: 1.1rem;
  padding: .2rem 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.faq__item[open] {
  border-color: rgba(124, 58, 237, .26);
  box-shadow: 0 12px 30px rgba(74, 45, 122, .1);
  background: linear-gradient(170deg, #fff, #fdf6ff);
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem .1rem;
  font-weight: 800;
  font-size: .98rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary i {
  position: relative;
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(124, 58, 237, .09);
  transition: transform .28s var(--ease), background .25s;
}
.faq__item summary i::before,
.faq__item summary i::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 11px; height: 2px;
  border-radius: 2px;
  background: var(--violet);
  transform: translate(-50%, -50%);
}
.faq__item summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .28s var(--ease); }
.faq__item[open] summary i { background: linear-gradient(135deg, #c026d3, #7c3aed); transform: rotate(180deg); }
.faq__item[open] summary i::before,
.faq__item[open] summary i::after { background: #fff; }
.faq__item[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__item p {
  padding: 0 2.2rem 1.2rem .1rem;
  font-size: .9rem;
  line-height: 1.7;
  color: var(--muted);
  animation: faq-in .3s var(--ease);
}
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- cta ---------- */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: clamp(1.6rem, 4vw, 2.6rem);
  padding: clamp(2rem, 5vw, 3.4rem) clamp(1.3rem, 4vw, 2.6rem);
  text-align: center;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .22), inset 0 0 60px rgba(255, 255, 255, .05);
  backdrop-filter: blur(8px);
}
.cta::before,
.cta::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.cta::before { width: 300px; height: 300px; background: rgba(253, 230, 138, .5); top: -130px; left: -90px; }
.cta::after { width: 320px; height: 320px; background: rgba(110, 231, 183, .4); bottom: -150px; right: -100px; }
.cta h2 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 900; margin-bottom: .7rem; letter-spacing: -.03em; }
.cta > p { max-width: 520px; margin: 0 auto 1.6rem; color: rgba(255, 255, 255, .82); font-size: clamp(.95rem, 2vw, 1.05rem); }
.cta__form {
  position: relative;
  z-index: 1;
  display: flex;
  gap: .6rem;
  max-width: 520px;
  margin: 0 auto;
  padding: .35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
}
.cta__form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-weight: 700;
  padding: .6rem 1.1rem;
}
.cta__form input::placeholder { color: rgba(255, 255, 255, .62); font-weight: 600; }
.cta__form input.is-error { animation: shake .4s; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
.cta__note { position: relative; z-index: 1; font-size: .78rem; color: rgba(255, 255, 255, .62); margin-top: .8rem; min-height: 1.2em; }
.cta__note.is-ok { color: #bbf7d0; font-weight: 700; }
.cta__mini {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 1.6rem;
  font-size: .82rem;
  font-weight: 800;
  color: rgba(255, 255, 255, .8);
}

/* ---------- footer ---------- */
.footer {
  position: relative;
  background: #170b2c;
  color: rgba(255, 255, 255, .7);
  padding: 3rem clamp(1.1rem, 4vw, 2rem) 0;
  overflow: hidden;
}
.footer__rainbow {
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, #fb7185, #fbbf24, #a3e635, #34d399, #38bdf8, #a78bfa, #f472b6);
}
.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.55fr);
  gap: 2.5rem;
  padding-bottom: 2.4rem;
}
.footer__brand p { font-size: .86rem; line-height: 1.65; margin: .9rem 0 1.1rem; max-width: 34ch; color: rgba(255, 255, 255, .55); }
.footer__socials { display: flex; gap: .5rem; }
.footer__socials a {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  font-size: 1rem;
  transition: background .2s, transform .2s var(--ease);
}
.footer__socials a:hover { background: rgba(255, 255, 255, .16); transform: translateY(-3px); }

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.footer__cols h3 {
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .64);
  margin-bottom: .8rem;
}
.footer__cols a {
  display: block;
  font-size: .86rem;
  font-weight: 600;
  padding: .22rem 0;
  color: rgba(255, 255, 255, .72);
  transition: color .2s, transform .2s;
}
.footer__cols a:hover { color: #f0abfc; transform: translateX(3px); }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 1.2rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
  font-size: .72rem;
  color: rgba(255, 255, 255, .62);
  max-width: 1180px;
  margin: 0 auto;
}

/* ---------- toast / confetti ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  transform: translate(-50%, 180%);
  z-index: 150;
  max-width: min(92vw, 460px);
  background: rgba(36, 22, 56, .96);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.5;
  padding: .9rem 1.3rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
  transition: transform .45s var(--ease), opacity .3s;
  opacity: 0;
  pointer-events: none;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

.confetti {
  position: fixed;
  z-index: 140;
  pointer-events: none;
  border-radius: 2px;
  will-change: transform, opacity;
  animation: confetti-fall var(--dur, 1.5s) var(--ease, cubic-bezier(.2, .7, .4, 1)) forwards;
}
@keyframes confetti-fall {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate3d(var(--dx, 0), var(--dy, 300px), 0) rotate(var(--rot, 360deg)); opacity: 0; }
}

/* ---------- SVG unicorn animations ---------- */
.scene svg { width: 100%; height: auto; }

.u-leg, .u-tail, .u-mane, .u-head, .u-wing, .u-horn, .u-eye, .u-horn-glow {
  transform-box: view-box;
}
.u-eye { transform-box: fill-box; transform-origin: center; animation: uni-blink 6.5s infinite; }
@keyframes uni-blink {
  0%, 91%, 100% { transform: scaleY(1); }
  94% { transform: scaleY(.12); }
  97% { transform: scaleY(1); }
}
.u-tail { animation: uni-tail 2.8s ease-in-out infinite; }
@keyframes uni-tail {
  0%, 100% { transform: rotate(-7deg); }
  50% { transform: rotate(8deg); }
}
.u-mane { animation: uni-mane 3.4s ease-in-out infinite; }
@keyframes uni-mane {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-4deg); }
}
.u-horn-glow { animation: uni-glow 2.6s ease-in-out infinite; }
@keyframes uni-glow {
  0%, 100% { opacity: .2; }
  50% { opacity: .55; }
}
.u-wing { animation: uni-wing 1.9s ease-in-out infinite; }
@keyframes uni-wing {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-16deg); }
}

.u-uni--gallop .u-leg-front { animation: uni-leg-a .8s ease-in-out infinite; }
.u-uni--gallop .u-leg-back2 { animation: uni-leg-a .8s ease-in-out infinite .1s; }
.u-uni--gallop .u-leg-front2 { animation: uni-leg-b .8s ease-in-out infinite .05s; }
.u-uni--gallop .u-leg-back { animation: uni-leg-b .8s ease-in-out infinite .15s; }
@keyframes uni-leg-a {
  0%, 100% { transform: rotate(-22deg); }
  50% { transform: rotate(20deg); }
}
@keyframes uni-leg-b {
  0%, 100% { transform: rotate(20deg); }
  50% { transform: rotate(-22deg); }
}
.u-uni--sleep .u-eye { animation: none; transform: scaleY(.1); }
.u-uni--sleep .u-leg-front,
.u-uni--sleep .u-leg-front2,
.u-uni--sleep .u-leg-back,
.u-uni--sleep .u-leg-back2 { animation: none; }

.tw { animation: twinkle 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes twinkle {
  0%, 100% { opacity: .25; transform: scale(.7); }
  50% { opacity: 1; transform: scale(1.15); }
}
.cloud-drift { animation: cloud-drift 9s ease-in-out infinite; transform-box: view-box; }
@keyframes cloud-drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(16px); }
}
.rainbow-dash { animation: rainbow-dash 5s linear infinite; }
@keyframes rainbow-dash { to { stroke-dashoffset: -220; } }

/* дополнительные сценовые движения */
.u-float { animation: uni-float 4.2s ease-in-out infinite; }
@keyframes uni-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
.heart {
  transform-box: fill-box;
  transform-origin: center;
  animation: heart-float 3.8s ease-in-out infinite;
}
@keyframes heart-float {
  0%, 100% { transform: translateY(0) scale(.9); opacity: .25; }
  50% { transform: translateY(-12px) scale(1.15); opacity: .95; }
}
.zzz { animation: zzz-rise 3.8s ease-in-out infinite; }
@keyframes zzz-rise {
  0% { opacity: 0; transform: translateY(8px) scale(.85); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-16px) scale(1.15); }
}
.orbit {
  transform-box: view-box;
  animation: orbit-spin 9s linear infinite;
}
@keyframes orbit-spin { to { transform: rotate(360deg); } }
.pie.is-changed { animation: pie-pop .5s var(--ease); }
@keyframes pie-pop {
  0% { transform: scale(.97); }
  55% { transform: scale(1.025); }
  100% { transform: scale(1); }
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav__link { padding: .5rem .5rem; font-size: .84rem; }
  .nav__inner { gap: .8rem; }
}

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero__copy { text-align: center; order: 1; }
  .hero__lead { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__stats { margin-inline: auto; justify-content: center; text-align: center; }
  .hero__art { order: 2; max-width: 640px; margin: 0 auto; width: 100%; }
  .hero { padding-bottom: 4rem; }
  .scroll-hint { display: none; }

  .builder { grid-template-columns: 1fr; }
  .builder__preview { position: static; }
  .viewer__facts { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav__links {
    position: fixed;
    top: 76px;
    left: 0; right: 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .15rem;
    padding: 1rem clamp(1rem, 4vw, 2rem) 1.4rem;
    background: #fdf4ff;
    border-bottom: 1px solid rgba(124, 58, 237, .12);
    box-shadow: 0 24px 50px rgba(74, 45, 122, .15);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
    max-height: calc(100svh - 90px);
    overflow: auto;
  }
  .nav__links.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .nav__link { padding: .8rem .9rem; font-size: 1rem; border-radius: .8rem; }
  .nav__link.is-active::after { display: none; }
  .nav__link.is-active { background: rgba(124, 58, 237, .08); }
  .nav__link.nav__link--mobile {
    display: block;
    margin-top: .6rem;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #c026d3, #7c3aed);
    box-shadow: 0 8px 20px rgba(124, 58, 237, .28);
  }
  .nav__link.nav__link--mobile:hover { color: #fff; background: linear-gradient(135deg, #c026d3, #7c3aed); }
}

@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr; }
  .timeline::before { left: 9px; }
  .timeline__item,
  .timeline__item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding: 0 0 1.4rem 2.1rem;
  }
  .timeline__dot,
  .timeline__item:nth-child(even) .timeline__dot { left: 1px; right: auto; top: 1.3rem; }

  .namegen { text-align: center; }
  .namegen__text { flex-basis: 100%; }
  .namegen__out { justify-content: center; text-align: center; }
  .namegen .btn { width: 100%; }

  .viewer { height: clamp(400px, 70vh, 560px); }
  .viewer__badge { display: none; }
  .viewer__speed { display: none; }
  .viewer__hint { bottom: 6.4rem; font-size: .68rem; }
  .viewer__toolbar { width: 96%; gap: .3rem; }
  .viewer__btn { font-size: .68rem; padding: .38rem .65rem; }
  .race__lane { height: 76px; }
  .race__racer { width: 88px; height: 72px; }
  .race__legend-hint { display: none; }
  .float-chip--c { display: none; }
}

@media (max-width: 560px) {
  .hero__title { font-size: clamp(3rem, 17vw, 4.2rem); }
  .hero__stats { gap: 1rem 1.6rem; }
  .hero__stats dd { font-size: .74rem; }
  .float-chip--a { font-size: .62rem; }
  .float-chip--b { font-size: .62rem; left: 2%; }
  .section { padding-inline: 1rem; }
  .builder__preview { padding: 1.1rem; }
  .builder__total { flex-direction: column; align-items: stretch; text-align: center; }
  .builder__total .btn { width: 100%; }
  .cta__form { flex-direction: column; border-radius: 1.2rem; padding: .5rem; }
  .cta__form input { padding: .75rem 1rem; text-align: center; }
  .cta__form .btn { width: 100%; }
  .cta__mini { gap: .8rem; font-size: .74rem; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .stats { gap: 1rem .5rem; }
  .stat span { font-size: .72rem; }
  .viewer__facts { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .viewer__facts > div { padding: .8rem .5rem; }
  .viewer__facts span { font-size: .64rem; }
  .race__bar { gap: .7rem; }
  .race__bar .btn { width: 100%; }
}

@media (max-width: 420px) {
  .nav__inner { min-height: 64px; padding-inline: .9rem; }
  .brand__text { font-size: 1.05rem; }
  .brand__mark { width: 40px; height: 40px; }
  .nav__links { top: 68px; }
  .viewer__hint { display: none; }
  .viewer__btn { font-size: .62rem; padding: .34rem .55rem; }
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__window { animation: none; }
}
