.product-hero-section {
    position: relative;
    padding: 6rem 0 4rem;
}
.product-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: center;
}
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
}
.hero-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}
.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(6px);
}
.hero-image-frame {
    position: relative;
    border-radius: 28px;
    padding: 1.35rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
}
.hero-image-frame img {
    display: block;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.floating-badge {
    position: absolute;
    right: 1.5rem;
    bottom: 1.5rem;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.85rem 1.1rem;
    border-radius: 18px;
    background: rgba(10, 10, 10, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}
.floating-badge strong {
    font-size: 1.2rem;
}
.feature-highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.75rem;
    margin-top: 2.75rem;
}
.feature-card {
    position: relative;
    padding: 2rem 1.75rem;
    border-radius: 22px;
    background: rgba(18, 18, 18, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.32);
    display: grid;
    gap: 1.1rem;
}
.feature-card .feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
.product-page .feature-icon svg {
    width: 28px;
    height: 28px;
    display: block;
}
.product-page .feature-icon use {
    width: 100%;
    height: 100%;
}
.feature-card h3 {
    font-size: 1.2rem;
    margin: 0;
    color: #fff;
}
.feature-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
}
.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.75rem;
    margin-top: 3rem;
}
.spec-card {
    position: relative;
    padding: 2.2rem 2rem;
    border-radius: 26px;
    background: radial-gradient(circle at top right, rgba(214, 0, 0, 0.18), transparent 46%), rgba(6, 6, 8, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 36px 68px rgba(0, 0, 0, 0.45);
    display: grid;
    gap: 1.35rem;
    overflow: hidden;
}
.spec-card::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    pointer-events: none;
}
.spec-card::after {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(214, 0, 0, 0.38), rgba(214, 0, 0, 0));
    top: -70px;
    right: -60px;
    filter: blur(0);
    opacity: 0.6;
    pointer-events: none;
}
.spec-card h4 {
    margin: 0;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
}
.spec-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.65;
    max-width: 36ch;
}
.spec-metric {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1rem 1.2rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.spec-metric::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    pointer-events: none;
}
.spec-metric strong {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    padding: 0.35rem 0.75rem;
    border-radius: 14px;
    font-size: 2.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    background: linear-gradient(135deg, rgba(214, 0, 0, 0.95), rgba(214, 0, 0, 0.55));
    box-shadow: 0 24px 48px rgba(214, 0, 0, 0.35);
}
.spec-metric span {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    line-height: 1.55;
}
.spec-metric-note {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 1rem 1.15rem;
    background: linear-gradient(140deg, rgba(214, 0, 0, 0.18), rgba(214, 0, 0, 0.05));
    border: 1px solid rgba(214, 0, 0, 0.28);
}
.spec-metric-note::before {
    border: 1px solid rgba(214, 0, 0, 0.18);
}
.spec-metric-note strong {
    min-width: auto;
    padding: 0;
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background: none;
    box-shadow: none;
}
.spec-metric-note span {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.95rem;
}
.full-product-section {
    margin-top: 4rem;
}
.full-product-section .section-lede {
    max-width: 760px;
    margin: 1.25rem 0 2.75rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
}
.full-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(252px, 1fr));
    gap: 1.75rem;
    align-items: stretch;
}
.full-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 2rem 1.8rem 1.8rem 1.95rem;
    border-radius: 22px;
    background: rgba(12, 12, 16, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 28px 58px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}
.full-product-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    bottom: 16px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(214, 0, 0, 0.85), rgba(214, 0, 0, 0.35));
    z-index: 0;
}
.full-product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(140deg, rgba(214, 0, 0, 0.16), transparent 55%);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}
.full-product-card > * {
    position: relative;
    z-index: 1;
}
.full-product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 34px 68px rgba(0, 0, 0, 0.46);
}
.full-product-card h3 {
    position: relative;
    margin: 0;
    padding-left: 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
}
.full-product-card h3::after {
    content: '';
    position: absolute;
    left: 0.5rem;
    bottom: -0.55rem;
    width: 48px;
    height: 2px;
    border-radius: 999px;
    background: rgba(214, 0, 0, 0.65);
}
.full-product-card p {
    margin: 0;
    padding-left: 0.5rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
    max-width: 38ch;
}
.full-product-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: auto;
    width: fit-content;
    padding: 0.5rem 1.05rem;
    border-radius: 999px;
    background: rgba(214, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.full-product-link::after {
    content: '↗';
    font-size: 1rem;
}
.full-product-link:hover {
    background: rgba(214, 0, 0, 0.36);
    border-color: rgba(255, 255, 255, 0.38);
    transform: translateY(-1px);
}
.cta-banner {
    position: relative;
    padding: 3.5rem;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(214, 0, 0, 0.85), rgba(214, 0, 0, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 32px 60px rgba(214, 0, 0, 0.35);
    display: grid;
    gap: 1.4rem;
}
.cta-banner h2 {
    margin: 0;
    color: #fff;
    font-size: 2rem;
}
.cta-banner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
}
.cta-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}
.cta-banner .cta-button.secondary {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
}
@media (max-width: 1024px) {
    .product-hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .hero-image-frame {
        max-width: 520px;
        margin: 0 auto;
    }
}
@media (max-width: 640px) {
    .product-hero-section {
        padding: 4.5rem 0 3rem;
    }
    .hero-pill-row {
        gap: 0.5rem;
    }
    .hero-pill {
        font-size: 0.8rem;
    }
    .full-product-section {
        margin-top: 3.5rem;
    }
    .full-product-card {
        padding: 1.7rem 1.5rem 1.5rem 1.75rem;
    }
    .cta-banner {
        padding: 2.5rem;
    }
    .spec-card {
        padding: 1.85rem 1.6rem;
    }
    .spec-metric {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .spec-metric strong {
        min-width: auto;
        font-size: 1.8rem;
    }
}

/* Additional styles for project card image containers */
.project-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px; /* Zwiększono wysokość aby lepiej dopasować obrazy */
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card-image-wrapper picture,
.project-card-image-wrapper img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Zmieniono na contain, aby obraz był widoczny w całości */
}

/* Override default project card image styles */
.project-card .project-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Zmieniono na contain, aby obraz był widoczny w całości */
    border-radius: 16px 16px 0 0;
}

/* Dodatkowe style dla obrazów w sekcji produktów */
.project-card-image-wrapper img {
    object-position: center; /* Centralizuje obraz w przypadku przycinania */
}

/* Style dla obrazów produktów na stronach bez kontenera .project-card-image-wrapper */
.project-card picture {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px; /* Ustawienie wysokości ramki */
    padding: 10px;
    background: #000; /* Ciemne tło jak dla innych stron */
    border-radius: 16px 16px 0 0;
}

.project-card picture img {
    max-height: 180px; /* Maksymalna wysokość obrazu */
    max-width: 95%; /* Maksymalna szerokość obrazu z niewielkim marginesem */
    object-fit: contain; /* Zapewnia wyświetlenie całego obrazu bez przycinania */
    display: block;
}

/* Poprawki kolorów dla trybu jasnym na stronie moduly-pomiarowe.html */
/* Zwiększona specyficzność stylów, aby nadpisać style z pliku style.css */
body.light-theme.product-page .section-tag {
    color: #000000 !important; /* Czarny kolor dla "Elementy systemu Ampio" */
}

body.light-theme.product-page .full-product-card h3,
body.light-theme.product-page .full-product-card p,
body.light-theme.product-page .full-product-link {
    color: #ffffff !important; /* Biały kolor dla tytułów produktów, opisów i linków specyfikacji */
}

body.light-theme.product-page .full-product-card {
    background: rgba(14, 14, 18, 0.88) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.34) !important;
}

body.light-theme.product-page .full-product-card::after {
    background: linear-gradient(140deg, rgba(214, 0, 0, 0.14), transparent 55%) !important;
    opacity: 0.4 !important;
}

/* Poprawka dla tekstu w cta-banner w trybie jasnym */
body.light-theme.product-page .cta-banner h2,
body.light-theme.product-page .cta-banner p {
    color: #ffffff !important; /* Biały kolor tekstu w sekcji CTA */
}

/* Dodatkowe specyfikacje dla opisów w trybie jasnym - specyficzne dla produktów */
body.light-theme.product-page .full-product-grid .full-product-card p {
    color: #ffffff !important; /* Biały kolor dla opisów produktów */
}

/* Zachowanie kontrastu kart produktowych w trybie jasnym */
body.light-theme.product-page .feature-card {
    background: rgba(18, 18, 18, 0.72) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.32) !important;
}

body.light-theme.product-page .feature-card h3 {
    color: #ffffff !important;
}

body.light-theme.product-page .feature-card p {
    color: rgba(255, 255, 255, 0.78) !important;
}

body.light-theme.product-page .feature-card .feature-icon {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

body.light-theme.product-page .project-card {
    background: rgba(22, 22, 22, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.32) !important;
}

body.light-theme.product-page .project-card h3 {
    color: #ffffff !important;
}

body.light-theme.product-page .project-card p,
body.light-theme.product-page .project-card .rich-list {
    color: rgba(255, 255, 255, 0.85) !important;
}

body.light-theme.product-page .full-product-link {
    background: rgba(214, 0, 0, 0.32) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}

body.light-theme.product-page .full-product-link:hover {
    background: rgba(214, 0, 0, 0.45) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}
