/* Base Variables */
:root {
    --dark-bg: #0a0a0a;
    --darker-bg: #000000;
    --dark-gray: #111111;
    --medium-gray: #1a1a1a;
    --light-gray: #222222;
    --lighter-gray: #2a2a2a;
    --text-light: #e0e0e0;
    --text-white: #ffffff;
    --accent-red: #ff0000;
    --accent-red-light: #ff3333;
    --accent-red-dark: #cc0000;
    --glow-red: #ff000080;
    --font-serif: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
    --font-sans: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Montserrat', 'Poppins', 'Manrope', 'Inter', 'Segoe UI', Arial, sans-serif;
}

/* Light Theme Overrides */
body.light-theme {
    --dark-bg: #f5f5f7;
    --darker-bg: #ffffff;
    --dark-gray: #ededf1;
    --medium-gray: #e2e2e8;
    --light-gray: #d8d8de;
    --lighter-gray: #cfd0d6;
    --text-light: #0a0a0c;
    --text-white: #ffffff;
    --accent-red: #d60000;
    --accent-red-light: #ff4d4d;
    --accent-red-dark: #a80000;
    --glow-red: rgba(214, 0, 0, 0.25);
    color-scheme: light;
    background-color: var(--dark-bg);
    color: var(--text-light);
}

.logo-image {
    width: 42px;
    height: 42px;
    margin-right: 15px;
    display: block;
}

#quiz-answers button {
    display: flex;
    width: 100%;
    padding: 0.85rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.96), rgba(20, 20, 20, 0.9));
    color: var(--text-white);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    text-align: left;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    align-items: center;
    gap: 0.85rem;
    line-height: 1.55;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.35);
}

#quiz-answers button:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 0, 0, 0.35);
    box-shadow: 0 28px 62px rgba(255, 0, 0, 0.28);
}

#quiz-answers button.selected {
    background: linear-gradient(135deg, var(--accent-red), #ff3737);
    color: #ffffff;
    border-color: var(--accent-red);
    box-shadow: 0 32px 70px rgba(255, 0, 0, 0.35);
}

.answer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    font-size: 1.2rem;
    flex-shrink: 0;
}

body.light-theme #quiz-answers button {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 248, 248, 0.93));
    color: #000000;
    border: 1px solid rgba(214, 0, 0, 0.12);
    box-shadow: 0 22px 52px rgba(214, 0, 0, 0.18);
}

body.light-theme #quiz-answers button:hover {
    border-color: rgba(214, 0, 0, 0.38);
    box-shadow: 0 28px 60px rgba(214, 0, 0, 0.2);
}

body.light-theme #quiz-answers button .answer-icon {
    background: rgba(214, 0, 0, 0.14);
}

#quiz-container {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    width: 100%;
    background: rgba(18, 18, 18, 0.88);
    padding: 1.75rem 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

body.light-theme #quiz-container {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(214, 0, 0, 0.12);
    box-shadow: 0 25px 55px rgba(214, 0, 0, 0.18);
}

#quiz-result {
    display: none;
    flex-direction: column;
    gap: 1.4rem;
    background: rgba(18, 18, 18, 0.88);
    padding: 1.75rem 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

body.light-theme #quiz-result {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(214, 0, 0, 0.12);
    box-shadow: 0 25px 55px rgba(214, 0, 0, 0.18);
}

.quiz-navigation {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.9rem;
    margin-top: 1.5rem;
}

.quiz-nav-btn,
.quiz-save-btn {
    width: 100%;
    justify-content: center;
}

@media (max-width: 768px) {
    .logo-image {
        width: 32px;
        height: 32px;
        margin-right: 12px;
    }
}


/* Usuwamy specjalne tło strony dla ampio - hero korzysta z baneru Ampio, a reszta stron z ogólnych styli */

main {
    margin-top: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
    font-weight: 400;
    color-scheme: dark;
    background-color: transparent;
}

.background-container,
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background-container {
    background-size: cover;
    background-position: center;
}

.background-overlay {
    background-color: #000;
    opacity: 1; /* Initial opacity */
}

.page-hero.contact-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.08) 0%, rgba(255, 0, 0, 0) 70%);
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Contact Particles */
.contact-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    opacity: var(--particle-opacity, 0.45);
    animation: contactParticleFloat var(--float-duration, 18s) linear infinite;
    animation-delay: var(--float-delay, 0s);
}

@keyframes contactParticleFloat {
    0% {
        transform: translate3d(0, 0, 0) scale(var(--particle-scale, 1));
        opacity: var(--particle-opacity, 0.45);
    }
    50% {
        transform: translate3d(18px, var(--particle-drift, -60px), 0) scale(var(--particle-scale, 1));
    }
    100% {
        transform: translate3d(0, 0, 0) scale(var(--particle-scale, 1));
        opacity: var(--particle-opacity, 0.45);
    }
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-white);
    letter-spacing: -0.02em;
    margin: 0;
}

h1 {
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

/* Dodatkowe style dla nagłówków w sekcjach kontakt.html, które wymagają lepszego kontrastu */
.contact-section-title {
    color: var(--text-white);
}

h2 {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.85rem;
}



.section-glow {
    position: relative;
    overflow: hidden;
}

.section-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.3) 0%, rgba(255, 0, 0, 0) 70%);
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}



section {
    padding: 5rem 5%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Navigation */
header {
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, rgba(255, 0, 0, 0.15) 0%, rgba(20, 20, 20, 0.95) 100%), rgba(20, 20, 20, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 25px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 0, 0, 0.12);
    flex-wrap: nowrap;
    isolation: isolate;
    min-height: 88px;
}

body.light-theme header {
    background-color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid #eee;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 0 0 auto;
    min-width: 0;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.logo span {
    color: var(--accent-red);
}

.logo-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    background-color: var(--accent-red);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-icon::before,
.logo-icon::after {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--text-white);
    border-radius: 50%;
    position: absolute;
}

.logo-icon::before {
    left: 6px;
}

.logo-icon::after {
    right: 6px;
}

.contact-btn-header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.4rem 0.8rem;
    background-color: var(--accent-red);
    color: #ffffff;
    border-radius: 18px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 10px var(--glow-red);
    white-space: nowrap;
}

.contact-btn-header:hover {
    transform: translateY(-2px);
    background-color: var(--accent-red-light);
    box-shadow: 0 0 16px rgba(255, 0, 0, 0.4);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--lighter-gray);
    background-color: transparent;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    flex-shrink: 0;
    margin-right: 0.5rem;
}

.theme-toggle:hover {
    background-color: var(--lighter-gray);
    color: var(--accent-red);
    border-color: var(--accent-red);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--accent-red);
    outline-offset: 2px;
}

.theme-toggle .theme-icon {
    font-size: 1rem;
    line-height: 1;
}

.theme-toggle .theme-icon-sun {
    display: none;
}

body.light-theme .theme-toggle {
    color: var(--accent-red);
    background-color: #ffffff;
    border-color: #ddd;
}

body.light-theme .theme-toggle:hover {
    color: #ffffff;
    background-color: var(--accent-red);
    border-color: var(--accent-red);
}

body.light-theme .theme-toggle .theme-icon-moon {
    display: none;
}

body.light-theme .theme-toggle .theme-icon-sun {
    display: inline;
}

.theme-toggle-text {
    display: none;
}

@media (min-width: 769px) {
    .theme-toggle-text {
        display: inline;
    }
}

.mobile-menu-btn {
    display: inline-flex;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0.25rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    margin-left: 1.5rem;
    flex-shrink: 0;
}

.mobile-menu-btn:hover {
    background-color: var(--lighter-gray);
    color: var(--accent-red);
}

/* Biały kolor hamburger menu w trybie jasnym */
body.light-theme .mobile-menu-btn {
    color: var(--accent-red);
}

body.light-theme .mobile-menu-btn:hover {
    color: var(--accent-red);
}

.header-nav-mobile {
    position: absolute;
    top: calc(100% + 1.25rem);
    right: 5%;
    background-color: var(--darker-bg);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    padding: 1rem;
    min-width: 180px;
    display: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

body.light-theme .header-nav-mobile {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(214, 0, 0, 0.16);
}

.header-nav-mobile.active {
    display: block;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 1px rgba(255, 0, 0, 0.2), 0 18px 42px rgba(0, 0, 0, 0.45);
}

.mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.mobile-nav ul li {
    margin: 0.5rem 0;
}

.mobile-nav ul li a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-family: var(--font-heading);
    font-size: 0.95rem;
}

.mobile-nav ul li a:hover {
    background-color: var(--lighter-gray);
    color: var(--accent-red);
}

body.light-theme .mobile-nav ul li a:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.page-hero {
    padding: 0;
    background-image: url('../images/optimized_all/ampio-baner.webp');
    background-image: image-set(
        url('../images/optimized_all/ampio-baner.webp') type('image/webp'),
        url('../images/optimized_all/ampio-baner.webp') type('image/webp')
    );
    background-size: cover;
    background-position: right center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 35vh;
}

.page-hero.no-bg {
    background: none;
    min-height: auto;
    padding-top: 8rem;
}

body.light-theme .page-hero {
    background:
        radial-gradient(circle at 18% 20%, rgba(214, 0, 0, 0.18), transparent 55%),
        radial-gradient(circle at 82% 15%, rgba(214, 0, 0, 0.12), transparent 45%),
        linear-gradient(120deg, rgba(246, 246, 248, 0.94), rgba(232, 232, 240, 0.96));
}


body.light-theme .hero.contact-hero {
    background: 
        image-set(
            url('../images/optimized_all/kontakt-baner.webp') type('image/webp'),
            url('../images/optimized_all/kontakt-baner.webp') type('image/webp')
        ),
        radial-gradient(circle at 18% 20%, rgba(214, 0, 0, 0.18), transparent 55%),
        radial-gradient(circle at 82% 15%, rgba(214, 0, 0, 0.12), transparent 45%),
        linear-gradient(120deg, rgba(246, 246, 248, 0.94), rgba(232, 232, 240, 0.96));
    background-size: cover;
    background-position: right center;
}

body.light-theme .hero.contact-hero h1 {
    color: var(--text-white);
    text-shadow: 
        0 12px 34px rgba(0, 0, 0, 0.75),
        0 0 14px rgba(214, 0, 0, 0.28),
        0 0 2px rgba(255, 255, 255, 0.35);
    -webkit-text-stroke: 1.3px rgba(0, 0, 0, 0.6);
    paint-order: stroke fill;
}

body.light-theme .hero.contact-hero .hero-eyebrow {
    color: var(--accent-red);
}

.page-hero .container {
    width: 100%;
    padding: 0 10%;
    text-align: left;
}

.page-hero h1 {
    font-size: 4rem;
    text-align: left;
    text-shadow: 0 12px 34px rgba(0, 0, 0, 0.75),
                 0 0 14px rgba(255, 0, 0, 0.28),
                 0 0 2px rgba(255, 255, 255, 0.35);
    -webkit-text-stroke: 1.3px rgba(0, 0, 0, 0.6);
    paint-order: stroke fill;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1.05rem;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent-red);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.12em;
    font-size: 0.82rem;
}

body.light-theme .hero-eyebrow {
    background-color: rgba(214, 0, 0, 0.08);
    border-color: rgba(214, 0, 0, 0.2);
}

.page-hero p {
    font-size: 1.2rem;
    color: rgba(224, 224, 224, 0.9);
}

body.light-theme .page-hero p {
    color: rgba(24, 24, 28, 0.78);
}

.page-hero-features {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.5rem;
}

.hero-feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    background-color: rgba(34, 34, 34, 0.75);
    color: var(--text-white);
    font-weight: 500;
    font-size: 0.95rem;
}

body.light-theme .hero-feature-pill {
    background-color: rgba(255, 255, 255, 0.85);
    color: rgba(34, 34, 34, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.page-hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2.2rem;
}

.cta-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.4rem;
    border-radius: 999px;
    background-color: var(--accent-red);
    color: #ffffff;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 12px 28px rgba(255, 0, 0, 0.28);
}

.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.2), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-button:hover::before {
    opacity: 1;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(255, 0, 0, 0.32);
    background-color: var(--accent-red-light);
}

.cta-button.secondary {
    background: transparent;
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: none;
}

.cta-button.secondary:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--text-white);
}

body.light-theme .cta-button.secondary {
    color: rgba(26, 26, 30, 0.9);
    border-color: rgba(26, 26, 30, 0.4);
}

body.light-theme .cta-button.secondary:hover {
    background-color: rgba(26, 26, 30, 0.08);
}

/* Removed previous changes that made secondary buttons red */

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--accent-red);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
}

.feature-intro {
    display: grid;
    gap: 2.5rem;
}

.feature-intro p {
    max-width: 720px;
    color: rgba(224, 224, 224, 0.85);
    font-size: 1.05rem;
}

body.light-theme .feature-intro p {
    color: rgba(28, 28, 32, 0.82);
}

.feature-grid {
    display: grid;
    gap: 1.8rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature-card {
    background: rgba(26, 26, 26, 0.92);
    border-radius: 18px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.35);
    display: grid;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.feature-card h3 {
    color: var(--text-white);
}

.feature-card p {
    color: rgba(224, 224, 224, 0.8);
    font-size: 0.98rem;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(140deg, rgba(255, 51, 51, 0.9), rgba(255, 0, 0, 0.5));
    display: grid;
    place-items: center;
    box-shadow: 0 12px 24px rgba(255, 0, 0, 0.28);
    color: #ffffff;
}

.card-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.feature-card ul {
    list-style: none;
    display: grid;
    gap: 0.65rem;
    font-size: 0.95rem;
    color: rgba(224, 224, 224, 0.78);
    padding-left: 0;
}

.feature-card ul li {
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: 0.6rem;
    align-items: start;
}

.feature-card ul li::before {
    content: '•';
    color: var(--accent-red);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1;
}

body.light-theme .feature-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(214, 0, 0, 0.12);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

body.light-theme .feature-card::after {
    border-color: rgba(214, 0, 0, 0.14);
}

body.light-theme .feature-card p,
body.light-theme .feature-card ul {
    color: rgba(34, 34, 34, 0.75);
}

body.light-theme .feature-card h3,
body.light-theme .feature-card strong,
body.light-theme .section-title h2,
body.light-theme .section-kicker,
body.light-theme .section-lede,
body.light-theme .section-subtitle,
body.light-theme .trust-card h3,
body.light-theme .assurance-card h3,
body.light-theme .simple-card h3,
body.light-theme .project-card h3,
body.light-theme .trust-card .trust-value,
body.light-theme .stat-value,
body.light-theme .stat-description,
body.light-theme .timeline-step h3,
body.light-theme .investment-front h3,
body.light-theme .investment-front .investment-number,
body.light-theme .investment-back,
body.light-theme .investment-back h3,
body.light-theme .extension-card h3,
body.light-theme .extension-card p,
body.light-theme .smart-basics-card h3,
body.light-theme .ampio-benefit-card h3,
body.light-theme .ampio-benefit-card p,
body.light-theme .ampio-benefit-card li,
body.light-theme .pricing-card h3,
body.light-theme .pricing-card p,
body.light-theme .guarantee-section h2,
body.light-theme .guarantee-section p,
body.light-theme .faq-question,
body.light-theme .faq-answer,
body.light-theme footer,
body.light-theme footer a,
body.light-theme .footer-info p,
body.light-theme .footer-nav a {
    color: #0a0a0c !important;
}

body.light-theme .section-lede {
    color: #1a1a1a;
}

.ampio-timeline {
    margin-top: 3rem;
    display: grid;
    gap: 1.8rem;
    position: relative;
}

.ampio-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 12px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-red), transparent);
    opacity: 0.65;
}

.timeline-step {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 1rem;
    align-items: start;
}

.timeline-step-indicator {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-red);
    box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.12);
    margin-top: 0.35rem;
}

.timeline-step-content {
    background: rgba(18, 18, 18, 0.7);
    padding: 1.2rem 1.4rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
    text-align: left;
}

.timeline-step-content h3 {
    text-align: left;
}

.timeline-step-content p {
    color: rgba(224, 224, 224, 0.78);
    font-size: 0.96rem;
}

body.light-theme .timeline-step-content {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(214, 0, 0, 0.12);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.12);
}

body.light-theme .timeline-step-content p {
    color: rgba(34, 34, 34, 0.72);
}

.integration-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-top: 2.5rem;
}

.integration-card {
    background: rgba(20, 20, 20, 0.8);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: grid;
    gap: 0.75rem;
}

.integration-card span {
    font-weight: 600;
    color: var(--text-white);
}

.integration-card p {
    font-size: 0.95rem;
    color: rgba(224, 224, 224, 0.78);
}

body.light-theme .integration-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(214, 0, 0, 0.12);
}

body.light-theme .integration-card p {
    color: rgba(34, 34, 34, 0.72);
}

.ampio-cta {
    background: var(--accent-red);
    text-align: center;
    border-radius: 28px;
    padding: 4.5rem 5%;
    box-shadow: 0 30px 64px rgba(0, 0, 0, 0.45);
}

.ampio-cta h2 {
    color: #ffffff;
}

.ampio-cta p {
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.92);
    max-width: 640px;
    margin: 0 auto 2.2rem;
}

.ampio-cta .page-hero-actions {
    justify-content: center;
}

/* Style buttons in CTA section to have black background */
.ampio-cta .cta-button {
    background-color: #0b0b0b;
    color: #f6f6f6;
    border: 1px solid transparent;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.ampio-cta .cta-button:hover {
    background-color: #000;
    color: #ffffff;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
}

.ampio-cta .cta-button.secondary {
    background-color: #0b0b0b;
    color: var(--accent-red);
    border-color: var(--accent-red);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.ampio-cta .cta-button.secondary:hover {
    background-color: #000;
    color: var(--accent-red-light);
    border-color: var(--accent-red-light);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.42);
}

body.light-theme .ampio-cta {
    background: var(--accent-red);
}

body.light-theme .ampio-cta h2 {
    color: #ffffff;
}

body.light-theme .ampio-cta p {
    color: rgba(255, 255, 255, 0.92);
}

/* Ensure buttons in CTA section maintain black background in light theme */
body.light-theme .ampio-cta .cta-button {
    background-color: #0b0b0b;
    color: #f6f6f6;
    border: 1px solid transparent;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

body.light-theme .ampio-cta .cta-button:hover {
    background-color: #000;
    color: #ffffff;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
}

body.light-theme .ampio-cta .cta-button.secondary {
    background-color: #0b0b0b;
    color: var(--accent-red);
    border-color: var(--accent-red);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

body.light-theme .ampio-cta .cta-button.secondary:hover {
    background-color: #000;
    color: var(--accent-red-light);
    border-color: var(--accent-red-light);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.42);
}

.fade-in {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.fade-in.animate {
    opacity: 1;
    transform: translateY(0);
}

.rich-list {
    list-style: none;
    display: grid;
    gap: 0.75rem;
    font-size: 1rem;
    color: rgba(224, 224, 224, 0.85);
}

body.light-theme .rich-list {
    color: rgba(34, 34, 34, 0.78);
}

.section-lede {
    max-width: 760px;
    font-size: 1.08rem;
    color: rgba(224, 224, 224, 0.82);
    margin-bottom: 2.2rem;
}

body.light-theme .section-lede {
    color: rgba(28, 28, 32, 0.8);
}

.two-column {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: start;
}

.stat-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 2.5rem;
}

@media (max-width: 992px) {
    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .quiz-modal-content {
        width: 90%;
        padding: 22px 18px 28px;
    }

    #quiz-container {
        gap: 1.4rem;
    }

    #quiz-question {
        font-size: 1.45rem;
        margin-bottom: 1rem;
    }

    #quiz-answers button {
        padding: 0.8rem 1.1rem;
        font-size: 1rem;
        margin: 0;
    }

    .quiz-progress {
        font-size: 1rem;
    }

    .quiz-navigation {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.9rem;
    }

    .quiz-nav-btn,
    .quiz-save-btn {
        flex: 0 1 auto;
        min-width: 150px;
    }
}

@media (max-width: 640px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    padding: 1.8rem 1.6rem;
    border-radius: 16px;
    background: rgba(22, 22, 22, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

.stat-card strong {
    display: block;
    font-size: 2rem;
    font-weight: 700; /* Explicitly set bold */
    color: var(--text-white);
    margin-bottom: 0.4rem;
}

/* Ensure the animated number inside a stat card has the same style as the unit */
.stat-card strong span {
    font-size: inherit;
    font-weight: inherit;
}

/* Ensure the animated number inside a stat card has the same style as the unit */
.stat-card strong span {
    font-size: inherit;
    font-weight: inherit;
}

.stat-card span {
    color: rgba(224, 224, 224, 0.75);
    font-size: 0.95rem;
}

body.light-theme .stat-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(214, 0, 0, 0.12);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
}

body.light-theme .stat-card span {
    color: rgba(34, 34, 34, 0.7);
}

.quote-card {
    padding: 2rem;
    border-radius: 18px;
    background: rgba(22, 22, 22, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 36px rgba(0, 0, 0, 0.3);
    font-family: var(--font-serif);
    font-size: 1.2rem;
    line-height: 1.8;
}

.quote-card cite {
    display: block;
    margin-top: 1.2rem;
    font-style: normal;
    font-weight: 600;
    color: var(--accent-red);
}

body.light-theme .quote-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(214, 0, 0, 0.12);
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
    list-style: none;
    padding: 0;
}

.pill-list li {
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    background-color: rgba(34, 34, 34, 0.8);
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
}

body.light-theme .pill-list li {
    background-color: rgba(255, 255, 255, 0.9);
    color: rgba(30, 30, 34, 0.8);
    border: 1px solid rgba(214, 0, 0, 0.12);
}

.form-card {
    margin-top: 2.5rem;
    padding: 2.3rem;
    border-radius: 20px;
    background: rgba(18, 18, 18, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 24px 42px rgba(0, 0, 0, 0.32);
}

.form-grid {
    display: grid;
    gap: 1.4rem;
}

.form-field {
    display: grid;
    gap: 0.6rem;
}

.form-field label {
    font-weight: 600;
    color: var(--text-white);
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(12, 12, 12, 0.9);
    color: var(--text-light);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.25);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: flex-start;
}

.contact-points {
    display: grid;
    gap: 1.2rem;
}

.contact-points a {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
}

.contact-points svg {
    width: 20px;
    height: 20px;
    color: var(--accent-red);
}

body.light-theme .form-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(214, 0, 0, 0.12);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.12);
}

body.light-theme .form-field label {
    color: rgba(30, 30, 34, 0.9);
}

body.light-theme .form-field input,
body.light-theme .form-field textarea,
body.light-theme .form-field select {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(214, 0, 0, 0.12);
    color: rgba(30, 30, 34, 0.9);
}

.content-list {
    list-style: none;
    display: grid;
    gap: 1rem;
    font-size: 1rem;
    color: rgba(224, 224, 224, 0.82);
}

.content-list li {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 0.75rem;
    align-items: start;
}

.content-list li::before {
    content: '•';
    color: var(--accent-red);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1;
}

body.light-theme .content-list {
    color: rgba(30, 30, 34, 0.8);
}

.card-grid {
    display: grid;
    gap: 1.6rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.simple-card {
    padding: 1.8rem;
    border-radius: 18px;
    background: rgba(24, 24, 24, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 36px rgba(0, 0, 0, 0.28);
    display: grid;
    gap: 0.9rem;
}

.simple-card h3 {
    margin-bottom: 0.25rem;
}

.simple-card p {
    color: rgba(224, 224, 224, 0.78);
    font-size: 0.98rem;
}

body.light-theme .simple-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(214, 0, 0, 0.12);
}

body.light-theme .simple-card p {
    color: rgba(30, 30, 34, 0.75);
}

.project-grid {
    display: grid;
    gap: 1.8rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.project-card {
    background: rgba(22, 22, 22, 0.85);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.32);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
}

/* Style dla obrazów w projektach z wrapperem */
.project-card .project-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.project-card-content {
    padding: 1.8rem;
    display: grid;
    gap: 1rem;
    flex: 1;
}

.project-card h3 {
    margin: 0;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.project-meta span {
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(34, 34, 34, 0.75);
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
}

body.light-theme .project-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(214, 0, 0, 0.12);
}

body.light-theme .project-meta span {
    background: rgba(255, 255, 255, 0.9);
    color: rgba(34, 34, 34, 0.75);
    border: 1px solid rgba(214, 0, 0, 0.12);
}

.reveal-tilt {
    opacity: 0;
    transform: perspective(1000px) rotateX(8deg) translateY(40px) scale(0.96);
    transform-origin: top center;
    transition: opacity 0.6s ease, transform 0.85s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal-tilt.animate {
    opacity: 1;
    transform: perspective(1000px) rotateX(0) translateY(0) scale(1);
}



@media (max-width: 1024px) {
    h1 {
        font-size: 2.6rem;
    }

    h2 {
        font-size: 2.1rem;
    }

    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 5%;
    }

    .page-hero {
        padding: 7.5rem 6% 5.5rem;
    }

    .page-hero-features {
        gap: 0.8rem;
    }

    .timeline-step {
        grid-template-columns: 28px 1fr;
    }

    .timeline-step::before {
        left: 10px;
    }

    section {
        padding: 4rem 5%;
    }
}

@media (max-width: 600px) {
    .page-hero p {
        font-size: 1.05rem;
    }

    .hero-feature-pill {
        width: 100%;
        justify-content: center;
    }

    .page-hero-actions {
        flex-direction: column;
    }
}

.feature-rows {
    display: grid;
    gap: 4rem;
    margin-top: 3rem;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.feature-row-reverse {
    grid-template-columns: 1fr 1fr;
}

.feature-row-reverse .feature-image {
    order: 2;
}

.feature-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
    aspect-ratio: 16 / 10;
}

.feature-description h3 {
    font-size: 2rem;
    color: var(--accent-red);
}

.feature-description p {
    margin: 1rem 0;
}

.feature-description ul {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
    display: grid;
    gap: 0.75rem;
}

.feature-description ul li {
    display: flex;
    align-items: flex-start;
}

.feature-description ul li::before {
    content: '✓';
    color: var(--accent-red);
    margin-right: 10px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .feature-row,
    .feature-row-reverse {
        grid-template-columns: 1fr;
    }

    .feature-row-reverse .feature-image {
        order: 0;
    }
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

.benefit-card {
    background-color: var(--light-gray);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--lighter-gray);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.2);
    border: 1px solid var(--accent-red);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon svg {
    width: 50px;
    height: 50px;
    stroke: var(--accent-red);
    transition: transform 0.3s ease, stroke 0.3s ease;
}

.benefit-card:hover .benefit-icon svg {
    transform: scale(1.1);
    stroke: var(--accent-red-light);
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.benefit-card p {
    font-size: 1rem;
    color: var(--text-light);
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: rgba(26, 26, 26, 0.92);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.35);
    text-align: left;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card-link:hover .product-card {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 25px 45px rgba(255, 0, 0, 0.25);
}

.product-image {
    background-color: var(--dark-gray);
}

.product-image img {
    width: 100%;
    height: 200px;
    object-fit: contain;
}

.product-card h3 {
    margin: 1.5rem 1.5rem 0.5rem;
}

.product-card p {
    color: rgba(224, 224, 224, 0.78);
    font-size: 0.98rem;
    padding: 0 1.5rem 1.5rem;
    flex-grow: 1;
    margin-bottom: 0;
}

/* Interactive Glow Effect on Cards */
.product-card, .benefit-card, .project-card, .simple-card, .trust-card, .assurance-card, .extension-card {
    position: relative; /* Needed for the pseudo-element */
    overflow: hidden; /* Hide the glow that goes outside the border */
}

.product-card::before, .benefit-card::before, .project-card::before, .simple-card::before, .trust-card::before, .assurance-card::before, .extension-card::before {
    content: '';
    position: absolute;
    left: var(--x, 50%);
    top: var(--y, 50%);
    width: 300px; /* Size of the glow */
    height: 300px;
    background: radial-gradient(circle closest-side, var(--accent-red-light), transparent);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none; /* don't block clicks on links inside the card */
}

.product-card:hover::before, .benefit-card:hover::before, .project-card:hover::before, .simple-card:hover::before, .trust-card:hover::before, .assurance-card:hover::before, .extension-card:hover::before {
    opacity: 0.1; /* Make the glow visible on hover */
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block; 
    height: 100%;
}

.product-card-link .product-card {
    height: 100%;
}
.hero-sub-section {
    background-color: transparent;
    padding: 4rem 5%;
    text-align: center;
}

.hero-sub-section .section-lede {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
}
.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

footer {
    background-color: var(--darker-bg);
    padding: 4rem 5% 2rem;
    color: var(--text-light);
    border-top: 1px solid var(--lighter-gray);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.footer-info, .footer-links, .footer-contact {
    flex: 1;
    min-width: 200px;
    text-align: left;
}

.footer-links h3, .footer-contact h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--text-white);
    text-align: left;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0 0 0 1rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
    padding-left: 0;
}

.footer-links ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.footer-links ul li a:hover {
    color: var(--accent-red);
}

.contact-info-footer {
    margin-top: 1.5rem;
}

.contact-info-footer p {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.contact-info-footer svg {
    margin-right: 10px;
    fill: var(--accent-red);
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--medium-gray);
}

/* Stylizacja sekcji z certyfikatami */
.certificates-section {
    padding: 5rem 5%;
}

.certificates-grid {
    display: grid;
    gap: 1.8rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 2.5rem;
}

@media (max-width: 1100px) {
    .certificates-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .quiz-modal-content {
        width: 90%;
        padding: 22px 18px 28px;
    }

    #quiz-container {
        gap: 1.4rem;
    }

    #quiz-question {
        font-size: 1.45rem;
        margin-bottom: 1rem;
    }

    #quiz-answers button {
        padding: 0.8rem 1.1rem;
        font-size: 1rem;
        margin: 0;
    }

    .quiz-progress {
        font-size: 1rem;
    }

    .quiz-navigation {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.9rem;
    }

    .quiz-nav-btn,
    .quiz-save-btn {
        flex: 0 1 auto;
        min-width: 150px;
    }
}

@media (max-width: 640px) {
    .certificates-grid {
        grid-template-columns: 1fr;
    }
}

.certificate-card {
    background: rgba(26, 26, 26, 0.92);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 0, 0, 0.4);
}

.certificate-card.main-cert {
    background: linear-gradient(140deg, rgba(30, 30, 30, 0.95), rgba(20, 20, 20, 0.95));
    border: 1px solid rgba(255, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.certificate-card.main-cert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-red-light));
    z-index: 1;
}

.certificate-card.main-cert:hover {
    border: 1px solid rgba(255, 0, 0, 0.6);
}

.certificate-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: rgba(15, 15, 15, 0.8);
}

.certificate-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.certificate-card:hover .certificate-image img {
    transform: scale(1.05);
}

.certificate-label {
    padding: 1.2rem 1rem;
    width: 100%;
}

.certificate-label h3 {
    color: var(--text-white);
}

@keyframes jump-in {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.jump-in-animation {
    animation: jump-in 0.5s ease-out forwards;
}

.certificate-label p {
    color: var(--accent-red);
    font-size: 0.85rem;
    margin: 0;
}

body.light-theme .certificate-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(214, 0, 0, 0.12);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.12);
}

body.light-theme .certificate-card:hover {
    border: 1px solid rgba(214, 0, 0, 0.3);
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.15);
}

body.light-theme .certificate-card.main-cert {
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.95), rgba(245, 245, 245, 0.95));
    border: 1px solid rgba(214, 0, 0, 0.3);
}

body.light-theme .certificate-card.main-cert:hover {
    border: 1px solid rgba(214, 0, 0, 0.5);
}

body.light-theme .certificate-label h3 {
    color: var(--text-white);
}

body.light-theme .certificate-label p {
    color: var(--accent-red);
}

/* Stylizacja overlayu dla powiększania certyfikatów */

/* Staggered Grid Animation */
.product-grid > *, .benefits-grid > *, .project-grid > *, .certificates-grid > *, .feature-grid > *, .ampio-benefits-grid > *, .trust-grid > *, .assurance-grid > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.stagger-activated > * {
    opacity: 1;
    transform: translateY(0);
}

body.light-theme .product-card h3,
body.light-theme .product-card p {
    color: #FFFFFF;
}

/* Hero Section Styles from oferta.html */
/* Hero Section */
.hero {
    padding: 9rem 5% 4rem;
    background: transparent;
    position: relative;
    overflow: hidden;
    min-height: 92vh;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.1) 30%, rgba(0,0,0,0.1) 70%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
    pointer-events: none;
}
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    transform: translateZ(0);
}
.video-background video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: cover;
    object-position: center;
}
.hero-text {
    flex: 0 0 auto;
    max-width: 760px;
    margin: 0 0 2rem 0;
    padding: 0 2rem;
    text-align: left;
}
.hero-content {
    max-width: 1200px;
    margin: 0 0 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    position: relative;
    z-index: 4;
    width: 100%;
    padding-left: 4rem;
}
.hero-heading {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    position: relative;
    color: rgba(255, 255, 255, 0.98);
    text-align: left;
    text-shadow: 0 12px 34px rgba(0, 0, 0, 0.75),
                 0 0 14px rgba(255, 0, 0, 0.28),
                 0 0 2px rgba(255, 255, 255, 0.35);
    -webkit-text-stroke: 1.3px rgba(0, 0, 0, 0.6);
    paint-order: stroke fill;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.hero-line {
    display: block;
    opacity: 0;
    transform: translateY(18px);
    animation: heroWordFade 0.55s ease-out forwards;
    white-space: nowrap;
    text-shadow: 0 12px 34px rgba(0, 0, 0, 0.75),
                 0 0 14px rgba(255, 0, 0, 0.28),
                 0 0 2px rgba(255, 255, 255, 0.35);
    -webkit-text-stroke: 1.3px rgba(0, 0, 0, 0.6);
    paint-order: stroke fill;
    filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.4));
}
.hero-line.hero-line-1 {
    animation-delay: 1.15s; 
}
.hero-line.hero-line-2 { 
    animation-delay: 1.35s; 
    margin-top: 0.5em;
}

.hero-line-phone {
    display: inline-flex;
    animation: heroWordFade 0.55s ease-out forwards;
    animation-delay: 1.55s;
    opacity: 0;
    transform: translateY(18px);
    margin: 1.5rem auto;
    font-size: 1.8rem;
    padding: 1.05rem 2.25rem;
    gap: 1.35rem;
    white-space: nowrap;
    text-shadow: 0 12px 34px rgba(0, 0, 0, 0.75),
                 0 0 14px rgba(255, 0, 0, 0.28),
                 0 0 2px rgba(255, 255, 255, 0.35);
    -webkit-text-stroke: 1.3px rgba(0, 0, 0, 0.6);
    paint-order: stroke fill;
    filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.4));
}

@keyframes heroWordFade {
    0% {
        opacity: 0;
        transform: translateY(18px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.certificate-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.certificate-overlay-content {
    position: relative;
    display: block;
    margin: 5vh auto;
    padding: 20px;
    max-width: 90%;
    max-height: 90vh;
    animation: zoom 0.3s;
    text-align: center;
}

@keyframes zoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.certificate-overlay img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.certificate-overlay-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.certificate-overlay-close:hover,
.certificate-overlay-close:focus {
    color: var(--accent-red);
}

/* Dodatkowe style dla efektu zoom po najechaniu kursorem */
.certificate-image {
    overflow: hidden;
    transition: all 0.3s ease;
}

.zoomable-cert {
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.certificate-card:hover .zoomable-cert {
    transform: scale(1.05);
}/* Nagłówek */
/* Navigation */
header {
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: 
        linear-gradient(90deg, rgba(255, 0, 0, 0.15) 0%, rgba(20, 20, 20, 0.95) 100%),
        rgba(20, 20, 20, 0.95);
    position: fixed; /* Przywracamy fixed, aby był zawsze na górze */
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 25px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 0, 0, 0.12);
    flex-wrap: nowrap;
    height: 80px; /* Ustawiamy konkretną wysokość nagłówka */
}

body.light-theme header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cert-badge-header {
    display: inline-block;
    background-color: var(--accent-red);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    animation: pulse 3s infinite;
    margin: 0 1rem;
    text-align: center;
    box-shadow: 0 0 15px var(--glow-red);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    min-width: 0;
}





.contact-info-header {
    display: flex;
    gap: 0.5rem;
    margin-right: 1rem;
    flex: 0 0 auto;
    min-width: 320px;
    align-items: center;
}



.contact-btn-header svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.contact-btn-header:hover {
    transform: translateY(-2px);
    background-color: var(--accent-red-light);
    box-shadow: 0 0 16px rgba(255, 0, 0, 0.4);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--lighter-gray);
    background-color: transparent;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    margin-right: 0.75rem;
}

.theme-toggle:hover {
    background-color: var(--lighter-gray);
    color: var(--accent-red);
    border-color: var(--accent-red);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--accent-red);
    outline-offset: 2px;
}

.theme-toggle .theme-icon {
    font-size: 1rem;
    line-height: 1;
}

.theme-toggle .theme-icon-sun {
    display: none;
}

body.light-theme .theme-toggle .theme-icon-moon {
    display: none;
}

body.light-theme .theme-toggle .theme-icon-sun {
    display: inline;
}

.theme-toggle-text {
    display: none;
}

@media (min-width: 769px) {
    .theme-toggle-text {
        display: inline;
    }
}

body.light-theme .mobile-menu-btn {
    color: var(--accent-red);
}

body.light-theme .theme-toggle {
    color: var(--accent-red);
    background-color: #ffffff;
    border-color: #ddd;
}
body.light-theme .theme-toggle:hover {
    color: #ffffff;
    background-color: var(--accent-red);
    border-color: var(--accent-red);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.logo-image {
    width: 42px;
    height: 42px;
    margin-right: 15px;
    display: block;
}

.logo span {
    color: var(--accent-red);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}



.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    margin-left: 1rem;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    z-index: 1001;
}

.mobile-menu-btn:hover {
    background-color: var(--lighter-gray);
    color: var(--accent-red);
}



.header-nav-mobile {
    position: absolute;
    top: calc(100% + 1.25rem);
    right: 5%;
    background-color: var(--darker-bg);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    z-index: 999;
    padding: 1rem;
    min-width: 180px;
    display: none;
}

body.light-theme .header-nav-mobile {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.header-nav-mobile.active {
    display: block;
}

.mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.mobile-nav ul li {
    margin: 0.5rem 0;
}

.mobile-nav ul li a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-family: var(--font-heading);
    font-size: 0.95rem;
}

.mobile-nav ul li a:hover {
    background-color: var(--lighter-gray);
    color: var(--accent-red);
}

body.light-theme .mobile-nav ul li a:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Hero Section - ulepszenia */
.hero {
    padding: 0 5% 5rem; /* Usuwamy górny padding i zostawiamy tylko dolny */
    background: transparent; /* Ustawienie przezroczystego tła */
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}



.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: var(--accent-red);
    border-radius: 50%;
    opacity: 0;
    animation: float 15s infinite linear;
    box-shadow: 0 0 5px var(--glow-red);
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-20px) translateX(100px);
        opacity: 0;
    }
}

.hero-content {
    max-width: 1200px;
    margin: 0 0 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    position: relative;
    z-index: 4;
    width: 100%;
    padding: clamp(6.5rem, 11vw, 8.5rem) 4rem 3rem;
}

.hero-text {
    flex: 0 0 auto; /* Zmieniono, aby nie rozciągał się automatycznie */
    max-width: 760px;
    margin: 0 0 2rem 0;
    padding: 0 2rem;
    text-align: left;
}

.hero h1 {
    font-size: clamp(3.2rem, 5vw, 3.9rem);
    margin-bottom: 1.4rem;
    position: relative;
    color: rgba(255, 255, 255, 0.96);
    text-align: left;
    text-shadow: 0 16px 44px rgba(0, 0, 0, 0.55),
                 0 0 16px rgba(255, 0, 0, 0.25);
    -webkit-text-stroke: 0;
}

.hero h1::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-red);
    margin: 1.5rem auto 0;
    box-shadow: 0 0 10px var(--glow-red);
}

.hero p {
    font-size: clamp(1.08rem, 1.4vw, 1.24rem);
    margin: 0 auto 2.1rem;
    color: rgba(236, 236, 236, 0.92);
    max-width: 640px;
    line-height: 1.7;
    text-align: center;
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    -webkit-text-stroke: 0;
}



@media (max-width: 1024px) {
    .hero {
        padding: 7.5rem 6% 9rem;
    }

    .hero h1 {
        font-size: 4.2rem;
    }

    .hero p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 4.5rem 1.5rem 3.5rem;
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* ZMIANA: Zamiast center - wyrównanie do lewej */
        justify-content: flex-end; /* ZMIANA: Zamiast rozłożenia elementów - wyrównanie do dołu */
        gap: 1.75rem;
        text-align: left; /* Zmieniamy na left */
        word-break: break-word !important; /* Zapewniamy zawijanie tekstu w całej sekcji */
        white-space: normal !important; /* Zapewniamy normalne zawijanie tekstu */
    }

    #hero-video {
        position: relative;
        inset: auto;
        width: min(480px, 100%);
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        transform: none;
        margin: 0 auto;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45);
    }

    .hero-overlay,
    .hero-particles {
        display: none;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start !important; /* Elementy wyrównane do lewej */
        justify-content: flex-end !important; /* Elementy zbierane przy dolnej krawędzi kontenera */
        padding: 0 1rem 2rem 1rem !important;
        margin: 0 !important; /* Usuwamy górny margines, bo .hero już wyrównuje do dołu */
        width: 100% !important;
        max-width: 100% !important; /* Pełna szerokość */
        text-align: left !important;
        align-content: flex-end !important; /* Wyrównanie do dolnej krawędzi */
        flex: 1 1 auto; /* Elastyczność */
    }

    .hero-text {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        text-align: left !important;
        word-break: break-word !important; /* Tekst będzie się zawijał zgodnie z szerokością ekranu */
        white-space: normal !important; /* Zapewniamy normalne zawijanie tekstu */
    }

    .hero h1 {
        font-size: clamp(1.9rem, 7vw, 2.4rem);
        line-height: 1.18;
        margin-bottom: 0.75rem !important;
        text-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
        -webkit-text-stroke: 0;
        text-align: left !important;
        width: 100% !important;
        word-wrap: break-word !important; /* Dodajemy zawijanie słów */
        overflow-wrap: break-word !important; /* Dodatkowo zapewniamy zawijanie */
        white-space: normal !important; /* Zapewniamy normalne zawijanie tekstu */
    }

    .hero h1::after {
        margin: 0.7rem 0 0 !important;
        margin-left: 0 !important; /* Aby linia pod nagłówkiem była również po lewej */
        margin-right: 0 !important;
        align-self: flex-start !important; /* Linia również do lewej */
    }

    .hero-line {
        text-align: left !important;
        display: block !important;
        width: 100% !important;
        margin-left: 0 !important;
        text-align: left !important;
        word-wrap: break-word !important; /* Dodajemy zawijanie słów */
        overflow-wrap: break-word !important; /* Dodatkowo zapewniamy zawijanie */
        white-space: normal !important; /* Zapewniamy normalne zawijanie tekstu */
        word-break: break-word !important; /* Dodajemy przerwanie długich wyrazów */
    }

    .hero p {
        font-size: clamp(0.98rem, 3.4vw, 1.08rem);
        margin: 0.75rem 0 1.75rem 0 !important; /* Usuwamy auto i ustawiamy 0 dla lewego marginesu */
        text-align: left !important;
        text-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
        -webkit-text-stroke: 0;
        width: 100% !important;
        word-wrap: break-word !important; /* Dodajemy zawijanie słów */
        overflow-wrap: break-word !important; /* Dodatkowo zapewniamy zawijanie */
        white-space: normal !important; /* Zapewniamy normalne zawijanie tekstu */
    }

    /* Specjalne style dla przycisku telefonu w sekcji hero */
    .hero-line-phone {
        align-self: flex-start !important; /* Przycisk telefonu również przesuwamy bardziej w lewo */
        margin: 1.5rem 0 1.5rem 0 !important; /* Zmieniamy margin z 'auto' na 0, by przestać wyśrodkowywać */
        text-align: left !important;
        justify-content: flex-start !important; /* Dodatkowo wymuszamy wyrównanie do lewej */
        display: flex !important; /* Zmieniamy z inline-flex na flex dla lepszego wyrównania */
        margin-left: 0 !important; /* Dodatkowo wymuszamy brak marginesu po lewej */
        justify-content: flex-start !important; /* Nadpisujemy justify-content z contact-btn-header */
        width: 100% !important; /* Przycisk zajmuje pełną szerokość dostępną */
        max-width: 100% !important; /* Zapobiega przekroczeniu szerokości ekranu */
        word-wrap: break-word !important; /* Dodajemy zawijanie tekstu w przycisku */
        overflow-wrap: break-word !important; /* Zapewniamy zawijanie długich tekstów */
        white-space: normal !important; /* Zapewniamy normalne zawijanie tekstu */
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        width: 100% !important;
        align-self: flex-start !important; /* Wyrównujemy przyciski do lewej */
        text-align: left !important;
    }

    .hero-buttons .cta-button {
        width: 100%;
    }
}

.hero-buttons .cta-button {
    width: 100%;
}

@media (max-width: 480px) {
    .hero {
        padding: 3.8rem 1.1rem 2.6rem;
        gap: 1.5rem;
    }

    #hero-video {
        width: min(340px, 100%);
        border-radius: 14px;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 8vw, 2.15rem);
    }

    .hero p {
        font-size: 0.98rem;
    }
}

.word-animate {
    display: inline;
    opacity: 0;
    transform: translateY(18px);
    animation: heroWordFade 0.55s ease-out forwards;
}

.word-animate:nth-child(1) { animation-delay: 0.1s; }
.word-animate:nth-child(2) { animation-delay: 0.2s; }
.word-animate:nth-child(3) { animation-delay: 0.3s; }
.word-animate:nth-child(4) { animation-delay: 0.4s; }
.word-animate:nth-child(5) { animation-delay: 0.5s; }
.word-animate:nth-child(6) { animation-delay: 0.6s; }
.word-animate:nth-child(7) { animation-delay: 0.7s; }
.word-animate:nth-child(8) { animation-delay: 0.8s; }
.word-animate:nth-child(9) { animation-delay: 0.9s; }

.hero-line {
    display: block;
    opacity: 0;
    transform: translateY(18px);
    animation: heroWordFade 0.55s ease-out forwards;
    white-space: normal;
    filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.4));
}

.hero-line.hero-line-1 { 
    animation-delay: 1.15s; 
}

.hero-line.hero-line-2 { 
    animation-delay: 1.35s; 
    margin-top: 0.5em;
}

@media (min-width: 769px) {
    .hero-line {
        white-space: nowrap;
    }
}

@keyframes heroWordFade {
    0% {
        opacity: 0;
        transform: translateY(18px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.sentence-animate {
    display: block;
    opacity: 0;
    transform: translateY(18px);
    animation: heroSentenceFade 0.55s ease-out forwards;
}

.sentence-animate:nth-child(1) { animation-delay: 1.15s; }
.sentence-animate:nth-child(2) { animation-delay: 1.35s; }
.sentence-animate:nth-child(3) { animation-delay: 1.55s; }

@keyframes heroSentenceFade {
    0% {
        opacity: 0;
        transform: translateY(18px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons > * {
    --hero-button-delay: 1.9s;
    opacity: 0;
    transform: translateY(18px);
    animation-name: heroButtonFade;
    animation-duration: 0.55s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
    animation-delay: var(--hero-button-delay);
}

.hero-buttons > *:nth-child(2) { --hero-button-delay: 2.05s; }
.hero-buttons > *:nth-child(3) { --hero-button-delay: 2.2s; }

.hero-buttons > *.pulse {
    animation-name: heroButtonFade, pulse;
    animation-duration: 0.55s, 3s;
    animation-timing-function: ease-out, ease-in-out;
    animation-delay: var(--hero-button-delay), calc(var(--hero-button-delay) + 0.6s);
    animation-fill-mode: forwards, none;
    animation-iteration-count: 1, infinite;
}

@keyframes heroButtonFade {
    0% {
        opacity: 0;
        transform: translateY(18px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
    justify-content: flex-end;
}

.hero-buttons .cta-button {
    margin-right: 0;
}

.hero-content-below {
    padding: 5rem 5%;
    text-align: center;
    position: relative;
    z-index: 3;
}

.hero-content-below .container {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content-below .section-lede {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

body.light-theme .hero-content-below .section-lede {
    color: #555;
}

.hero-content-below .page-hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-content-below .page-hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-content-below .cta-button {
        width: 100%;
        max-width: 300px;
        margin: 0.5rem 0;
    }
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-red);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    cursor: pointer;
    box-shadow: 0 0 15px var(--glow-red);
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin-right: 1rem;
    text-align: center;
    letter-spacing: 0.02em;
    transform: translateY(0);
    font-family: var(--font-heading);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent-red-light);
    z-index: -1;
    transition: transform 0.3s ease;
    transform: scaleX(0);
    transform-origin: left;
}

.cta-button:hover::before {
    transform: scaleX(1);
}

.cta-button:hover {
    background-color: var(--accent-red-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--glow-red);
}

.cta-button.secondary {
    background-color: var(--medium-gray);
    color: var(--text-white);
    border: 1px solid var(--accent-red);
    box-shadow: 0 0 10px var(--glow-red);
}

.cta-button.secondary::before {
    background-color: var(--lighter-gray);
}

.cta-button.secondary:hover {
    background-color: var(--lighter-gray);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--glow-red);
}

.cta-button:last-child {
    margin-right: 0;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-buttons .cta-button,
.hero-buttons .cert-badge {
    position: relative;
    z-index: 5;
}

.hero-content-below {
    padding: 5rem 5%;
    text-align: center;
    position: relative;
    z-index: 3;
}

.hero-content-below .container {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content-below .section-lede {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

body.light-theme .hero-content-below .section-lede {
    color: #555;
}

.hero-content-below .page-hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-content-below .page-hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-content-below .cta-button {
        width: 100%;
        max-width: 300px;
        margin: 0.5rem 0;
    }
}

/* Styl dla Paska Zaufania */
.trust-bar {
    position: relative;
    margin: 0; /* Usuwamy górny margines */
    padding: 4.5rem 6% 3.5rem;
    background:
        radial-gradient(130% 150% at 50% 0%, rgba(255, 0, 0, 0.3) 0%, rgba(255, 0, 0, 0.12) 48%, rgba(255, 0, 0, 0) 78%),
        linear-gradient(180deg, rgba(18, 18, 18, 0.94) 0%, rgba(10, 10, 10, 0.92) 100%);
    color: var(--text-light);
    text-align: center;
    border-radius: 0;
    width: 100%;
    max-width: none;
    z-index: 6;
    box-shadow: none;
    scroll-margin-top: 130px;
    overflow: hidden;
}

.trust-bar::before {
    display: none;
}

.trust-bar .container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 2.5rem;
    width: 100%;
    z-index: 1;
}
.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.trust-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.trust-item:nth-child(1) { transition-delay: 0.1s; }
.trust-item:nth-child(2) { transition-delay: 0.2s; }
.trust-item:nth-child(3) { transition-delay: 0.3s; }
.trust-item:nth-child(4) { transition-delay: 0.4s; }

.trust-value {
    font-family: var(--font-heading);
    font-size: 2.5em;
    font-weight: 700;
    color: var(--accent-red);
    margin-bottom: 5px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    min-width: var(--trust-value-min-width, 4.5ch);
    min-height: 1.1em;
    line-height: 1.1;
    text-align: center;
    font-variant-numeric: tabular-nums lining-nums;
    font-feature-settings: 'tnum' 1, 'lnum' 1;
    white-space: nowrap;
}

/* Efekt pulsowania dla liczników */
.trust-value.animate {
    animation: pulseCounter 2s ease-in-out;
}

@keyframes pulseCounter {
    0% {
        transform: scale(1);
        text-shadow: 0 0 0 rgba(255, 0, 0, 0);
    }
    50% {
        transform: scale(1.1);
        text-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
    }
    100% {
        transform: scale(1);
        text-shadow: 0 0 0 rgba(255, 0, 0, 0);
    }
}

@media (max-width: 768px) {
    .trust-bar {
        padding: 3.2rem 1.35rem 2.8rem;
    }

    .trust-bar .container {
        flex-direction: column;
        align-items: center;
        gap: 1.6rem;
    }

    .trust-item {
        width: 100%;
    }

    .trust-value {
        font-size: 2rem;
    }

    .trust-label {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .trust-bar {
        padding: 2.8rem 1.1rem 2.4rem;
    }

    .trust-value {
        font-size: 1.8rem;
    }

    .trust-label {
        font-size: 0.9rem;
    }
}
.trust-label {
    font-family: var(--font-sans);
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    line-height: 1.3;
}

.trust-label-secondary {
    font-size: 0.75em;
    letter-spacing: 0.5px;
    display: block;
    margin-top: 4px;
}

/* Poprawa wyglądu deski zaufania w trybie jasnym */
body.light-theme .trust-bar {
    background: 
        radial-gradient(130% 150% at 50% 0%, rgba(214, 0, 0, 0.25) 0%, rgba(214, 0, 0, 0.12) 48%, rgba(214, 0, 0, 0) 78%),
        linear-gradient(180deg, rgba(245, 245, 247, 0.94) 0%, rgba(240, 240, 244, 0.92) 100%);
    color: #333;
}

body.light-theme .trust-value {
    color: #d60000; /* Jasnoczerwony kolor dla wartości w trybie jasnym */
}

body.light-theme .trust-label {
    color: #333; /* Ciemny kolor tekstu dla etykiet w trybie jasnym */
}

body.light-theme .trust-label-secondary {
    color: #555; /* Lekko jaśniejszy kolor dla tekstu pomocniczego */
}

.trust-proof {
    background: linear-gradient(160deg, rgba(10, 10, 10, 0.92), rgba(10, 10, 10, 0.82));
    padding: clamp(6rem, 10vw, 8rem) 5%; /* Zwiększono padding, by zająć więcej przestrzeni */
    margin-bottom: 3rem; /* Dodajemy margines na dole, aby zapobiec nachodzeniu na następną sekcję */
    min-height: 70vh; /* Zwiększamy minimalną wysokość całej sekcji */
}

.trust-proof .section-title-reveal {
    text-align: center;
    margin-bottom: 1.5rem;
}

.trust-proof .section-lede {
    max-width: 720px;
    margin-bottom: 3rem;
    text-align: center;
}

.trust-proof-grid {
    display: grid;
    gap: clamp(1.8rem, 4vw, 2.6rem);
    grid-template-columns: repeat(3, 1fr); /* Trzy kolumny o równej szerokości */
    justify-items: center;
    grid-auto-rows: 1fr; /* Wymusza tę samą wysokość dla wszystkich kart */
}

.trust-proof-card {
    background: rgba(26, 26, 26, 0.9);
    border-radius: 20px;
    padding: clamp(1.8rem, 3vw, 2.2rem);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    height: 100%; /* Wymuszenie pełnej wysokości kontenera */
    min-height: 380px; /* Zwiększona minimalna wysokość */
}

.trust-proof-card h3 {
    color: #ffffff;
    font-size: 1.55rem;
    font-weight: 600;
}

.trust-proof-card p {
    color: rgba(232, 232, 232, 0.88);
    font-size: 1rem;
    line-height: 1.7;
}

.trust-proof-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.trust-proof-card ul li {
    position: relative;
    padding-left: 1.3rem;
    color: rgba(219, 219, 219, 0.9);
    font-size: 0.95rem;
    line-height: 1.7;
}

.trust-proof-card ul li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: var(--accent-red);
    font-size: 1.2rem;
    line-height: 1;
}

@media (max-width: 768px) {
    .trust-proof {
        padding: 4rem 1.6rem;
    }

    .trust-proof .section-title-reveal {
        text-align: center;
        margin-bottom: 1.2rem;
    }

    .trust-proof .section-lede {
        text-align: center;
        margin: 0 auto 2.4rem;
    }

    .trust-proof-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.4rem;
        width: 100% !important;
    }

    .trust-proof-grid .flip-card {
        width: 100% !important;
        min-height: auto;
        touch-action: manipulation;
        cursor: pointer;
        overflow: hidden;
        border-radius: 16px;
    }

    .trust-proof-grid .flip-card-inner,
    .trust-proof-grid .aspect-ratio-box,
    .trust-proof-grid .aspect-ratio-box .flip-card-inner {
        min-height: auto;
        height: auto;
        transform: none !important;
        display: flex;
        flex-direction: column;
    }

    .trust-proof-grid .flip-card-front,
    .trust-proof-grid .flip-card-back {
        position: relative;
        width: 100%;
        min-height: auto;
        height: auto;
        transform: none;
        -webkit-backface-visibility: visible;
        backface-visibility: visible;
    }

    .trust-proof-grid .flip-card-front {
        display: flex;
        min-height: 220px;
    }

    .trust-proof-grid .flip-card-back {
        display: none;
        padding: 1.45rem;
    }

    .trust-proof-grid .flip-card.is-flipped .flip-card-front {
        display: none;
    }

    .trust-proof-grid .flip-card.is-flipped .flip-card-back {
        display: flex;
    }
}

.flip-card {
    position: relative;
    width: 100%;
    min-height: 600px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
.flip-card:hover .flip-card-inner,
.flip-card.is-flipped .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back { position: absolute; width: 100%; height: 100%; min-height: inherit; -webkit-backface-visibility: hidden; backface-visibility: hidden; border-radius: 16px; display: flex; flex-direction: column; }
.flip-card-front { background-size: cover; background-position: center; color: white; justify-content: center; align-items: center; }
.card-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: black; opacity: 0.2; border-radius: 16px; }
.card-number { position: relative; font-size: 5rem; font-weight: 700; text-shadow: 2px 2px 8px rgba(0,0,0,0.5); }
.flip-card-back { background-color: var(--dark-gray); color: var(--text-light); transform: rotateY(180deg); padding: 2rem; display: flex; flex-direction: column; min-height: 100%; }
.flip-card-back h3 { text-align: left; font-size: 1.4rem; margin-bottom: 1rem; word-break: break-word; flex-shrink: 0; }
.flip-card-back p { text-align: left; font-size: 1rem; line-height: 1.7; word-break: break-word; padding-right: 1rem; }

.aspect-ratio-box {
    position: relative;
    width: 100%;
    height: 100%;
}

.aspect-ratio-box .flip-card-inner {
    min-height: inherit;
    height: 100%;
}

body.light-theme .trust-proof {
    background: linear-gradient(160deg, rgba(245, 245, 247, 0.92), rgba(245, 245, 247, 0.82));
}

body.light-theme .trust-proof-card {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

body.light-theme .trust-proof-card h3 {
    color: #1a1a1a;
}

body.light-theme .trust-proof-card p,
body.light-theme .trust-proof-card ul li {
    color: #333;
}

/* Styl dla Sekcji Możliwości */
.possibilities {
    padding: 5rem 5%;
    background-color: var(--dark-bg);
}
.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin: 20px auto 40px;
    max-width: 700px;
    line-height: 1.7;
}
.possibilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
@media (max-width: 768px) {
    .possibilities-grid {
        grid-template-columns: 1fr;
    }
}
.possibility-card {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    border: 1px solid var(--lighter-gray);
}

.possibility-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.possibility-card:nth-child(1) {
    transition-delay: 0.1s;
}

.possibility-card:nth-child(2) {
    transition-delay: 0.2s;
}

.possibility-card:nth-child(3) {
    transition-delay: 0.3s;
}

.possibility-card:nth-child(4) {
    transition-delay: 0.4s;
}

.possibility-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.2);
    border: 1px solid var(--accent-red);
}

.possibility-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background-color: var(--accent-red);
    transition: height 0.3s ease;
    box-shadow: 0 0 10px var(--glow-red);
}

.possibility-card:hover::before {
    height: 100%;
}

.possibility-card h3 {
    font-family: var(--font-heading);
    color: var(--text-white);
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.possibility-card p {
    font-family: var(--font-sans);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.92);
}
body.light-theme .possibility-card p {
    color: rgba(255, 255, 255, 0.94);
}

.possibilities-sticky-container {
    display: flex;
    align-items: flex-start;
    gap: 3.25rem;
    max-width: 1200px;
    margin: 5rem auto 0;
    padding-top: 1.5rem;
}

.possibilities-stack {
    display: none;
}

.possibilities-left,
.possibilities-right {
    flex: 1;
    min-width: 0;
}

/* Styl dla wszystkich kafelków possibilities na dużych ekranach - powinny wyglądać jak kafelek "Oświetlenie" */
@media (min-width: 993px) {
    .possibility-image-container {
        background: var(--light-gray);
        padding: 30px;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        border: 1px solid var(--accent-red); /* Dodanie czerwonego obramowania */
    }
    
    .possibility-image-container:hover {
        transform: translateY(-10px);
        box-shadow: 0 8px 25px rgba(255, 0, 0, 0.2);
        border: 1px solid var(--accent-red);
    }
    
    .possibility-image-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 5px;
        height: 0;
        background-color: var(--accent-red);
        transition: height 0.3s ease;
        box-shadow: 0 0 10px var(--glow-red);
    }
    
    .possibility-image-container:hover::before {
        height: 100%;
    }
    
    .possibility-text-item {
        background: var(--light-gray);
        padding: 30px;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        border: 1px solid var(--accent-red); /* Dodanie czerwonego obramowania */
    }
    
    .possibility-text-item:hover {
        transform: translateY(-10px);
        box-shadow: 0 8px 25px rgba(255, 0, 0, 0.2);
        border: 1px solid var(--accent-red);
    }
    
    .possibility-text-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 5px;
        height: 0;
        background-color: var(--accent-red);
        transition: height 0.3s ease;
        box-shadow: 0 0 10px var(--glow-red);
    }
    
    .possibility-text-item:hover::before {
        height: 100%;
    }
}

.possibilities-left {
    position: relative;
}

.possibilities-content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 9rem;
    padding-bottom: 12rem;
}

.possibility-image-container {
    position: sticky;
    top: 120px;
    width: 100%;
    min-height: clamp(360px, 65vh, 580px);
    border-radius: 18px;
    overflow: hidden;
    opacity: 0.4;
    filter: grayscale(40%) saturate(0.85);
    --possibility-active-lift: 30px;
    transform: translateY(0) scale(0.94);
    transform-origin: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 45px 90px rgba(0, 0, 0, 0.24);
    transition: transform 0.55s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.45s ease, filter 0.45s ease, box-shadow 0.55s ease, border-color 0.45s ease;
    z-index: 4;
}

.possibility-image-container.is-next {
    transform: translateY(0) scale(0.94);
    opacity: 0.35;
}

.possibility-image-container.is-past {
    transform: translateY(-140px) scale(0.92);
    opacity: 0;
    filter: grayscale(55%) saturate(0.7);
    z-index: 1;
}

.possibility-image-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.55) 100%);
    opacity: 0.4;
    transition: opacity 0.45s ease;
}

.possibility-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.08);
    transition: transform 0.65s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.possibility-image-container.active {
    opacity: 1;
    transform: translateY(calc(-1 * var(--possibility-active-lift, 30px))) scale(1.14);
    filter: grayscale(0%) saturate(1.05);
    border-color: rgba(255, 0, 0, 0.4);
    box-shadow: 0 60px 110px rgba(255, 0, 0, 0.18), 0 35px 75px rgba(0, 0, 0, 0.45);
    z-index: 10;
}

.possibility-image-container.active::after {
    opacity: 0.15;
}

.possibility-image-container.active img {
    transform: scale(1.14);
}

.possibilities-right {
    position: sticky;
    top: 120px;
    align-self: flex-start;
}

.possibility-text-items-container {
    position: relative;
    min-height: clamp(320px, 60vh, 520px);
}

.possibility-text-item {
    position: absolute;
    inset: 0;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(32, 32, 32, 0.9), rgba(12, 12, 12, 0.88));
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 35px 95px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    filter: blur(6px);
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out, filter 0.45s ease-in-out, visibility 0s linear 0.4s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.possibility-text-item.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    filter: blur(0);
    transition-delay: 0s;
}

.possibility-text-item h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.possibility-text-item p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
}

/* Poprawa czytelności tekstu w sekcji Odkryj Możliwości w trybie jasnym */
body.light-theme .possibility-text-item p {
    color: white; /* Biały kolor tekstu zgodnie z żądaniem */
}
body.light-theme .possibility-text-item h3 {
    color: #ffffff;
}

    .possibilities-stack-item {
        background: var(--light-gray);
        padding: 30px;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        border: 1px solid var(--lighter-gray);
    }

@media (max-width: 992px) {
    .possibilities-sticky-container {
        display: none !important; /* Ukrywamy oryginalny układ */
    }

    /* Tworzymy nowy, prostszy układ dla telefonów */
    .possibilities-mobile {
        display: block !important;
        padding: 2rem 1.5rem !important;
    }

    .possibility-mobile-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1.5rem !important;
        margin-bottom: 2rem !important;
    }

    .possibility-mobile-image {
        width: 100% !important;
        max-width: 350px !important;
        margin: 0 auto !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22) !important;
    }

    .possibility-mobile-image img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        object-fit: cover !important;
    }

    .possibility-mobile-text {
        width: 100% !important;
        max-width: 350px !important;
        padding: 1.8rem !important;
        background: rgba(26, 26, 26, 0.92) !important;
        border-radius: 18px !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
        text-align: center !important;
    }

    .possibility-mobile-text h3 {
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
        text-align: center !important;
        color: var(--text-white) !important;
    }

    .possibility-mobile-text p {
        font-size: 1rem !important;
        line-height: 1.7 !important;
        color: rgba(224, 224, 224, 0.85) !important;
        text-align: center !important;
        margin: 0 !important;
    }

    /* Ukrywamy stack wersję na telefonach */
    .possibilities-stack {
        display: none !important;
    }
            display: grid;
            gap: 3.5rem;
            margin: 3rem auto 0;
            max-width: 500px;
        }

        .possibilities-stack-item {
            background: var(--light-gray);
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
            border: 1px solid var(--accent-red);
        }

        .possibilities-stack-item:hover {
            transform: translateY(-10px);
            box-shadow: 0 8px 25px rgba(255, 0, 0, 0.2);
            border: 1px solid var(--accent-red);
        }

        .possibilities-stack-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 5px;
            height: 0;
            background-color: var(--accent-red);
            transition: height 0.3s ease;
            box-shadow: 0 0 10px var(--glow-red);
        }

        .possibilities-stack-item:hover::before {
            height: 100%;
        }
    }

        .possibilities-stack-item img {
            width: 100%;
            height: clamp(220px, 55vh, 360px);
            object-fit: cover;
        }

        .possibilities-stack-item-content {
            padding: 1.9rem 1.8rem 2rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1rem;
        }

        .possibilities-stack-item-content h3 {
            margin: 0;
            font-size: 1.65rem;
            color: var(--text-white);
        }

        .possibilities-stack-item-content p {
            margin: 0;
            font-size: 1.05rem;
            line-height: 1.75;
            color: rgba(255, 255, 255, 0.92);
        }
        body.light-theme .possibilities-stack-item {
            background: rgba(16, 16, 16, 0.72);
            box-shadow: 0 22px 55px rgba(0, 0, 0, 0.18);
            border-color: rgba(255, 255, 255, 0.12);
        }
        body.light-theme .possibilities-stack-item-content h3 {
            color: rgba(255, 255, 255, 0.96);
        }
        body.light-theme .possibilities-stack-item-content p {
            color: rgba(255, 255, 255, 0.92);
        }
    }

    /* Na telefonach zmieniamy układ possibilities */
    @media (max-width: 992px) {
        /* Ukrywamy oryginalny układ possibilities */
        .possibilities-sticky-container {
            display: none !important;
        }

        /* Pokazujemy stack wersję na telefonach */
        .possibilities-stack {
            display: grid !important;
            grid-template-columns: 1fr !important;
            gap: 3rem !important;
            padding: 2rem 1.5rem !important;
            width: 100% !important;
        }

        .possibilities-stack-item {
            background: rgba(26, 26, 26, 0.92) !important;
            padding: 30px !important;
            border-radius: 18px !important;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
            border: 1px solid rgba(255, 255, 255, 0.08) !important;
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
            gap: 1.5rem !important;
            width: 100% !important;
            max-width: 350px !important;
            margin: 0 auto !important;
        }

        .possibilities-stack-item img {
            width: 100% !important;
            height: auto !important;
            object-fit: cover !important;
            border-radius: 16px !important;
            overflow: hidden !important;
            box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22) !important;
        }

        .possibilities-stack-item-content {
            padding: 1.8rem !important;
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
            gap: 1rem !important;
            width: 100% !important;
            text-align: center !important;
        }

        .possibilities-stack-item-content h3 {
            font-size: 1.5rem !important;
            margin: 0 !important;
            color: var(--text-white) !important;
            text-align: center !important;
        }

        .possibilities-stack-item-content p {
            font-size: 1rem !important;
            line-height: 1.7 !important;
            color: rgba(224, 224, 224, 0.85) !important;
            text-align: center !important;
            margin: 0 !important;
        }

        body.light-theme .possibilities-stack-item {
            background: rgba(16, 16, 16, 0.72) !important;
            box-shadow: 0 22px 55px rgba(0, 0, 0, 0.18) !important;
            border-color: rgba(255, 255, 255, 0.12) !important;
        }

        body.light-theme .possibilities-stack-item-content h3 {
            color: rgba(255, 255, 255, 0.96) !important;
        }

        body.light-theme .possibilities-stack-item-content p {
            color: rgba(255, 255, 255, 0.92) !important;
        }
    }

.hero-image {
    flex: 1;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 15px 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--lighter-gray);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Badge certyfikatu */
.cert-badge {
    display: inline-block;
    background-color: var(--accent-red);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: center;
    box-shadow: 0 0 15px var(--glow-red);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--glow-red);
}



/* NOWA SEKCJA: Oferta */
.offer-section {
    padding: 5rem 5%;
    background-color: var(--dark-bg);
}
.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 0;
}
.offer-card {
    background-color: var(--light-gray);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
    border: 1px solid var(--lighter-gray);
}
.offer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.2);
    border: 1px solid var(--accent-red);
}
.offer-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.offer-icon svg {
    width: 50px;
    height: 50px;
    fill: var(--accent-red);
    transition: transform 0.3s ease, fill 0.3s ease;
}

.offer-card:hover .offer-icon svg {
    transform: scale(1.1);
    fill: var(--accent-red-light);
}
.offer-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}
.offer-card p {
    font-size: 1rem;
    color: var(--text-light);
}

/* Sekcja realizacji - ulepszenia */
.realizations {
    padding: 5rem 5%;
    background-color: var(--dark-bg);
}

.realizations-section .section-title {
    text-align: center;
}

.realizations-section .section-subtitle {
    text-align: center;
}

.realizations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
}

.realization-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background: var(--light-gray);
    opacity: 1;
    transform: none;
    border: 1px solid var(--lighter-gray);
    position: relative;
}

.realization-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.2);
    border: 1px solid var(--accent-red);
}

.realization-img {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.realization-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.realization-card:hover .realization-img img {
    transform: scale(1.05);
}

.realization-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(170deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.realization-card:hover .realization-overlay {
    opacity: 1;
    transform: translateY(0);
}

.realization-card:hover .realization-content {
    opacity: 0;
}

.realization-overlay__title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
}

.realization-overlay__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.realization-overlay__list li {
    position: relative;
    padding-left: 1rem;
}

.realization-overlay__list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.6);
}

.realization-content {
    padding: 1.5rem;
    background: var(--light-gray);
    transition: opacity 0.25s ease;
}

.realization-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.realization-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Sekcja działania - lepsze animacje */
.how-it-works {
    padding: 5rem 5%;
    background: var(--dark-bg);
    position: relative;
}

.steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.steps::before {
    content: "";
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 3px;
    background-color: var(--lighter-gray);
    z-index: 1;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.steps.animated::before {
    transform: scaleX(1);
}

.step {
    text-align: center;
    width: 22%;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.steps.animated .step {
    opacity: 1;
    transform: translateY(0);
}

.steps.animated .step:nth-child(1) {
    transition-delay: 0.3s;
}

.steps.animated .step:nth-child(2) {
    transition-delay: 0.6s;
}

.steps.animated .step:nth-child(3) {
    transition-delay: 0.9s;
}

.steps.animated .step:nth-child(4) {
    transition-delay: 1.2s;
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--accent-red);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: 0 5px 15px var(--glow-red);
    position: relative;
    z-index: 3;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.step:hover .step-number {
    transform: scale(1.1);
    background-color: var(--accent-red-light);
}

.step h3 {
    font-size: 1.4rem;
    color: var(--text-white);
}
    margin-bottom: 1rem;
}

/* Sekcja opinii */
.testimonials-section {
    padding: 5rem 5%;
    background-color: var(--dark-bg);
}
.testimonials-marquee {
    position: relative;
    overflow: hidden;
    margin: 3rem auto 0;
    max-width: min(1200px, 95vw);
    padding: 1rem 0;
}
.testimonials-track {
    display: flex;
    gap: 1.1rem;
    flex-wrap: nowrap;
    align-items: stretch;
    width: max-content;
    will-change: transform;
    animation: testimonialsSlide 100s linear infinite;
}
.testimonials-carousel .testimonials-track {
    width: 100%;
    gap: 0;
    animation: none;
}
.testimonials-carousel .testimonial-slide {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}
.testimonials-carousel .testimonial-card--placeholder {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    min-height: 100%;
}
.testimonial-slide--highlight {
    animation: testimonialLoopHighlight 0.6s ease-out;
}
@keyframes testimonialLoopHighlight {
    0% {
        transform: scale(0.97);
        box-shadow: 0 0 0 rgba(255, 0, 0, 0);
    }
    40% {
        transform: scale(1.01);
        box-shadow: 0 18px 45px rgba(255, 0, 0, 0.25);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    }
}
.testimonials-carousel .testimonial-card {
    min-width: 0;
    max-width: none;
    width: 100%;
    flex-shrink: 1;
}
@media (max-width: 1024px) {
    .testimonials-carousel .testimonial-slide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }
}
@media (max-width: 640px) {
    .testimonials-carousel .testimonial-slide {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
.testimonials-track:hover {
    animation-play-state: paused;
}
.testimonials-marquee::before,
.testimonials-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    pointer-events: none;
    z-index: 1;
}
.testimonials-marquee::before {
    left: 0;
    background: linear-gradient(90deg, var(--dark-bg), rgba(10, 10, 10, 0));
}
.testimonials-marquee::after {
    right: 0;
    background: linear-gradient(-90deg, var(--dark-bg), rgba(10, 10, 10, 0));
}
.testimonial-card {
    min-width: clamp(220px, 24vw, 300px);
    background-color: rgba(34, 34, 34, 0.95);
    border-left: 5px solid var(--accent-red);
    padding: 1.6rem 1.85rem;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 65px rgba(255, 0, 0, 0.15);
}
.testimonial-card blockquote {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.55;
    color: var(--text-light);
    border: none;
    padding: 0;
    margin: 0 0 1rem 0;
    position: relative;
    word-break: break-word;
    white-space: normal;
}
.testimonial-card blockquote::before {
    content: '“';
    font-size: 4rem;
    color: var(--accent-red);
    position: absolute;
    top: -1rem;
    left: -1.5rem;
    opacity: 0.65;
}
.testimonial-card cite {
    font-weight: 700;
    font-style: normal;
    color: var(--accent-red);
    display: block;
    margin-top: 1rem;
    text-align: right;
}
.testimonial-rating {
    margin: 0.75rem 0 0.4rem;
    color: var(--accent-red);
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
}

.testimonial-rating .icon-star {
    width: 1.15rem;
    height: 1.15rem;
    fill: currentColor;
    flex-shrink: 0;
}
@keyframes testimonialsSlide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@media (max-width: 768px) {
    .testimonials-track {
        gap: 1rem;
    }
    .testimonial-card {
        min-width: clamp(200px, 70vw, 260px);
        max-width: 280px;
        padding: 1.5rem;
    }
}
@media (max-width: 480px) {
    .testimonials-track {
        gap: 0.75rem;
    }
    .testimonial-card {
        min-width: clamp(170px, 84vw, 220px);
        max-width: 230px;
        padding: 1.4rem;
    }
}

body.light-theme .testimonials-section {
    background-color: var(--darker-bg);
}

body.light-theme .testimonials-marquee::before {
    background: linear-gradient(90deg, var(--darker-bg), rgba(255, 255, 255, 0));
}

body.light-theme .testimonials-marquee::after {
    background: linear-gradient(-90deg, var(--darker-bg), rgba(255, 255, 255, 0));
}

body.light-theme .testimonial-card {
    background-color: rgba(255, 255, 255, 0.9);
    border-left-color: var(--accent-red);
    box-shadow: 0 18px 44px rgba(20, 20, 20, 0.12);
}

body.light-theme .testimonial-card:hover {
    box-shadow: 0 28px 54px rgba(214, 0, 0, 0.16);
}

body.light-theme .testimonial-card blockquote {
    color: rgba(20, 20, 20, 0.9);
}

body.light-theme .testimonial-card cite {
    color: var(--accent-red);
}

body.light-theme .testimonial-rating {
    color: var(--accent-red);
}

/* Sekcja quizu - ulepszenia */
.quiz-section {
    padding: 5rem 5%;
    background-color: var(--dark-bg);
    color: var(--text-white);
    text-align: center;
}
.quiz-section h2 {
    color: var(--text-white);
    margin-bottom: 1.5rem;
}
.quiz-section p {
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-light);
}
.quiz-button {
    background-color: var(--accent-red);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    cursor: pointer;
    display: inline-block;
    box-shadow: 0 0 15px var(--glow-red);
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-family: var(--font-heading);
    box-shadow: 3px 6px 18px rgba(242, 116, 5, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transform: translateY(0);
}
.quiz-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fb8532;
    z-index: -1;
    transition: transform 0.3s ease;
    transform: scaleX(0);
    transform-origin: left;
}
.quiz-button:hover::before {
    transform: scaleX(1);
}
.quiz-button:hover {
    background-color: var(--accent-red-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--glow-red);
}

/* Lead magnet */
.lead-magnet {
    padding: 5rem 5%;
    background-color: var(--dark-bg);
}

.lead-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: var(--light-gray);
    padding: clamp(1.8rem, 5vw, 3rem);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--lighter-gray);
}

.lead-content h2 {
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.lead-form {
    display: flex;
    max-width: 500px;
    margin: 2rem auto 0;
}

.lead-form input {
    flex: 1;
    padding: 1rem;
    border: 1px solid var(--medium-gray);
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
    background-color: var(--lighter-gray);
    color: var(--text-light);
}

.lead-form button {
    background-color: var(--accent-red);
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 0 4px 4px 0;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-family: var(--font-heading);
    box-shadow: 0 0 10px var(--glow-red);
}

.lead-form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent-red-light);
    z-index: -1;
    transition: transform 0.3s ease;
    transform: scaleX(0);
    transform-origin: left;
}

.lead-form button:hover::before {
    transform: scaleX(1);
}

.lead-form button:hover {
    background-color: var(--accent-red-light);
}

/* Sekcja O nas - ulepszenia */
.about-section {
    padding: 5rem 5%;
    background-color: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about-image {
    position: relative;
    border-radius: 8px;
    overflow: visible;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    border: 1px solid var(--lighter-gray);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image.animate {
    opacity: 1;
    transform: translateX(0);
}

.about-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.about-image::before {
    content: none;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.about-text {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--text-light);
    text-align: left;
}

.about-values {
    margin-top: 2rem;
}

.value-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.value-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.value-item:nth-child(1) { transition-delay: 0.1s; }
.value-item:nth-child(2) { transition-delay: 0.2s; }
.value-item:nth-child(3) { transition-delay: 0.3s; }

.value-icon {
    width: 40px;
    height: 40px;
    background-color: var(--accent-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
    color: white;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.value-item:hover .value-icon {
    transform: scale(1.1);
}

.value-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

/* Sekcja Kontakt - ulepszenia */
.contact-section {
    padding: 5rem 5%;
    background-color: var(--dark-bg);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    border: 1px solid var(--lighter-gray);
}

.contact-form.animate {
    opacity: 1;
    transform: translateX(0);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--accent-red);
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--lighter-gray);
    color: var(--text-light);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px var(--glow-red);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-submit {
    width: 100%;
    padding: 1rem;
    background-color: var(--accent-red);
    color: white;
    border: none;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transform: translateY(0);
    box-shadow: 0 0 10px var(--glow-red);
}

.form-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent-red-light);
    z-index: -1;
    transition: transform 0.3s ease;
    transform: scaleX(0);
    transform-origin: left;
}

.form-submit:hover::before {
    transform: scaleX(1);
}

.form-submit:hover {
    background-color: var(--accent-red-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px var(--glow-red);
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.contact-info.animate {
    opacity: 1;
    transform: translateX(0);
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    color: var(--text-white);
}

.contact-intro {
    margin-bottom: 0;
    color: var(--text-light);
    text-align: left;
}

.about-content h2,
.contact-info h2 {
    text-align: left;
}

.value-content h4,
.contact-text h4 {
    text-align: left;
}

.value-content p,
.contact-text p {
    text-align: left;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin: 2rem 0 1.5rem 0;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: var(--accent-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
    color: white;
}

.contact-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--text-white);
}

@media (max-width: 768px) {
    .quiz-modal-content {
        width: 90%;
        padding: 22px 18px 28px;
    }

    #quiz-container {
        gap: 1.4rem;
    }

    #quiz-question {
        font-size: 1.45rem;
        margin-bottom: 1rem;
    }

    #quiz-answers button {
        padding: 0.8rem 1.1rem;
        font-size: 1rem;
        margin: 0;
    }

    .quiz-progress {
        font-size: 1rem;
    }

    .quiz-navigation {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.9rem;
    }

    .quiz-nav-btn,
    .quiz-save-btn {
        flex: 0 1 auto;
        min-width: 150px;
    }
}

@media (max-width: 640px) {
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .contact-icon {
        margin-right: 0;
    }
}


.faq-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
    width: 100%;
    counter-reset: faq-counter;
}

@media (max-width: 768px) {
    .faq-content-grid {
        grid-template-columns: 1fr !important;
    }
}


.faq-item {
    background: radial-gradient(circle at 20% -20%, rgba(255, 0, 0, 0.22), transparent 55%), var(--light-gray);
    padding: clamp(1.65rem, 3.4vw, 2rem) clamp(1.4rem, 3vw, 1.9rem) clamp(1.5rem, 3vw, 1.9rem);
    border-radius: 18px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.faq-item::before {
    counter-increment: faq-counter;
    content: counter(faq-counter);
    position: absolute;
    top: 1rem;
    left: clamp(1.2rem, 3vw, 1.65rem);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-red);
}

.faq-item::after {
    content: "";
    position: absolute;
    top: 2.25rem;
    left: clamp(1.2rem, 3vw, 1.65rem);
    width: 52px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-red), rgba(255, 0, 0, 0));
    opacity: 0.55;
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 0.5rem 0 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-white);
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.faq-question h4 {
    margin: 0;
    color: inherit;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.015em;
    flex: 1;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0;
    z-index: 2;
    position: relative;
}

.faq-answer p, .faq-answer li {
    color: rgba(224, 224, 224, 0.85);
}

.faq-answer ul {
    padding-left: 1.2rem;
    margin-top: 0.8rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

.faq-question::after {
    content: "+";
    position: absolute;
    right: 0;
    font-size: 1.8rem;
    transition: transform 0.3s ease;
    color: var(--accent-red);
    font-weight: bold;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
    color: var(--accent-red-light);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.8rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-white);
    transition: color 0.3s ease;
    position: relative;
}

.faq-question h4 {
    margin: 0;
    color: inherit;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.015em;
    flex: 1;
}

.faq-icon {
    position: absolute;
    right: 0;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-question:hover {
    color: var(--accent-red);
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1rem;
}

.faq-answer p {
    margin: 1.5rem 0;
    color: var(--text-light);
    line-height: 1.7;
}

.faq-answer ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
    color: var(--text-light);
}

.faq-answer li {
    margin-bottom: 0.8rem;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--accent-red);
}

.faq-item.active .faq-answer {
    max-height: 1000px; /* Wystarczająco duże, aby pomieścić zawartość */
}

/* Footer */
footer {
    background-color: var(--darker-bg);
    color: white;
    padding: 3rem 5% 2rem;
    border-top: 1px solid var(--lighter-gray);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-info {
    flex: 1;
    min-width: 250px;
    align-self: flex-start;
    margin-bottom: 2rem;
    text-align: left;
}

.footer-links {
    flex: 1;
    min-width: 200px;
    margin-bottom: 2rem;
}

.footer-contact {
    flex: 1;
    min-width: 200px;
    margin-bottom: 2rem;
    text-align: left;
}

.contact-info-footer {
    margin-top: 1.5rem;
}

.contact-info-footer p {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.contact-info-footer p a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    margin-left: 5px;
}

.contact-info-footer p a:hover {
    color: var(--accent-red);
}

.contact-info-footer svg {
    margin-right: 10px;
    fill: var(--accent-red);
}

.footer-info h3 {
    color: var(--text-white);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: left;
}

.footer-info p {
    margin-bottom: 1rem;
    max-width: 220px;
    word-break: break-word;
    color: var(--text-light);
}

.contact-info-footer {
    margin-top: 1.5rem;
}

.contact-info-footer p {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.contact-info-footer p a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    margin-left: 5px;
}

.contact-info-footer p a:hover {
    color: var(--accent-red);
}

.contact-info-footer svg {
    margin-right: 10px;
    fill: var(--accent-red);
}

.footer-contact h3 {
    color: var(--text-white);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: left;
}

.footer-links {
    flex: 1;
    min-width: 200px;
    margin-bottom: 2rem;
}

.footer-links h3 {
    color: var(--text-white);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: left;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
    display: block;
}

.footer-links ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-links ul li a:hover {
    color: var(--accent-red);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    color: #aaa;
    font-size: 0.9rem;
}

/* Responsywność */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        padding: 0 1.6rem;
        margin-bottom: 2rem;
    }
    
    .hero {
        padding: 7.5rem 6% 10rem;
        min-height: auto;
    }

    .hero-bottom-curve {
        bottom: -14vw;
        height: 26vw;
        min-height: 150px;
    }

    .trust-bar {
        margin-top: 2rem;
        padding: 3.5rem 6% 2.8rem;
        border-radius: 20px;
    }

    .hero h1::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .steps::before {
        display: none;
    }
    
    .step {
        width: 45%;
        margin-bottom: 2rem;
    }
    
    .about-container, .contact-container {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        height: clamp(260px, 60vw, 360px);
    }
}

                @media (max-width: 768px) {
    header {
        padding: 1rem 5% 1.25rem;
        flex-wrap: wrap;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .header-content {
        order: 1;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0;
        flex-wrap: nowrap;
    }
    
    .logo {
        white-space: nowrap;
        font-size: 1.5rem;
    }
    
    .logo-image {
        width: 38px;
        height: 38px;
        margin-right: 14px;
    }
    
    .header-actions {
        order: 2;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .theme-toggle {
        order: 1;
        margin-right: 0;
    }

    .mobile-menu-btn {
        order: 2;
        margin-left: 0;
    }

    .contact-info-header {
        order: 3;
        width: 100%;
        margin: 0;
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .contact-btn-header {
        width: 100%;
        max-width: 240px;
        white-space: normal;
        padding: 0.38rem 0.65rem;
        font-size: 0.82rem;
        border-radius: 15px;
        box-shadow: 0 0 7px rgba(255, 0, 0, 0.32);
        gap: 0.35rem;
        margin: 0 auto;
    }

    header nav:not(.mobile-nav) {
        display: none;
        width: 100%;
        margin-top: 1rem;
    }
    
    header nav:not(.mobile-nav).active {
        display: block;
    }
    
    header nav:not(.mobile-nav) ul {
        flex-direction: column;
        align-items: center;
    }
    
    header nav:not(.mobile-nav) ul li {
        margin: 0.5rem 0;
    }
    
    .mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero {
        padding: 6.5rem 6% 9rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-text {
        padding: 0 1.4rem;
    }

    .hero-bottom-curve {
        bottom: -18vw;
        height: 32vw;
        min-height: 140px;
    }
    
    .trust-bar {
        margin-top: 1.5rem;
        padding: 3.2rem 7% 2.5rem;
        border-radius: 18px;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-buttons .cert-badge {
        order: -1;
        margin-bottom: 1rem;
        text-align: center;
        font-size: 0.9rem;
        padding: 0.3rem 0.8rem;
    }
    
    .cert-badge {
        text-align: center;
        margin: 0;
    }
    
    .hero-buttons .cta-button {
        width: 100%;
        margin-right: 0;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .hero-buttons .cta-button:last-child {
        margin-bottom: 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .step {
        width: 100%;
        margin-bottom: 2.5rem;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .before-after-slider {
        height: 350px;
    }
}

               @media (max-width: 480px) {
    header {
        padding: 0.9rem 5% 1.4rem;
    }

    .header-actions {
        gap: 0.5rem;
        align-items: flex-start;
    }

    .contact-info-header {
        grid-template-columns: 1fr;
    }

    .contact-btn-header {
        font-size: 0.78rem;
        padding: 0.32rem 0.5rem;
        border-radius: 13px;
        gap: 0.3rem;
        box-shadow: 0 0 6px rgba(255, 0, 0, 0.28);
        max-width: 200px;
    }
    .hero h1 {
        font-size: clamp(2rem, 8vw, 2.3rem);
    }

    .hero p {
        font-size: clamp(0.94rem, 4.2vw, 1.02rem);
        margin: 0.9rem auto 1.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }

    .hero-text {
        padding: 0;
    }

    .hero-bottom-curve {
        bottom: -22vw;
        height: 38vw;
        min-height: 130px;
    }

    .cta-button {
        width: 100%;
        padding: 1rem;
        text-align: center;
        margin-right: 0;
    }
    
    .hero-buttons .cert-badge {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .cert-badge {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
        text-align: center;
        margin: 0;
    }
    
    .hero-buttons .cta-button {
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .hero-buttons .cta-button:last-child {
        margin-bottom: 0;
    }

    .hero p br {
        display: none;
    }

    .trust-bar {
        margin-top: 1.5rem;
        padding: 2.8rem 8% 2.2rem;
        border-radius: 16px;
    }

    .trust-bar {
        padding: 2.8rem 8% 2.2rem;
        border-radius: 16px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .logo-image {
        width: 26px;
        height: 26px;
        margin-right: 10px;
    }
    
    .lead-form {
        flex-direction: column;
    }
    
    .lead-form input {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .lead-form button {
        border-radius: 4px;
        padding: 1rem;
    }
    
    .before-after-slider {
        height: 250px;
    }
}

@media (min-width: 769px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: flex-start;
    }
    
    .hero-buttons > * {
        flex: 0 0 auto;
    }
    
    .hero-buttons .cert-badge {
        order: -1;
        margin-right: auto;
    }

/* Mikrointerakcje */
@keyframes pulse {
    0% { 
        transform: scale(1); 
        box-shadow: 0 0 0 0 rgba(242, 116, 5, 0.4); 
    }
    50% { 
        transform: scale(1.03); 
        box-shadow: 0 0 0 8px rgba(242, 116, 5, 0.2); 
    }
    100% { 
        transform: scale(1); 
        box-shadow: 0 0 0 0 rgba(242, 116, 5, 0); 
    }
}

.pulse {
    animation: pulse 3s infinite;
}

@media (min-width: 769px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: flex-end;
    }
    
    .hero-buttons .cert-badge {
        order: -1;
        margin-right: 2rem;
        font-size: 1.1rem;
        padding: 0.5rem 1.2rem;
    }
    
    .hero-buttons .cta-button {
        margin-right: 1rem;
        flex: 1;
        text-align: center;
        min-width: 250px;
    }
    
    .hero-buttons .cta-button:last-child {
        margin-right: 0;
    }
    
    .hero p {
        max-width: 700px;
    }
}

/* Animacje przy scrollowaniu */
/* Fade in animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations */
.fade-in:nth-child(1) {
    transition-delay: 0.1s;
}

.fade-in:nth-child(2) {
    transition-delay: 0.2s;
}

.fade-in:nth-child(3) {
    transition-delay: 0.3s;
}

.fade-in:nth-child(4) {
    transition-delay: 0.4s;
}

/* Modal quizu - ulepszenia */
.quiz-modal .quiz-modal-content {
    visibility: hidden;
}
.quiz-modal.open .quiz-modal-content {
    visibility: visible;
}
.quiz-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quiz-modal.open {
    opacity: 1;
    display: block;
}


.quiz-modal-content {
    margin: 15% auto;
    padding: 32px 32px 36px;
    width: 82%;
    max-width: 640px;
    border-radius: 18px;
    position: relative;
    transform: translateY(-50px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    background: linear-gradient(140deg, rgba(14, 14, 14, 0.98), rgba(32, 32, 32, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 50px 110px rgba(0, 0, 0, 0.6);
    color: var(--text-white);
    text-align: left;
}

.quiz-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.quiz-close-btn:hover,
.quiz-close-btn:focus-visible {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.quiz-modal.open .quiz-close-btn {
    display: inline-flex;
}

.quiz-modal:not(.open) .quiz-close-btn {
    display: none !important;
}

body.light-theme .quiz-modal.open .quiz-close-btn {
    color: rgba(26, 26, 26, 0.7);
}

body.light-theme .quiz-close-btn:hover,
body.light-theme .quiz-close-btn:focus-visible {
    background-color: rgba(214, 0, 0, 0.12);
    color: var(--dark-gray);
}

.quiz-modal.open .quiz-modal-content {
    transform: translateY(0);
    box-shadow: 0 60px 130px rgba(0, 0, 0, 0.58);
}

body.light-theme .quiz-modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 248, 248, 0.92));
    border: 1px solid rgba(214, 0, 0, 0.14);
    box-shadow: 0 40px 90px rgba(214, 0, 0, 0.18);
    color: var(--dark-gray);
}

@media (max-width: 768px) {
    .quiz-modal-content {
        width: 90%;
        padding: 22px 18px 28px;
    }

    #quiz-container {
        gap: 1.4rem;
    }

    #quiz-question {
        font-size: 1.45rem;
        margin-bottom: 1rem;
    }

    #quiz-answers button {
        padding: 0.8rem 1.1rem;
        font-size: 1rem;
        margin: 0;
    }

    .quiz-progress {
        font-size: 1rem;
    }

    .quiz-navigation {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.9rem;
    }

    .quiz-nav-btn,
    .quiz-save-btn {
        flex: 0 1 auto;
        min-width: 150px;
    }
}

@media (max-width: 640px) {
    .quiz-modal-content {
        width: 92%;
        margin: 5.5rem auto;
        padding: 22px 18px 26px;
    }

    #quiz-container {
        gap: 1.25rem;
    }

    #quiz-container h3 {
        font-size: 1.45rem;
    }

    #quiz-answers button {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    .quiz-navigation {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
    }

    .quiz-nav-btn,
    .quiz-save-btn {
        flex: 0 1 48%;
        min-width: 140px;
    }
}


#quiz-next-btn, #quiz-restart-btn {
    background-color: var(--accent-red);
    color: #ffffff;
    padding: 12px 28px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    font-family: var(--font-sans);
    font-weight: 500;
    box-shadow: 0 18px 38px rgba(255, 0, 0, 0.25);
}

#quiz-next-btn:hover, #quiz-restart-btn:hover {
    background-color: var(--accent-red-light);
    transform: translateY(-3px);
    box-shadow: 0 22px 45px rgba(255, 0, 0, 0.28);
}

#quiz-result {
    text-align: left;
}

#quiz-result h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

#quiz-score,
#quiz-result-text {
    font-family: var(--font-sans);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

#quiz-result-text strong,
#quiz-score strong {
    color: var(--text-white);
    font-weight: 600;
}

/* Multimedia collage */
.multimedia-section {
    padding: 6rem 5%;
    background:
        radial-gradient(120% 100% at 85% 0%, rgba(255, 0, 0, 0.25) 0%, rgba(10, 10, 10, 0) 55%),
        linear-gradient(140deg, rgba(10, 10, 10, 0.96) 0%, rgba(10, 10, 10, 0.92) 35%, rgba(10, 10, 10, 0.88) 100%);
    position: relative;
    overflow: hidden;
}

.multimedia-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(140% 140% at 10% 120%, rgba(255, 0, 0, 0.18) 0%, transparent 60%);
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
}

.multimedia-header {
    max-width: 780px;
    margin: 0 auto 3.5rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.multimedia-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 0, 0, 0.12);
    color: var(--accent-red-light);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.multimedia-header h2 {
    font-size: 2.6rem;
    margin: 1.5rem 0 1.2rem;
    color: rgba(255, 255, 255, 0.97);
    text-shadow: 0 18px 42px rgba(0, 0, 0, 0.55), 0 0 16px rgba(255, 0, 0, 0.28);
}

.multimedia-header p {
    margin: 0 auto 2.6rem;
    max-width: 600px;
    color: rgba(220, 220, 220, 0.85);
    line-height: 1.7;
}

.multimedia-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.multimedia-actions .cta-button {
    min-width: 220px;
    margin: 0;
    box-shadow: 0 18px 48px rgba(255, 0, 0, 0.24);
}

.multimedia-actions .cta-button.secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--text-white);
    box-shadow: 0 18px 48px rgba(255, 0, 0, 0.2);
}

.multimedia-actions .cta-button.secondary:hover {
    background: rgba(255, 0, 0, 0.22);
    border-color: transparent;
}

body.light-theme .multimedia-section .multimedia-actions .cta-button {
    background: #0f0f0f;
    color: #f8f8f8;
    border-color: #0f0f0f;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

body.light-theme .multimedia-section .multimedia-actions .cta-button:hover {
    background: #000;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.25);
}

body.light-theme .multimedia-section .multimedia-actions .cta-button.secondary {
    background: transparent;
    color: var(--accent-red);
    border-color: var(--accent-red);
    box-shadow: none;
}

body.light-theme .multimedia-section .multimedia-actions .cta-button.secondary:hover {
    background: rgba(214, 0, 0, 0.12);
    color: var(--accent-red);
    border-color: var(--accent-red-dark);
}

.multimedia-gallery {
    display: flex;
    gap: 1.6rem;
    align-items: stretch;
    position: relative;
    z-index: 2;
}

.gallery-column {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.column-left,
.column-right {
    flex: 0.95;
}

.column-center {
    flex: 1.12;
}

.gallery-stack {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.gallery-tile {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(20, 20, 20, 0.85);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55);
    isolation: isolate;
}

.gallery-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.45) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.gallery-tile img,
.gallery-tile video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (min-width: 769px) {
    .gallery-tile.large {
        min-height: 340px;
    }

    .gallery-tile.small {
        min-height: 180px;
    }

    .gallery-tile.video {
        flex: 1;
        min-height: 460px;
    }
}

.gallery-tile video {
    filter: saturate(108%);
}

.gallery-tile:hover::before {
    opacity: 1;
}

.gallery-tile:hover img,
.gallery-tile:hover video {
    transform: scale(1.05);
}

.gallery-tile video::-webkit-media-controls,
.gallery-tile video::-webkit-media-controls-enclosure {
    display: none !important;
}

/* Enhanced multimedia gallery animations - horizontal and vertical stagger */
.multimedia-gallery {
    display: flex;
    gap: 1.6rem;
    align-items: stretch;
    position: relative;
    z-index: 2;
    /* Start with visible content, animations will be triggered by JavaScript */
}

/* Stagger animation for gallery columns */
.gallery-column {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.gallery-column.animate {
    opacity: 1;
    transform: translateY(0);
}

.gallery-column:nth-child(1) {
    transition-delay: 0.1s;
}

.gallery-column:nth-child(2) {
    transition-delay: 0.3s;
}

.gallery-column:nth-child(3) {
    transition-delay: 0.5s;
}

/* Stagger animation for individual tiles within columns */
.gallery-stack {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.gallery-stack .gallery-tile {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-stack .gallery-tile.animate {
    opacity: 1;
    transform: translateX(0);
}

.gallery-stack .gallery-tile:nth-child(1) {
    transition-delay: 0.7s;
}

.gallery-stack .gallery-tile:nth-child(2) {
    transition-delay: 0.9s;
}

/* Additional animation for large tiles */
.gallery-tile.large {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.gallery-tile.large.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.gallery-tile.large {
    transition-delay: 0.6s;
}

/* Enhanced hover animation for gallery tiles */
.gallery-tile {
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.gallery-tile:hover {
    transform: translateY(-8px);
    box-shadow: 0 35px 65px rgba(0, 0, 0, 0.45);
}

.gallery-tile img,
.gallery-tile video {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-tile:hover img,
.gallery-tile:hover video {
    transform: scale(1.05);
}

/* Enhanced hover animation for gallery tiles */
.gallery-tile {
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.gallery-tile:hover {
    transform: translateY(-8px);
    box-shadow: 0 35px 65px rgba(0, 0, 0, 0.45);
}

.gallery-tile img,
.gallery-tile video {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-tile:hover img,
.gallery-tile:hover video {
    transform: scale(1.05);
}

@media (max-width: 1200px) and (min-width: 769px) {
    .multimedia-section {
        padding: 5rem 6% 5.5rem;
    }

    .gallery-tile.large {
        min-height: 300px;
    }

    .gallery-tile.video {
        min-height: 420px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .multimedia-gallery {
        flex-direction: column;
    }

    .gallery-column,
    .gallery-stack {
        gap: 1.2rem;
    }

    .gallery-tile.large {
        min-height: 280px;
    }

    .gallery-tile.small {
        min-height: 170px;
    }

    .gallery-tile.video {
        min-height: 360px;
    }
}

@media (max-width: 768px) {
    .multimedia-section {
        padding: 3.4rem 1.5rem 3.6rem;
    }

    .multimedia-section .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .multimedia-gallery {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
        border-radius: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        gap: 1.6rem;
    }

    .multimedia-gallery .gallery-column,
    .multimedia-gallery .gallery-stack {
        display: flex;
        flex-direction: column;
        gap: 1.6rem;
    }

    .multimedia-gallery .gallery-tile {
        width: 100%;
        border: none;
        border-radius: 18px;
        margin: 0;
        background: rgba(10, 10, 12, 0.82);
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
        overflow: hidden;
        padding: 0.35rem;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 180px;
        height: auto;
        aspect-ratio: 16/9;
    }

    .multimedia-gallery .gallery-tile:last-child {
        margin-bottom: 0;
    }

    .multimedia-gallery .gallery-tile img,
    .multimedia-gallery .gallery-tile video {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
        background-color: #000;
        max-width: 100%;
        max-height: 100%;
    }
    
    /* Nowa kolejność elementów na telefonie - zmieniamy kolejność kolumn */
    .gallery-column.column-center {
        order: -1; /* Umieszczamy środkową kolumnę (wideo) na początku */
    }
}

    .multimedia-header h2 {
        font-size: clamp(1.9rem, 6.2vw, 2.1rem);
    }

    .multimedia-header p {
        margin-bottom: 1.6rem;
        font-size: 0.98rem;
        color: rgba(228, 228, 228, 0.86);
    }

    body.light-theme .multimedia-gallery {
        background: transparent;
        border: none;
        box-shadow: none;
    }

    body.light-theme .multimedia-gallery .gallery-tile {
        background: rgba(255, 255, 255, 0.97);
        border: 1px solid rgba(214, 0, 0, 0.14);
        box-shadow: 0 14px 24px rgba(0, 0, 0, 0.12);
    }

    body.light-theme .multimedia-header p {
        color: rgba(32, 32, 32, 0.74);
    }
}

@media (max-width: 768px) {
    .quiz-modal-content {
        width: 90%;
        padding: 22px 18px 28px;
    }

    #quiz-container {
        gap: 1.4rem;
    }

    #quiz-question {
        font-size: 1.45rem;
        margin-bottom: 1rem;
    }

    #quiz-answers button {
        padding: 0.8rem 1.1rem;
        font-size: 1rem;
        margin: 0;
    }

    .quiz-progress {
        font-size: 1rem;
    }

    .quiz-navigation {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.9rem;
    }

    .quiz-nav-btn,
    .quiz-save-btn {
        flex: 0 1 auto;
        min-width: 150px;
    }
}

@media (max-width: 640px) {
    .multimedia-section {
        padding: 3.2rem 1.2rem 3.4rem;
    }

    .multimedia-actions {
        flex-direction: column;
    }

    .multimedia-actions .cta-button {
        width: 100%;
    }

    .multimedia-gallery {
        max-width: min(400px, 100%);
    }

    .multimedia-gallery .gallery-tile {
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .logo-image {
        width: 32px;
        height: 32px;
        margin-right: 12px;
    }

    .multimedia-section {
        padding: 3rem 1rem 3.2rem;
    }

    .multimedia-gallery {
        max-width: min(340px, 100%);
    }

    .multimedia-gallery .gallery-tile {
        border-radius: 14px;
    }

    .multimedia-header h2 {
        font-size: clamp(1.8rem, 7vw, 2rem);
    }

    .multimedia-header p {
        font-size: 0.95rem;
    }
}

@media (max-width: 380px) {
    .multimedia-gallery {
        max-width: 100%;
    }

}





/* Smart Home w praktyce */
.smart-basics {
    padding: 5rem 5%;
}

.smart-basics-content {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
    grid-auto-rows: minmax(200px, auto);
    width: 100%;
}

.smart-basics-card {
    background: radial-gradient(circle at 20% -20%, rgba(255, 0, 0, 0.22), transparent 55%), var(--light-gray);
    padding: clamp(1.65rem, 3.4vw, 2rem) clamp(1.4rem, 3vw, 1.9rem) clamp(1.5rem, 3vw, 1.9rem);
    border-radius: 18px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.smart-basics-card h3 {
    font-size: 1.35rem;
    color: var(--text-white);
    text-align: center;
}

.smart-basics-card p {
    color: rgba(224, 224, 224, 0.85);
    text-align: center;
    margin: 0;
}

.smart-basics-card::before,
.smart-basics-card::after {
    display: none;
}

body.light-theme .smart-basics-card {
    background: radial-gradient(circle at 16% -20%, rgba(214, 0, 0, 0.18), transparent 48%), rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 38px rgba(214, 0, 0, 0.14);
    border: 1px solid rgba(214, 0, 0, 0.14);
}
body.light-theme .smart-basics-card h3 {
    color: rgba(26, 26, 30, 0.94);
}

body.light-theme .smart-basics-card p {
    color: rgba(18, 18, 22, 0.94);
}

@media (max-width: 1024px) {
    .smart-basics {
        padding: 4rem 4%;
    }

    .smart-basics-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.5rem;
        justify-items: center;
    }

    .smart-basics-card {
        max-width: 360px;
        width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .quiz-modal-content {
        width: 90%;
        padding: 22px 18px 28px;
    }

    #quiz-container {
        gap: 1.4rem;
    }

    #quiz-question {
        font-size: 1.45rem;
        margin-bottom: 1rem;
    }

    #quiz-answers button {
        padding: 0.8rem 1.1rem;
        font-size: 1rem;
        margin: 0;
    }

    .quiz-progress {
        font-size: 1rem;
    }

    .quiz-navigation {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.9rem;
    }

    .quiz-nav-btn,
    .quiz-save-btn {
        flex: 0 1 auto;
        min-width: 150px;
    }
}

@media (max-width: 640px) {
    .smart-basics {
        padding: 3.5rem 1.5rem;
    }

    .smart-basics-content {
        grid-template-columns: 1fr;
        gap: 2.4rem;
        grid-auto-rows: auto;
        justify-items: center;
    }

    .smart-basics-card {
        max-width: 360px;
        width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 420px) {
    .smart-basics {
        padding: 3.3rem 1.25rem;
    }

    .smart-basics-card {
        max-width: 340px;
    }
}

/* Smart basics mobile fine-tuning */
@media (max-width: 768px) {
    .smart-basics {
        padding: 3.8rem 6vw;
    }

    .smart-basics-content {
        gap: 3rem !important;
        justify-items: center;
    }

    .smart-basics-card {
        max-width: 380px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .smart-basics {
        padding: 3.4rem 1.6rem;
    }

    .smart-basics-content {
        gap: 3.2rem !important;
    }

    .smart-basics-card {
        max-width: 360px;
    }
}

/* Dlaczego Igvel? sekcja w stylu Ampio */
.ampio-style-benefits {
    position: relative;
    padding: 6rem 5%;
    background:
        radial-gradient(110% 110% at 100% 0%, rgba(255, 0, 0, 0.24) 0%, rgba(10, 10, 10, 0) 55%),
        linear-gradient(120deg, rgba(10, 10, 10, 0.94) 0%, rgba(10, 10, 10, 0.9) 38%, rgba(10, 10, 10, 0.78) 100%),
        image-set(
            url('../images/optimized_all/befor.webp') type('image/webp'),
            url('../images/optimized_all/befor.webp') type('image/webp')
        );
    background-size: auto, auto, cover;
    background-position: center, center, center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.ampio-style-benefits::before {
    content: "";
    position: absolute;
    top: -30%;
    right: -15%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.35) 0%, rgba(10, 10, 10, 0) 70%);
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

.ampio-benefits-wrapper {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 4rem;
    grid-template-columns: minmax(260px, 1fr) minmax(0, 1.5fr);
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.ampio-benefits-intro {
    max-width: 420px;
    margin: 0 auto;
    text-align: center;
}

.ampio-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    background-color: rgba(255, 0, 0, 0.15);
    color: var(--accent-red);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ampio-benefits-intro h2 {
    font-size: 2.6rem;
    margin: 1.2rem 0 1.5rem;
}

.ampio-benefits-intro p {
    margin-bottom: 2rem;
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.8;
}

.ampio-benefits-list {
    list-style: none;
    display: grid;
    gap: 1rem;
    padding: 0;
    margin: 0;
}

.ampio-benefits-list li {
    display: grid;
    grid-template-columns: 32px 1fr;
    align-items: start;
    gap: 0.9rem;
    color: var(--text-light);
    font-size: 0.98rem;
    line-height: 1.6;
    text-align: left;
}

.ampio-list-icon {
    width: 28px;
    height: 28px;
    fill: var(--accent-red);
}


.ampio-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .ampio-benefits-grid {
        grid-template-columns: 1fr;
    }

    .ampio-benefit-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .ampio-benefit-icon {
        margin: 0 auto;
    }

    .ampio-benefit-copy {
        justify-items: center;
        text-align: center;
    }
}


@media (max-width: 768px) {
    .quiz-modal-content {
        width: 90%;
        padding: 22px 18px 28px;
    }

    #quiz-container {
        gap: 1.4rem;
    }

    #quiz-question {
        font-size: 1.45rem;
        margin-bottom: 1rem;
    }

    #quiz-answers button {
        padding: 0.8rem 1.1rem;
        font-size: 1rem;
        margin: 0;
    }

    .quiz-progress {
        font-size: 1rem;
    }

    .quiz-navigation {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.9rem;
    }

    .quiz-nav-btn,
    .quiz-save-btn {
        flex: 0 1 auto;
        min-width: 150px;
    }
}

@media (max-width: 640px) {
    .ampio-benefits-grid {
        grid-template-columns: 1fr;
    }
}

.ampio-benefit-card {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    gap: 1.25rem;
    padding: 2rem;
    background: linear-gradient(180deg, rgba(24,24,24,0.94) 0%, rgba(16,16,16,0.94) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.32);
    text-align: left;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    min-height: auto;
}

.ampio-benefit-card::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.ampio-benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-red);
    box-shadow: 0 12px 24px rgba(255, 0, 0, 0.28);
    flex-shrink: 0;
    color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 1.5rem;
}

.ampio-benefit-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    stroke: currentColor;
    display: block;
}

.ampio-benefit-card:hover .ampio-benefit-icon,
.ampio-benefit-card:focus-within .ampio-benefit-icon {
    transform: scale(1.08);
    box-shadow: 0 16px 32px rgba(255, 0, 0, 0.32);
}


.ampio-benefit-copy {
    display: grid;
    gap: 0.65rem;
    text-align: left;
    justify-items: start;
}

.ampio-benefit-copy h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-white);
    text-align: left;
    letter-spacing: 0.01em;
}

.ampio-benefit-copy p {
    margin: 0;
    color: rgba(224, 224, 224, 0.9);
    line-height: 1.65;
    font-size: 0.98rem;
    text-align: left;
}

body.light-theme .ampio-style-benefits {
    --text-light: rgba(240, 240, 244, 0.85);
    --text-white: #ffffff;
    color: rgba(244, 244, 248, 0.88);
}

body.light-theme .ampio-benefits-intro h2 {
    color: #ffffff;
}

body.light-theme .ampio-benefit-copy h3 {
    color: #000000; /* Czarny kolor dla nagłówków w ampio-benefit-copy */
}

body.light-theme .ampio-benefits-intro p,
body.light-theme .ampio-benefits-list li {
    color: white; /* Biały kolor dla tekstu w ampio-benefits-intro */
}

body.light-theme .ampio-benefit-copy p {
    color: #000000; /* Czarny kolor tekstu zgodnie z żądaniem */
}

body.light-theme .ampio-benefit-card {
    background: #ffffff;
    border: 1px solid rgba(214, 0, 0, 0.18);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.16);
}

body.light-theme .ampio-benefit-icon {
    background: var(--accent-red);
    box-shadow: 0 12px 26px rgba(214, 0, 0, 0.22);
}

.reveal-tilt {
    opacity: 0;
    transform: perspective(1000px) rotateX(8deg) translateY(40px) scale(0.96);
    transform-origin: top center;
    transition: opacity 0.6s ease, transform 0.85s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal-tilt.animate {
    opacity: 1;
    transform: perspective(1000px) rotateX(0) translateY(0) scale(1);
}

.ampio-benefits-grid .reveal-tilt:nth-of-type(2) {
    transition-delay: 0.08s;
}

.ampio-benefits-grid .reveal-tilt:nth-of-type(3) {
    transition-delay: 0.14s;
}

.ampio-benefits-grid .reveal-tilt:nth-of-type(4) {
    transition-delay: 0.2s;
}

.ampio-benefits-grid .reveal-tilt:nth-of-type(5) {
    transition-delay: 0.26s;
}

.ampio-benefits-grid .reveal-tilt:nth-of-type(6) {
    transition-delay: 0.32s;
}

@media (max-width: 1023px) {
    .ampio-style-benefits {
        padding: 5rem 5%;
    }

    .ampio-benefits-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .ampio-benefits-intro {
        max-width: none;
        margin: 0 auto;
        text-align: center;
    }
}

@media (max-width: 920px) and (min-width: 768px) {
    .ampio-benefit-icon {
        width: 64px;
        height: 64px;
        border-radius: 18px;
    }

    .ampio-benefit-icon svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 767px) {
    .ampio-style-benefits {
        padding: 4rem 1.5rem;
    }

    .ampio-benefits-intro h2 {
        font-size: 2.2rem;
    }

    .ampio-benefits-grid {
        gap: 1.1rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }

    .ampio-benefit-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.3rem 1.05rem;
        gap: 0.75rem;
        border-radius: 16px;
        background: var(--ampio-card-bg);
        border: 1px solid var(--ampio-card-border);
        box-shadow: 0 18px 38px rgba(0, 0, 0, 0.26);
    }

    .ampio-benefit-copy {
        justify-items: center;
        text-align: center;
    }

    .ampio-benefits-list li {
        grid-template-columns: 32px 1fr;
        gap: 0.75rem;
        text-align: left;
        justify-items: flex-start;
    }

    .ampio-list-icon {
        width: 24px;
        height: 24px;
        fill: currentColor;
        display: block;
    }

    .ampio-benefit-icon {
        display: flex;
    }
}

@media (max-width: 600px) {
    .ampio-style-benefits {
        padding: 3.6rem 1.25rem;
    }

    .ampio-benefits-grid {
        gap: 0.9rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-items: stretch;
    }

    .ampio-benefit-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.1rem 0.85rem;
        gap: 0.4rem;
        border-radius: 16px;
        background: var(--ampio-card-bg);
        border: 1px solid var(--ampio-card-border);
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
    }

    .ampio-benefit-card::after {
        border-radius: 16px;
    }

    .ampio-benefit-icon {
        display: flex;
        border-radius: 50%;
    }

    .ampio-benefit-copy {
        justify-items: center;
        text-align: center;
        gap: 0.48rem;
    }

    .ampio-benefit-copy h3 {
        font-size: 1rem;
    }

    .ampio-benefit-copy p {
        font-size: 0.86rem;
        line-height: 1.45;
    }

    .ampio-list-icon {
        width: 20px;
        height: 20px;
        display: block;
    }
}

@media (max-width: 560px) {
    .ampio-style-benefits {
        padding: 3.4rem 1.25rem;
    }

    .ampio-benefits-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .ampio-benefit-card {
        padding: 1.15rem 1rem;
        gap: 0.6rem;
        align-items: flex-start;
        text-align: left;
    }

    .ampio-benefit-copy h3 {
        font-size: 1.05rem;
    }

    .ampio-benefit-copy p {
        font-size: 0.9rem;
        text-align: left;
    }

    .ampio-benefit-copy {
        justify-items: flex-start;
        text-align: left;
    }

    .ampio-benefits-intro p {
        font-size: 0.96rem;
        line-height: 1.7;
    }

    .ampio-benefits-intro {
        text-align: left;
        max-width: 100%;
    }

    .ampio-eyebrow {
        margin-left: 0;
    }

    .ampio-benefits-intro h2 {
        font-size: 2rem;
        text-align: left;
    }

    .ampio-benefits-list {
        gap: 0.8rem;
    }

    .ampio-benefits-list li {
        padding: 0.85rem 1rem;
        background: rgba(16, 16, 16, 0.72);
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .ampio-style-benefits::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(10, 10, 10, 0.88) 0%, rgba(10, 10, 10, 0.96) 65%);
        z-index: 0;
        pointer-events: none;
    }

    body.light-theme .ampio-style-benefits::after {
        background: linear-gradient(180deg, rgba(240, 240, 244, 0.92) 0%, rgba(240, 240, 244, 0.98) 70%);
    }

    body.light-theme .ampio-benefits-list li {
        background: rgba(255, 255, 255, 0.9);
        border-color: rgba(214, 0, 0, 0.14);
        color: rgba(26, 26, 26, 0.78);
    }
}

@media (max-width: 380px) {
    .ampio-style-benefits {
        padding: 3.2rem 1rem;
    }

    .ampio-benefit-card {
        padding: 1.05rem 0.85rem;
    }
}

.tns-outer {
    padding: 0 !important;
}

.tns-inner {
    padding: 0 !important;
}

.tns-item {
    padding: 0 10px;
}

.testimonials-section {
    background-attachment: fixed !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}

.quiz-section {
    background-attachment: fixed !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}

#hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transform-origin: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.65) 100%);
    z-index: 2;
    pointer-events: none;
}



.hero-content {
    position: relative;
    z-index: 4;
    color: white;
}

.hero h1, .hero p {
    color: white;
}

/* Stany ładowania */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Styles for Ampio CTA section */
.ampio-cta {
    background: var(--accent-red);
    text-align: center;
    border-radius: 28px;
    padding: 4.5rem 5%;
    box-shadow: 0 30px 64px rgba(0, 0, 0, 0.45);
}

.ampio-cta h2 {
    color: #ffffff;
}

.ampio-cta p {
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.92);
    max-width: 640px;
    margin: 0 auto 2.2rem;
}

.ampio-cta .page-hero-actions {
    justify-content: center;
}

/* Style buttons in CTA section */
.ampio-cta .cta-button {
    background-color: var(--dark-gray);
    border-radius: 999px; /* More rounded buttons */
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.ampio-cta .cta-button:hover {
    background-color: var(--light-gray);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
}

.ampio-cta .cta-button.secondary {
    background-color: var(--dark-gray);
    border: none;
    border-radius: 999px; /* More rounded buttons */
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.ampio-cta .cta-button.secondary:hover {
    background-color: var(--light-gray);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
}

/* Oferta Page */
:root {
    --dark-bg: #0a0a0a;
    --darker-bg: #000000;
    --dark-gray: #111111;
    --medium-gray: #1a1a1a;
    --light-gray: #222222;
    --lighter-gray: #2a2a2a;
    --text-light: #e0e0e0;
    --text-white: #ffffff;
    --accent-red: #ff0000;
    --font-serif: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
    --font-sans: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Montserrat', 'Poppins', 'Manrope', 'Inter', 'Segoe UI', Arial, sans-serif;
}
body.light-theme {
    --dark-bg: #f5f5f7;
    --darker-bg: #ffffff;
    --dark-gray: #ededf1;
    --medium-gray: #e2e2e8;
    --light-gray: #ffffff;
    --lighter-gray: #cfd0d6;
    --text-light: #1a1a1a;
    --text-white: #060606;
    --accent-red: #ff0000;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    font-family: var(--font-sans); 
    background-color: transparent;
    color: var(--text-light); 
    line-height: 1.7; 
    overflow-x: hidden; 
    position: relative;
}
.section-content {
    position: relative;
    z-index: 2;
}
body.light-theme { 
    background-color: transparent;
}
.background-container,
.background-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
.background-container {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.background-overlay {
    background-color: #000;
    opacity: 1;
    transition: opacity 0.45s ease;
    pointer-events: none;
    will-change: opacity;
}
body.light-theme .background-overlay {
    background-color: rgba(255, 255, 255, 0.92);
}
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--text-white); text-align: center; }
h2 { font-size: 2.5rem; margin-bottom: 2rem; }
h3 { font-size: 1.8rem; margin-bottom: 1.2rem; }
main { margin-top: 0; position: relative; z-index: 2; }
section { padding: 5rem 5%; }
.container { max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-lede { max-width: 720px; margin: 0 auto 3rem auto; text-align: center; font-size: 1.1rem; color: var(--text-light); }
body.light-theme .section-lede { color: #555; }

/* Animacje przy scrollowaniu */
/* Fade in animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations */
.fade-in:nth-child(1) {
    transition-delay: 0.1s;
}

.fade-in:nth-child(2) {
    transition-delay: 0.2s;
}

.fade-in:nth-child(3) {
    transition-delay: 0.3s;
}

.fade-in:nth-child(4) {
    transition-delay: 0.4s;
}

/* Word by word animation */
.word-animate {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: heroWordFade 0.8s ease-out forwards;
}

@keyframes heroWordFade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
header { padding: 1rem 5%; display: flex; justify-content: space-between; align-items: center; background: linear-gradient(90deg, rgba(255, 0, 0, 0.15) 0%, rgba(20, 20, 20, 0.95) 100%), rgba(20, 20, 20, 0.95); position: fixed; width: 100%; top: 0; z-index: 1000; box-shadow: 0 2px 25px rgba(0, 0, 0, 0.5); backdrop-filter: blur(15px); border-bottom: 1px solid rgba(255, 0, 0, 0.12); flex-wrap: nowrap; isolation: isolate; }
body.light-theme header { background-color: rgba(255, 255, 255, 0.9); border-bottom: 1px solid #eee; }
.logo { font-size: 1.8rem; font-weight: 700; color: var(--text-white); text-decoration: none; display: flex; align-items: center; }
.logo span { color: var(--accent-red); }
.logo-image { width: 42px; height: 42px; margin-right: 15px; display: block; }
.header-actions { display: flex; align-items: center; min-height: 40px; gap: 0.5rem; flex-wrap: nowrap; }
.contact-info-header { display: flex; gap: 0.5rem; margin-right: 1.5rem; min-width: 0; }

.contact-btn-header svg { flex-shrink: 0; width: 14px; height: 14px; }
.contact-btn-header:hover { transform: translateY(-2px); background-color: var(--accent-red-light); box-shadow: 0 0 16px rgba(255, 0, 0, 0.4); }
.mobile-menu-btn { display: inline-flex; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-light); margin-left: 1rem; padding: 0.25rem; border-radius: 4px; transition: background-color 0.3s ease; z-index: 1001; }
.mobile-menu-btn:hover { background-color: var(--lighter-gray); color: var(--accent-red); }
body.light-theme .mobile-menu-btn { color: var(--accent-red); }
body.light-theme .mobile-menu-btn:hover { color: var(--accent-red); }
body.light-theme .theme-toggle {
    color: var(--accent-red);
    background-color: #ffffff;
    border-color: #ddd;
}
body.light-theme .theme-toggle:hover {
    color: #ffffff;
    background-color: var(--accent-red);
    border-color: var(--accent-red);
}
.header-nav-mobile { position: absolute; top: calc(100% + 1.25rem); right: 5%; background-color: var(--darker-bg); border-radius: 8px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4); z-index: 9999; padding: 1rem; min-width: 180px; display: none; }
body.light-theme .header-nav-mobile { background-color: rgba(255, 255, 255, 0.95); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); border: 1px solid rgba(0, 0, 0, 0.05); }
.header-nav-mobile.active { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: stretch; }
.mobile-nav ul li { margin: 0.5rem 0; }
.mobile-nav ul li a { display: block; padding: 0.75rem 1rem; color: var(--text-light); text-decoration: none; border-radius: 4px; transition: background-color 0.3s ease; font-family: var(--font-heading); font-size: 0.95rem; }
.mobile-nav ul li a:hover { background-color: var(--lighter-gray); color: var(--accent-red); }
.theme-toggle { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.35rem 0.75rem; border-radius: 999px; border: 1px solid var(--lighter-gray); background-color: transparent; color: var(--text-light); cursor: pointer; transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease; font-family: var(--font-heading); font-size: 0.9rem; font-weight: 600; margin-right: 0.75rem; }
.theme-toggle:hover { background-color: var(--lighter-gray); color: var(--accent-red); border-color: var(--accent-red); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent-red); outline-offset: 2px; }
.theme-toggle .theme-icon { font-size: 1rem; line-height: 1; }
.theme-toggle .theme-icon-sun { display: none; }
body.light-theme .theme-toggle .theme-icon-moon { display: none; }
body.light-theme .theme-toggle .theme-icon-sun { display: inline; }
.theme-toggle-text { display: none; }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }

@media (max-width: 768px) { 
    header { padding: 0.85rem 5%; min-height: 80px; }
    .header-actions { width: 100%; justify-content: flex-end; }
    .logo-image { width: 32px; height: 32px; margin-right: 12px; }
    .mobile-menu-btn { display: inline-flex; }
}

@media (min-width: 769px) { 
    .theme-toggle-text { display: inline; } 
    .mobile-menu-btn { display: inline-flex !important; }
    .contact-info-header { display: flex; }
}
@media (max-width: 768px) { 
    .header-actions { 
        width: 100%; 
        justify-content: flex-end; 
        align-items: center; 
        display: flex;
        gap: 0.5rem;
    }
    .contact-info-header { 
        display: flex; 
        gap: 0.5rem; 
        margin: 0; 
        align-items: center;
    }
    .contact-btn-header.email, 
    .contact-btn-header:not([href^="tel"]) {
        display: none; 
    }
    .contact-btn-header[href^="tel"] {
        display: inline-flex;
        order: -1; /* Przesuwa przycisk telefonu przed innymi elementami */
    }
    .logo-image { width: 32px; height: 32px; margin-right: 12px; }
    .mobile-menu-btn { display: inline-flex; }
    .theme-toggle { 
        /* Nie zmieniamy order, zostaje jak jest */
    }
}
.hero {
    padding: 9rem 5% 4rem;
    background: transparent;
    position: relative;
    overflow: hidden;
    min-height: 92vh;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.1) 30%, rgba(0,0,0,0.1) 70%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    transform: translateZ(0);
}

.video-background video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: cover;
    object-position: center;
}
.hero-text {
    flex: 0 0 auto;
    max-width: 760px;
    margin: 0 0 2rem 0;
    padding: 0 2rem;
    text-align: left;
}

.hero-content {
    max-width: 1200px;
    margin: 0 0 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    position: relative;
    z-index: 4;
    width: 100%;
    padding-left: 4rem;
}

.hero-heading {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    position: relative;
    color: rgba(255, 255, 255, 0.98);
    text-align: left;
    text-shadow: 0 12px 34px rgba(0, 0, 0, 0.75),
                 0 0 14px rgba(255, 0, 0, 0.28),
                 0 0 2px rgba(255, 255, 255, 0.35);
    -webkit-text-stroke: 1.3px rgba(0, 0, 0, 0.6);
    paint-order: stroke fill;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero-line {
    display: block;
    opacity: 0;
    transform: translateY(18px);
    animation: heroWordFade 0.55s ease-out forwards;
    white-space: nowrap;
    text-shadow: 0 12px 34px rgba(0, 0, 0, 0.75),
                 0 0 14px rgba(255, 0, 0, 0.28),
                 0 0 2px rgba(255, 255, 255, 0.35);
    -webkit-text-stroke: 1.3px rgba(0, 0, 0, 0.6);
    paint-order: stroke fill;
    filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.4));
}

.hero-line {
    display: block;
    opacity: 0;
    transform: translateY(18px);
    animation: heroWordFade 0.55s ease-out forwards;
    white-space: nowrap;
}

.hero-line.hero-line-1 { 
    animation-delay: 1.15s; 
}

.hero-line.hero-line-2 { 
    animation-delay: 1.35s; 
    margin-top: 0.5em;
}

@keyframes heroWordFade {
    0% {
        opacity: 0;
        transform: translateY(18px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efect na przewijanie */
.page-hero.scrolled {
    min-height: 30vh;
}
.page-hero.scrolled h1 {
    transform: translateY(-20px);
    opacity: 0.8;
    font-size: 2.2rem;
}
.page-hero.scrolled .video-background video {
    transform: scale(1.1);
}
.cta-button { display: inline-block; background-color: var(--accent-red); color: white; padding: 1rem 2.5rem; text-decoration: none; border-radius: 4px; transition: all 0.3s ease; font-weight: 600; }
.cta-button.secondary { background-color: var(--medium-gray); border: 1px solid var(--accent-red); color: var(--accent-red); }
.problem-solution { 
    background: var(--dark-bg); 
    padding: 6rem 5%;
}
.problem-solution-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: stretch;
}
@media (min-width: 1024px) {
    .problem-solution-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.problem-card, .solution-card {
    background: var(--dark-gray);
    padding: 3rem 2.5rem;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}
.problem-card {
    border-left: 5px solid #ff6b6b;
}
.solution-card {
    border-left: 5px solid #4ecdc4;
}
.problem-card:hover, .solution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.problem-card .section-title, .solution-card .section-title {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}
.problem-card p, .solution-card p {
    margin-bottom: 0;
    line-height: 1.8;
}
body.light-theme .problem-card, 
body.light-theme .solution-card {
    background: var(--light-gray);
}

.comprehensive-approach { 
    background: var(--dark-bg); 
    padding: 5rem 5%;
}
.comprehensive-approach .two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.comprehensive-approach .section-title {
    color: var(--accent-red);
    margin-bottom: 1.5rem;
    text-align: left;
}
.comprehensive-approach p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}
.comprehensive-approach ul.simple-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}
.comprehensive-approach ul.simple-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
}
.comprehensive-approach ul.simple-list li::before {
    content: '✓';
    color: var(--accent-red);
    position: absolute;
    left: 0;
    top: 5px;
    flex-shrink: 0;
}

/* Offer details sticky gallery */
.offer-details {
    background: var(--dark-bg);
}
body.light-theme .offer-details {
    background: var(--dark-gray);
}
.details-sticky-layout {
    display: grid;
    gap: 3rem;
    grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.1fr);
    align-items: start;
}
.details-visual {
    position: sticky;
    top: 120px;
    align-self: start;
    height: clamp(320px, 58vh, 520px);
    border-radius: 26px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 35px 65px rgba(0, 0, 0, 0.35);
}
body.light-theme .details-visual {
    background: #000;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}
.details-visual-media {
    position: relative;
    width: 100%;
    height: 100%;
    isolation: isolate;
}
.details-visual-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.85s ease-in-out, transform 1.2s ease-in-out;
    z-index: 0;
}
.details-visual-media img.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}
.details-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}
.details-item {
    background: var(--light-gray);
    padding: 1.75rem;
    border-radius: 18px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.details-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 35px 65px rgba(0, 0, 0, 0.35);
}
.details-item.is-active {
    border-color: rgba(255, 0, 0, 0.4);
    box-shadow: 0 40px 70px rgba(255, 0, 0, 0.18);
}
.details-item h3 {
    text-align: left;
    margin-bottom: 0.35rem;
    font-size: 1.45rem;
}
.details-item p {
    color: var(--text-light);
}
.details-item ul {
    list-style: disc;
    margin-left: 1.25rem;
    display: grid;
    gap: 0.5rem;
    color: var(--text-light);
}
.details-options {
    display: grid;
    gap: 0.75rem;
}
.details-options strong {
    display: block;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--text-white);
}
.details-muted {
    opacity: 0.85;
    color: var(--text-light);
}
body.light-theme .details-item {
    background: var(--light-gray);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
}
body.light-theme .details-item:hover {
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.18);
}
body.light-theme .details-item.is-active {
    border-color: rgba(214, 0, 0, 0.35);
    box-shadow: 0 28px 48px rgba(214, 0, 0, 0.16);
}
body.light-theme .details-item ul,
body.light-theme .details-item p,
body.light-theme .details-muted {
    color: rgba(20, 20, 20, 0.85);
}
body.light-theme .details-options strong {
    color: var(--accent-red);
}
@media (max-width: 1100px) {
    .details-sticky-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .details-visual {
        position: relative;
        top: 0;
        height: clamp(220px, 55vw, 420px);
        margin-bottom: 1.5rem;
        box-shadow: 0 25px 45px rgba(0, 0, 0, 0.3);
    }
}
@media (max-width: 768px) {
    .details-sticky-layout {
        gap: 2rem;
    }
    .details-item {
        padding: 1.5rem;
    }
}

.transparent-cooperation { 
    background: var(--dark-gray); 
    padding: 5rem 5%;
}
.transparent-cooperation .section-title {
    color: var(--text-white);
    margin-bottom: 3rem;
    text-align: center;
}
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--accent-red);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item.timeline-item-right {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: white;
    border: 4px solid var(--accent-red);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item-right::after {
    left: -16px;
}

.timeline-panel {
    padding: 20px 30px;
    background-color: var(--dark-bg);
    position: relative;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    text-align: center;
}

.timeline-item h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}
.timeline-item p {
    margin: 0;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item.timeline-item-right {
        left: 0%;
    }
    .timeline-item::after {
        left: 15px;
    }
    .timeline-item-right::after {
        left: 15px;
    }
}

.extensions { 
    background: var(--dark-bg); 
    padding: 5rem 5%;
}
.extensions .section-title {
    color: var(--text-white);
    margin-bottom: 3rem;
    text-align: center;
}
.extensions .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.extension-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 2rem;
    background: var(--dark-gray);
    border: 1px solid var(--medium-gray);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.extension-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-red);
}

.extension-card-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, rgba(255, 51, 51, 0.9), rgba(255, 0, 0, 0.55));
    box-shadow: 0 12px 24px rgba(255, 0, 0, 0.3);
    margin-bottom: 1rem;
}

.extension-card-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.extension-card h3 {
    color: var(--text-white);
    margin-bottom: 1rem;
}

.extension-card p {
    color: var(--text-light);
}

body.light-theme .comprehensive-approach { 
    background: var(--darker-bg); 
}
body.light-theme .transparent-cooperation { 
    background: var(--light-gray); 
}
body.light-theme .extensions { 
    background: var(--darker-bg); 
}
body.light-theme .timeline-item {
    background: var(--light-gray);
}
body.light-theme .extensions .simple-card {
    background: var(--light-gray);
}
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.benefits-section { background: var(--dark-gray); margin-top: 5rem; }
.investment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.investment-card {
    position: relative;
    perspective: 1600px;
    height: clamp(280px, 34vw, 340px);
}

.investment-card:focus {
    outline: none;
}

.investment-card:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.45);
    border-radius: 22px;
}

.investment-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 1.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.investment-card:hover .investment-card-inner,
.investment-card:focus-within .investment-card-inner {
    transform: rotateY(180deg);
}

.investment-face {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.2rem;
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.investment-front {
    color: var(--text-white);
}

.investment-front picture,
.investment-front img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.investment-front::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.75) 100%);
}

.investment-front .investment-number,
.investment-front h3 {
    position: relative;
    z-index: 1;
}

.investment-front .investment-number {
    font-size: 1.1rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    font-weight: 700;
    color: var(--accent-red-light);
}

.investment-front h3 {
    margin: 0;
    font-size: 1.7rem;
}

.investment-back {
    background: linear-gradient(145deg, rgba(18, 18, 18, 0.96), rgba(12, 12, 12, 0.9));
    color: var(--text-light);
    transform: rotateY(180deg);
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
    overflow-y: auto;
    scrollbar-width: thin;
}

.investment-back h3 {
    margin: 0;
    color: var(--text-white);
    font-size: 1.6rem;
}

.investment-back p {
    margin: 0;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .investment-card {
        height: clamp(260px, 60vw, 320px);
    }
}

@media (max-width: 480px) {
    .investment-grid {
        grid-template-columns: 1fr !important;
        gap: 1.8rem;
        padding: 0 1rem; /* Dodany padding boczny */
    }

    .investment-card {
        height: 400px !important;
    }

    .investment-face {
        padding: 1.8rem;
    }

    .investment-front .investment-number {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .investment-front h3 {
        font-size: 1.5rem;
    }

    .investment-back h3 {
        font-size: 1.4rem;
    }

    .investment-back p {
        font-size: 0.95rem;
    }
}

body.light-theme .investment-face {
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

body.light-theme .investment-front {
    color: #ffffff;
}

body.light-theme .investment-front .investment-number,
body.light-theme .investment-front h3 {
    color: #ffffff;
}

body.light-theme .investment-front::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.75) 100%);
}

body.light-theme .investment-back {
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.94), rgba(240, 240, 240, 0.9));
    color: rgba(28, 28, 32, 0.85);
}

body.light-theme .investment-back h3 {
    color: #1a1a1a;
}
.social-proof { background: var(--dark-bg); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
.simple-card { background: var(--dark-gray); padding: 2rem; border-radius: 8px; }
.trust-section { background: var(--dark-bg); }
.trust-grid { display: grid; gap: 2.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.trust-card { background: var(--dark-gray); border-radius: 18px; padding: 2.25rem; box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35); border: 1px solid var(--medium-gray); display: flex; flex-direction: column; gap: 1.25rem; }
.trust-card h3 { color: var(--text-white); text-align: left; font-size: 1.5rem; }
.trust-card p { color: var(--text-light); font-size: 1rem; }
.trust-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.trust-card ul li { position: relative; padding-left: 1.3rem; color: var(--text-light); }
.trust-card ul li::before { content: '•'; position: absolute; left: 0; color: var(--accent-red); font-size: 1.2rem; line-height: 1; }
.assurance-section { background: var(--dark-bg); }
.assurance-grid { display: grid; gap: 2.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 3rem; }
.assurance-card {
    background: var(--dark-gray);
    border-radius: 18px;
    padding: 2.25rem 2.25rem 4rem 2.25rem;
    border: 1px solid var(--medium-gray);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s ease;
}

.assurance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.assurance-icon {
    display: block;
    width: 48px;
    height: 48px;
    color: var(--accent-red);
    margin: 0 auto 1rem;
}

.assurance-card h3 {
    text-align: center;
}
.assurance-card p {
    max-width: 80%;
    margin: 0 auto;
    text-align: center;
}
.assurance-section {
    padding: 5rem 5% 7rem;
}


body.light-theme .trust-section, body.light-theme .assurance-section { background: var(--light-gray); }
body.light-theme .trust-card, body.light-theme .assurance-card { background: var(--light-gray); border-color: rgba(0,0,0,0.08); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12); }
body.light-theme .trust-card p, body.light-theme .assurance-card p { color: #333; }
body.light-theme .trust-card ul li { color: #333; }
body.light-theme .assurance-card { color: #333; }
body.light-theme .assurance-section .section-lede { color: var(--text-white); }
.pricing-section { background: var(--dark-bg); }
.package-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    padding: 2rem;
    background-color: var(--dark-gray);
    border-radius: 16px;
    border: 1px solid var(--medium-gray);
}

.package-row:last-child {
    margin-bottom: 0;
}
.package-row:nth-child(even) .package-image { order: 2; }
.package-image img { width: 100%; height: auto; border-radius: 12px; object-fit: cover; aspect-ratio: 16 / 10; }
.package-details h3 { text-align: left; font-size: 2.2rem; color: var(--accent-red); }
.package-details .price { text-align: left; font-size: 1.8rem; font-weight: 700; color: var(--text-white); margin: 0.5rem 0 1.5rem 0; }
.package-details ul { list-style: none; padding: 0; margin: 1.5rem 0; }
.package-details ul li { margin-bottom: 0.75rem; display: flex; align-items: flex-start; }
.package-details ul li::before { content: '✓'; color: var(--accent-red); margin-right: 10px; font-weight: 700; }
.guarantee-section { background: var(--dark-gray); text-align: center; }
.guarantee-badge { width: 120px; height: 120px; background-color: var(--accent-red); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 2rem; }
.guarantee-badge svg { width: 60px; height: 60px; fill: white; }
.faq-section {
    padding: 5rem 5%;
    background-color: var(--dark-bg);
}

.faq-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.faq-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
    width: 100%;
    counter-reset: faq-counter;
}

.faq-item {
    background: radial-gradient(circle at 20% -20%, rgba(255, 0, 0, 0.22), transparent 55%), var(--light-gray);
    padding: clamp(1.65rem, 3.4vw, 2rem) clamp(1.4rem, 3vw, 1.9rem) clamp(1.5rem, 3vw, 1.9rem);
    border-radius: 18px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.faq-item::before {
    counter-increment: faq-counter;
    content: counter(faq-counter);
    position: absolute;
    top: 1rem;
    left: clamp(1.2rem, 3vw, 1.65rem);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-red);
}

.faq-item::after {
    content: "";
    position: absolute;
    top: 2.25rem;
    left: clamp(1.2rem, 3vw, 1.65rem);
    width: 52px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-red), rgba(255, 0, 0, 0));
    opacity: 0.55;
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 0.5rem 0 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-white);
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.faq-question h4 {
    margin: 0 auto;
    color: inherit;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.015em;
    flex: 1;
    max-width: 85%;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0;
    z-index: 2;
    position: relative;
}

.faq-answer p, .faq-answer li {
    color: rgba(224, 224, 224, 0.85);
}

.faq-answer ul {
    padding-left: 1.2rem;
    margin-top: 0.8rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

.faq-question::after {
    content: "+";
    position: absolute;
    right: 0;
    font-size: 1.8rem;
    transition: transform 0.3s ease;
    color: var(--accent-red);
    font-weight: bold;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
    color: var(--accent-red-light);
}

.faq-question:hover {
    color: var(--accent-red);
}
.final-cta { background: var(--dark-gray); text-align: center; }
.additional-offer-section { 
    position: relative;
    padding: 6rem 5%;
    background:
        radial-gradient(110% 110% at 100% 0%, rgba(255, 0, 0, 0.24) 0%, rgba(10, 10, 10, 0) 55%),
        linear-gradient(120deg, rgba(10, 10, 10, 0.94) 0%, rgba(10, 10, 10, 0.9) 38%, rgba(10, 10, 10, 0.78) 100%),
        image-set(
            url('../images/optimized_all/uslugi-dodatkowe-tlo.webp') type('image/webp'),
            url('../images/optimized_all/uslugi-dodatkowe-tlo.webp') type('image/webp')
        );
    background-size: auto, auto, cover;
    background-position: center, center, top;
    background-repeat: no-repeat;
    overflow: hidden;
}
.additional-offer-section::before {
    content: "";
    position: absolute;
    top: -30%;
    right: -15%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.35) 0%, rgba(10, 10, 10, 0) 70%);
    opacity: 0.6;
    pointer-events: none;
}
.additional-offer-section .container {
    position: relative;
    z-index: 1;
}
body.light-theme .additional-offer-section { 
    background:
        radial-gradient(110% 110% at 100% 0%, rgba(214, 0, 0, 0.24) 0%, rgba(255, 255, 255, 0) 55%),
        linear-gradient(120deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.9) 38%, rgba(255, 255, 255, 0.78) 100%),
        image-set(
            url('../images/optimized_all/uslugi-dodatkowe-tlo.webp') type('image/webp'),
            url('../images/optimized_all/uslugi-dodatkowe-tlo.webp') type('image/webp')
        );
    background-size: auto, auto, cover;
    background-position: center, center, top;
    background-repeat: no-repeat;
}

.kbx-nested-list {
    list-style: none;
    padding: 0;
    margin: 0.8rem 0 0 0;
    text-align: left;
    width: 100%;
}

.kbx-nested-list li {
    position: relative;
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    color: var(--text-light);
    font-size: 0.95rem;
    text-align: left;
}

.kbx-nested-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0.2rem;
    color: var(--accent-red);
}

body.light-theme .kbx-nested-list li {
    color: rgba(28, 28, 32, 0.85);
}

.kbx-card h3 {
    text-align: center;
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
    color: var(--text-white);
    flex: 1;
    display: flex;
    align-items: center;
}
.two-column-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; }
.two-column-list ul { list-style: none; padding: 0; margin: 0; }
.two-column-list ul li { padding-left: 1.5rem; position: relative; margin-bottom: 1rem; }
.two-column-list ul li::before { content: '✓'; color: var(--accent-red); position: absolute; left: 0; top: 5px; }
.nested-list { list-style: none; padding-left: 2rem; margin-top: 0.5rem; margin-left: 1rem; }
.two-column-list ul li .nested-list li { 
    margin-bottom: 0.5rem; 
    padding-left: 1.5rem; 
    position: relative;
}
.two-column-list ul li .nested-list li::before { 
    content: '•'; 
    color: var(--accent-red); 
    position: absolute; 
    left: 0; 
    top: 5px; 
}
body.light-theme .nested-list { color: var(--text-light); }
@media (max-width: 768px) { .two-column-list { grid-template-columns: 1fr; } .two-column-list ul { margin-bottom: 1rem; } }

/* Styles for Ampio CTA section */
.ampio-cta {
    background: var(--accent-red);
    text-align: center;
    border-radius: 28px;
    padding: 4.5rem 5%;
    box-shadow: 0 30px 64px rgba(0, 0, 0, 0.45);
}

.ampio-cta h2 {
    color: #ffffff;
}

.ampio-cta p {
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.92);
    max-width: 640px;
    margin: 0 auto 2.2rem;
}

.ampio-cta .page-hero-actions {
    justify-content: center;
}

/* Style buttons in CTA section */
.ampio-cta .cta-button {
    background-color: var(--dark-gray);
    border-radius: 999px; /* More rounded buttons */
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.ampio-cta .cta-button:hover {
    background-color: var(--light-gray);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
}

.ampio-cta .cta-button.secondary {
    background-color: var(--dark-gray);
    border: none;
    border-radius: 999px; /* More rounded buttons */
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.ampio-cta .cta-button.secondary:hover {
    background-color: var(--light-gray);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
}

.hero-content-below {
    background: var(--dark-bg);
    padding: 5rem 5%;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-content-below .container {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content-below .section-lede {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.hero-content-below .page-hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-content-below .page-hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-content-below .cta-button {
        width: 100%;
        max-width: 300px;
        margin: 0.5rem 0;
    }
}

footer {
    background-color: var(--darker-bg);
    padding: 4rem 5% 2rem;
    color: var(--text-light);
    border-top: 1px solid var(--lighter-gray);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.footer-info,
.footer-links {
    flex: 1;
    min-width: 200px;
    text-align: left;
}

.footer-links h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--text-white);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0 0 0 1rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.footer-links ul li a:hover {
    color: var(--accent-red);
}

.contact-info-footer {
    margin-top: 1.5rem;
}

.contact-info-footer p {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.contact-info-footer svg {
    margin-right: 10px;
    fill: var(--accent-red);
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--medium-gray);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

@media (min-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 900px) {
    .two-column,
    .package-row {
        grid-template-columns: 1fr;
    }

    .package-row:nth-child(even) .package-image {
        order: 0;
    }
}
/* Dodatkowe reguły mobilne dla nagłówka - nasze poprawki */
@media (max-width: 768px) { 
    .header-actions { 
        width: 100%; 
        justify-content: flex-end; 
        align-items: center; 
        display: flex !important;
        gap: 0.5rem;
    }
    .contact-info-header { 
        display: flex !important; 
        gap: 0.5rem; 
        margin-right: 1rem; 
        align-items: center;
    }
    .contact-btn-header.email, 
    .contact-btn-header:not([href^="tel"]) {
        display: none !important; 
    }
    .contact-btn-header[href^="tel"] {
        display: inline-flex !important;
    }
    .logo-image { width: 32px; height: 32px; margin-right: 12px; }
    .mobile-menu-btn { display: inline-flex; }
}

/* Minimal slider styling replaces external Swiper dependency */
.swiper {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: var(--dark-gray);
}

.swiper-wrapper {
    display: flex;
    transition: transform 0.6s ease;
    will-change: transform;
}

.swiper-slide {
    flex: 0 0 100%;
    min-width: 100%;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
}

.swiper-button-prev,
.swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
    font-size: 1.5rem;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: rgba(255, 0, 0, 0.8);
    border-color: rgba(255, 0, 0, 0.6);
    transform: translateY(-50%) scale(1.05);
}

.swiper-button-prev {
    left: 1rem;
}

.swiper-button-next {
    right: 1rem;
}

.swiper-pagination {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.7);
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.04em;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

@media (max-width: 768px) {
    .swiper-button-prev,
    .swiper-button-next {
        width: 36px;
        height: 36px;
    }

    .swiper-pagination {
        bottom: 1.2rem;
    }
}
@media (max-width: 540px) {
    .multimedia-gallery {
        max-width: 100%;
        gap: 1.2rem;
    }

    .multimedia-gallery .gallery-tile {
        margin-bottom: 0;
        min-height: 150px;
        height: auto;
        aspect-ratio: 16/9;
        border-radius: 16px;
    }

    .multimedia-gallery .gallery-tile img,
    .multimedia-gallery .gallery-tile video {
        width: 100%;
        height: 100%;
        object-fit: contain;
        max-width: 100%;
        max-height: 100%;
    }
}

/* Quiz modal overrides */
.quiz-navigation {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.9rem;
    margin-top: 1.5rem;
}

.quiz-navigation.is-visible {
    display: flex;
}

.quiz-nav-btn,
.quiz-save-btn {
    width: 100%;
    justify-content: center;
}

#quiz-container,
#quiz-result {
    display: none;
    background: rgba(18, 18, 18, 0.88);
    padding: 1.75rem 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

body.light-theme #quiz-container,
body.light-theme #quiz-result {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(214, 0, 0, 0.12);
    box-shadow: 0 25px 55px rgba(214, 0, 0, 0.18);
}

body.light-theme #quiz-result h3,
body.light-theme #quiz-score,
body.light-theme #quiz-result-text {
    color: var(--dark-gray);
}

body.light-theme #quiz-result-text strong,
body.light-theme #quiz-score strong {
    color: var(--accent-red);
}

/* Na telefonach zmieniamy układ possibilities */
@media (max-width: 992px) {
    /* Ukrywamy oryginalny układ possibilities */
    .possibilities-sticky-container {
        display: none !important;
    }

    /* Pokazujemy stack wersję na telefonach */
    /* Selektor dla possibilities-stack */
    section .possibilities-stack {
        display: block !important;
        padding: 2rem 1.5rem !important;
        width: 100% !important;
    }

    /* Selektor dla zagnieżdżonego possibilities-stack */
    section .possibilities-stack > .possibilities-stack {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
        width: 100% !important;
    }

    /* Stylizujemy elementy possibilities-stack-item */
    section .possibilities-stack > .possibilities-stack > .possibilities-stack-item {
        background: rgba(26, 26, 26, 0.92) !important;
        padding: 30px !important;
        border-radius: 18px !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1.5rem !important;
        width: 100% !important;
        max-width: 350px !important;
        margin: 0 auto !important;
        position: relative !important;
    }

    /* Stylizujemy obrazki */
    section .possibilities-stack-item picture {
        width: 100% !important;
        max-width: 350px !important;
        margin: 0 auto !important;
        display: block !important;
    }

    section .possibilities-stack-item img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22) !important;
        display: block !important;
    }

    /* Stylizujemy zawartość tekstową */
    section .possibilities-stack-item-content {
        padding: 1.8rem !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
        width: 100% !important;
        text-align: center !important;
    }

    section .possibilities-stack-item-content h3 {
        font-size: 1.5rem !important;
        margin: 0 !important;
        color: var(--text-white) !important;
        text-align: center !important;
    }

    section .possibilities-stack-item-content p {
        font-size: 1rem !important;
        line-height: 1.7 !important;
        color: rgba(224, 224, 224, 0.85) !important;
        text-align: center !important;
        margin: 0 !important;
    }

    /* Stylizacja dla trybu jasnego */
    body.light-theme section .possibilities-stack > .possibilities-stack > .possibilities-stack-item {
        background: rgba(16, 16, 16, 0.72) !important;
        box-shadow: 0 22px 55px rgba(0, 0, 0, 0.18) !important;
        border-color: rgba(255, 255, 255, 0.12) !important;
    }

    body.light-theme section .possibilities-stack-item-content h3 {
        color: rgba(255, 255, 255, 0.96) !important;
    }

    body.light-theme section .possibilities-stack-item-content p {
        color: rgba(255, 255, 255, 0.92) !important;
    }
}

/* Ostateczne reguły mobilne dla nagłówka - nadpisują wszystko */
@media (max-width: 768px) {
    .header-actions {
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        gap: 0.5rem !important;
        flex-wrap: nowrap !important; /* Zapobiega zawijaniu do nowej linii */
    }
    
    .contact-info-header {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        flex: 0 0 auto !important; /* Nie pozwól elementowi rozciągać się */
    }
    
    /* Pokaż tylko przycisk telefonu */
    .contact-btn-header:not([href^="tel"]) {
        display: none !important;
    }
    
    .contact-btn-header[href^="tel"] {
        display: inline-flex !important;
        padding: 0.4rem 0.8rem !important; /* Zwiększ padding dla lepszego wyglądu tekstu */
        font-size: 0.8rem !important; /* Zmniejsz rozmiar czcionki */
        flex: 0 0 auto !important; /* Nie pozwól elementowi rozciągać się */
        align-items: center !important;
        gap: 0.3rem !important; /* Odstęp między ikoną a tekstem */
    }
    
    /* Pokaż tekst z numerem telefonu */
    .contact-btn-header[href^="tel"] span {
        display: inline !important;
        font-weight: 600 !important;
    }
    
    /* Ukryj ikonkę telefonu na mobilnych */
    .contact-btn-header[href^="tel"] svg {
        display: none !important; /* Pełnie ukryj ikonę */
    }
    
    /* Upewnij się, że elementy nie zajmują za dużo miejsca */
    .theme-toggle {
        flex: 0 0 auto !important;
        margin-right: 0 !important;
        padding: 0.35rem 0.75rem !important;
    }
    
    .mobile-menu-btn {
        flex: 0 0 auto !important;
    }
    
    /* Ustaw porządek elementów */
    .contact-info-header {
        order: 0 !important;
    }
    
    .theme-toggle {
        order: 1 !important;
    }
    
    .mobile-menu-btn {
        order: 2 !important;
    }
}


@media (max-width: 768px) {
    body.index-page header {
        position: fixed;
    }

    body.index-page .header-actions {
        position: relative;
    }

    body.index-page .mobile-menu-btn {
        position: relative;
        z-index: 1101;
    }

    body.index-page .header-nav-mobile {
        position: fixed;
        top: 4.5rem;
        right: 1.5rem;
        left: auto;
        min-width: 200px;
        width: auto;
        max-width: 280px;
        z-index: 1100;
    }
}


/* CLS improvements for hero section and trust bar */
.hero.fade-in,
.hero.fade-in.animate,
.hero-content-below.fade-in,
.hero-content-below.fade-in.animate {
    transform: none;
}

.hero-line,
.hero-line-phone {
    transform: none;
    animation-name: heroWordFadeOpacity;
    will-change: opacity;
}

@keyframes heroWordFadeOpacity {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.trust-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4ch;
    font-variant-numeric: tabular-nums;
}
.index-page .realization-card,
.index-page .realization-card:hover {
    transform: none !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid var(--lighter-gray) !important;
    filter: none !important;
}

.index-page .realization-card::after,
.index-page .realization-card:hover::after {
    opacity: 0 !important;
}

.index-page .realization-card .realization-img img,
.index-page .realization-card:hover .realization-img img {
    transform: none !important;
}

.index-page .realization-card .realization-content,
.index-page .realization-card:hover .realization-content {
    opacity: 1 !important;
    transform: none !important;
}

.index-page .realization-card .realization-overlay {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.index-page .realization-overlay-content {
    position: relative;
    margin: 1.2rem 0 0;
    padding: 1.2rem 1.4rem 1.25rem 1.6rem;
    background: linear-gradient(140deg, rgba(214, 0, 0, 0.18), rgba(214, 0, 0, 0.05));
    border-radius: 16px;
    border: 1px solid rgba(214, 0, 0, 0.3);
    box-shadow: 0 22px 44px rgba(214, 0, 0, 0.16);
    overflow: hidden;
}

.index-page .realization-overlay-content::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 120% at 95% 5%, rgba(255, 255, 255, 0.16) 0%, transparent 55%);
    opacity: 0.6;
    pointer-events: none;
}

.index-page .realization-overlay-content::after {
    content: "";
    position: absolute;
    top: 1.1rem;
    left: 1.2rem;
    bottom: 1.1rem;
    width: 3px;
    border-radius: 999px;
    background: var(--accent-red);
    opacity: 0.85;
}

.index-page .realization-overlay__title {
    position: relative;
    z-index: 1;
    display: block;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 0.6rem;
    color: var(--accent-red-light);
    font-weight: 700;
}

.index-page .realization-overlay__list {
    position: relative;
    z-index: 1;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.92);
}

.index-page .realization-overlay__list li {
    position: relative;
    padding-left: 1.45rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.index-page .realization-overlay__list li::before {
    content: "";
    position: absolute;
    top: 0.7rem;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-red);
    box-shadow: 0 0 0 4px rgba(214, 0, 0, 0.18);
    transform: translateY(-50%);
}

.index-page .realization-overlay__cta {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1.1rem;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(214, 0, 0, 0.35);
    background: rgba(214, 0, 0, 0.08);
    color: var(--accent-red);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.index-page .realization-overlay__cta:hover {
    color: #fff;
    background: var(--accent-red);
    border-color: var(--accent-red);
    text-decoration: none;
}

.index-page .realization-content .cta-link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--accent-red);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.index-page .realization-content .cta-link:hover {
    color: var(--accent-red-light);
    text-decoration: underline;
}

body.light-theme.index-page .realization-overlay-content {
    background: linear-gradient(140deg, rgba(214, 0, 0, 0.12), rgba(214, 0, 0, 0.02));
    border: 1px solid rgba(214, 0, 0, 0.2);
    box-shadow: 0 24px 48px rgba(214, 0, 0, 0.14);
}

body.light-theme.index-page .realization-overlay-content::before {
    background: radial-gradient(130% 130% at 92% 8%, rgba(255, 255, 255, 0.45) 0%, transparent 60%);
    opacity: 0.75;
}

body.light-theme.index-page .realization-overlay__title {
    color: #a80000;
}

body.light-theme.index-page .realization-overlay__list {
    color: #222;
}

body.light-theme.index-page .realization-overlay__list li {
    color: #333;
}

body.light-theme.index-page .realization-overlay__list li::before {
    background: var(--accent-red);
    box-shadow: 0 0 0 4px rgba(214, 0, 0, 0.18);
}

body.light-theme.index-page .realization-overlay__cta {
    background: rgba(214, 0, 0, 0.12);
    border-color: rgba(214, 0, 0, 0.45);
}

body.light-theme.index-page .realization-overlay__cta:hover {
    background: rgba(214, 0, 0, 0.85);
    border-color: rgba(214, 0, 0, 0.85);
}

body.light-theme.index-page .realization-content .cta-link {
    color: var(--accent-red);
}


/* Cookie consent banner */
.cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: min(360px, calc(100% - 2rem));
    z-index: 1200;
    opacity: 0;
    transform: translateY(24px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner__inner {
    backdrop-filter: blur(12px);
    background: rgba(15, 15, 15, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    padding: 1.6rem 1.5rem 1.4rem;
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

.cookie-banner__inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 120% at 88% 0%, rgba(214, 0, 0, 0.26) 0%, transparent 55%);
    opacity: 0.7;
    pointer-events: none;
}

.cookie-banner__inner > * {
    position: relative;
    z-index: 1;
}

.cookie-banner__close {
    position: absolute;
    top: 0.65rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s ease;
}

.cookie-banner__close:hover,
.cookie-banner__close:focus {
    color: var(--accent-red-light);
}

.cookie-banner__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-red-light);
    font-weight: 600;
}

.cookie-banner__header h2 {
    margin-top: 1rem;
    font-size: 1.55rem;
    letter-spacing: -0.01em;
}

.cookie-banner__header p {
    margin-top: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
}

.cookie-banner__form {
    margin-top: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-banner__form fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

.cookie-banner__form legend {
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.6rem;
}

.cookie-options {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-option h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.cookie-option p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.cookie-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.cookie-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cookie-toggle span {
    display: inline-flex;
    align-items: center;
    width: 46px;
    height: 26px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    transition: background 0.3s ease;
    position: relative;
}

.cookie-toggle span::after {
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    left: 3px;
    transition: transform 0.3s ease;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked + span {
    background: rgba(214, 0, 0, 0.45);
}

.cookie-toggle input:checked + span::after {
    transform: translateX(20px);
}

.cookie-toggle input:disabled + span {
    background: rgba(255, 255, 255, 0.25);
    opacity: 0.7;
}

.cookie-banner__consent-note {
    font-size: 0.8rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.cookie-banner__consent-note a {
    color: var(--accent-red-light);
    text-decoration: underline;
}

.cookie-banner__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
    margin-top: 0.4rem;
}

.cookie-banner__btn {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.55rem 0.9rem;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.cookie-banner__btn:hover,
.cookie-banner__btn:focus {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.5);
}

.cookie-banner__btn--primary {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
}

.cookie-banner__btn--primary:hover,
.cookie-banner__btn--primary:focus {
    background: var(--accent-red-light);
    border-color: var(--accent-red-light);
}

.cookie-banner--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-manage-btn {
    position: fixed;
    bottom: 1.25rem;
    left: 1.25rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(20, 20, 20, 0.7);
    color: var(--text-white);
    padding: 0.45rem 0.95rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
    z-index: 1100;
}

.cookie-manage-btn:hover,
.cookie-manage-btn:focus-visible {
    background: rgba(20, 20, 20, 0.88);
}

.cookie-manage-btn.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

body.light-theme .cookie-banner__inner {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(214, 0, 0, 0.18);
    color: #111;
}

body.light-theme .cookie-banner__inner::before {
    background: radial-gradient(120% 120% at 88% 0%, rgba(214, 0, 0, 0.18) 0%, transparent 55%);
}

body.light-theme .cookie-banner__header p,
body.light-theme .cookie-banner__consent-note {
    color: rgba(20, 20, 20, 0.7);
}

body.light-theme .cookie-option {
    background: rgba(214, 0, 0, 0.06);
    border-color: rgba(214, 0, 0, 0.12);
}

body.light-theme .cookie-toggle span {
    background: rgba(214, 0, 0, 0.18);
}

body.light-theme .cookie-banner__btn {
    border-color: rgba(214, 0, 0, 0.38);
    color: var(--accent-red);
    background: rgba(214, 0, 0, 0.08);
}

body.light-theme .cookie-banner__btn:hover,
body.light-theme .cookie-banner__btn:focus {
    background: rgba(214, 0, 0, 0.15);
}

body.light-theme .cookie-banner__btn--primary {
    color: #fff;
}

body.light-theme .cookie-manage-btn {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(214, 0, 0, 0.28);
    color: var(--accent-red);
    box-shadow: 0 12px 28px rgba(214, 0, 0, 0.08);
}

@media (max-width: 768px) {
    .cookie-banner {
        width: calc(100% - 1.5rem);
        left: 0.75rem;
        right: 0.75rem;
        bottom: 1rem;
    }
    .cookie-banner__actions {
        grid-template-columns: 1fr;
    }
    .cookie-manage-btn {
        left: auto;
        right: 0.75rem;
        bottom: 0.85rem;
        padding: 0.4rem 0.85rem;
        font-size: 0.78rem;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    }
    .cookie-manage-btn.visible {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .dark-card-content {
        padding: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .responsive-grid-section {
        grid-template-columns: 1fr !important;
        padding: 0 1.25rem;
    }
}
