/* =========================================================
   KAKOFIND — MASKOTKI + REDESIGN HERO + BAND DISCORD
   Streetwearowe naklejki (czerwień/czerń/biel) wplecione w sekcje.
   Wszystkie ruchy na transform/opacity → płynnie, bez repaintów.
   ========================================================= */

/* ===================== HERO 2-KOLUMNY ===================== */
.kako-hero {
    height: auto;
    min-height: min(88vh, 820px);
    margin-top: 0;
    padding: clamp(96px, 10vw, 140px) 0 clamp(40px, 5vw, 70px);
}
.kako-hero__container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: clamp(20px, 4vw, 64px);
    width: 90vw;
    max-width: 1400px;
    text-align: left;
}
.kako-hero__copy {
    flex: 1 1 54%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    min-width: 0;
}
.kako-hero__title {
    font-size: clamp(2.7rem, 5.1vw, 5.1rem);
    text-align: left;
    margin: 0 0 1.2rem;
    letter-spacing: -1px;
}
.kako-hero__description {
    font-size: clamp(.95rem, 1.15vw, 1.15rem);
    max-width: 46ch;
    min-height: 3.4em;
    margin: 0 0 2rem;
    text-align: left;
}
.kako-actions { justify-content: flex-start; margin-bottom: 2.4rem; gap: 14px; flex-wrap: wrap; }
.kako-btn { padding: 14px 22px; font-size: .92rem; border-radius: 13px; }
.kako-btn__icon { width: 19px; height: 19px; }
.kako-stats { gap: 0; }

/* --- prawa kolumna: maskotka na cokole + bąbelki ikon --- */
.kako-hero__art {
    flex: 1 1 40%;
    position: relative;
    display: grid;
    place-items: center;
    align-self: center;
    min-height: 440px;
}
.kako-hero__mascot {
    position: relative;
    z-index: 2;
    width: clamp(260px, 30vw, 430px);
    height: auto;
    filter: drop-shadow(0 30px 45px rgba(0, 0, 0, .6));
    animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-16px) rotate(-1deg); }
}
/* poświata za maskotką */
.kako-hero__halo {
    position: absolute; z-index: 0;
    width: 78%; aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230, 0, 0, .34) 0%, rgba(230, 0, 0, .08) 42%, transparent 66%);
    filter: blur(8px);
    animation: heroHalo 5s ease-in-out infinite;
}
@keyframes heroHalo {
    0%, 100% { opacity: .8; transform: scale(1); }
    50%      { opacity: 1;  transform: scale(1.06); }
}
/* obracający się pierścień */
.kako-hero__ring {
    position: absolute; z-index: 1;
    width: 70%; aspect-ratio: 1;
    border-radius: 50%;
    border: 1px dashed rgba(255, 26, 26, .28);
    animation: heroSpin 26s linear infinite;
}
.kako-hero__ring::after {
    content: ""; position: absolute; top: -4px; left: 50%;
    width: 7px; height: 7px; border-radius: 50%;
    background: #FF1A1A; box-shadow: 0 0 12px #FF1A1A; transform: translateX(-50%);
}
@keyframes heroSpin { to { transform: rotate(360deg); } }
/* cień-cokół pod nogami */
.kako-hero__pedestal {
    position: absolute; z-index: 1; bottom: 7%;
    width: 46%; height: 26px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,.6), transparent 70%);
    filter: blur(5px);
}

/* bąbelki z ikonami kategorii */
.hero-bubble {
    position: absolute; z-index: 3;
    display: grid; place-items: center;
    width: 58px; height: 58px;
    border-radius: 16px;
    background: rgba(18, 8, 8, .72);
    border: 1px solid rgba(255, 26, 26, .25);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .5);
    backdrop-filter: blur(6px);
    animation: bubbleFloat 5s ease-in-out infinite;
}
.hero-bubble img { width: 34px; height: 34px; object-fit: contain; }
.hero-bubble--a { top: 8%;  left: 2%;  animation-delay: 0s;   }
.hero-bubble--b { top: 26%; right: 0%; animation-delay: .8s;  }
.hero-bubble--c { bottom: 22%; left: -2%; animation-delay: 1.6s; }
.hero-bubble--d { bottom: 6%; right: 6%; animation-delay: 2.4s; }
@keyframes bubbleFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

/* ===================== MASKOTKI SEKCYJNE ===================== */
.index-products-preview,
.oszacuj-pake-minimal { position: relative; overflow: hidden; }
.preview-container,
.op-minimal__container,
.porownywarka-hero__container,
.teaser-container,
.partner-teaser__container { position: relative; z-index: 2; }

.sec-mascot {
    position: absolute;
    z-index: 1;
    height: auto;
    pointer-events: none;
    object-fit: contain;
    filter: drop-shadow(0 22px 32px rgba(0, 0, 0, .55));
    opacity: .97;
    animation: secFloat 6.5s ease-in-out infinite;
}
@keyframes secFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-13px) rotate(1deg); }
}

/* podgląd produktów — niosący torby, dół-lewo */
.sec-mascot--stack { width: clamp(120px, 13vw, 188px); left: 1%; bottom: 0; animation-delay: .3s; }

/* porównywarka — z kalkulatorem, przy wizualizacji */
.porownywarka-hero__visual { position: relative; }
.sec-mascot--analyze { width: clamp(110px, 12vw, 170px); left: -10%; bottom: -4%; z-index: 1; animation-delay: .6s; }

/* AI waga — trzyma tablicę, dół-prawo */
.sec-mascot--glow { width: clamp(110px, 12vw, 168px); right: 2%; bottom: -2%; animation-delay: 1s; }

/* konwerter — z trybikiem, dół-lewo */
.link-konwerter { position: relative; overflow: hidden; }
.sec-mascot--gears { width: clamp(110px, 12vw, 172px); left: 1%; bottom: 0; opacity: .9; animation-delay: 1.3s; }

/* partnerstwo — przytula serce, obok karty */
.partner-teaser__visual { position: relative; }
.sec-mascot--heart { width: clamp(110px, 12vw, 165px); left: -14%; bottom: -6%; z-index: 1; animation-delay: .4s; }

/* oficjalny arkusz — siedząca maskotka z boku */
.arkusz-main-section { position: relative; overflow: hidden; }
.arkusz-main-note-card { position: relative; z-index: 2; }
.sec-mascot--sit { width: clamp(86px, 9vw, 128px); left: 1.5%; bottom: -6px; z-index: 1; opacity: .92; animation-delay: .9s; }
@media (max-width: 1150px) { .sec-mascot--sit { opacity: .4; } }

/* ===================== HUB (Poradniki / FAQ) ===================== */
.hub-card { position: relative; overflow: hidden; }
.hub-mascot {
    position: absolute;
    right: -18px; bottom: -10px;
    width: clamp(90px, 9vw, 128px);
    height: auto;
    opacity: .22;
    pointer-events: none;
    filter: grayscale(.1);
    transition: opacity .4s ease, transform .4s cubic-bezier(.2,.8,.2,1);
    z-index: 1;
}
.hub-card .card-content, .hub-card .card-icon-box { position: relative; z-index: 2; }
.hub-card:hover .hub-mascot { opacity: .85; transform: translateY(-6px) rotate(-2deg); }

/* ===================== CAT-RAIL: maskotka „search" ===================== */
.catnav__seek {
    position: absolute;
    left: 0; bottom: 8px;
    width: clamp(80px, 8vw, 120px);
    height: auto;
    opacity: .95;
    pointer-events: none;
    /* spójnie z maskotką nagłówka: neonowa czerwona poświata + cień */
    filter:
        drop-shadow(0 0 11px rgba(255, 42, 42, .4))
        drop-shadow(0 14px 22px rgba(0, 0, 0, .55));
    animation: catSeekIdle 7s ease-in-out infinite;
    transform-origin: bottom center;
    z-index: 0;
}
@keyframes catSeekIdle {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    50%      { transform: translateY(-10px) rotate(-1.5deg) scale(1.025); }
}

/* ===================== BAND DISCORD ===================== */
.dc-band {
    position: relative;
    overflow: hidden;
    padding: clamp(50px, 7vw, 96px) 0;
    background:
        radial-gradient(ellipse 50% 80% at 12% 50%, rgba(88, 101, 242, .14), transparent 60%),
        radial-gradient(ellipse 50% 80% at 88% 50%, rgba(230, 0, 0, .12), transparent 60%),
        linear-gradient(180deg, #070303, #0a0408);
    border-top: 1px solid rgba(255, 255, 255, .05);
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    display: flex;
    justify-content: center;
}
.dc-band__glow {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 120%, rgba(88, 101, 242, .15), transparent 55%);
    pointer-events: none;
}
.dc-band__grid {
    position: absolute; inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.05) 1px, transparent 0);
    background-size: 30px 30px;
    -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, #000 30%, transparent 75%);
    opacity: .5; pointer-events: none;
}
.dc-band__content {
    position: relative; z-index: 3;
    width: 90%; max-width: 720px;
    text-align: center;
    display: flex; flex-direction: column; align-items: center;
}
.dc-band__badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 15px; border-radius: 30px;
    background: rgba(88, 101, 242, .14);
    border: 1px solid rgba(88, 101, 242, .4);
    color: #aab4ff; font-size: .74rem; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
    margin-bottom: 1.1rem;
}
.dc-band__title {
    font-size: clamp(1.7rem, 3.6vw, 3rem);
    font-weight: 800; color: #fff; line-height: 1.1;
    margin: 0 0 1rem; letter-spacing: -.5px;
}
.dc-band__title .text-red { color: #FF1A1A; }
.dc-band__desc {
    color: #a9a9b6; font-size: clamp(.92rem, 1.1vw, 1.06rem);
    line-height: 1.65; margin: 0 0 1.9rem; max-width: 560px;
}
.dc-band__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; }
.dc-band__btn {
    display: inline-flex; align-items: center; gap: 11px;
    padding: 15px 30px; border-radius: 14px;
    background: linear-gradient(135deg, #5865F2, #4752c4);
    color: #fff; font-weight: 700; font-size: 1rem; text-decoration: none;
    box-shadow: 0 14px 34px rgba(88, 101, 242, .4);
    transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease;
}
.dc-band__btn i { font-size: 1.2rem; }
.dc-band__btn:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 20px 44px rgba(88, 101, 242, .55); }
.dc-band__btn:hover i { animation: dcWiggle .5s ease-in-out infinite; }
@keyframes dcWiggle { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
.dc-band__stat { color: #c9c9d4; font-size: .92rem; }
.dc-band__stat strong { color: #fff; font-size: 1.18rem; font-weight: 800; }

.dc-band__mascot {
    position: absolute; bottom: 0; z-index: 2;
    height: auto; pointer-events: none;
    filter: drop-shadow(0 24px 34px rgba(0, 0, 0, .55));
    animation: secFloat 6s ease-in-out infinite;
}
.dc-band__mascot--headset { left: 3%; width: clamp(140px, 16vw, 232px); animation-delay: .2s; }
.dc-band__mascot--wave    { right: 3%; width: clamp(130px, 15vw, 212px); animation-delay: 1.1s; }

/* ===================== RWD ===================== */
@media (max-width: 1180px) {
    .dc-band__mascot--headset { width: 150px; left: 0; opacity: .65; }
    .dc-band__mascot--wave { width: 140px; right: 0; opacity: .65; }
}
@media (max-width: 980px) {
    /* hero → kolumna; maskotka mniejsza, bez bąbelków */
    .kako-hero__container { flex-direction: column; text-align: center; }
    .kako-hero__copy { align-items: center; text-align: center; flex: none; }
    .kako-hero__title { text-align: center; }
    .kako-hero__description { text-align: center; max-width: 90%; margin-left: auto; margin-right: auto; }
    .kako-actions { justify-content: center; }
    .kako-hero__art { flex: none; min-height: 300px; width: 100%; margin-top: 18px; order: 3; }
    .kako-hero__mascot { width: clamp(200px, 48vw, 280px); }
    .hero-bubble { display: none; }

    /* maskotki sekcyjne — zejdź z drogi treści */
    .sec-mascot--analyze, .sec-mascot--heart { opacity: .5; }
}
@media (max-width: 760px) {
    .sec-mascot, .catnav__seek { display: none; }   /* czyściej na telefonie */
    .dc-band__mascot { display: none; }
    .dc-band__content { max-width: 100%; }
    .hub-mascot { opacity: .5; width: 96px; }
}

@media (prefers-reduced-motion: reduce) {
    .kako-hero__mascot, .kako-hero__halo, .kako-hero__ring, .hero-bubble,
    .sec-mascot, .catnav__seek, .dc-band__mascot { animation: none !important; }
}
