/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 480px;
    max-height: 600px;
    overflow: hidden;
    margin-top: 0;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    text-align: left;
    color: white;
    z-index: 2;
    width: 100%;
    padding: 0;
}

.hero-content .container {
    position: relative;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    color: white;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
    color: white;
}

.hero-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--red);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(194, 29, 21, 0.4);
}

.hero-button:hover {
    background: #a01812;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(194, 29, 21, 0.5);
}

/* ===== HERO CAROUSEL ===== */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 480px;
    max-height: 600px;
    overflow: hidden;
    margin-top: 0;
}

.hero-carousel .carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
    height: 100%;
}

.hero-carousel .hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-carousel .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-carousel .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.hero-carousel .hero-content {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    text-align: left;
    color: white;
    z-index: 3;
    width: 100%;
    padding: 0;
    pointer-events: none;
}

.hero-carousel .hero-content .container {
    position: relative;
    pointer-events: auto;
}

.hero-carousel .hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    color: white;
}

.hero-carousel .hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
    color: white;
}

.hero-carousel .hero-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--red);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(194, 29, 21, 0.4);
}

.hero-carousel .hero-button:hover {
    background: #a01812;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(194, 29, 21, 0.5);
}

/* Carousel controls */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    z-index: 4;
    width: 5%;
    opacity: 0.8;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    opacity: 1;
}

.hero-carousel .carousel-indicators {
    z-index: 4;
    margin-bottom: 20px;
}

.hero-carousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.hero-carousel .carousel-indicators button.active {
    background-color: var(--red);
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-carousel .hero-title {
        font-size: 2.2rem;
    }

    .hero-carousel .hero-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .hero-carousel {
        height: 60vh;
        min-height: 450px;
    }

    .hero-carousel .hero-content {
        padding: 0 15px;
    }

    .hero-carousel .hero-title {
        font-size: 1.8rem;
        text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9), 0 0 15px rgba(0, 0, 0, 0.6);
    }

    .hero-carousel .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.6);
    }

    .hero-carousel .hero-button {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .hero-carousel .carousel-indicators {
        margin-bottom: 10px;
    }

    .hero-carousel .carousel-indicators button {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }
}

/* About Preview Section */
.about-preview-section {
    padding: 80px 0;
    background: white;
}

.about-preview-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-preview-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 20px;
}

.about-preview-content h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--red);
}

.about-preview-content p {
    font-size: 1.15rem;
    color: #666;
    line-height: 1.8;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: #f9f9f9;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.feature-card h3::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--red);
    transition: width 0.3s ease;
}

.feature-card:hover h3::after {
    width: 60px;
}

.feature-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--red) 0%, #a01812 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: var(--red);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .about-preview-content h2 {
        font-size: 2rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 60vh;
        min-height: 450px;
    }

    .hero-content {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 1.8rem;
        text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9), 0 0 15px rgba(0, 0, 0, 0.6);
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.6);
    }

    .hero-button {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .about-preview-section,
    .features-section,
    .cta-section {
        padding: 60px 0;
    }

    .about-preview-content h2,
    .cta-content h2 {
        font-size: 1.8rem;
    }
}

/* chat gpt */
.about-section {
    padding: 80px 0;
    background: white;
}

.about-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

.about-row:last-child {
    margin-bottom: 0;
}

.about-text {
    flex: 1;
}

.about-text h2,
.about-text h3 {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.about-image {
    flex: 1;
    width: 100%;
    max-width: 520px;
    max-height: 300px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    object-fit: cover;
    object-position: center center;  
}

.offer-list {
    list-style-type: disc;
    padding-left: 20px;
    margin: 20px 0 0 0;
}

.offer-list li {
    margin-bottom: 10px;
    color: #555;
}

.offer-list li::marker {
    color: var(--red);
}

.stats-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
}

.stat-item {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--red);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.stat-label {
    font-size: 0.95rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 992px) {
    .about-row {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .about-row.reverse {
        flex-direction: column-reverse;
    }

    .about-image {
        max-width: 100%;
    }

    .offer-list {
        text-align: left;
        display: inline-block;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item {
        width: 80%;
        margin: auto;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stats-cta-section {
    padding: 60px 0 100px 0;
    background: #f8f8f8;
}

.stats-cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    padding: 40px 50px;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    border-left: 6px solid var(--red);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-cta-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
}

.stats-cta-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
}

.stats-cta-content p {
    margin: 0;
    color: #666;
    font-size: 1rem;
}

.stats-cta-button {
    background: var(--red);
    color: white;
    padding: 14px 34px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(194, 29, 21, 0.35);
    white-space: nowrap;
}

.stats-cta-button:hover {
    background: #a01812;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(194, 29, 21, 0.45);
}

@media (max-width: 768px) {
    .stats-cta-box {
        flex-direction: column;
        text-align: center;
        padding: 35px 25px;
    }

    .stats-cta-button {
        width: 100%;
        text-align: center;
    }
}

footer {
    margin-top: 0;
}

.stats-wrapper {
    background: linear-gradient(180deg, #ffffff 0%, #2b2b2b 100%);
}

.stats-section,
.stats-cta-section {
    background: none;
}

/* ===== HERO ANIMATION ===== */

.hero-animate {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

.hero-animate.active {
    opacity: 1;
    transform: translateX(0);
}

/* opóźnienia sekwencyjne */
.hero-delay-1 { transition-delay: 0.2s; }
.hero-delay-2 { transition-delay: 0.45s; }
.hero-delay-3 { transition-delay: 0.7s; }

/* ===== ABOUT SCROLL ANIMATION ===== */

.about-row {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

.about-row.show {
    opacity: 1;
    transform: translateY(0);
}