/* ============================================
   hero-trzy-filary — styl holo glass
   ============================================ */

/* ---- Sekcja hero z tłem ---- */
.hero-trzy-filary {
    background-color: #0A0A0A;
}
.hero-trzy-filary__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-trzy-filary__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(10,10,10,0.72) 0%,
        rgba(10,10,10,0.38) 55%,
        rgba(10,10,10,0.10) 100%);
    z-index: 1;
}

/* Teksty hero */
.hero-trzy-filary__title {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 500;
    line-height: 1.06;
    letter-spacing: -0.02em;
}
.hero-trzy-filary__title em { font-style: normal; color: #7cb4e0; }
.hero-trzy-filary__sub {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.88;
    max-width: 38rem;
    font-weight: 300;
}
.hero-trzy-filary__btn--primary {
    display: inline-block;
    padding: 14px 28px;
    background: #28538E;
    color: white;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
}
.hero-trzy-filary__btn--primary:hover { background: #1b3d6e; color: white; transform: translateY(-1px); }
.hero-trzy-filary__btn--outline {
    display: inline-block;
    padding: 14px 28px;
    background: transparent;
    color: white;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    border: 2px solid rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.2s;
}
.hero-trzy-filary__btn--outline:hover { background: rgba(255,255,255,0.12); color: white; }

/* ---- Sekcja filary (karty pod hero / samodzielna) ---- */
.hero-trzy-filary__filary-wrap {
    /* gdy blok jest TYLKO kartami (bez hero z tłem) */
    background: linear-gradient(160deg, #e8eef6 0%, #f0f4f8 40%, #e4eef8 100%);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

/* Cyjanowy glow za kartami */
.hero-trzy-filary__filary-wrap::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 400px;
    background: radial-gradient(ellipse at center,
        rgba(56, 189, 248, 0.25) 0%,
        rgba(125, 211, 252, 0.12) 45%,
        transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.hero-trzy-filary__filary-wrap .container { position: relative; z-index: 1; }

/* gdy filary są wewnątrz sekcji z hero (na ciemnym tle) */
.hero-trzy-filary__bg ~ * .hero-trzy-filary__filary-wrap,
.hero-trzy-filary:has(.hero-trzy-filary__bg) .hero-trzy-filary__filary-wrap {
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(12px);
    padding: 2rem 0;
}
.hero-trzy-filary:has(.hero-trzy-filary__bg) .hero-trzy-filary__filary-wrap::before {
    display: none;
}

/* ---- Karta filaru ---- */
.hero-trzy-filary__filar {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 18px;
    border: 1px solid rgba(56, 189, 248, 0.38);
    box-shadow:
        0 0 0 1px rgba(56, 189, 248, 0.15),
        0 8px 28px rgba(40, 83, 142, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    color: #0A0A0A;
    min-height: 220px;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hero-trzy-filary__filar:hover {
    transform: translateY(-4px);
    box-shadow:
        0 0 0 1px rgba(56, 189, 248, 0.45),
        0 16px 40px rgba(40, 83, 142, 0.12),
        0 0 36px rgba(56, 189, 248, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

/* Narożniki cyjanowe */
.hero-trzy-filary__filar::before,
.hero-trzy-filary__filar::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border-color: rgba(56, 189, 248, 0.65);
    border-style: solid;
    pointer-events: none;
}
.hero-trzy-filary__filar::before {
    top: 10px; left: 10px;
    border-width: 2px 0 0 2px;
    border-radius: 4px 0 0 0;
}
.hero-trzy-filary__filar::after {
    bottom: 10px; right: 10px;
    border-width: 0 2px 2px 0;
    border-radius: 0 0 4px 0;
}

/* Nr */
.hero-trzy-filary__filar-nr {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    color: #9ab8d4;
    line-height: 1;
}

/* Tytuł */
.hero-trzy-filary__filar-tytul {
    font-size: 1.5rem;
    font-weight: 500;
    color: #0A0A0A;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin: 0;
}

/* Opis */
.hero-trzy-filary__filar-opis {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #6B7A8A;
    margin: 0;
}

/* CTA — "Sprawdź —" */
.hero-trzy-filary__filar-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.hero-trzy-filary__filar-cta-text {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0A0A0A;
}
.hero-trzy-filary__filar-cta-ico {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(40, 83, 142, 0.10);
    border: 1px solid rgba(40, 83, 142, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    color: #28538E;
    transition: background 0.2s;
}
.hero-trzy-filary__filar:hover .hero-trzy-filary__filar-cta-ico {
    background: #28538E;
    color: white;
    border-color: #28538E;
}

/* ---- Responsywność ---- */
@media (max-width: 767.98px) {
    .hero-trzy-filary .row[style] { min-height: 65vh !important; }
    .hero-trzy-filary__filary-wrap::before { width: 500px; height: 300px; }
}
