/* =========================================
   MEGA REALIZACJA V4 - PROFESSIONAL POLISH
   ========================================= */

:root {
    --primary-color: #4a7c37;
    --primary-dark: #3a632b;
    --text-dark: #1a1a1a; /* Głębsza czerń */
    --text-light: #666;
    --bg-light: #f9f9f9; /* Bardziej subtelne tło */
    --white: #fff;
    --black: #000;
    --transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1); /* Ultra smooth */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px -12px rgba(0, 0, 0, 0.12);
    --section-spacing: 80px; /* Jednolite odstępy między sekcjami */
}

/* Reset i baza */
body.page-realizacja {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.7; /* Lepsza czytelność */
    overflow-x: hidden;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--primary-color);
    color: #fff;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 40px;
}

/* COMPACT SECTIONS – jednolite odstępy */
.section-compact {
    padding: var(--section-spacing) 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 20px;
    letter-spacing: -0.02em; /* Nowoczesny tracking */
}

p {
    margin-bottom: 24px;
    color: var(--text-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* 1. HERO SECTION (Compact & Premium) */
.realizacja-hero {
    position: relative;
    height: 60vh; /* Nieco wyższy dla lepszego efektu */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 80px;
    color: var(--white);
    overflow: hidden;
    z-index: 0;
}

.realizacja-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transform: scale(1.05); /* Lekki zoom dla kinowego efektu */
}

.realizacja-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.1) 100%);
    z-index: 0;
}

.realizacja-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

@keyframes heroFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

.realizacja-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 800;
    margin-bottom: 32px;
    max-width: 1000px;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Compact Meta */
.realizacja-meta-compact {
    display: flex;
    gap: 32px;
    font-size: 16px;
    font-weight: 500;
    opacity: 0.95;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 24px;
    display: inline-flex;
}

.realizacja-meta-compact span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.realizacja-meta-compact span i {
    color: var(--primary-color);
    font-size: 14px;
}


/* 2. Blok opisu – ten sam układ co O nas (about-full) */
body.page-realizacja section.about-full {
    background-color: #F7F8FA;
}

body.page-realizacja section.about-full .about-full-inner {
    padding-top: var(--section-spacing);
    padding-bottom: var(--section-spacing);
}

body.page-realizacja section.about-full .about-intro-label {
    letter-spacing: 0.04em;
    font-size: 12px;
}

body.page-realizacja section.about-full .about-intro-lead {
    font-size: 13px;
}

body.page-realizacja section.about-full .about-page-heading {
    font-size: 20px;
}

body.page-realizacja section.about-full .about-page-body {
    font-size: 14px;
    line-height: 1.65;
}

/* 3 paski w poziomie zamiast zdjęcia (Produkt, Karta katalogowa, Wyślij zapytanie) */
.realizacja-intro-bars {
    display: grid;
    grid-template-rows: repeat(3, auto);
    gap: 12px;
    width: 100%;
}

.realizacja-intro-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: #f2f2f2;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s ease;
    border: none;
}

.realizacja-intro-bar:hover {
    background: #e8e8e8;
}

.realizacja-intro-bar-text {
    flex: 1;
}

.realizacja-intro-bar-product-name {
    color: var(--primary-color);
    font-weight: 600;
}

.realizacja-intro-bar-text--green {
    color: var(--primary-color);
    font-weight: 600;
}

.realizacja-intro-bar--green {
    background: var(--primary-color);
    color: #fff;
}

.realizacja-intro-bar--green:hover {
    background: var(--primary-dark, #1a5c1a);
}

.realizacja-intro-bar--green .realizacja-intro-bar-btn {
    border-color: #fff;
    color: #fff;
}

.realizacja-intro-bar--green:hover .realizacja-intro-bar-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.realizacja-intro-bar-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.realizacja-intro-bar:hover .realizacja-intro-bar-btn {
    background: var(--primary-color);
    color: #fff;
}

/* Tytuły sekcji – jeden styl (jak Pakowanie produktu); wyrównanie zależnie od kontekstu */
.realizacja-section-title,
.realizacja-gallery-title,
body.page-realizacja section.about-full .about-page-heading,
.page-realizacja .contact-form-section .form-text-side h2,
.page-realizacja .portfolio .section-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 400;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #111;
    line-height: 1.3;
    margin-bottom: 24px;
}

/* Wyśrodkowane – samodzielne nagłówki sekcji */
.realizacja-gallery-title,
.page-realizacja .portfolio .section-title {
    text-align: center;
}

/* Wyrównane do lewej – tytuły w blokach tekstowych */
body.page-realizacja section.about-full .about-page-heading,
.page-realizacja .contact-form-section .form-text-side h2 {
    text-align: left;
}

body.page-realizacja section.about-full .about-page-heading {
    margin-bottom: 16px;
    font-size: 20px;
}

.page-realizacja .contact-form-section .form-text-side h2 {
    margin-bottom: 20px;
}

.page-realizacja .portfolio .section-title {
    margin-bottom: 20px;
}

.section-heading {
    font-size: 24px;
    font-weight: 400;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #111;
    margin-bottom: 24px;
}

/* Produkt użyty w realizacji – prosty, czytelny blok */
.realizacja-used-product-section {
    padding: 48px 0 56px;
    background: #E8E8E9;
}

.realizacja-used-product-inner {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 48px;
    align-items: end;
    max-width: 780px;
    margin: 0 auto;
}

/* Miniaturka – ten sam blok co w Polecane produkty: wymiary, układ, animacje */
.realizacja-used-product-card-wrap {
    width: 300px;
    flex-shrink: 0;
}

.realizacja-used-product-section .product-card-new {
    width: 100%;
    min-height: 320px;
    aspect-ratio: 1 / 1;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    transition: background 0.3s ease;
    cursor: default;
}

.realizacja-used-product-section .product-card-new:hover {
    background: #fafafa;
}

.realizacja-used-product-section .product-card-default {
    padding: 24px 20px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    transition: opacity 0.6s ease;
}

.realizacja-used-product-section .product-img-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
}

.realizacja-used-product-section .product-img-wrapper img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
}

.realizacja-used-product-section .product-card-default h3 {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    margin-top: 14px;
    margin: 14px 0 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.realizacja-used-product-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 320px;
}

.realizacja-used-product-heading {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #111;
    line-height: 1.3;
    margin: 0 0 36px 0;
}

.realizacja-used-product-heading .realizacja-used-product-name {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Przyciski w jednym rzędzie, na dole (wyrównane z blokiem produktu) */
.realizacja-used-product-ctas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: auto;
    max-width: 420px;
}

.realizacja-used-product-section .btn-green,
.realizacja-used-product-section .btn-outline {
    min-height: 48px;
    padding: 14px 16px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    transition: background 0.3s, border-color 0.3s;
    box-sizing: border-box;
}

.realizacja-used-product-section .btn-green {
    background: #5C8343;
    color: #fff;
    border: none;
    cursor: pointer;
}

.realizacja-used-product-section .btn-green:hover {
    background: #4a6b36;
}

.realizacja-used-product-section .btn-outline {
    background: #fff;
    color: #111;
    border: 1px solid #ccc;
    cursor: pointer;
}

.realizacja-used-product-section .btn-outline:hover {
    border-color: #111;
    background: #fff;
}

@media (max-width: 768px) {
    .realizacja-used-product-section {
        padding: 40px 0 48px;
    }
    .realizacja-used-product-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    .realizacja-used-product-card-wrap {
        max-width: 300px;
        margin: 0 auto;
        width: 100%;
    }
    .realizacja-used-product-heading {
        text-align: center;
        font-size: 20px;
        margin-bottom: 32px;
    }
    .realizacja-used-product-ctas {
        justify-content: center;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .realizacja-used-product-heading {
        font-size: 18px;
        margin-bottom: 28px;
    }
    .realizacja-used-product-ctas {
        grid-template-columns: 1fr;
    }
    .realizacja-used-product-section .btn-green,
    .realizacja-used-product-section .btn-outline {
        width: 100%;
    }
}

/* 5. Slider produktów (style 1:1 jak products.php + strzałki) */
.realizacja-products-slider-section {
    padding: var(--section-spacing) 0;
    background: #F6F7F7;
}

.realizacja-products-slider-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 32px;
}

.realizacja-products-slider-header .realizacja-section-title {
    grid-column: 2;
    text-align: center;
    margin-bottom: 0;
}

.realizacja-products-slider-arrows {
    grid-column: 3;
    justify-self: end;
}

.realizacja-products-slider-arrows {
    display: flex;
    gap: 12px;
}

.realizacja-products-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.realizacja-products-arrow:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
}

.realizacja-products-slider-wrap {
    overflow: hidden;
    margin: 0 -40px;
    padding: 0 40px;
}

.realizacja-products-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 16px;
    margin-bottom: -16px;
    scrollbar-width: none;
}

.realizacja-products-slider::-webkit-scrollbar {
    display: none;
}

.realizacja-products-slider .product-card-link {
    flex: 0 0 300px;
    scroll-snap-align: start;
}

.realizacja-products-slider .product-card-new {
    width: 100%;
    min-height: 320px;
    background: #fff;
}

.realizacja-products-slider .product-card-new:hover {
    background: #fafafa;
}

/* Wideo nad galerią – ten sam styl co na stronie produktu */
#realizacja-video-above-gallery.product-video-section {
    margin-bottom: 0;
}

#realizacja-video-above-gallery .product-video-section-bg {
    width: 100%;
    background-color: #e8e8e8;
    padding: var(--section-spacing) 24px;
}

#realizacja-video-above-gallery .product-video-wrapper {
    position: relative;
    max-width: 828px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    background: #d0d0d0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

#realizacja-video-above-gallery .product-video {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    vertical-align: middle;
}

#realizacja-video-above-gallery .video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s;
}

#realizacja-video-above-gallery .video-play-overlay:hover {
    background: rgba(0,0,0,0.1);
}

#realizacja-video-above-gallery .video-play-overlay.playing {
    pointer-events: none;
}

#realizacja-video-above-gallery .video-play-overlay.playing .video-play-icon {
    opacity: 0;
}

#realizacja-video-above-gallery .video-play-icon {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 28px 0 28px 48px;
    border-color: transparent transparent transparent #fff;
    margin-left: 8px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
    transition: opacity 0.2s;
}

#realizacja-video-above-gallery .video-controls-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    z-index: 3;
    color: #fff;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

#realizacja-video-above-gallery .video-time-current,
#realizacja-video-above-gallery .video-time-duration {
    flex-shrink: 0;
    color: #fff;
}

#realizacja-video-above-gallery .video-progress-wrap {
    flex: 1;
    height: 4px;
    position: relative;
    background: rgba(255,255,255,0.35);
    border-radius: 10px;
    cursor: pointer;
}

#realizacja-video-above-gallery .video-progress-track {
    position: absolute;
    inset: 0;
    border-radius: 10px;
}

#realizacja-video-above-gallery .video-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: #fff;
    border-radius: 10px;
    width: 0%;
    pointer-events: none;
}

#realizacja-video-above-gallery .video-progress-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    left: 0%;
    pointer-events: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    #realizacja-video-above-gallery .product-video-section-bg {
        padding: var(--section-spacing) 20px;
    }
}

/* 6. GALLERY (Grid 3 kolumny) */
.realizacja-gallery {
    background: var(--bg-light);
    padding: var(--section-spacing) 0;
}

.realizacja-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.realizacja-gallery-item {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #e8e8e8;
}

.realizacja-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.realizacja-gallery-item:hover img {
    transform: scale(1.05);
}

.realizacja-gallery-item {
    cursor: pointer;
}

/* Lightbox galerii */
.realizacja-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.realizacja-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.realizacja-lightbox-inner {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.realizacja-lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.realizacja-lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.realizacja-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.realizacja-lightbox-prev,
.realizacja-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.realizacja-lightbox-prev {
    left: 24px;
}

.realizacja-lightbox-next {
    right: 24px;
}

.realizacja-lightbox-prev:hover,
.realizacja-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
}

.realizacja-lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* 3. VIDEO SECTION (Small Premium) */
.realizacja-video {
    background: #fff;
    padding: 80px 0;
}

.video-container-small {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    aspect-ratio: 16/9;
}

/* ANIMACJE */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSYWNOŚĆ */
@media (max-width: 1200px) {
    :root {
        --section-spacing: 60px;
    }

    .container {
        padding-left: 32px;
        padding-right: 32px;
    }

    .realizacja-products-slider .product-card-link {
        flex: 0 0 280px;
    }
}

@media (max-width: 992px) {
    :root {
        --section-spacing: 50px;
    }

    .container {
        padding-left: 28px;
        padding-right: 28px;
    }

    .realizacja-products-slider .product-card-link {
        flex: 0 0 260px;
    }

    body.page-realizacja section.about-full .about-full-inner {
        gap: 28px;
    }

    #realizacja-video-above-gallery .product-video-section-bg {
        padding: var(--section-spacing) 20px;
    }

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

@media (max-width: 768px) {
    :root {
        --section-spacing: 48px;
    }

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .realizacja-hero {
        height: 50vh;
        min-height: 280px;
        padding-bottom: 32px;
    }

    .realizacja-hero-content.container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .realizacja-title {
        font-size: clamp(28px, 6vw, 40px);
        margin-bottom: 20px;
    }

    .realizacja-meta-compact {
        gap: 20px;
        font-size: 14px;
        padding-top: 16px;
        flex-wrap: wrap;
    }

    .realizacja-meta-compact span {
        gap: 6px;
    }

    .realizacja-meta-compact span i {
        font-size: 12px;
    }

    body.page-realizacja section.about-full .about-full-inner {
        gap: 24px;
    }

    .realizacja-products-slider-wrap {
        margin: 0 -20px;
        padding: 0 20px;
    }

    .realizacja-products-slider .product-card-link {
        flex: 0 0 240px;
    }


    .realizacja-gallery-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .realizacja-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    #realizacja-video-above-gallery .product-video-section-bg {
        padding: var(--section-spacing) 20px;
    }

    .realizacja-section-title,
    .realizacja-gallery-title,
    body.page-realizacja section.about-full .about-page-heading,
    .page-realizacja .contact-form-section .form-text-side h2,
    .page-realizacja .portfolio .section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .realizacja-lightbox-close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .realizacja-lightbox-prev,
    .realizacja-lightbox-next {
        width: 44px;
        height: 44px;
        font-size: 16px;
        left: 12px;
        right: 12px;
    }

    .realizacja-lightbox-counter {
        bottom: 16px;
        font-size: 12px;
    }

}

@media (max-width: 600px) {
    :root {
        --section-spacing: 40px;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .realizacja-gallery-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .realizacja-meta-compact {
        gap: 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    :root {
        --section-spacing: 36px;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .realizacja-hero {
        height: 45vh;
        min-height: 240px;
        padding-bottom: 24px;
    }

    .realizacja-hero-content.container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .realizacja-title {
        font-size: 26px;
        margin-bottom: 16px;
    }

    .realizacja-meta-compact {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }


    body.page-realizacja section.about-full .about-full-text-inner {
        max-width: 100%;
    }

    body.page-realizacja section.about-full .about-page-body {
        font-size: 14px;
    }

    .realizacja-products-slider-section {
        padding: var(--section-spacing) 0;
    }

    .realizacja-products-slider-header {
        margin-bottom: 24px;
        flex-wrap: wrap;
        gap: 16px;
    }

    .realizacja-products-slider .product-card-link {
        flex: 0 0 220px;
    }

    .realizacja-gallery-title {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .realizacja-section-title,
    body.page-realizacja section.about-full .about-page-heading,
    .page-realizacja .contact-form-section .form-text-side h2,
    .page-realizacja .portfolio .section-title {
        font-size: 18px;
        margin-bottom: 16px;
    }

    #realizacja-video-above-gallery .product-video-section-bg {
        padding: var(--section-spacing) 16px;
    }

    .realizacja-lightbox-prev {
        left: 8px;
    }

    .realizacja-lightbox-next {
        right: 8px;
    }

}

@media (max-width: 380px) {
    .realizacja-title {
        font-size: 22px;
    }

    .realizacja-meta-compact {
        font-size: 12px;
    }

    .realizacja-products-slider .product-card-link {
        flex: 0 0 200px;
    }

    .realizacja-gallery-title,
    .realizacja-section-title,
    body.page-realizacja section.about-full .about-page-heading,
    .page-realizacja .portfolio .section-title {
        font-size: 16px;
    }
}

/* =========================================
   INTEGRATION OVERRIDES (Contact & Portfolio)
   ========================================= */

/* Contact Form Adjustment for Realizacja Page */
.page-realizacja .contact-form-section {
    margin-top: 0;
    padding: var(--section-spacing) 0;
    background-color: var(--white);
    position: relative;
}

.page-realizacja .contact-form-wrapper {
    box-shadow: var(--shadow-soft);
    background-color: #fcfcfc;
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-realizacja .contact-form-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Portfolio realizacji pod produktem – tło kart widoczne */
.page-realizacja .product-section.portfolio .portfolio-item {
    background: #f0f0f05b;
}

/* Portfolio Adjustment – tylko stara sekcja #realizacje-inne (nowa pod produktem = product-section.portfolio jak w product.php) */
.page-realizacja .portfolio:not(.product-section) {
    padding: var(--section-spacing) 0;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* Portfolio realizacji – ten sam odstęp co inne sekcje */
.page-realizacja .product-section.portfolio {
    padding-top: var(--section-spacing);
    padding-bottom: var(--section-spacing);
}

.page-realizacja .portfolio-header {
    margin-bottom: 40px;
    text-align: center;
}

.page-realizacja .portfolio-title-center {
    font-size: 24px;
    letter-spacing: 2px;
    color: #999;
}
