/* Amazing Home — стили. Два режима: день (по умолчанию) и вечер (html[data-mode="night"]). */
:root {
  --bg: #fffbf0;
  --bg-hero-a: #ffe66b;
  --bg-hero-b: #fff3b8;
  --tint: #fff4c7;
  --surface: #ffffff;
  --ink: #2a1d4a;
  --head: #2b1763;
  --muted: #62587c;
  --line: rgba(43, 23, 99, 0.14);
  --accent: #6a3fd0;
  --accent-2: #5630b8;
  --on-accent: #ffffff;
  --yellow: #ffd836;
  --on-yellow: #2b1763;
  --deep: #2b1763;
  --on-deep: #ffffff;
  --pink: #ff7db0;
  --mint: #5fd9b3;
  --wa: #1fa855;
  --header-bg: rgba(255, 236, 130, 0.9);
  --shadow: 0 16px 40px rgba(43, 23, 99, 0.16);
  --shadow-sm: 0 6px 18px rgba(43, 23, 99, 0.12);
  --radius: 26px;
  --wrap: min(1560px, 94vw);
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hero-pt: clamp(96px, 9vw, 108px);
  --hand: "Caveat", "Comic Sans MS", cursive;
}
html[data-mode="night"] {
  --bg: #170d33;
  --bg-hero-a: #2c1a66;
  --bg-hero-b: #1c1040;
  --tint: #1f1345;
  --surface: #261950;
  --ink: #efe9ff;
  --head: #ffffff;
  --muted: #b8acd8;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #a887ff;
  --accent-2: #b99dff;
  --on-accent: #1a0f3a;
  --deep: #0f0826;
  --header-bg: rgba(28, 16, 64, 0.88);
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.6;
  color: var(--ink); background: var(--bg); overflow-x: hidden;
  transition: background-color .5s ease, color .5s ease;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font); line-height: 1.12; margin: 0; text-wrap: balance; color: var(--head); transition: color .5s ease; }
h1 { font-size: clamp(2.6rem, 6.6vw, 4.9rem); font-weight: 900; line-height: 1.02; text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 900; }
h3 { font-size: 1.22rem; font-weight: 800; line-height: 1.3; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; position: relative; }
@media (min-width: 1500px) { body { font-size: 20px; } .hang .ph { width: min(84%, 300px); } .hang.land .ph { width: min(92%, 420px); } }
.section { padding: clamp(60px, 8vw, 108px) 0; position: relative; }
.tinted { background: var(--tint); transition: background-color .5s ease; }
.eyebrow { font-size: 0.84rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 12px; }
.lead { font-size: 1.14rem; color: var(--muted); max-width: 60ch; margin-top: 16px; }
.hand { font-family: var(--hand); font-weight: 700; font-size: 1.5rem; line-height: 1.1; color: var(--accent); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--surface); padding: 10px 14px; border-radius: 8px; }

/* маркер-подчёркивание в заголовках */
.mark { position: relative; white-space: nowrap; z-index: 0; }
.mark::after {
  content: ""; position: absolute; left: -4px; right: -4px; bottom: 0.06em; height: 0.36em; z-index: -1;
  background: var(--yellow); border-radius: 4px 12px 6px 14px; transform: rotate(-1deg);
}
html[data-mode="night"] .mark::after { background: var(--accent-2); opacity: .55; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 800; font-size: 1.04rem; padding: 15px 26px; border-radius: 999px;
  text-decoration: none; border: 2px solid transparent; white-space: nowrap;
  transition: transform .18s cubic-bezier(.3,1.6,.5,1), box-shadow .18s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-3px) rotate(-1deg); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 0 var(--deep); }
.btn-primary:hover { box-shadow: 0 9px 0 var(--deep); }
.btn-yellow { background: var(--yellow); color: var(--on-yellow); box-shadow: 0 6px 0 rgba(0,0,0,.28); }
.btn-ghost { border-color: var(--head); color: var(--head); background: transparent; }
.btn-sm { padding: 10px 18px; font-size: 0.94rem; box-shadow: none; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Шапка */
.header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: blur(10px); transition: background-color .5s ease; }
.header .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 46px; height: 46px; border-radius: 12px; transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.brand:hover img { transform: rotate(-8deg) scale(1.08); }
.brand b, .brand span { white-space: nowrap; display: block; }
.brand b { font-size: 1.14rem; font-weight: 900; color: var(--head); line-height: 1.1; }
.brand span { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.nav { display: flex; gap: 22px; }
.nav a { text-decoration: none; font-weight: 700; font-size: 1rem; color: var(--head); position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; border-radius: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav a:hover::after { transform: scaleX(1); }

/* Первый экран */
.hero {
  background: linear-gradient(175deg, var(--bg-hero-a) 0%, var(--bg-hero-b) 55%, var(--bg) 100%);
  padding: var(--hero-pt) 0 clamp(56px, 7vw, 88px); position: relative; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 em, .page-hero h1 em {
  font-style: normal; display: inline-block; background: var(--accent); color: var(--on-accent);
  padding: 0 0.16em; border-radius: 0.14em; transform: rotate(-2deg); box-shadow: 0 6px 0 var(--deep);
  transition: background-color .5s ease;
}
.hero .sub { font-weight: 800; font-size: clamp(1.15rem, 2.2vw, 1.5rem); color: var(--head); margin-top: 20px; }
.hero .lead { color: var(--ink); }
.hero-price { margin-top: 22px; font-weight: 700; color: var(--head); }
.hero-price b { font-weight: 900; font-size: 1.8rem; color: var(--accent); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* гирлянда */
.garland { position: absolute; top: 0; left: 0; right: 0; height: 52px; display: flex; justify-content: center; overflow: hidden; pointer-events: none; }
.garland i {
  flex: 0 0 62px; height: 26px; position: relative; margin-top: -6px;
  border-bottom: 2px solid var(--line); border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.garland i::after {
  content: ""; position: absolute; left: 50%; bottom: -13px; width: 10px; height: 14px; margin-left: -5px;
  border-radius: 50% 50% 50% 50% / 38% 38% 62% 62%; background: var(--b, var(--yellow)); opacity: .45;
  transition: opacity .5s ease, box-shadow .5s ease;
}
.garland i:nth-child(4n+1) { --b: var(--yellow); }
.garland i:nth-child(4n+2) { --b: var(--pink); }
.garland i:nth-child(4n+3) { --b: var(--mint); }
.garland i:nth-child(4n)   { --b: #b99dff; }
html[data-mode="night"] .garland i::after { opacity: 1; box-shadow: 0 0 14px 4px var(--b); animation: twinkle 2.4s ease-in-out infinite; }
html[data-mode="night"] .garland i:nth-child(3n)::after { animation-delay: -.8s; }
html[data-mode="night"] .garland i:nth-child(3n+1)::after { animation-delay: -1.6s; }
@keyframes twinkle { 50% { opacity: .5; box-shadow: 0 0 4px 1px var(--b); } }

/* шнурок-выключатель */
.cord {
  position: absolute; top: calc(-1 * var(--hero-pt)); left: 50%; z-index: 5;
  display: flex; flex-direction: column; align-items: center; background: none; border: 0; padding: 0;
  transform-origin: top center; transition: transform .3s ease;
}
.cord::before { content: ""; width: 2px; height: 30px; background: var(--head); opacity: .6; }
.cord svg { width: 42px; height: 53px; color: var(--head); transition: color .4s ease, filter .4s ease; }
.cord .glass { fill: rgba(255,255,255,.55); transition: fill .4s ease; }
.cord:hover { transform: rotate(4deg); }
.cord.pull { animation: pull .45s ease; }
@keyframes pull { 40% { transform: translateY(16px); } 70% { transform: translateY(-4px); } }
html[data-mode="night"] .cord .glass { fill: var(--yellow); }
html[data-mode="night"] .cord svg { filter: drop-shadow(0 0 16px rgba(255, 216, 54, .9)); }
.cord-tip { position: absolute; right: 100%; bottom: 14px; margin-right: 8px; white-space: nowrap; transform: rotate(-4deg); pointer-events: none; font-size: 1.4rem; }
.cord-tip .night, html[data-mode="night"] .cord-tip .day { display: none; }
html[data-mode="night"] .cord-tip .night { display: inline; }

/* фото-полароиды */
.pile { position: relative; padding: 0 15% 12% 7%; }
.polaroid {
  margin: 0; background: #fff; padding: 10px 10px 0; border-radius: 6px; box-shadow: var(--shadow);
  transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--r, 0deg)); transition: box-shadow .2s ease, transform .25s cubic-bezier(.3,1.5,.5,1);
  touch-action: pan-y; user-select: none;
}
.polaroid img { width: 100%; object-fit: cover; border-radius: 3px; pointer-events: none; }
.polaroid figcaption { font-family: var(--hand); font-weight: 700; font-size: 1.45rem; line-height: 1; color: #2b1763; text-align: center; padding: 9px 0 11px; }
.polaroid::before { content: ""; position: absolute; top: -12px; left: 50%; width: 84px; height: 26px; margin-left: -42px; background: rgba(255, 216, 54, .82); transform: rotate(-3deg); border-radius: 2px; }
.polaroid.p-main { --r: 2deg; position: relative; }
.polaroid.p-main .frame { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 3px; }
.polaroid.p-main img { position: absolute; inset: 0; height: 100%; transition: opacity .7s ease; }
.polaroid.p-main .night { opacity: 0; }
html[data-mode="night"] .polaroid.p-main .night { opacity: 1; }
.polaroid .cap-night, html[data-mode="night"] .polaroid .cap-day { display: none; }
html[data-mode="night"] .polaroid .cap-night { display: inline; }
.polaroid.p-a, .polaroid.p-b { position: absolute; padding: 7px 7px 0; }
.polaroid.p-a figcaption, .polaroid.p-b figcaption { font-size: 1.2rem; padding: 6px 0 8px; }
.polaroid.p-a { left: 0; bottom: 0; width: 35%; --r: -6deg; box-shadow: 8px 8px 0 var(--yellow), var(--shadow); }
.polaroid.p-b { right: 0; top: 9%; width: 30%; --r: 5deg; box-shadow: 8px 8px 0 var(--pink), var(--shadow); }
.polaroid.p-main { box-shadow: 12px 12px 0 var(--accent), var(--shadow); }
.polaroid.p-a::before { background: rgba(255, 125, 176, .8); width: 60px; margin-left: -30px; }
.polaroid.p-b::before { background: rgba(95, 217, 179, .85); width: 60px; margin-left: -30px; }
.can-drag .polaroid { cursor: grab; }
.polaroid.dragging { cursor: grabbing; transition: none; z-index: 9; }
.pile-tip { position: absolute; left: 8%; top: -36px; transform: rotate(3deg); display: none; }
.can-drag .pile-tip { display: block; }

/* круглый стикер */
.badge { position: absolute; right: 2%; bottom: 3%; width: 124px; height: 124px; z-index: 4; pointer-events: none; }
.badge svg { width: 100%; height: 100%; animation: spin 18s linear infinite; }
.badge text { font-family: var(--font); font-weight: 900; font-size: 11.5px; letter-spacing: 1.6px; fill: var(--on-yellow); }
.badge b { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-weight: 900; font-size: 1.02rem; line-height: 1.05; color: var(--on-yellow); }
@keyframes spin { to { transform: rotate(360deg); } }

/* декоративные искры */
.spark { position: absolute; color: var(--accent); opacity: .8; animation: float 6s ease-in-out infinite; pointer-events: none; }
.spark.y { color: var(--pink); animation-delay: -2s; }
.spark.m { color: var(--mint); animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-12px) rotate(18deg); } }

/* Факты */
.facts { margin-top: -28px; position: relative; z-index: 3; }
.facts ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.facts li {
  background: var(--surface); border-radius: 22px; padding: 20px 22px; box-shadow: var(--shadow-sm);
  transition: transform .25s cubic-bezier(.3,1.6,.5,1), background-color .5s ease;
}
.facts li:nth-child(odd) { transform: rotate(-1.2deg); }
.facts li:nth-child(even) { transform: rotate(1deg); }
.facts li:hover { transform: rotate(0) translateY(-6px) scale(1.03); }
.facts b { display: block; font-weight: 900; font-size: clamp(1.25rem, 2.2vw, 1.6rem); color: var(--accent); line-height: 1.2; }
.facts span { font-size: 0.98rem; color: var(--muted); }

/* Бегущая строка */
.ticker { background: var(--accent); color: var(--on-accent); overflow: hidden; padding: 14px 0; transform: rotate(-1.2deg) scale(1.03); margin: clamp(48px, 6vw, 72px) 0 0; transition: background-color .5s ease; }
.ticker.alt { background: var(--yellow); color: var(--on-yellow); transform: rotate(1deg) scale(1.03); margin: 0; }
.ticker-track { display: flex; width: max-content; animation: slide 36s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { font-weight: 900; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; padding-right: 18px; }
.ticker span::after { content: "✦"; padding-left: 18px; opacity: .7; }
@keyframes slide { to { transform: translateX(-50%); } }

/* О доме */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-photo { position: relative; }
.about-photo .polaroid { --r: -3deg; }
.about-photo .note { position: absolute; right: -4%; bottom: 12%; background: var(--yellow); color: var(--on-yellow); font-family: var(--hand); font-weight: 700; font-size: 1.5rem; line-height: 1.05; padding: 12px 16px; border-radius: 4px 18px 6px 16px; transform: rotate(6deg); box-shadow: var(--shadow-sm); max-width: 190px; }
.pillars { margin-top: 30px; display: grid; gap: 14px; }
.pillars li {
  display: grid; grid-template-columns: 54px 1fr; gap: 16px; align-items: center;
  background: var(--surface); border-radius: 20px; padding: 16px 18px; box-shadow: var(--shadow-sm);
  transition: transform .25s cubic-bezier(.3,1.6,.5,1), background-color .5s ease;
}
.pillars li:hover { transform: translateX(8px) rotate(-.6deg); }
.pillars .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.7rem; background: var(--yellow); }
.pillars li:nth-child(2) .ico { background: var(--pink); }
.pillars li:nth-child(3) .ico { background: var(--mint); }
.pillars p { color: var(--muted); font-size: 1rem; margin-top: 2px; line-height: 1.45; }

/* Цель на месяц */
.goal { background: var(--deep); color: #fff; }
.goal h2 { color: #fff; }
.goal .eyebrow { color: var(--yellow); }
.goal .lead { color: rgba(255,255,255,.8); }
.goal-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip { border: 2px solid rgba(255,255,255,.3); background: transparent; color: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 1rem; transition: transform .15s ease, background-color .15s ease, border-color .15s ease; }
.chip:hover { transform: translateY(-2px) rotate(-1.5deg); border-color: var(--yellow); }
.chip.on { background: var(--yellow); border-color: var(--yellow); color: var(--on-yellow); }
.goal-input { display: block; width: 100%; margin-top: 16px; padding: 16px 20px; border-radius: 18px; border: 2px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; font: inherit; font-weight: 700; }
.goal-input::placeholder { color: rgba(255,255,255,.5); font-weight: 600; }
.goal-input:focus { outline: none; border-color: var(--yellow); }
.goal .btn { margin-top: 20px; }
.goal-card {
  background: var(--yellow); color: var(--on-yellow); border-radius: 10px 30px 14px 26px; padding: 30px 28px 26px;
  transform: rotate(3deg); box-shadow: 0 24px 60px rgba(0,0,0,.4); position: relative; max-width: 400px; margin-inline: auto;
  transition: transform .3s cubic-bezier(.3,1.6,.5,1);
}
.goal-card.pop { transform: rotate(-2deg) scale(1.04); }
.goal-card::before { content: ""; position: absolute; top: -13px; left: 50%; width: 110px; height: 28px; margin-left: -55px; background: rgba(255,255,255,.75); transform: rotate(-2deg); }
.goal-card small { font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.goal-card output { display: block; font-family: var(--hand); font-weight: 700; font-size: clamp(2rem, 4vw, 2.7rem); line-height: 1.05; margin: 10px 0 18px; min-height: 2.1em; overflow-wrap: anywhere; }
.goal-card footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 800; font-size: .92rem; border-top: 2px dashed rgba(43,23,99,.3); padding-top: 12px; }

/* Цены */
.price-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(24px, 4vw, 48px); margin-top: 44px; align-items: stretch; }
.bunk-box { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); position: relative; transition: background-color .5s ease; }
.bunk-box .hand { position: absolute; top: 12px; right: 18px; transform: rotate(4deg); font-size: 1.3rem; }
.bunk { width: 100%; height: auto; }
.bunk .lvl { cursor: pointer; }
.bunk .mat { fill: #fff; stroke: #2b1763; stroke-width: 3; transition: fill .25s ease; }
.bunk .pillow { fill: #efe9ff; stroke: #2b1763; stroke-width: 3; }
.bunk .blanket { fill: #e3d8ff; stroke: #2b1763; stroke-width: 3; transition: fill .25s ease; }
.bunk .lvl:hover .mat { fill: #fff7cf; }
.bunk .lvl.on .blanket { fill: var(--pink); }
.bunk .lvl.on .mat { fill: #fff2a8; }
.bunk .zzz { font-family: var(--hand); font-weight: 700; font-size: 26px; fill: #6a3fd0; opacity: 0; transition: opacity .3s ease; }
.bunk .lvl.on .zzz { opacity: 1; animation: zzz 2.4s ease-in-out infinite; }
@keyframes zzz { 50% { transform: translate(6px, -8px); } }
.bunk .wood { fill: var(--yellow); stroke: #2b1763; stroke-width: 3; stroke-linejoin: round; }
.bunk .rung { stroke: #2b1763; stroke-width: 4; stroke-linecap: round; }
.pick { display: flex; flex-direction: column; gap: 16px; }
.tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tab {
  text-align: left; background: var(--surface); border: 2px solid var(--line); border-radius: 20px; padding: 16px 18px;
  transition: transform .2s cubic-bezier(.3,1.6,.5,1), border-color .2s ease, background-color .3s ease;
}
.tab:hover { transform: translateY(-3px); }
.tab small { display: block; font-weight: 800; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.tab strong { display: block; font-weight: 800; font-size: 1.1rem; color: var(--head); }
.tab b { display: block; font-weight: 900; font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--head); line-height: 1.15; white-space: nowrap; }
.tab b i { font-style: normal; font-size: .95rem; font-weight: 700; color: var(--muted); }
.tab[aria-selected="true"] { background: var(--yellow); border-color: var(--yellow); transform: rotate(-1.2deg); box-shadow: 0 6px 0 rgba(0,0,0,.2); }
.tab[aria-selected="true"] small, .tab[aria-selected="true"] strong, .tab[aria-selected="true"] b { color: var(--on-yellow); }
.tab[aria-selected="true"] b i { color: rgba(43,23,99,.7); }
.terms { background: var(--deep); color: #fff; border-radius: var(--radius); padding: 24px 26px; flex: 1; }
.terms dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.terms dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; opacity: .65; font-weight: 700; }
.terms dd { margin: 2px 0 0; font-weight: 800; line-height: 1.3; }
.pick .btn { align-self: flex-start; }

/* Что включено */
.incl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.incl { background: var(--surface); border-radius: 22px; padding: 24px 22px; box-shadow: var(--shadow-sm); transition: transform .25s cubic-bezier(.3,1.6,.5,1), background-color .5s ease; }
.incl:hover { transform: translateY(-6px) rotate(-1deg); }
.incl .ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--tint); color: var(--accent); margin-bottom: 14px; transition: transform .3s cubic-bezier(.3,1.6,.5,1), background-color .3s ease; }
.incl:hover .ico { transform: rotate(-10deg) scale(1.1); background: var(--yellow); color: var(--on-yellow); }
.incl svg { width: 30px; height: 30px; }
.incl p { font-size: 1rem; color: var(--muted); margin-top: 4px; }

.insta {
  display: flex; align-items: center; gap: 18px; margin-top: 22px; padding: 22px 26px; text-decoration: none;
  border-radius: var(--radius); color: #fff; box-shadow: var(--shadow);
  background: linear-gradient(100deg, #6a3fd0, #d94c9c 60%, #ffb13b);
  transition: transform .25s cubic-bezier(.3,1.6,.5,1);
}
.insta:hover { transform: translateY(-4px) rotate(-.6deg); }
.insta svg { width: 44px; height: 44px; flex: none; }
.insta div { margin-right: auto; }
.insta b { display: block; font-weight: 900; font-size: 1.3rem; line-height: 1.25; }
.insta span { opacity: .92; }
.insta i { font-style: normal; font-weight: 800; white-space: nowrap; background: #fff; color: #2b1763; padding: 10px 18px; border-radius: 999px; }
@media (max-width: 640px) { .insta { flex-wrap: wrap; padding: 20px; } .insta div { flex: 1 1 60%; } .insta i { width: 100%; text-align: center; } }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(20, 10, 46, .86); backdrop-filter: blur(4px); }
.lightbox img { max-width: 94vw; max-height: 86vh; width: auto; border-radius: 14px; border: 8px solid #fff; }
.lightbox button { position: absolute; top: -18px; right: -14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--yellow); color: #2b1763; font-size: 1.4rem; font-weight: 900; }

/* Отзывы */
.chat { columns: 3; column-gap: 18px; margin-top: 44px; }
.msg {
  display: block; break-inside: avoid; margin: 0 0 18px; padding: 20px 22px 16px; text-decoration: none;
  background: var(--surface); color: var(--ink); border-radius: 22px 22px 22px 6px; box-shadow: var(--shadow-sm);
  transition: transform .25s cubic-bezier(.3,1.6,.5,1), background-color .5s ease;
}
.msg:nth-child(odd) { rotate: -1deg; }
.msg:nth-child(even) { rotate: 1deg; }
.msg:hover { transform: translateY(-5px) scale(1.02); }
.msg.alt { background: var(--accent); color: var(--on-accent); border-radius: 22px 22px 6px 22px; }
.msg p + p { margin-top: 10px; }
.msg footer { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: .86rem; font-weight: 700; opacity: .6; }
.msg.more { background: var(--yellow); color: var(--on-yellow); font-weight: 800; font-size: 1.15rem; line-height: 1.35; }
.msg.more footer { opacity: 1; font-size: 1rem; }

/* Шаги */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 48px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 30px; right: calc(20% - 42px); top: 0; height: 120px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 120' preserveAspectRatio='none'%3E%3Cpath d='M0 30C125 30 125 86 250 86S375 30 500 30 625 86 750 86 875 30 1000 30' fill='none' stroke='%238a6be0' stroke-opacity='.55' stroke-width='3' stroke-dasharray='2 12' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat center / 100% 100%; }
.steps li { counter-increment: s; position: relative; }
.steps li::before {
  content: counter(s); width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 900; font-size: 1.6rem; background: var(--yellow); color: var(--on-yellow); margin-bottom: 16px;
  box-shadow: 0 5px 0 rgba(0,0,0,.2); transition: transform .3s cubic-bezier(.3,1.6,.5,1);
}
.steps li:nth-child(2)::before { background: var(--pink); }
.steps li:nth-child(3)::before { background: var(--mint); }
.steps li:nth-child(4)::before { background: #b99dff; }
.steps li:hover::before { transform: translateY(-6px) rotate(-12deg) scale(1.08); }
.steps p { color: var(--muted); font-size: 1rem; margin-top: 6px; line-height: 1.45; }

/* Адреса */
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.loc-card { background: var(--surface); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); position: relative; overflow: hidden; transition: transform .25s cubic-bezier(.3,1.5,.5,1), background-color .5s ease; }
.loc-card:hover { transform: translateY(-6px); }
.loc-card address { font-style: normal; font-weight: 900; font-size: 1.7rem; color: var(--head); line-height: 1.2; }
.loc-card p { color: var(--muted); margin-top: 8px; max-width: 26ch; }
.loc-card .btn { margin-top: 20px; margin-right: 6px; }
.loc-card .tower { position: absolute; right: 22px; bottom: 0; width: 86px; height: 150px; color: var(--head); opacity: .9; transition: transform .4s cubic-bezier(.3,1.5,.5,1); transform-origin: bottom center; }
.loc-card:hover .tower { transform: scale(1.08) rotate(-3deg); }
.loc-card .tower .ball { fill: var(--yellow); }

/* Вопросы */
.faq-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.faq-list details { background: var(--surface); border-radius: 20px; margin-bottom: 12px; box-shadow: var(--shadow-sm); transition: background-color .5s ease; }
.faq-list summary { cursor: pointer; list-style: none; padding: 20px 58px 20px 24px; position: relative; font-weight: 800; font-size: 1.14rem; line-height: 1.35; color: var(--head); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 16px; top: 14px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: var(--on-yellow); font-size: 1.5rem; font-weight: 800; line-height: 1; transition: transform .25s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 24px 22px; color: var(--muted); max-width: 66ch; }

/* Финал */
.final { background: var(--deep); color: #fff; text-align: center; }
.final h2 { color: #fff; max-width: 16ch; margin: 0 auto; }
.final .lead { margin-inline: auto; color: rgba(255,255,255,.8); }
.final .hero-cta { justify-content: center; }
.final .btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.final .bulb { width: 92px; height: 116px; margin: 0 auto 22px; color: #fff; filter: drop-shadow(0 0 30px rgba(255, 216, 54, .75)); animation: glow 3s ease-in-out infinite; }
.final .bulb .glass { fill: var(--yellow); }
@keyframes glow { 50% { filter: drop-shadow(0 0 54px rgba(255, 216, 54, 1)); transform: translateY(-4px); } }

/* Внутренние страницы */
.page-hero { background: linear-gradient(175deg, var(--bg-hero-a) 0%, var(--bg-hero-b) 60%, var(--bg) 100%); padding: 74px 0 clamp(48px, 6vw, 72px); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); max-width: 24ch; line-height: 1.22; }
.page-hero h1 em { transform: rotate(-1.2deg); box-shadow: 0 4px 0 var(--deep); margin: 0 .04em; }
.page-hero .lead { color: var(--ink); }
.page-hero .cord { top: -74px; left: auto; right: 26px; }
.page-hero .cord::before { height: 22px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .92rem; font-weight: 700; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--accent); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.lead a, .more a { color: var(--accent); font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.more { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.more a { text-decoration: none; }
.more a:hover { text-decoration: underline; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.info { background: var(--surface); border-radius: 22px; padding: 24px; box-shadow: var(--shadow-sm); transition: transform .25s cubic-bezier(.3,1.6,.5,1), background-color .5s ease; border-top: 6px solid var(--yellow); }
.info:nth-child(3n+2) { border-top-color: var(--pink); }
.info:nth-child(3n) { border-top-color: var(--mint); }
.info:hover { transform: translateY(-5px) rotate(-.6deg); }
.info p { color: var(--muted); margin-top: 6px; font-size: 1rem; }
.ptable { margin-top: 36px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; transition: background-color .5s ease; }
.ptable table { width: 100%; border-collapse: collapse; min-width: 480px; }
.ptable th, .ptable td { text-align: left; padding: 18px 22px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ptable tbody tr:last-child > * { border-bottom: 0; }
.ptable thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.ptable tbody th { font-weight: 800; color: var(--head); }
.ptable td b { font-weight: 900; font-size: 1.1rem; color: var(--accent); }
.ptable small { display: block; font-weight: 600; font-size: .88rem; color: var(--muted); }
.two { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.two .polaroid { max-width: 400px; margin-inline: auto; position: relative; }
.two .msg { rotate: 2deg; font-size: 1.1rem; }
.ticks { margin-top: 22px; display: grid; gap: 10px; }
.ticks li { padding-left: 38px; position: relative; font-weight: 600; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: var(--on-yellow); font-weight: 900; font-size: .9rem; }
.goal .two .lead + .lead { margin-top: 12px; }

/* Подвал */
.footer { background: var(--deep); color: rgba(255,255,255,.8); padding: 40px 0 110px; font-size: 1rem; border-top: 1px solid rgba(255,255,255,.12); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 32px; }
.footer b { color: var(--yellow); font-size: 1.05rem; display: block; margin-bottom: 10px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--yellow); }
.footer li { margin-bottom: 6px; }
.footer .copy { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); font-size: .9rem; opacity: .7; }

.fab { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: none; background: var(--wa); color: #fff; box-shadow: 0 10px 28px rgba(0,0,0,.3); }

/* появление при прокрутке (только когда работает JS) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .nav { display: none; }
  .hero-grid, .about-grid, .goal-grid, .price-grid, .faq-grid, .two { grid-template-columns: minmax(0, 1fr); }
  .cards3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cord { left: auto; right: 22px; }
  .pile { max-width: 470px; margin: 26px auto 0; width: 100%; }
  .facts { margin-top: 0; }
  .facts ul { grid-template-columns: 1fr 1fr; }
  .chat { columns: 2; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .about-photo { max-width: 420px; margin-inline: auto; }
  .bunk-box { max-width: 460px; width: 100%; margin-inline: auto; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .header .wrap { gap: 10px; padding: 0 14px; min-height: 60px; }
  .brand { gap: 9px; }
  .brand img { width: 40px; height: 40px; }
  .brand b { font-size: 1rem; }
  .brand span { font-size: 0.64rem; letter-spacing: 0.08em; }
  .header .btn { padding: 9px 14px; }
  .header .btn .long { display: none; }
  .loc-grid, .footer-grid, .cards3 { grid-template-columns: 1fr; }
  .page-hero .cord { right: 18px; }
  .page-hero h1 { max-width: calc(100% - 50px); }
  .chat { columns: 1; }
  .incl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .incl { padding: 18px 14px; }
  .incl h3 { font-size: 1.05rem; hyphens: auto; overflow-wrap: anywhere; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .steps li { display: grid; grid-template-columns: 60px 1fr; column-gap: 16px; }
  .steps li::before { grid-row: span 2; margin: 0; }
  .hero-cta .btn { width: 100%; }
  .badge { width: 96px; height: 96px; }
  .badge b { font-size: .86rem; }
  .terms dl { grid-template-columns: 1fr; gap: 12px; }
  .tab { padding: 12px 12px; }
  .tab small { font-size: .68rem; }
  .tab strong { font-size: 1rem; }
  .tab b { font-size: 1.3rem; }
  .tab b i { font-size: .82rem; }
  .bunk-box .hand { font-size: 1.15rem; right: 12px; }
  .pick .btn { align-self: stretch; }
  .about-photo .note { right: 0; font-size: 1.3rem; }
  .ticker span { font-size: 1rem; }
  .fab { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ================= Игривые формы ================= */

/* волнистые края цветных секций */
.tinted::before, .tinted::after, .goal::before, .goal::after {
  content: ""; position: absolute; left: 0; right: 0; height: 26px; background: inherit; pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 30' preserveAspectRatio='none'%3E%3Cpath d='M0 30V15Q30-5 60 15T120 15V30Z'/%3E%3C/svg%3E") repeat-x center / 110px 100%; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 30' preserveAspectRatio='none'%3E%3Cpath d='M0 30V15Q30-5 60 15T120 15V30Z'/%3E%3C/svg%3E") repeat-x center / 110px 100%;
}
.tinted::before, .goal::before { top: -25px; }
.tinted::after, .goal::after { bottom: -25px; transform: scaleY(-1); }
.tinted, .goal { z-index: 1; }

/* мягкие пятна-подложки */
.pile::before, .about-photo::before {
  content: ""; position: absolute; inset: -6% -8% 2% -10%; z-index: -1; background: var(--accent); opacity: .16;
  border-radius: 58% 42% 37% 63% / 45% 38% 62% 55%; animation: morph 14s ease-in-out infinite alternate;
}
.about-photo::before { background: var(--yellow); opacity: .7; inset: -8% -12% -6% -12%; }
html[data-mode="night"] .about-photo::before { opacity: .22; }
.pile, .about-photo { z-index: 0; }
@keyframes morph { to { border-radius: 38% 62% 56% 44% / 58% 44% 56% 42%; transform: rotate(8deg) scale(1.04); } }

/* факты — стикеры разных форм */
.facts { margin-top: -20px; }
.facts ul { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 34px; }
.facts li.st { background: none; box-shadow: none; padding: 0; border-radius: 0; filter: drop-shadow(0 10px 16px rgba(43, 23, 99, .2)); }
.facts li.st:nth-child(1) { transform: rotate(-7deg); }
.facts li.st:nth-child(2) { transform: rotate(3deg); }
.facts li.st:nth-child(3) { transform: rotate(-3deg); }
.facts li.st:nth-child(4) { transform: rotate(6deg); }
.facts li.st:hover { transform: rotate(0) scale(1.08); }
.st > div { display: grid; place-content: center; text-align: center; gap: 2px; }
.st b { font-size: clamp(1.2rem, 2vw, 1.5rem); }
.st span { font-size: .92rem; line-height: 1.25; font-weight: 700; }
.st-burst > div { width: 200px; height: 200px; padding: 30px; background: var(--yellow); clip-path: polygon(100.0% 50.0%,92.2% 58.4%,96.2% 69.1%,85.8% 73.9%,85.4% 85.4%,73.9% 85.8%,69.1% 96.2%,58.4% 92.2%,50.0% 100.0%,41.6% 92.2%,30.9% 96.2%,26.1% 85.8%,14.6% 85.4%,14.2% 73.9%,3.8% 69.1%,7.8% 58.4%,0.0% 50.0%,7.8% 41.6%,3.8% 30.9%,14.2% 26.1%,14.6% 14.6%,26.1% 14.2%,30.9% 3.8%,41.6% 7.8%,50.0% 0.0%,58.4% 7.8%,69.1% 3.8%,73.9% 14.2%,85.4% 14.6%,85.8% 26.1%,96.2% 30.9%,92.2% 41.6%); }
.st-burst b, .st-burst span { color: var(--on-yellow); }
.st-pill > div { background: var(--accent); border-radius: 999px; padding: 22px 38px; max-width: 290px; }
.st-pill b, .st-pill span { color: var(--on-accent); }
.st-ticket > div {
  background: var(--surface); padding: 22px 40px; max-width: 280px; border-radius: 14px; outline: 2px dashed var(--line); outline-offset: -9px;
  -webkit-mask: radial-gradient(circle 13px at 0 50%, #0000 97%, #000), radial-gradient(circle 13px at 100% 50%, #0000 97%, #000); -webkit-mask-composite: source-in;
  mask: radial-gradient(circle 13px at 0 50%, #0000 97%, #000), radial-gradient(circle 13px at 100% 50%, #0000 97%, #000); mask-composite: intersect;
}
.st-ticket span { color: var(--muted); }
.st-circle > div { width: 176px; height: 176px; padding: 22px; border-radius: 50%; background: var(--pink); }
.st-circle b, .st-circle span { color: #2b1763; }

/* фото на гирлянде с прищепками */
.ropes { margin-top: 30px; }
.rope { margin-top: 26px; }
.track { position: relative; display: flex; align-items: flex-start; padding-bottom: 26px; }
.rope .line { position: absolute; left: 0; top: 0; width: 100%; height: 60px; overflow: visible; }
.rope .line path { stroke: var(--head); stroke-width: 2.5; opacity: .55; }
.rope .lamp {
  position: absolute; width: 11px; height: 15px; margin: -1px 0 0 -5px; border-radius: 50% 50% 50% 50% / 38% 38% 62% 62%;
  background: var(--yellow); opacity: .8; transition: box-shadow .5s ease, opacity .5s ease;
}
.rope .lamp:nth-of-type(3n+1) { background: var(--pink); }
.rope .lamp:nth-of-type(3n+2) { background: var(--mint); }
html[data-mode="night"] .rope .lamp { opacity: 1; box-shadow: 0 0 16px 5px currentColor; color: var(--yellow); animation: twinkle 2.4s ease-in-out infinite; }
.hang { flex: 1 1 0; min-width: 0; display: flex; justify-content: center; padding-top: var(--y); text-decoration: none; cursor: zoom-in; }
.hang .ph {
  position: relative; display: block; width: min(82%, 240px); margin-top: 12px; background: #fff; padding: 9px 9px 0; border-radius: 5px; box-shadow: var(--shadow);
  transform-origin: 50% -8px; rotate: var(--r); animation: sway var(--t) ease-in-out infinite alternate;
}
.hang.land .ph { width: min(92%, 330px); }
.hang img { width: 100%; height: auto; border-radius: 3px; }
.hang em { display: block; font-family: var(--hand); font-style: normal; font-weight: 700; font-size: 1.4rem; line-height: 1; color: #2b1763; text-align: center; padding: 9px 0 11px; }
.hang .pin { position: absolute; left: 50%; top: -20px; width: 13px; height: 34px; margin-left: -6px; border-radius: 4px; background: linear-gradient(#f0c477, #d99a45); box-shadow: inset 0 -12px 0 rgba(0,0,0,.1), 0 2px 4px rgba(0,0,0,.25); z-index: 2; }
.hang:hover .ph { animation: swing .9s ease-in-out 2; box-shadow: 0 24px 50px rgba(43, 23, 99, .3); z-index: 3; }
@keyframes sway { from { transform: rotate(-1.6deg); } to { transform: rotate(1.6deg); } }
@keyframes swing { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(7deg); } 75% { transform: rotate(-7deg); } }

/* путь к дому: шаги по извилистой линии */
.steps li:nth-child(even) { margin-top: 56px; }
.steps li::before { position: relative; z-index: 1; }

/* домик-маскот */
.mascot { width: 190px; height: auto; margin: 0 auto 18px; overflow: visible; animation: bob 3.2s ease-in-out infinite; filter: drop-shadow(0 0 34px rgba(255, 216, 54, .45)); }
.mascot .m-roof, .mascot .m-chim { fill: var(--accent); stroke: #fff; stroke-width: 5; stroke-linejoin: round; }
.mascot .m-body { fill: var(--yellow); stroke: #fff; stroke-width: 5; }
.mascot .m-eye circle:first-child { fill: #fff; stroke: #2b1763; stroke-width: 4; }
.mascot .m-pupil { fill: #2b1763; transition: transform .12s ease-out; }
.mascot .m-cheek { fill: var(--pink); opacity: .8; }
.mascot .m-smile { fill: none; stroke: #2b1763; stroke-width: 5; stroke-linecap: round; }
.final:hover .mascot { animation-duration: 1s; }
@keyframes bob { 50% { transform: translateY(-9px) rotate(-2deg); } }

@media (max-width: 980px) {
  .steps li:nth-child(even) { margin-top: 0; }
  .steps::before { display: none; }
}
@media (max-width: 760px) {
  /* на телефоне верёвка листается вбок */
  .rope { overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -20px; padding: 8px 0 6px; scrollbar-width: none; }
  .rope::-webkit-scrollbar { display: none; }
  .track { width: calc(var(--n) * 64vw); padding-inline: 0; }
  .hang { scroll-snap-align: center; }
  .hang .ph, .hang.land .ph { width: 86%; }
  .hang em { font-size: 1.25rem; }
  .facts ul { gap: 12px 14px; }
  .st-burst > div { width: 158px; height: 158px; padding: 24px; }
  .st-circle > div { width: 146px; height: 146px; padding: 16px; }
  .st-pill > div, .st-ticket > div { padding: 16px 26px; max-width: 220px; }
  .st b { font-size: 1.1rem; }
  .st span { font-size: .8rem; }
  .mascot { width: 150px; }
}

/* ================= Приёмы из fun-лендингов ================= */

/* парящие объекты */
.floaties { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.fl {
  position: absolute; font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: 1; filter: drop-shadow(0 8px 10px rgba(43, 23, 99, .25));
  translate: var(--px, 0) var(--py, 0); rotate: var(--r); animation: drift 7s ease-in-out infinite alternate; transition: translate .25s ease-out;
}
.fl:nth-child(2n) { animation-duration: 9s; animation-direction: alternate-reverse; }
@keyframes drift { to { transform: translateY(-18px) rotate(10deg); } }

/* манифест: крупный текст с вставками */
.manifest { padding: clamp(56px, 8vw, 110px) 0 0; }
.manifest p { font-weight: 900; font-size: clamp(1.6rem, 3.6vw, 3.1rem); line-height: 1.5; text-align: center; max-width: 24ch; margin-inline: auto; color: var(--head); text-wrap: balance; max-width: 1100px; }
.chip-ph {
  display: inline-block; width: 1.5em; height: 1.5em; object-fit: cover; border-radius: 50%; vertical-align: -0.38em; margin: 0 .08em;
  border: 4px solid var(--yellow); box-shadow: var(--shadow-sm); transition: transform .3s cubic-bezier(.3,1.6,.5,1), border-radius .3s ease;
}
.chip-ph:nth-of-type(2) { border-color: var(--pink); border-radius: 30%; rotate: 6deg; }
.chip-ph:nth-of-type(3) { border-color: var(--accent); border-radius: 46% 54% 40% 60% / 55% 42% 58% 45%; rotate: -5deg; }
.chip-ph:hover { transform: scale(2.6) rotate(-4deg); border-radius: 16px; position: relative; z-index: 5; }
.manifest .emo { display: inline-block; transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.manifest .emo:hover { transform: scale(1.6) rotate(-14deg); }
.manifest mark { background: var(--yellow); color: var(--on-yellow); padding: 0 .2em; border-radius: .2em; display: inline-block; rotate: -2deg; }

/* гигантское название в подвале */
.giant { display: flex; justify-content: center; gap: .02em; margin-top: 34px; font-weight: 900; font-size: clamp(2.2rem, 10.6vw, 12.5rem); line-height: .9; letter-spacing: -.02em; white-space: nowrap; user-select: none; }
.giant i { font-style: normal; display: inline-block; color: var(--yellow); transition: transform .35s cubic-bezier(.3,1.8,.5,1), color .3s ease; transform-origin: bottom center; }
.giant i.sp { width: .28em; flex: none; }
.giant i:hover { transform: translateY(-.14em) rotate(-7deg) scale(1.06); color: #fff; }

@media (max-width: 980px) {
  .fl:nth-child(1), .fl:nth-child(3) { display: none; }
  .fl { font-size: 2rem; }
}
@media (max-width: 640px) {
  .manifest p { line-height: 1.6; }
  .fl:nth-child(4) { left: 86% !important; top: 40% !important; }
  .fl:nth-child(5) { display: none; }
}

/* мини-игра */
.game-box { position: relative; margin-top: 32px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: background-color .5s ease; }
.game-hud { display: flex; justify-content: space-between; padding: 14px 22px 0; font-weight: 800; color: var(--muted); }
.game-hud b { color: var(--accent); font-weight: 900; }
#game:focus:not(:focus-visible) { outline: none; }
#game { display: block; width: 100%; height: 230px; cursor: pointer; touch-action: manipulation; outline-offset: -4px; }
.game-msg { position: absolute; inset: 44px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 0 20px 26px; background: color-mix(in srgb, var(--surface) 78%, transparent); cursor: pointer; }
.game-msg[hidden] { display: none; }
.game-msg b { font-weight: 900; font-size: clamp(1.1rem, 2.4vw, 1.5rem); color: var(--head); max-width: 30ch; }
.game-msg span { color: var(--muted); font-size: .98rem; }
.game-msg .btn { margin-top: 6px; }
