﻿/* =====================================================
   HERO – BAZA
===================================================== */

.hero {
    position: relative;
    background: #fff;
    padding: 8rem 0 0;
    overflow: hidden;
}

/* =====================================================
   TŁO DESKTOP – NIEBIESKI PAS PO PRAWEJ
===================================================== */

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 48%;
    height: 62rem;
    background: linear-gradient(
            135deg,
            #0d6db6 0%,
            #0b5fa5 50%,
            #084f93 100%
    );
    z-index: 0;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 48%;
    height: 62rem;
    opacity: .12;
    background:
            repeating-radial-gradient(
                    circle at 25% 25%,
                    rgba(255,255,255,.25) 0 0.1rem,
                    rgba(255,255,255,0) 0.1rem 2.6rem
            );
    z-index: 1;
    pointer-events: none;
}

/* =====================================================
   GRID – REZERWA NA SLIDER
===================================================== */

.hero-grid {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6.4rem;
    align-items: center;

    padding-bottom: 12rem;
}

/* =====================================================
   TEKST
===================================================== */

.hero-eyebrow {
    color: #1b75bb;
    font-size: 1.4rem;
    font-weight: 600;
}

.hero-title {
    font-size: 4.2rem;
    font-weight: 700;
    margin: 1.2rem 0 2rem;
    color: #0b245b;
}

.hero-desc {
    font-size: 1.6rem;
    color: #555;
    max-width: 46rem;
    line-height: 1.6;
}

/* =====================================================
   SLIDY TEKSTU
===================================================== */

.hero-text-slide {
    display: none;
}

.hero-text-slide.active {
    display: block;
}

/* =====================================================
   KROPKI
===================================================== */

.hero-dots {
    margin-top: 3.2rem;
    display: flex;
    gap: 1rem;
}

.hero-dots .dot {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    border: none;
    background: #cfcfcf;
    cursor: pointer;
}

.hero-dots .dot.active {
    background: #f5b300;
}

/* =====================================================
   PRAWA KOLUMNA – SLIDER
===================================================== */

.hero-image {
    position: relative;
    height: 38rem;
}

.slider {
    position: absolute;
    top: 50%;
    left: -6rem;
    transform: translateY(-50%);
}

.slide {
    width: 56rem;
    height: 32rem;
    object-fit: cover;
    border-radius: 1.4rem;
    display: none;
    background: #fff;
    box-shadow: 0 1.8rem 4rem rgba(0,0,0,.25);
}

.slide.active {
    display: block;
}

/* =====================================================
   STRZAŁKI SLIDERA
===================================================== */

.nav-arrow {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #0b5fa5;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 0.6rem 1.6rem rgba(0,0,0,.18);
}

.nav-arrow.prev {
    right: 7rem;
}

/* =====================================================
   KAFELKI – HERO CARDS
===================================================== */

.hero-cards {
    position: relative;
    z-index: 3;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.2rem;

    transform: translateY(-8rem);
}

.hero-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 5.5rem 2.8rem;
    background: #fff;
    border-radius: 1.4rem;
    text-decoration: none;
    color: #000;
    box-shadow: 0 1.2rem 3rem rgba(0,0,0,.10);
}

.hero-card h3 {
    margin: 0;
    font-size: 1.8rem;
    color: #0b245b;
}

.hero-card p {
    margin: 0.6rem 0 0;
    font-size: 1.4rem;
    color: #555;
}

/* =====================================================
   STRZAŁKA KAFELKA
===================================================== */

.card-arrow {
    margin-left: auto;
    font-size: 6.6rem;
    line-height: 1;
    font-weight: 300;
    color: #f5b300;
    transition: transform .2s ease;
}

.hero-card:hover .card-arrow {
    transform: translateX(0.4rem);
}

/* =====================================================
   IKONY
===================================================== */

.card-icon {
    width: 5.6rem;
    height: 5.6rem;
    min-width: 5.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon img {
    width: 8.4rem;
    height: 8.4rem;
    object-fit: contain;
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 992px) {

    .hero {
        padding: 6.4rem 0 0;
    }

    .hero::before,
    .hero::after {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
        padding-bottom: 0;
    }

    .hero-image {
        height: auto;
        padding: 2.4rem;
        border-radius: 1.6rem;
        background: linear-gradient(
                135deg,
                #0d6db6 0%,
                #0b5fa5 50%,
                #084f93 100%
        );
    }

    .slider {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
    }

    .slide {
        width: 100%;
        height: 24rem;
    }

    .hero-cards {
        grid-template-columns: 1fr;
        transform: none;
        margin-top: 3.2rem;
    }
}
