/* AI SELEKCJONER — strona główna / wersja wizualna 3.0 (katalog główny)
 * Style odizolowane prefiksem .ais i #ai-selekcjoner.
 * Nie zmieniają obecnych Asystentów FW/FB ani głównego szablonu.
 */
#ai-selekcjoner {
    --ais-navy: #07132f;
    --ais-navy-2: #0a2045;
    --ais-blue: #175cff;
    --ais-blue-soft: #9bbdff;
    --ais-mint: #54dfb1;
    --ais-gold: #ffc947;
    --ais-ink: #102348;
    --ais-muted: #687891;
    --ais-border: #dee7f5;
    overflow: hidden;
    font-family: 'Open Sans', sans-serif;
}
#ai-selekcjoner * { box-sizing: border-box; }
#ai-selekcjoner h1,
#ai-selekcjoner h2,
#ai-selekcjoner h3 { font-family: 'Poppins', sans-serif; }

/* PRZYCISKI */
#ai-selekcjoner .ais-btn {
    min-height: 53px;
    padding: 13px 22px;
    border-radius: 12px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    font-size: .91rem;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
    position: relative;
}
#ai-selekcjoner .ais-btn-primary {
    color: #fff;
    background: linear-gradient(118deg, #175cff, #347bff);
    box-shadow: 0 10px 24px rgba(23,92,255,.25), inset 0 1px rgba(255,255,255,.17);
}
#ai-selekcjoner .ais-btn-primary:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 15px 32px rgba(23,92,255,.35);
}
#ai-selekcjoner .ais-btn-ghost {
    border-color: rgba(177,201,255,.39);
    color: #e5efff;
    background: rgba(255,255,255,.045);
}
#ai-selekcjoner .ais-btn-ghost:hover,
#ai-selekcjoner .ais-btn-outline-light:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,.13);
    color: #fff;
    border-color: rgba(255,255,255,.6);
}
#ai-selekcjoner .ais-btn-outline-light { color: #fff; border-color: rgba(255,255,255,.26); background: transparent; }
#ai-selekcjoner .ais-btn-arrow { font-size: .8rem; }

/* HERO */
#ai-selekcjoner .ais-hero {
    position: relative;
    isolation: isolate;
    padding: 167px 0 117px;
    background:
        radial-gradient(ellipse 57% 57% at 80% 30%, rgba(30,93,215,.19), transparent 70%),
        linear-gradient(135deg, #07132f 0%, #08193b 55%, #091a37 100%);
    color: #fff;
}
#ai-selekcjoner .ais-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .55;
    background-image: radial-gradient(rgba(125,158,230,.27) 1px, transparent 1px);
    background-size: 21px 21px;
    mask-image: linear-gradient(125deg, transparent 30%, black 100%);
    pointer-events: none;
}
#ai-selekcjoner .ais-hero-glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(92px); pointer-events: none; }
#ai-selekcjoner .ais-hero-glow-one { width: 410px; height: 410px; left: -230px; top: 130px; background: rgba(26,102,230,.19); }
#ai-selekcjoner .ais-hero-glow-two { width: 380px; height: 380px; right: -180px; bottom: 5px; background: rgba(54,163,154,.12); }
#ai-selekcjoner .ais-hero-bottomline { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(129,173,255,.46), transparent); }
#ai-selekcjoner .ais-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: #ffc947; font-size: .73rem; font-weight: 800; letter-spacing: .105em; margin-bottom: 28px; }
#ai-selekcjoner .ais-eyebrow-symbol { display: inline-flex; width: 27px; height: 27px; border-radius: 8px; align-items: center; justify-content: center; background: rgba(255,201,71,.11); color: #ffc947; }
#ai-selekcjoner .ais-eyebrow-divider { width: 1px; height: 13px; margin: 0 2px; background: rgba(255,255,255,.3); }
#ai-selekcjoner .ais-hero-title { max-width: 670px; margin: 0 0 25px; color: #fff; font-size: clamp(2.2rem, 3.55vw, 3.45rem); line-height: 1.19; font-weight: 750; letter-spacing: -.04em; }
#ai-selekcjoner .ais-hero-title span { color: #92b9ff; }
#ai-selekcjoner .ais-hero-lead { max-width: 590px; color: rgba(235,244,255,.76); font-size: 1.03rem; line-height: 1.83; margin: 0 0 30px; }
#ai-selekcjoner .ais-hero-lead strong { color: #fff; font-weight: 700; }
#ai-selekcjoner .ais-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; }
#ai-selekcjoner .ais-hero-footnote { display: flex; flex-wrap: wrap; gap: 12px 23px; margin-top: 28px; color: rgba(231,242,255,.63); font-size: .76rem; line-height: 1.5; }
#ai-selekcjoner .ais-hero-footnote i { color: #54dfb1; margin-right: 7px; }

/* WIZUALIZACJA — połączone biblioteki */
#ai-selekcjoner .ais-visual { max-width: 610px; margin: 0 auto; border: 1px solid rgba(142,186,255,.24); border-radius: 24px; overflow: hidden; background: linear-gradient(147deg, rgba(24,53,109,.89), rgba(7,26,62,.95)); box-shadow: 0 40px 90px rgba(0,0,0,.28), 0 0 0 8px rgba(97,148,255,.035); }
#ai-selekcjoner .ais-visual-topline { height: 48px; padding: 0 19px; border-bottom: 1px solid rgba(255,255,255,.09); display: flex; align-items: center; justify-content: space-between; gap: 10px; color: rgba(230,241,255,.77); font-size: .72rem; font-weight: 700; }
#ai-selekcjoner .ais-visual-topline .fa-sparkles { color: #ffc947; }
#ai-selekcjoner .ais-visual-top-dots { display: flex; gap: 6px; }
#ai-selekcjoner .ais-visual-top-dots i { width: 7px; height: 7px; border-radius: 50%; background: #6984ad; }
#ai-selekcjoner .ais-visual-top-dots i:first-child { background: #ffc947; }
#ai-selekcjoner .ais-visual-ellipsis { color: #708bb1; }
#ai-selekcjoner .ais-visual-question { margin: 23px 23px 0; padding: 20px 21px; border: 1px solid rgba(123,170,255,.27); border-radius: 15px; background: rgba(98,147,255,.10); }
#ai-selekcjoner .ais-visual-question-label { font-size: .67rem; font-weight: 800; color: #8cb4ff; letter-spacing: .09em; margin-bottom: 8px; }
#ai-selekcjoner .ais-visual-question > strong { display: block; color: #fff; font-size: .96rem; line-height: 1.55; font-weight: 700; }
/* Jedna pionowa linia prowadzi do żółtej ikony. Dwie niebieskie gałęzie
   wychodzą z jej DOLNEJ krawędzi i kończą się na środku kart obu Fabryk. */
#ai-selekcjoner .ais-visual-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 22px;
}
#ai-selekcjoner .ais-visual-connector-trunk {
    display: block;
    flex: 0 0 15px;
    width: 2px;
    background: linear-gradient(#4174c9, #80aaff);
}
#ai-selekcjoner .ais-visual-brain {
    position: relative;
    z-index: 1;
    flex: 0 0 39px;
    width: 39px;
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #1b3057;
    border: 1px solid rgba(255,201,71,.63);
    box-shadow: 0 0 22px rgba(255,201,71,.13);
    color: #ffc947;
    font-size: 1rem;
}
#ai-selekcjoner .ais-visual-branches {
    display: block;
    width: 100%;
    height: 39px;
    flex: 0 0 39px;
    overflow: visible;
    filter: drop-shadow(0 0 4px rgba(107,165,255,.28));
}
#ai-selekcjoner .ais-visual-branches path {
    fill: none;
    stroke: #75a9ff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

#ai-selekcjoner .ais-visual-results { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 22px; }
#ai-selekcjoner .ais-visual-result { min-width: 0; border-radius: 15px; padding: 17px 15px 17px; background: rgba(255,255,255,.055); border: 1px solid rgba(144,181,255,.18); }
#ai-selekcjoner .ais-visual-result-tactics { border-color: rgba(95,219,177,.28); background: rgba(53,175,145,.075); }
#ai-selekcjoner .ais-visual-result-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; }
#ai-selekcjoner .ais-visual-result-heading span:last-child { min-width: 0; }
#ai-selekcjoner .ais-visual-result-heading small { display: block; font-size: .59rem; letter-spacing: .065em; color: #90baff; font-weight: 800; margin-bottom: 2px; }
#ai-selekcjoner .ais-visual-result-heading strong { color: #fff; display: block; font-size: .84rem; line-height: 1.35; }
#ai-selekcjoner .ais-visual-result-tactics small { color: #70e5c4; }
#ai-selekcjoner .ais-visual-result-icon { width: 40px; height: 40px; flex: 0 0 40px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: rgba(111,160,255,.17); color: #9bbdff; font-size: 1rem; }
#ai-selekcjoner .ais-visual-result-tactics .ais-visual-result-icon { background: rgba(69,211,165,.14); color: #73e4c3; }
#ai-selekcjoner .ais-visual-result-row { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; color: #d1e0f7; font-size: .74rem; line-height: 1.45; }
#ai-selekcjoner .ais-visual-result-row i { margin-top: 4px; color: #8fb8ff; font-size: .64rem; }
#ai-selekcjoner .ais-visual-result-tactics .ais-visual-result-row i { color: #6de3bb; }
#ai-selekcjoner .ais-visual-summary { margin: 17px 23px 0; padding: 12px 14px; border-radius: 10px; background: rgba(61,174,139,.085); color: #ccf5e7; font-size: .75rem; font-weight: 700; text-align: center; }
#ai-selekcjoner .ais-visual-summary i { color: #56ddb2; margin-right: 7px; }
#ai-selekcjoner .ais-visual-disclaimer { padding: 0 15px; margin: 14px 0 20px; text-align: center; color: rgba(222,235,255,.42); font-size: .65rem; line-height: 1.45; }

/* DWIE AKCJE */
#ai-selekcjoner .ais-actions-section { background: #f7f9fd; padding: 89px 0 100px; }
#ai-selekcjoner .ais-section-heading { max-width: 820px; margin: 0 auto 44px; }
#ai-selekcjoner .ais-kicker { color: #175cff; letter-spacing: .11em; font-size: .72rem; font-weight: 800; margin-bottom: 13px; }
#ai-selekcjoner .ais-section-heading h2 { color: #102348; font-weight: 750; letter-spacing: -.025em; font-size: clamp(1.95rem, 3vw, 2.7rem); line-height: 1.25; margin: 0 0 14px; }
#ai-selekcjoner .ais-section-heading p { color: #6b7a8d; margin: 0; font-size: .98rem; line-height: 1.75; }
#ai-selekcjoner .ais-action-card { display: flex; position: relative; isolation: isolate; overflow: hidden; flex-direction: column; height: 100%; padding: 36px 38px 32px; border-radius: 23px; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
#ai-selekcjoner .ais-action-card:hover { transform: translateY(-5px); }
#ai-selekcjoner .ais-action-card-primary { background: linear-gradient(130deg, #0f3581 0%, #071b47 100%); border: 1px solid rgba(79,124,244,.52); box-shadow: 0 19px 42px rgba(14,43,99,.13); color: #fff; }
#ai-selekcjoner .ais-action-card-primary:hover { box-shadow: 0 29px 48px rgba(14,43,99,.23); }
#ai-selekcjoner .ais-action-card-secondary { background: #fff; border: 1px solid #dce6f5; color: #172f56; box-shadow: 0 19px 42px rgba(28,55,96,.055); }
#ai-selekcjoner .ais-action-card-secondary:hover { box-shadow: 0 25px 45px rgba(28,55,96,.105); }
#ai-selekcjoner .ais-action-icon { display: inline-flex; width: 58px; height: 58px; border-radius: 17px; align-items: center; justify-content: center; margin-bottom: 28px; background: rgba(104,160,255,.17); border: 1px solid rgba(160,194,255,.28); font-size: 1.42rem; color: #a0c2ff; }
#ai-selekcjoner .ais-action-card-secondary .ais-action-icon { background: #eaf1ff; color: #175cff; border: 1px solid #dbe7ff; }
#ai-selekcjoner .ais-action-number { color: #85b0ff; font-size: .67rem; font-weight: 800; letter-spacing: .105em; margin-bottom: 9px; }
#ai-selekcjoner .ais-action-card-secondary .ais-action-number { color: #175cff; }
#ai-selekcjoner .ais-action-title { font-family: 'Poppins',sans-serif; color: inherit; font-size: clamp(1.3rem, 2.2vw, 1.72rem); font-weight: 750; line-height: 1.25; margin-bottom: 12px; }
#ai-selekcjoner .ais-action-copy { max-width: 440px; font-size: .87rem; line-height: 1.82; color: rgba(236,244,255,.76); margin-bottom: 29px; }
#ai-selekcjoner .ais-action-card-secondary .ais-action-copy { color: #697991; }
#ai-selekcjoner .ais-action-link { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; margin-top: auto; font-size: .84rem; font-weight: 800; color: #fff; }
#ai-selekcjoner .ais-action-card-secondary .ais-action-link { color: #175cff; }
#ai-selekcjoner .ais-action-link i { transition: transform .2s ease; }
#ai-selekcjoner .ais-action-card:hover .ais-action-link i { transform: translateX(5px); }
#ai-selekcjoner .ais-action-decoration { position: absolute; z-index: -1; right: -15px; bottom: -31px; font-size: 11rem; color: rgba(255,255,255,.045); transform: rotate(-14deg); pointer-events: none; }
#ai-selekcjoner .ais-action-card-secondary .ais-action-decoration { color: rgba(29,92,200,.035); }

/* 3 KROKI */
#ai-selekcjoner .ais-how-section { background: #f7f9fd; padding: 94px 0 107px; }
#ai-selekcjoner .ais-step { position: relative; height: 100%; padding: 28px 25px 26px; border: 1px solid #e2eafa; border-radius: 19px; background: #fff; box-shadow: 0 10px 30px rgba(27,48,85,.03); }
#ai-selekcjoner .ais-step-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 19px; }
#ai-selekcjoner .ais-step-top span { display: flex; align-items: center; justify-content: center; width: 37px; height: 37px; border-radius: 12px; background: #eaf1ff; font-size: .85rem; color: #175cff; font-weight: 800; }
#ai-selekcjoner .ais-step-top i { font-size: 1.35rem; color: #86aaff; }
#ai-selekcjoner .ais-step-row > div:nth-child(2) .ais-step-top span { background: #fff5db; color: #af7b00; }
#ai-selekcjoner .ais-step-row > div:nth-child(2) .ais-step-top i { color: #e3b651; }
#ai-selekcjoner .ais-step-row > div:nth-child(3) .ais-step-top span { background: #e5fbf3; color: #149472; }
#ai-selekcjoner .ais-step-row > div:nth-child(3) .ais-step-top i { color: #50c6a1; }
#ai-selekcjoner .ais-step h3 { font-weight: 700; color: #102348; font-size: 1.15rem; line-height: 1.4; margin-bottom: 10px; }
#ai-selekcjoner .ais-step p { color: #64748b; line-height: 1.75; font-size: .85rem; margin: 0; }

/* KOŃCOWE CTA */
#ai-selekcjoner .ais-final-section { background: #f7f9fd; padding: 15px 0 100px; }
#ai-selekcjoner .ais-final-panel { isolation: isolate; position: relative; overflow: hidden; padding: 65px 32px 68px; border: 1px solid rgba(107,157,255,.23); border-radius: 26px; background: linear-gradient(132deg, #0b2556, #07132f 87%); color: #fff; text-align: center; }
#ai-selekcjoner .ais-final-orbit { position: absolute; z-index: -1; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(127,175,255,.085); pointer-events: none; }
#ai-selekcjoner .ais-final-orbit-one { top: -300px; left: -160px; box-shadow: 0 0 0 70px rgba(100,148,255,.035); }
#ai-selekcjoner .ais-final-orbit-two { bottom: -330px; right: -170px; box-shadow: 0 0 0 75px rgba(100,148,255,.025); }
#ai-selekcjoner .ais-final-panel .ais-kicker { color: #ffc947; }
#ai-selekcjoner .ais-final-panel h2 { max-width: 960px; margin: 0 auto 20px; color: #fff; font-weight: 750; letter-spacing: -.025em; line-height: 1.27; font-size: clamp(1.8rem, 2.8vw, 2.65rem); }
#ai-selekcjoner .ais-final-panel h2 span { color: #9dc2ff; }
#ai-selekcjoner .ais-final-panel p { color: rgba(230,241,255,.71); max-width: 730px; margin: 0 auto 28px; line-height: 1.83; font-size: .94rem; }
#ai-selekcjoner .ais-final-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* PODSTRONY PODGLĄDOWE */
#ai-selekcjoner .ais-preview-section { min-height: 76vh; padding: 160px 0 85px; background: linear-gradient(#081733 0 260px, #f7f9fd 260px); }
#ai-selekcjoner .ais-back-link { display: inline-flex; align-items: center; margin: 0 0 25px; color: #dee9ff; font-size: .87rem; font-weight: 700; }
#ai-selekcjoner .ais-back-link:hover { color: #fff; }
#ai-selekcjoner .ais-preview-panel { max-width: 830px; margin: 0 auto; padding: 65px 35px; background: #fff; box-shadow: 0 20px 60px rgba(15,45,95,.09); border: 1px solid #e2eafb; border-radius: 23px; text-align: center; }
#ai-selekcjoner .ais-preview-icon { width: 76px; height: 76px; margin: 0 auto 23px; display: flex; align-items: center; justify-content: center; border-radius: 21px; background: #eaf1ff; color: #175cff; font-size: 1.9rem; }
#ai-selekcjoner .ais-preview-panel h1 { color: #102348; margin-bottom: 17px; font-size: clamp(1.8rem, 3vw, 2.65rem); font-weight: 750; }
#ai-selekcjoner .ais-preview-panel p { color: #62738a; max-width: 630px; line-height: 1.75; margin: 0 auto 28px; }

@media (max-width: 1199.98px) {
    #ai-selekcjoner .ais-hero-title { font-size: clamp(2.1rem, 3.3vw, 2.9rem); }
    #ai-selekcjoner .ais-hero { padding-top: 152px; }
    #ai-selekcjoner .ais-visual { max-width: 570px; }
}
@media (max-width: 991.98px) {
    #ai-selekcjoner .ais-hero { padding-top: 142px; padding-bottom: 76px; }
    #ai-selekcjoner .ais-hero-title { max-width: 660px; }
    #ai-selekcjoner .ais-visual { max-width: 660px; margin: 0 auto; }
    #ai-selekcjoner .ais-actions-section, #ai-selekcjoner .ais-how-section { padding: 70px 0; }
    #ai-selekcjoner .ais-final-section { padding-bottom: 70px; }
}
@media (max-width: 767.98px) {
    #ai-selekcjoner .ais-hero { padding-top: 126px; padding-bottom: 65px; }
    #ai-selekcjoner .ais-hero-title { font-size: clamp(2rem, 7.3vw, 2.65rem); }
    #ai-selekcjoner .ais-hero-lead { font-size: .94rem; }
    #ai-selekcjoner .ais-hero-actions { align-items: stretch; }
    #ai-selekcjoner .ais-hero-actions .ais-btn { flex-grow: 1; }
    #ai-selekcjoner .ais-action-card { padding: 30px; }
    #ai-selekcjoner .ais-visual-results { gap: 9px; padding: 0 13px; }
    #ai-selekcjoner .ais-visual-connector { margin: 0 13px; }
    #ai-selekcjoner .ais-visual-question { margin: 16px 14px 0; }
    #ai-selekcjoner .ais-visual-result { padding: 14px 11px; }
    #ai-selekcjoner .ais-final-panel { padding: 50px 22px; }
}
@media (max-width: 520px) {
    #ai-selekcjoner .ais-eyebrow { font-size: .65rem; line-height: 1.5; }
    #ai-selekcjoner .ais-hero-title { font-size: 2.03rem; }
    #ai-selekcjoner .ais-hero-actions { flex-direction: column; }
    #ai-selekcjoner .ais-btn { width: 100%; }
    #ai-selekcjoner .ais-visual-topline { padding: 0 12px; font-size: .65rem; }
    #ai-selekcjoner .ais-visual-question > strong { font-size: .82rem; }
    /* Dwie karty także na telefonie, aby każda odnoga prowadziła do własnej Fabryki. */
    #ai-selekcjoner .ais-visual-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #ai-selekcjoner .ais-visual-result { padding: 12px 10px 14px; }
    #ai-selekcjoner .ais-visual-result-heading { align-items: flex-start; gap: 7px; margin-bottom: 12px; }
    #ai-selekcjoner .ais-visual-result-icon { width: 31px; height: 31px; flex-basis: 31px; border-radius: 9px; font-size: .8rem; }
    #ai-selekcjoner .ais-visual-result-heading small { font-size: .52rem; letter-spacing: .03em; }
    #ai-selekcjoner .ais-visual-result-heading strong { font-size: .72rem; }
    #ai-selekcjoner .ais-visual-result-row { font-size: .68rem; gap: 5px; margin-top: 8px; line-height: 1.35; }
    #ai-selekcjoner .ais-visual-result-row i { margin-top: 3px; font-size: .53rem; }
    #ai-selekcjoner .ais-visual-branches { height: 35px; flex-basis: 35px; }
    #ai-selekcjoner .ais-visual-summary { font-size: .68rem; line-height: 1.55; }
    #ai-selekcjoner .ais-visual-summary { margin: 14px 13px 0; }
    #ai-selekcjoner .ais-section-heading h2 { font-size: 1.9rem; }
    #ai-selekcjoner .ais-action-card { padding: 26px 22px; }
    #ai-selekcjoner .ais-final-actions { flex-direction: column; }
    #ai-selekcjoner .ais-preview-panel { padding: 40px 19px; }
}
@media (prefers-reduced-motion: reduce) {
    #ai-selekcjoner *, #ai-selekcjoner *::before, #ai-selekcjoner *::after { transition: none !important; }
}

/* Menu główne Quiety posiada panel offcanvas na telefonach.
 * Reguła dotyczy wyłącznie podglądu AI Selekcjonera. */
@media (min-width: 1200px) {
    body:has(#ai-selekcjoner) .main-header .navbar-expand-xl .offcanvas {
        display: none !important;
    }
}

/* Header jest absolutny w Quiety; musi pozostawać nad nowym hero. */
body:has(#ai-selekcjoner) .main-header {
    z-index: 1040;
}

@media (max-width: 365px) {
    #ai-selekcjoner .ais-visual-results { gap: 7px; padding: 0 10px; }
    #ai-selekcjoner .ais-visual-connector { margin: 0 10px; }
    #ai-selekcjoner .ais-visual-result { padding: 11px 8px 13px; }
    #ai-selekcjoner .ais-visual-result-heading { flex-wrap: wrap; gap: 5px; }
    #ai-selekcjoner .ais-visual-result-heading small { font-size: .49rem; }
    #ai-selekcjoner .ais-visual-result-row { font-size: .65rem; }
}

/* ========================================================================
   AI SELEKCJONER — ZADAJ NOWE PYTANIE (wersja wizualna 1 / v4)
   Wszystkie reguły są lokalne dla #ai-selekcjoner.
   ======================================================================== */
#ai-selekcjoner.ais-query-page { background: #f7f9fd; }
#ai-selekcjoner .ais-query-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 128px 0 153px;
    color: #fff;
    background:
        radial-gradient(ellipse 44% 75% at 87% 35%, rgba(36,91,209,.23), transparent 75%),
        linear-gradient(125deg, #07132f 0%, #091d43 58%, #071733 100%);
}
#ai-selekcjoner .ais-query-hero::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: .38;
    background-image: radial-gradient(rgba(130,175,255,.32) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(110deg, transparent 32%, #000 100%);
    pointer-events: none;
}
#ai-selekcjoner .ais-query-hero-glow {
    position: absolute;
    z-index: -1;
    width: 460px;
    height: 460px;
    left: -290px;
    bottom: -160px;
    border-radius: 50%;
    background: rgba(27,97,233,.22);
    filter: blur(88px);
    pointer-events: none;
}
#ai-selekcjoner .ais-query-breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 38px;
    font-size: .78rem;
    font-weight: 650;
    color: rgba(219,233,255,.66);
}
#ai-selekcjoner .ais-query-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #bcd6ff;
    text-decoration: none;
}
#ai-selekcjoner .ais-query-breadcrumb a:hover { color: #fff; }
#ai-selekcjoner .ais-query-eyebrow {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: #ffcf5f;
    font-size: .71rem;
    letter-spacing: .115em;
    font-weight: 800;
}
#ai-selekcjoner .ais-query-eyebrow > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    border: 1px solid rgba(255,204,89,.22);
    border-radius: 9px;
    background: rgba(255,201,71,.10);
    font-size: .78rem;
}
#ai-selekcjoner .ais-query-title {
    max-width: 850px;
    margin: 0 0 22px;
    color: #fff;
    font-weight: 750;
    font-size: clamp(2.15rem, 3.45vw, 3.28rem);
    letter-spacing: -.035em;
    line-height: 1.19;
}
#ai-selekcjoner .ais-query-title span { color: #a4c5ff; }
#ai-selekcjoner .ais-query-lead {
    max-width: 770px;
    margin: 0;
    color: rgba(236,244,255,.76);
    font-size: 1rem;
    line-height: 1.83;
}

/* Miniwizualizacja obok nagłówka: dwa źródła wyprowadzone z jednego pytania. */
#ai-selekcjoner .ais-query-hero-aside {
    position: relative;
    width: min(100%, 358px);
    margin: 8px auto 0;
    padding: 26px 22px 23px;
    border: 1px solid rgba(151,194,255,.24);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(57,106,195,.17), rgba(14,42,90,.40));
    box-shadow: 0 30px 65px rgba(0,0,0,.10), inset 0 1px rgba(255,255,255,.045);
}
#ai-selekcjoner .ais-query-hero-orb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 30px;
    border-radius: 15px;
    color: #ffc947;
    border: 1px solid rgba(255,201,71,.48);
    background: rgba(255,201,71,.07);
    font-size: 1.25rem;
    box-shadow: 0 0 40px rgba(255,201,71,.09);
}
#ai-selekcjoner .ais-query-hero-aside::before {
    content: '';
    position: absolute;
    top: 74px;
    left: 50%;
    height: 18px;
    width: 2px;
    transform: translateX(-50%);
    background: #77a8ff;
}
#ai-selekcjoner .ais-query-hero-route {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    margin-top: 6px;
}
#ai-selekcjoner .ais-query-hero-route::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 25%;
    right: 25%;
    height: 20px;
    border: 1.5px solid #77a8ff;
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
}
#ai-selekcjoner .ais-query-hero-route > div {
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid rgba(147,183,255,.22);
    border-radius: 13px;
    background: rgba(108,155,255,.105);
    color: #dce9ff;
    font-size: .82rem;
    font-weight: 750;
}
#ai-selekcjoner .ais-query-hero-route > div:last-child { border-color: rgba(101,224,186,.23); background: rgba(51,172,139,.10); }
#ai-selekcjoner .ais-query-hero-route > div i { font-size: 1.2rem; color: #92bbff; }
#ai-selekcjoner .ais-query-hero-route > div:last-child i { color: #6ee6c1; }
#ai-selekcjoner .ais-query-hero-tag { margin-top: 20px; font-size: .72rem; color: rgba(216,232,255,.57); text-align: center; }

/* Biały formularz zachodzi na dół ciemnego hero. */
#ai-selekcjoner .ais-query-content {
    position: relative;
    padding: 0 0 116px;
    background: #f7f9fd;
}
#ai-selekcjoner .ais-query-content > .container > .row {
    position: relative;
    z-index: 2;
    margin-top: -76px;
}
#ai-selekcjoner .ais-query-form-card {
    position: relative;
    overflow: hidden;
    padding: 38px 42px 40px;
    border: 1px solid #dce6f5;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 22px 64px rgba(21,49,95,.11);
}
#ai-selekcjoner .ais-query-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #175cff, #73a4ff 52%, #62dbb8);
}
#ai-selekcjoner .ais-query-form-head {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 29px;
}
#ai-selekcjoner .ais-query-form-icon {
    display: flex;
    flex: 0 0 55px;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 16px;
    background: #eaf1ff;
    color: #175cff;
    font-size: 1.33rem;
}
#ai-selekcjoner .ais-query-overline {
    display: block;
    color: #175cff;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .1em;
    margin: 0 0 7px;
}
#ai-selekcjoner .ais-query-form-head h2 {
    margin: 0 0 9px;
    font-size: clamp(1.37rem, 2vw, 1.7rem);
    font-weight: 750;
    color: #122a52;
    line-height: 1.33;
}
#ai-selekcjoner .ais-query-form-head p {
    margin: 0;
    color: #657791;
    font-size: .88rem;
    line-height: 1.72;
}
#ai-selekcjoner .ais-query-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 11px;
}
#ai-selekcjoner .ais-query-label-row label { font-size: .86rem; color: #233859; font-weight: 750; }
#ai-selekcjoner .ais-query-label-row label span { color: #ed753b; }
#ai-selekcjoner .ais-query-field-hint { color: #8b98ab; font-size: .75rem; }
#ai-selekcjoner .ais-query-field-hint i { color: #175cff; margin-right: 5px; }
#ai-selekcjoner .ais-query-textarea {
    display: block;
    width: 100%;
    min-height: 233px;
    padding: 20px 22px;
    resize: vertical;
    border: 1.5px solid #dce5f2;
    border-radius: 15px;
    background: #fafdff;
    outline: none;
    color: #122c53;
    font-family: 'Open Sans', sans-serif;
    font-size: .965rem;
    line-height: 1.78;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
#ai-selekcjoner .ais-query-textarea::placeholder { color: #94a1b4; opacity: 1; }
#ai-selekcjoner .ais-query-textarea:focus {
    background: #fff;
    border-color: #4081ff;
    box-shadow: 0 0 0 4px rgba(23,92,255,.095);
}
#ai-selekcjoner .ais-query-field-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 11px;
    color: #8998ac;
    font-size: .75rem;
    line-height: 1.4;
}
#ai-selekcjoner .ais-query-counter { font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
#ai-selekcjoner .ais-query-counter.is-ready { color: #168b6d; }
#ai-selekcjoner .ais-query-counter.is-invalid { color: #d04c32; }
#ai-selekcjoner .ais-query-hint-panel {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-top: 28px;
    padding: 19px 20px;
    border: 1px solid #dce8ff;
    border-left: 3px solid #175cff;
    border-radius: 12px;
    background: #f3f7ff;
}
#ai-selekcjoner .ais-query-hint-icon {
    display: flex;
    flex: 0 0 35px;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 11px;
    background: #e1ecff;
    color: #175cff;
    font-size: 1rem;
}
#ai-selekcjoner .ais-query-hint-panel strong { display: block; color: #1641a1; font-size: .82rem; margin: 1px 0 6px; }
#ai-selekcjoner .ais-query-hint-panel p { color: #64758e; font-size: .8rem; line-height: 1.72; margin: 0; }
#ai-selekcjoner .ais-query-form-bottom { margin-top: 27px; display: flex; flex-direction: column; align-items: flex-start; }
#ai-selekcjoner .ais-query-submit { min-height: 57px; font-size: .9rem; padding: 15px 23px; }
#ai-selekcjoner .ais-query-submit:disabled {
    cursor: not-allowed;
    opacity: .55;
    transform: none;
    box-shadow: none;
}
#ai-selekcjoner .ais-query-submit-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 16px 0 0;
    color: #8290a3;
    font-size: .74rem;
    line-height: 1.55;
}
#ai-selekcjoner .ais-query-submit-note i { color: #38b38f; margin-top: 2px; }
#ai-selekcjoner .ais-query-alert { margin: 0 0 24px; padding: 14px 17px; border-radius: 11px; font-size: .82rem; line-height: 1.6; }
#ai-selekcjoner .ais-query-alert-danger { color: #ab3829; background: #fff0ed; border: 1px solid #f7c6bd; }
#ai-selekcjoner .ais-query-alert-info { color: #205596; background: #edf5ff; border: 1px solid #c5dbff; }

/* Sekcja przykładowych pytań i podpowiedzi. */
#ai-selekcjoner .ais-query-examples { margin-top: 45px; }
#ai-selekcjoner .ais-query-examples-heading h2 {
    margin: 0 0 6px;
    color: #132a51;
    font-size: clamp(1.35rem, 2.05vw, 1.8rem);
    font-weight: 750;
}
#ai-selekcjoner .ais-query-examples-heading p { margin: 0 0 23px; color: #708098; font-size: .86rem; line-height: 1.7; }
#ai-selekcjoner .ais-query-example {
    position: relative;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 167px;
    padding: 21px 24px 23px;
    border: 1px solid #dde7f5;
    border-radius: 17px;
    background: #fff;
    color: #182f54;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 9px 26px rgba(20,50,95,.035);
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
#ai-selekcjoner .ais-query-example:hover,
#ai-selekcjoner .ais-query-example:focus-visible {
    border-color: #8bb1ff;
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(20,63,155,.09);
}
#ai-selekcjoner .ais-query-example-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 41px;
    height: 41px;
    margin-bottom: 15px;
    border-radius: 12px;
    font-size: 1rem;
}
#ai-selekcjoner .ais-query-example-icon-blue { background: #eaf1ff; color: #175cff; }
#ai-selekcjoner .ais-query-example-icon-gold { background: #fff3d9; color: #b37b03; }
#ai-selekcjoner .ais-query-example-icon-mint { background: #e0f8ef; color: #168e6c; }
#ai-selekcjoner .ais-query-example-icon-violet { background: #efe9ff; color: #7958c2; }
#ai-selekcjoner .ais-query-example strong { display: block; padding-right: 12px; font-size: .84rem; line-height: 1.42; font-weight: 750; }
#ai-selekcjoner .ais-query-example small { display: block; color: #7a8ba2; font-size: .73rem; line-height: 1.6; margin-top: 7px; }
#ai-selekcjoner .ais-query-example-arrow { position: absolute; top: 24px; right: 23px; color: #a7bbde; font-size: .77rem; }

/* Prawa kolumna: korzyści oraz transparentna informacja o dostępie. */
#ai-selekcjoner .ais-query-side { display: flex; flex-direction: column; gap: 16px; }
#ai-selekcjoner .ais-query-side-panel {
    padding: 28px 27px;
    border: 1px solid #dee7f6;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 17px 38px rgba(22,51,102,.045);
}
#ai-selekcjoner .ais-query-side-benefits {
    border-color: rgba(132,178,255,.38);
    background:
        radial-gradient(circle at 96% 2%, rgba(64,118,229,.16), transparent 46%),
        linear-gradient(145deg, #112d66, #0a1b40);
    box-shadow: 0 16px 35px rgba(12,42,97,.15);
}
#ai-selekcjoner .ais-query-side-title { display: flex; align-items: center; gap: 11px; margin-bottom: 23px; }
#ai-selekcjoner .ais-query-side-title > span {
    display: flex;
    flex: 0 0 39px;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    border-radius: 12px;
    background: #eaf1ff;
    color: #175cff;
}
#ai-selekcjoner .ais-query-side-benefits .ais-query-side-title > span { background: rgba(118,170,255,.17); color: #9fbeff; }
#ai-selekcjoner .ais-query-side-title h2 { margin: 0; font-size: 1.11rem; font-weight: 750; color: #152c54; }
#ai-selekcjoner .ais-query-side-benefits .ais-query-side-title h2 { color: #fff; }
#ai-selekcjoner .ais-query-source { display: flex; align-items: flex-start; gap: 12px; padding: 16px 0; border-top: 1px solid rgba(188,210,250,.15); }
#ai-selekcjoner .ais-query-source > span { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 36px; height: 36px; border-radius: 10px; background: rgba(113,169,255,.13); color: #91b8ff; }
#ai-selekcjoner .ais-query-source-fb > span { background: rgba(72,208,161,.12); color: #75e7bc; }
#ai-selekcjoner .ais-query-source-reason > span { background: rgba(251,211,108,.13); color: #fbd36c;}
#ai-selekcjoner .ais-query-source strong { display: block; font-size: .84rem; color: #fff; margin: 0 0 5px; }
#ai-selekcjoner .ais-query-source small { display: block; color: rgba(228,241,255,.72); font-size: .76rem; line-height: 1.65; }
#ai-selekcjoner .ais-query-explain { display: flex; gap: 9px; padding: 15px 13px; margin-top: 13px; border-radius: 10px; background: rgba(67,203,155,.095); color: #b9f0de; font-size: .75rem; line-height: 1.6; font-weight: 650; }
#ai-selekcjoner .ais-query-explain i { color: #66e4b8; margin-top: 3px; }
#ai-selekcjoner .ais-query-side-access p { margin: 0 0 16px; color: #657791; font-size: .81rem; line-height: 1.77; }
#ai-selekcjoner .ais-query-side-access strong { color: #193d77; }
#ai-selekcjoner .ais-query-access-note { display: flex; gap: 10px; padding: 13px; background: #f3f7ff; border: 1px solid #e0eaff; border-radius: 10px; color: #5b7090; font-size: .75rem; line-height: 1.6; }
#ai-selekcjoner .ais-query-access-note i { margin-top: 2px; color: #175cff; }
#ai-selekcjoner .ais-query-side-privacy { display: flex; align-items: flex-start; gap: 11px; padding: 3px 6px; color: #7b8da5; font-size: .76rem; line-height: 1.7; }
#ai-selekcjoner .ais-query-side-privacy i { margin-top: 5px; color: #4baac6; }

@media (max-width: 1199.98px) {
    #ai-selekcjoner .ais-query-form-card { padding: 32px; }
    #ai-selekcjoner .ais-query-side-panel { padding: 24px 21px; }
    #ai-selekcjoner .ais-query-title { font-size: 2.6rem; }
}
@media (max-width: 991.98px) {
    #ai-selekcjoner .ais-query-hero { padding: 121px 0 132px; }
    #ai-selekcjoner .ais-query-content > .container > .row { margin-top: -62px; }
    #ai-selekcjoner .ais-query-side { margin-top: 15px; }
}
@media (max-width: 767.98px) {
    #ai-selekcjoner .ais-query-hero { padding: 111px 0 124px; }
    #ai-selekcjoner .ais-query-breadcrumb { margin-bottom: 28px; }
    #ai-selekcjoner .ais-query-title { font-size: clamp(2rem, 7.4vw, 2.7rem); }
    #ai-selekcjoner .ais-query-lead { font-size: .93rem; }
    #ai-selekcjoner .ais-query-form-card { padding: 26px 24px; border-radius: 20px; }
    #ai-selekcjoner .ais-query-form-head { gap: 13px; }
    #ai-selekcjoner .ais-query-form-icon { width: 46px; height: 46px; flex-basis: 46px; font-size: 1.1rem; }
    #ai-selekcjoner .ais-query-form-head h2 { font-size: 1.32rem; }
    #ai-selekcjoner .ais-query-textarea { padding: 16px; min-height: 205px; }
    #ai-selekcjoner .ais-query-content { padding-bottom: 75px; }
}
@media (max-width: 520px) {
    #ai-selekcjoner .ais-query-hero { padding-top: 100px; padding-bottom: 112px; }
    #ai-selekcjoner .ais-query-breadcrumb { margin-bottom: 23px; font-size: .73rem; }
    #ai-selekcjoner .ais-query-title { font-size: 2.08rem; }
    #ai-selekcjoner .ais-query-content > .container > .row { margin-top: -53px; }
    #ai-selekcjoner .ais-query-form-card { padding: 25px 19px 28px; }
    #ai-selekcjoner .ais-query-form-head { display: block; }
    #ai-selekcjoner .ais-query-form-icon { margin-bottom: 15px; }
    #ai-selekcjoner .ais-query-label-row { gap: 4px; }
    #ai-selekcjoner .ais-query-field-hint { display: none; }
    #ai-selekcjoner .ais-query-field-footer { font-size: .69rem; }
    #ai-selekcjoner .ais-query-hint-panel { padding: 16px 14px; gap: 10px; }
    #ai-selekcjoner .ais-query-hint-icon { flex-basis: 30px; width: 30px; height: 30px; }
    #ai-selekcjoner .ais-query-submit { width: 100%; }
    #ai-selekcjoner .ais-query-example { min-height: 0; padding: 19px 20px 20px; }
    #ai-selekcjoner .ais-query-examples { margin-top: 36px; }
    #ai-selekcjoner .ais-query-side-panel { padding: 23px 21px; }
}
