/* Рекламный баннер-карусель (.fbc) — общий для страниц «Фонды» и «Партнёрам».
   Разметка и скрипт — templates/main/_hero_carousel.html, слайды — из админки
   («Баннеры» → «Баннер на странице …», таблица hero_banner.page). */
    /* Рекламный баннер-карусель — 1:1 из site2 (.fbc) */
    .fbc { position: relative; overflow: hidden; border-radius: 26px; min-height: 340px; margin: 0 0 50px; background: linear-gradient(135deg, #0a1246 0%, #14225f 46%, #1f3aa0 100%); box-shadow: 0 30px 70px rgba(9,13,48,.32); isolation: isolate; }
    .fbc-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
    .fbc-orb { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .55; }
    .fbc-orb.o1 { width: 380px; height: 380px; right: -80px; top: -120px; background: radial-gradient(circle at 30% 30%, rgba(120,150,255,.9), transparent 70%); }
    .fbc-orb.o2 { width: 320px; height: 320px; left: -70px; bottom: -140px; background: radial-gradient(circle at 50% 50%, rgba(60,90,220,.7), transparent 70%); }
    .fbc-grid { position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px); background-size: 46px 46px; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000, transparent 75%); }
    .fbc-stage { position: relative; z-index: 2; min-height: 340px; display: grid; }
    .fbc-slide { position: relative; grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 44px 96px 66px; gap: 14px; opacity: 0; transform: translateY(14px) scale(.99); pointer-events: none; transition: opacity .6s ease, transform .6s ease; }
    .fbc-slide.on { opacity: 1; transform: none; pointer-events: auto; }
    /* Обложка слайда (если задана в админке): фото на весь слайд + затемнение для читаемости. Без обложки виден дефолтный синий фон .fbc/.fbc-bg. */
    .fbc-cover { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; border-radius: 26px; }
    .fbc-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(10,18,70,.72), rgba(20,34,95,.5) 55%, rgba(31,58,160,.45)); }
    .fbc-slide > *:not(.fbc-cover) { position: relative; z-index: 1; }
    .fbc-tag { display: inline-flex; align-items: center; gap: 7px; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 12.5px; letter-spacing: .03em; text-transform: uppercase; color: #cdd8ff; padding: 7px 15px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); }
    .fbc-slide h3 { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -.02em; color: #fff; margin: 0; max-width: 720px; }
    .fbc-slide p { font-family: 'Montserrat', sans-serif; font-size: clamp(15px, 1.4vw, 17.5px); line-height: 1.5; color: rgba(226,232,255,.86); margin: 0; max-width: 560px; }
    .fbc-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; background: #fff; color: #000f9f; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 15px; padding: 14px 28px; border: none; border-radius: 999px; cursor: pointer; box-shadow: 0 12px 30px rgba(0,0,0,.24); transition: transform .2s, box-shadow .2s; }
    .fbc-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(0,0,0,.3); }
    .fbc-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.26); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); cursor: pointer; transition: background .18s; }
    .fbc-arrow:hover { background: rgba(255,255,255,.24); }
    .fbc-arrow.prev { left: 20px; }
    .fbc-arrow.next { right: 20px; }
    .fbc-dots { position: absolute; z-index: 5; bottom: 20px; left: 0; right: 0; display: flex; justify-content: center; gap: 9px; pointer-events: none; }
    /* Сам ряд точек растянут во всю ширину баннера и перекрывал стрелки —
       клики ловят только сами точки. */
    .fbc-dot { pointer-events: auto; }
    .fbc-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.34); border: none; padding: 0; transition: .2s; cursor: pointer; }
    .fbc-dot.on { background: #fff; width: 26px; border-radius: 5px; }
    @media (max-width: 640px) {
        .fbc, .fbc-stage { min-height: 300px; }
        .fbc-slide { padding: 34px 56px 60px; }
        .fbc-arrow { width: 38px; height: 38px; }
        .fbc-arrow.prev { left: 10px; }
        .fbc-arrow.next { right: 10px; }
    }
    /* Узкие телефоны (400 и ниже): боковые поля 56px съедали половину ширины
       (текст оставался 238px и рвался по слогам), стрелки стояли поверх текста,
       а баннер тянулся почти на 500px. Поля уже, стрелки уходят вниз к точкам. */
    @media (max-width: 400px) {
        .fbc, .fbc-stage { min-height: 260px; }
        .fbc-slide { padding: 26px 20px 58px; gap: 10px; }
        .fbc-slide h3 { font-size: 25px; }
        .fbc-slide p { font-size: 14px; }
        .fbc-cta { margin-top: 8px; padding: 12px 22px; font-size: 14px; }
        .fbc-arrow { top: auto; bottom: 13px; transform: none; width: 34px; height: 34px; z-index: 6; }
        .fbc-arrow.prev { left: 14px; }
        .fbc-arrow.next { right: 14px; }
        .fbc-arrow svg { width: 16px; height: 16px; }
        .fbc-dots { bottom: 26px; }
    }
    /* Самые узкие (320-360): кнопка ещё ломалась на две строки. */
    @media (max-width: 380px) {
        .fbc-slide { padding: 24px 16px 56px; }
        .fbc-slide h3 { font-size: 22px; }
        .fbc-cta { padding: 11px 16px; font-size: 13px; }
    }
