/* Стили оформления «balloons» — ktodarit.ru. Общие — /t/core.css. */
:is(.th-balloons, .th-space, .th-dino, .th-castle, .th-pirates, .th-heroes, .th-circus, .th-forest) { font-family: "Nunito", "Manrope", sans-serif; }
:is(.th-balloons, .th-space, .th-dino, .th-castle, .th-pirates, .th-heroes, .th-circus, .th-forest) .tt { --tt-l: 2; }
:is(.th-balloons, .th-space, .th-dino, .th-castle, .th-pirates, .th-heroes, .th-circus, .th-forest) .ph:has(.gift-img) { display: block; overflow: hidden; }
:is(.th-balloons, .th-space, .th-dino, .th-castle, .th-pirates, .th-heroes, .th-circus, .th-forest) .sec-sub { text-align: center; max-width: 580px; margin: 0 auto 40px; padding: 0 20px; font-size: 17px; line-height: 1.45; font-weight: 700; }
:is(.th-balloons, .th-space, .th-dino, .th-castle, .th-pirates, .th-heroes, .th-circus, .th-forest) .greet { max-width: 560px; margin: 18px auto 0; font-size: 19px; line-height: 1.5; font-weight: 700; white-space: pre-line; }
.th-balloons { --ink: #33305e; background: linear-gradient(#bfe6ff, #e8f6ff 60%, #fff5fb); color: var(--ink); }
.th-balloons .hero { position: relative; min-height: 88vh; display: grid; place-items: center; text-align: center; padding: 60px 20px 80px; overflow: hidden; }
.th-balloons .cloud { position: absolute; width: 160px; height: 50px; background: #fff; border-radius: 50px; opacity: .9; }
.th-balloons .cloud::before, .th-balloons .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.th-balloons .cloud::before { width: 70px; height: 70px; left: 24px; top: -34px; }
.th-balloons .cloud::after { width: 54px; height: 54px; left: 80px; top: -22px; }
.th-balloons .c1 { top: 14%; left: 6%; animation: kb-drift 30s linear infinite alternate; }
.th-balloons .c2 { top: 30%; right: 8%; transform: scale(.8); animation: kb-drift 24s linear infinite alternate-reverse; }
.th-balloons .c3 { bottom: 18%; left: 20%; transform: scale(.6); }
.th-balloons .fly { position: absolute; inset: 0; -webkit-mask: linear-gradient(to top, transparent, #000 18%); mask: linear-gradient(to top, transparent, #000 18%); }
.th-balloons .fly i { position: absolute; bottom: -160px; left: var(--x); width: calc(70px * var(--s)); height: calc(84px * var(--s)); border-radius: 50% 50% 47% 53% / 56% 56% 44% 44%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .75), transparent 22%), var(--c); animation: kb-up var(--d) linear infinite; animation-delay: var(--dl); opacity: .5; }
.th-balloons .fly i::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1.5px; height: 70px; background: rgba(51, 48, 94, .35); }
@keyframes kb-up { to { transform: translateY(calc(-100vh - 260px)) rotate(8deg); } }
.th-balloons .in { position: relative; z-index: 2; }
.th-balloons .pre { margin: 0; font-size: clamp(20px, 3vw, 28px); font-weight: 900; color: #ff5d8f; }
.th-balloons h1 { margin: 6px 0 0; font: 900 calc(clamp(70px, 15vw, 180px) * var(--k, 1))/1 "Nunito", sans-serif; letter-spacing: -.02em; overflow-wrap: anywhere; text-shadow: 0 6px 0 rgba(51, 48, 94, .12); }
.th-balloons h1 span { display: inline-block; animation: kb-bounce 2.4s ease-in-out infinite; }
.th-balloons h1 span:nth-child(2n) { animation-delay: -.6s; }
.th-balloons h1 span:nth-child(3n) { animation-delay: -1.2s; }
.th-balloons .date { display: inline-block; margin: 14px 0 0; padding: 8px 20px; background: #fff; border-radius: 999px; font-size: 22px; font-weight: 900; box-shadow: 0 6px 0 rgba(51, 48, 94, .1); }
.th-balloons .cd { margin: 20px 0 0; font-size: 22px; font-weight: 900; color: #3ec1d3; }
.th-balloons .sec { text-align: center; margin: 40px 0 8px; font: 900 clamp(36px, 6vw, 60px) "Nunito", sans-serif; color: #ff5d8f; }
.th-balloons .bals { max-width: 1120px; margin: 0 auto; padding: 0 20px 70px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 40px 24px; }
.th-balloons .bc { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.th-balloons .ball { position: relative; width: 168px; height: 196px; border-radius: 50% 50% 47% 53% / 56% 56% 44% 44%; display: grid; place-items: center; transition: transform .8s cubic-bezier(.3, 1.4, .5, 1), opacity .8s;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .8), transparent 20%), radial-gradient(circle at 70% 80%, rgba(0, 0, 0, .12), transparent 45%), var(--c); animation: kb-bob 3s ease-in-out infinite; }
.th-balloons .bc:nth-child(2n) .ball { animation-delay: -1.5s; }
@keyframes kb-bob { 50% { translate: 0 -8px; } }
.th-balloons .knot { position: absolute; bottom: -10px; left: 50%; margin-left: -9px; border: 9px solid transparent; border-bottom: 12px solid var(--c); transform: rotate(180deg); }
.th-balloons .string { width: 2px; height: 34px; background: rgba(51, 48, 94, .35); margin-top: 8px; }
.th-balloons .ph { width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; font-size: 56px; background: rgba(255, 255, 255, .92); }
.th-balloons .ph .gift-img { border-radius: 50%; padding: 12%; }
.th-balloons h3 { margin: 6px 0 0; width: 100%; font: 900 19px/1.25 "Nunito", sans-serif; overflow-wrap: anywhere; }
.th-balloons .pr { margin: 6px 0 12px; font-weight: 800; color: #7a77a8; }
.th-balloons .btn { margin-top: auto; border: 0; background: var(--c); color: #fff; font: 900 17px "Nunito", sans-serif; padding: 12px 26px; border-radius: 999px; box-shadow: 0 5px 0 rgba(51, 48, 94, .25); text-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.th-balloons .btn:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(51, 48, 94, .25); }
.th-balloons .taken .ball { transform: translateY(-26px) scale(.86); opacity: .45; animation: none; }
.th-balloons .taken .string { opacity: .3; }
.th-balloons .taken .btn { background: #c9c7e0; }
.th-balloons .flew { display: none; position: absolute; top: 70px; left: 50%; transform: translateX(-50%) rotate(-6deg); white-space: nowrap; padding: 6px 14px; border-radius: 999px; background: #fff; color: var(--c); font-weight: 900; box-shadow: 0 4px 12px rgba(51, 48, 94, .2); }
.th-balloons .taken .flew { display: block; animation: kb-pop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes kb-pop { from { transform: translateX(-50%) rotate(-6deg) scale(.3); opacity: 0; } }
.th-balloons footer:not(.ktd-foot) { text-align: center; padding: 10px 16px 36px; font-size: 22px; font-weight: 900; color: #a685e2; }
@media (max-width: 640px) {
  .th-balloons .hero, .th-dino .hero { min-height: 0; padding-top: 70px; padding-bottom: 90px; }
}
