/* ---------- кейс Bambala (поверх case.css) ---------- */
.bmb { --b: #5c9ce6; --bd: #1976d2; --h: #d66b7e; --hl: #f6a9b8; }
.bmb .grad-warm { background: linear-gradient(100deg, #7cc4ff, #5c9ce6 40%, #f08aa0 75%, #d66b7e); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 30px rgba(214,107,126,.35)); }
.bmb-logo { display: flex; width: fit-content; align-items: center; gap: 14px; margin-bottom: 22px; }
.bmb-logo img { width: 64px; height: 64px; border-radius: 18px; background: #fff; padding: 4px; box-shadow: 0 0 40px -8px rgba(214,107,126,.7); }
.bmb-logo span { font: 600 12px var(--f-mono); letter-spacing: .2em; color: var(--hl); }
.btn--warm { background: linear-gradient(100deg, #5c9ce6, #d66b7e); color: #fff; box-shadow: 0 10px 40px -10px rgba(214,107,126,.9); }
.btn--warm:hover { box-shadow: 0 14px 50px -8px rgba(92,156,230,.9); }
.free { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font: 500 13px var(--f-mono); color: var(--muted); }
.free b { color: #8ff0b0; font-weight: 600; }

/* телефоны Bambala — светлый интерфейс приложения */
.bphone .phone__screen { background: #f5f7fa; color: #1a1a2e; }
.b-top { padding: 36px 14px 10px; background: #fff; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #edf0f5; }
.b-top b { font: 800 16px var(--f-display); background: linear-gradient(90deg, #5c9ce6, #d66b7e); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.02em; }
.b-top i { font-style: normal; font-size: 14px; }
.b-body { flex: 1; padding: 10px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; min-height: 0; }
.b-body > * { flex: none; }
.stories { display: flex; gap: 8px; }
.story { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 8.5px; color: #4a4a5a; }
.story i { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 20px; background: #fff; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ring, #5c9ce6); }
.post { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(26,26,46,.06); }
.post__head { display: flex; gap: 8px; align-items: center; padding: 9px 10px; }
.post__head i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 14px; background: #e1f5fe; }
.post__head b { font-size: 10.5px; display: block; }
.post__head small { font-size: 9px; color: #8a90a2; }
.post__img { height: 120px; display: grid; place-items: center; font-size: 46px; background: linear-gradient(160deg, #b3e5fc, #90caf9 45%, #f6c1cc); }
.post__img--b { background: linear-gradient(160deg, #ffe0b2, #ffcc80 40%, #a5d6a7); }
.post__txt { padding: 8px 10px 4px; font-size: 10.5px; }
.post__act { display: flex; gap: 12px; padding: 4px 10px 9px; font-size: 10px; color: #6b7280; }
.post__act span:first-child { color: var(--h); font-weight: 700; }
.b-menu { display: flex; justify-content: space-around; padding: 8px 6px 13px; background: #fff; border-top: 1px solid #edf0f5; font-size: 8.5px; color: #9aa1b2; }
.b-menu span { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.b-menu span i { font-style: normal; font-size: 14px; filter: grayscale(1); opacity: .7; }
.b-menu span.on { color: var(--b); font-weight: 700; }
.b-menu span.on i { filter: none; opacity: 1; }

/* приглашение */
.inv { --t1: #f7d9e0; --t2: #fff6f8; --ta: #d66b7e; flex: 1; display: flex; flex-direction: column; overflow: hidden; background: linear-gradient(180deg, var(--t1), var(--t2) 55%); transition: background .5s; }
.inv__hero { padding: 40px 14px 12px; text-align: center; }
.inv__emoji { font-size: 40px; line-height: 1; display: block; margin-bottom: 6px; transition: transform .4s; }
.inv__kind { font: 600 9px var(--f-mono); letter-spacing: .2em; color: var(--ta); text-transform: uppercase; transition: color .5s; }
.inv__title { font: 800 17px/1.15 var(--f-display); margin-top: 4px; color: #1a1a2e; }
.inv__when { font-size: 10px; color: #4a4a5a; margin-top: 4px; }
.inv__chips { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; padding: 0 12px; }
.inv__chips span { font-size: 9px; padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,.85); color: #4a4a5a; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.inv__guests { margin: 10px 12px 0; background: rgba(255,255,255,.9); border-radius: 12px; padding: 9px 10px; font-size: 10px; }
.inv__guests b { display: block; margin-bottom: 5px; }
.inv__ava { display: flex; }
.inv__ava i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; background: #fff; box-shadow: 0 0 0 2px #fff; margin-right: -6px; }
.inv__ava em { font-style: normal; margin-left: 12px; align-self: center; color: #5a9f68; font-weight: 700; font-size: 9.5px; }
.inv__count { margin: 8px 12px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.inv__count div { background: rgba(255,255,255,.9); border-radius: 10px; padding: 7px 4px; text-align: center; }
.inv__count b { display: block; font: 800 15px var(--f-display); color: var(--ta); transition: color .5s; }
.inv__count small { font-size: 8.5px; color: #6b7280; }
.inv__plan { margin: 8px 12px 0; background: rgba(255,255,255,.9); border-radius: 12px; padding: 8px 10px; font-size: 9.5px; display: grid; gap: 4px; }
.inv__plan b { font-size: 10px; }
.inv__plan div { display: flex; gap: 8px; }
.inv__plan em { font-style: normal; font-weight: 700; color: var(--ta); min-width: 32px; transition: color .5s; }
.rsvp { margin-top: auto; padding: 10px 12px 14px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.rsvp span { text-align: center; padding: 9px 2px; border-radius: 10px; font-weight: 700; font-size: 9.5px; background: #fff; color: #4a4a5a; }
.rsvp span:first-child { background: var(--ta); color: #fff; transition: background .5s; }

/* в гости */
.host__img { height: 150px; display: grid; place-items: center; font-size: 56px; background: linear-gradient(180deg, #b3e5fc, #c8e6c9 60%, #a5d6a7); position: relative; }
.host__img small { position: absolute; left: 10px; bottom: 8px; font-size: 9px; background: rgba(255,255,255,.9); padding: 3px 8px; border-radius: 999px; }
.host { background: #fff; border-radius: 14px; padding: 10px; box-shadow: 0 2px 10px rgba(26,26,46,.06); }
.host b { font-size: 12px; display: block; }
.host small { color: #8a90a2; font-size: 9.5px; }
.host__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.host__tags span { font-size: 9px; padding: 3px 7px; border-radius: 6px; background: #eef2f6; }
.stars { color: #d4a64a; font-size: 10px; margin-top: 6px; }
.stars em { font-style: normal; color: #8a90a2; margin-left: 4px; }
.b-cta { margin-top: auto; border-radius: 12px; padding: 11px; text-align: center; color: #fff; font-weight: 700; font-size: 11.5px; background: linear-gradient(100deg, #5c9ce6, #d66b7e); }

/* «одна семья — один аккаунт» */
.fam { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.fam p { color: #c6cbea; font-size: 18px; }
.fam p + p { margin-top: 14px; }
.fam-orbit { position: relative; aspect-ratio: 1; max-width: 460px; margin: 0 auto; width: 100%; }
.fam-orbit__ring { position: absolute; inset: 8%; border-radius: 50%; border: 1px dashed rgba(214,107,126,.35); animation: spin 40s linear infinite; }
.fam-orbit__ring--2 { inset: 22%; border-color: rgba(92,156,230,.35); animation-duration: 28s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.fam-orbit__core { position: absolute; inset: 35%; border-radius: 50%; display: grid; place-items: center; text-align: center; background: radial-gradient(circle, rgba(214,107,126,.35), rgba(92,156,230,.15) 70%); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 0 80px -10px rgba(214,107,126,.6); }
.fam-orbit__core b { font: 800 clamp(14px, 2vw, 18px) var(--f-display); display: block; }
.fam-orbit__core small { font: 11px var(--f-mono); color: var(--muted); }
.member { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; color: #c6cbea; }
.member i { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 28px; background: var(--panel); border: 1px solid var(--line-strong); backdrop-filter: blur(10px); box-shadow: 0 0 24px -6px var(--c, #5c9ce6); }
.member em { white-space: nowrap; font-style: normal; font: 600 10px var(--f-mono); color: var(--c, #5c9ce6); letter-spacing: .1em; }

/* конструктор приглашений */
.maker { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.maker p { color: #c6cbea; font-size: 18px; }
.kinds { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.kind { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.03); color: var(--text); font: 600 14px var(--f-body); cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.kind i { font-style: normal; font-size: 18px; }
.kind:hover { border-color: var(--text); transform: translateY(-2px); }
.kind[aria-pressed="true"] { border-color: var(--hl); background: rgba(214,107,126,.14); }
.extras { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.extras span { font: 500 13px var(--f-mono); padding: 7px 12px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: #c6cbea; }
.maker__stage { display: flex; justify-content: center; height: 580px; }
.maker__stage .phone { position: relative; left: auto; top: auto; transform: none; }

/* дерево */
.tree { padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; --accent: #8ff0b0; }
.tree h3 { font-size: clamp(22px, 3vw, 32px); margin-bottom: 14px; }
.tree p { color: #c6cbea; font-size: 17px; }
.tree svg { width: 100%; height: auto; }

@media (max-width: 1040px) {
  .fam, .maker, .tree { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .maker__stage { height: 500px; }
  .member i { width: 46px; height: 46px; font-size: 22px; }
  .member { font-size: 11px; }
  .inv__plan { display: none; }
  .inv__hero { padding-top: 34px; }
}
