.recommendation-text {
    font-size: clamp(0.85rem, 2vw, 0.9rem);
    line-height: 1.9;
    color: #475569;
    font-weight: 300;
    padding-top: 1rem;
}
.summary-section {
    width: clamp(320px, 80%, 1400px);
    margin: 20px auto;
    padding: 30px 15px;

    text-align: center;
}

/* ==========================================================================
   MATERIALS - REFINED SYSTEM (Wersja Ostateczna, Czysta)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. WSTĘP (Slogan i zdanie zapraszające)
   -------------------------------------------------------------------------- */
.kolekcja-wstep {
    max-width: 1600px;
    margin: 4rem auto 5rem;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.kolekcja-wstep-slogan {
    font-size: clamp(1.25rem, 1.5vw + 1rem, 2.2rem);
    letter-spacing: clamp(0.1em, 0.3vw + 0.1em, 0.6em);
    text-transform: uppercase;
    color: #a10510;
    margin-bottom: 1.2rem;
    font-weight: 400;
}

.kolekcja-wstep-zdanie {
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    font-weight: 300;
    color: #64748b;
    max-width: 650px;
    line-height: 1.8;
    margin: 0;
}

@media (max-width: 1024px) {
    .kolekcja-wstep {
        margin-bottom: 3rem;
    }
}

/* --------------------------------------------------------------------------
   2. SEKCJA HERO: MOODBOARD (Lewa Grafika, Prawy Tekst)
   -------------------------------------------------------------------------- */
.kolekcja-hero-sekcja {
    background-color: #ffffff;
    padding: 0 0 clamp(4rem, 8vh, 8rem) 0;
    overflow: hidden;
}

.kolekcja-hero-kontener {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 4%;
}

/* --- LEWA STRONA: GRAFIKA (65%) --- */
.kolekcja-blok-graficzny {
    flex: 0 0 65%;
    display: flex;
    align-items: center;
    position: relative;
}

/* materials.css - linia ok. 54 */
.kolekcja-foto-glowne {
    width: calc(100% - 100px);
    height: auto !important; /* Usunięcie sztywnego clamp */
    max-height: 650px; /* Zostawiamy max jako bezpiecznik */
    object-fit: contain !important; /* Zmiana z cover na contain */
    display: block;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.kolekcja-miniatury-kontener {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-left: -15px;
    z-index: 2;
}

.kolekcja-miniatura {
    width: 115px;
    height: 160px;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.4s ease;
}

.kolekcja-miniatura:hover {
    transform: translateX(-5px) scale(1.05);
}

/* --- PRAWA STRONA: TEKST EDYTORSKI (35%) --- */
.kolekcja-blok-tekstowy {
    flex: 1;
    padding-left: 2rem;
}

.kolekcja-etykieta {
    font-size: clamp(0.8rem, 0.5vw + 0.75rem, 0.9rem);
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: #94a3b8;
    display: block;
    margin-bottom: 2rem;
    font-weight: 700;
}

.kolekcja-tytul {
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 200;
    color: #060912;
    line-height: 0.85;
    letter-spacing: -0.05em;
    margin: 0 0 2rem;
}

.kolekcja-tytul-akcent {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #a10510;
    font-weight: 400;
    display: block;
    margin-top: 10px;
    text-transform: none;
    letter-spacing: 0;
}

.kolekcja-linia {
    width: 40px;
    height: 1px;
    background-color: #a10510;
    margin-bottom: 2.5rem;
}

.kolekcja-opis {
    font-size: clamp(0.8rem, 0.5vw + 0.75rem, 0.9rem);
    line-height: 2;
    color: #64748b;
    font-weight: 300;
    max-width: 420px;
    margin-bottom: 3.5rem;
}

/* Dolna specyfikacja jako "etykieta techniczna" */
.kolekcja-detale {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-left: 20px;
    border-left: 1px solid #e2e8f0;
}

.kolekcja-detale::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 0;
    width: 1px;
    height: 30px;
    background-color: #a10510;
}

.kolekcja-detal-label {
    display: block;
    font-size: clamp(0.7rem, 0.255vw + 0.637rem, 0.764rem);
    letter-spacing: 0.1em;
    color: var(--clr-subtelny);

    margin-bottom: 8px;
    font-weight: 500;
}

.kolekcja-detal-wartosc {
    /*font-family: 'Playfair Display', serif;
    font-style: italic;*/
    font-size: clamp(1.2rem, 0.5vw + 1.15rem, 1.4rem);
    color: #060912;
    font-weight: 400;
}

@media (max-width: 1024px) {
    .kolekcja-hero-kontener {
        flex-direction: column;
        gap: 3rem;
        padding: 0 1.5rem;
    }
    .kolekcja-blok-tekstowy {
        order: 2;
        padding-left: 0;
        width: 100%;
    }
    .kolekcja-blok-graficzny {
        order: 1;
        width: 100%;
        flex-direction: column;
    }
    .kolekcja-foto-glowne {
        width: 100%;
        height: 50vh;
    }
    .kolekcja-miniatury-kontener {
        flex-direction: row;
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-top: -25px;
        gap: 15px;
    }
    .kolekcja-miniatura {
        width: clamp(80px, 28vw, 120px);
        height: clamp(80px, 28vw, 120px);
        border-width: 3px;
    }
}


/* --------------------------------------------------------------------------
   3. OPOWIEŚCI MATERIAŁOWE - UKŁAD I SLIDERY
   -------------------------------------------------------------------------- */
.mat-stories-section {
    padding: clamp(4rem, 12vh, 8rem) 0;
}

.mat-story-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10vw;
    margin-bottom: clamp(7rem, 20vh, 12rem);
}

.mat-story-row:last-child {
    margin-bottom: 0 !important;
}

.mat-story-row.reverse {
    flex-direction: row-reverse;
}

.mat-story-image {
    flex: 0 0 45%;
    height: 500px;
    position: relative;
}

.mat-story-content {
    flex: 0 0 35%;
}

.mat-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.mat-slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    height: 100%;
}

.mat-slide {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
    position: relative;
}

.mat-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mat-slide-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(6, 9, 18, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    padding: 6px 14px;
    font-size: clamp(0.6rem, 0.2vw + 0.6rem, 0.7rem);
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 2px;
    z-index: 5;
    pointer-events: none;
}

.mat-slider-nav {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
    z-index: 10;
}

.s-prev, .s-next {
    background: none;
    border: none;
    color: #fff;
    font-size: clamp(1rem, 0.3vw + 0.95rem, 1.1rem);
    cursor: pointer;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: 0.3s ease;
}

.s-prev:hover, .s-next:hover { color: var(--clr-accent); }

.mat-slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.s-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: 0.4s ease;
}

.s-dot.active {
    background: var(--clr-accent);
    width: 25px;
    border-radius: 10px;
}

.mat-story-tag {
    position: absolute;
    bottom: -15px;      /* Pozostawiamy nachodzenie na zdjęcie */
    left: 50%;          /* Ustawiamy środek plakietki na środku kontenera */
    transform: translateX(-50%); /* Przesunięcie korygujące o połowę szerokości plakietki */

    background: var(--clr-accent);
    color: #ffffff;     /* Zwiększyłem kontrast dla czytelności */
    padding: 10px 25px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 500;
    z-index: 11;
    white-space: nowrap; /* Zapobiega łamaniu tekstu na dwie linie */
}

/* --------------------------------------------------------------------------
   4. TYPOGRAFIA OPOWIEŚCI MATERIAŁOWYCH & LINIE
   -------------------------------------------------------------------------- */
.hero-accent-line {
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, var(--clr-accent), rgba(161, 5, 16, 0));
    position: relative;
    margin: 2.5rem 0;
}

.hero-accent-line::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--clr-accent);
    border-radius: 50%;
}

.mat-story-row.reverse .hero-accent-line {
    margin-left: auto;
    background: linear-gradient(to left, var(--clr-accent), rgba(161, 5, 16, 0));
}

.mat-story-row.reverse .hero-accent-line::before {
    left: auto;
    right: 0;
}

.mat-producer-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 2rem;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: 0.3s ease;
}

.mat-story-row:hover .mat-producer-logo {
    filter: grayscale(0%);
    opacity: 1;
}

.mat-brand-name {
    display: block;
    font-size: 0.75rem;
    color: var(--clr-accent);
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 1rem;
}

.mat-story-title {
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
    font-weight: 200 !important;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    line-height: 1.3;
    color: #1e293b;
    margin-bottom: 1.2rem;
    display: block;
}

.mat-story-desc {
    font-size: 1rem;
    line-height: 1.9;
    color: #475569;
    font-weight: 300;
}


/* --------------------------------------------------------------------------
   5. TRYB RĘCZNY KAFELKI 1:1 & PLACEHOLDER & PORTRET
   -------------------------------------------------------------------------- */
.mat-story-image.is-manual {
    height: auto !important;
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
}

.mat-story-image.is-manual .mat-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.manual-h3 {
    position: absolute;
    top: 0px;
    left: 0px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 5;
    margin: 0;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);

    /* Dodane właściwości dla tła */
    background-color: rgba(0, 0, 0, 0.2);
    padding: 8px 15px; /* Dodaje przestrzeń wokół tekstu, by tło ładnie wyglądało */
    border-radius: 2px; /* Opcjonalnie: delikatnie zaokrągla rogi tła */
}

.manual-desc {
    position: absolute;
    bottom: 55px;
    left: 30px;
    max-width: 80%;
    color: #fff;
    /*font-family: 'Playfair Display', serif;*/
    /*font-style: italic;*/
    font-size: 1.15rem;
    line-height: 1.7;
    z-index: 5;
    margin: 0;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
}

.mat-slide-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    min-height: 300px;
}

.mat-slide-placeholder-text {
    color: #94a3b8;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 300;
}

.mat-story-image.is-portrait {
    flex: 0 0 32%;
    aspect-ratio: 3 / 4;
    height: auto;
    max-height: 650px;
}

/* --------------------------------------------------------------------------
   6. BIBLIOTEKA MATERIAŁÓW (Akordeon)
   -------------------------------------------------------------------------- */
.mat-features-section {
    padding: clamp(4rem, 10vh, 8rem) 0;
    background-color: #fafafa;
    border-top: 1px solid #eee;
}

.features-header {
    margin-bottom: 4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.features-intro {
    max-width: clamp(19rem, 90vw, 75rem);
    margin: 2rem auto 4.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #475569;
    font-weight: 300;
    text-align: center;
}

.mat-accordion {
    max-width: 1100px;
    margin: 0 auto;
}

.accordion-item { border-bottom: 1px solid #eaeaea; }

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: 0.3s ease;
}

.accordion-title {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #1e293b;
    display: flex;
    align-items: center;
    transition: 0.3s ease;
}

.mat-icon-accent {
    margin-right: 18px;
    font-size: 1.15rem;
    color: var(--clr-accent);
    width: 28px;
    text-align: center;
    vertical-align: middle;
    font-weight: 900 !important;
}

.accordion-icon {
    font-size: 1rem;
    color: #94a3b8;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), color 0.3s ease;
    font-weight: 900 !important;
}

.accordion-header:hover .accordion-title,
.accordion-header:hover .mat-icon-accent,
.accordion-header:hover .accordion-icon {
    color: var(--clr-accent);
}

.accordion-item.active .accordion-title {
    color: var(--clr-accent);
    font-weight: 400;
}

.accordion-item.active .mat-icon-accent {
    color: var(--clr-accent);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
    color: var(--clr-accent);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.accordion-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    padding-bottom: 2.5rem;
    padding-left: 46px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

.accordion-item.active .accordion-content {
    opacity: 1;
    transform: translateY(0);
}

.feature-visual {
    flex: 0 0 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
    padding: 1rem;
}

.feature-visual img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
}

.feature-text { flex: 1; }
.feature-text p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #64748b;
    font-weight: 300;
    margin: 0;
}

/* --------------------------------------------------------------------------
   7. RESPONSYWNOŚĆ GLOBALNA - MEDIA QUERIES (OPOWIEŚCI I AKORDEON)
   --------------------------------------------------------------------------
@media (max-width: 1024px) {
    .mat-story-row {
        flex-direction: column !important;
        padding: 0 1.5rem;
        gap: 2rem;
    }
    .mat-story-image,
    .mat-story-content {
        flex: 0 0 100% !important;
        width: 100% !important;
    }
    .mat-story-image.is-portrait {
        max-height: 500px;
    }
} */
@media (max-width: 1024px) {
    /* 1. Poszerzamy główny wiersz i usuwamy boczne paddingi dla efektu full-width */
    .mat-story-row {
        flex-direction: column !important;
        padding: 0 !important; /* Zdjęcie dotknie krawędzi ekranu */
        gap: 1.5rem;
        width: 100% !important;
    }

    /* 2. Nadpisujemy ograniczenia szerokości z HTML i CSS */
    .mat-story-image,
    .mat-story-content {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important; /* Ignoruje 380px z Twojego HTML */
    }

    /* 3. Twoje poprawki wysokości dla iPhone 12 i innych */
    .mat-story-image.is-portrait {
        height: 50vh !important;
        max-height: 400px;
        position: relative; /* Dla poprawnego pozycjonowania plakietki */
    }

    /* 4. Wypełnienie kontenera przez slider */
    .mat-story-image.is-portrait .mat-slider,
    .mat-story-image.is-portrait .mat-slide img {
        height: 100% !important;
        width: 100% !important;
        object-fit: cover !important;
    }

    /* 5. Twoje poprawki stylu plakietki (tagu) */
    .mat-story-tag {
        position: absolute;
        bottom: -15px;
        left: 50%;
        transform: translateX(-50%);
        background: var(--clr-accent);
        color: #ffffff;
        padding: 10px 15px;
        font-size: 0.60rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        font-weight: 500;
        z-index: 11;
        white-space: nowrap;
    }

    /* 6. Przywracamy marginesy tylko dla tekstu, by nie dotykał krawędzi */
    .mat-story-content {
        padding: 0 1.5rem 3rem 1.5rem; /* Dodatkowy padding na dole dla separacji */
        text-align: center; /* Opcjonalne: wyśrodkowanie tekstu pod zdjęciem */
    }

    /* Centrowanie linii akcentowej na mobile */
    .mat-story-content .hero-accent-line {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}
@media (max-width: 992px) {
    .mat-stories-section { padding: 3rem 0; }
    .mat-story-row, .mat-story-row.reverse {
        margin-bottom: 4rem;
        text-align: center;
    }
    .mat-story-image:not(.is-manual) { height: 300px; }
    .mat-producer-logo { margin: 0 auto 1.5rem auto; }

    .hero-accent-line { margin: 1.5rem auto !important; }
    .mat-story-row.reverse .hero-accent-line { background: linear-gradient(to right, var(--clr-accent), rgba(161, 5, 16, 0)); }
    .mat-story-row.reverse .hero-accent-line::before { left: 0; right: auto; }

    .mat-features-section { padding: 3rem 0 4rem 0; }
    .features-header { margin-bottom: 1.5rem; }
    .features-intro { margin: 1rem auto 2.5rem; padding: 0 1.5rem; font-size: 1rem; }
}

@media (max-width: 768px) {
    .accordion-header { padding: 1.2rem 0; }
    .accordion-title { font-size: 0.95rem; letter-spacing: 1px; }
    .mat-icon-accent { width: 22px; margin-right: 10px; font-size: 1rem; }
    .accordion-content { flex-direction: column; gap: 1.5rem; padding-left: 0; padding-bottom: 2rem; }
    .feature-visual { flex: 0 0 70px; height: 70px; padding: 0.5rem; }

    .manual-h3 { top: 0px; left: 0px; font-size: 1rem; letter-spacing: 1.6px; }
    .manual-desc { bottom: 45px; left: 20px; font-size: clamp(0.8rem, 0.5vw + 0.75rem, 0.9rem); line-height: 1.5; max-width: 90%; }
}
/* --- UKŁAD NAPRZEMIENNY (PRZEKŁADANIEC) --- */
@media (min-width: 1025px) {
    /* Odwrócenie głównego kontenera */
    .kolekcja-hero-kontener.reverse {
        flex-direction: row-reverse;
    }

    /* Zamiana paddingów dla bloku tekstowego w wersji odwróconej */
    .kolekcja-hero-kontener.reverse .kolekcja-blok-tekstowy {
        padding-left: 0;
        padding-right: 2rem;
    }

    /* Odwrócenie wnętrza bloku graficznego (miniatury lądują po prawej) */
    .kolekcja-hero-kontener.reverse .kolekcja-blok-graficzny {
        flex-direction: row-reverse;
    }

    /* Przesunięcie marginesu miniatur w wersji odwróconej */
    .kolekcja-hero-kontener.reverse .kolekcja-miniatury-kontener {
        margin-left: 0;
        margin-right: -15px;
    }
}
/* Styl dla tekstu wprowadzającego do kolekcji */
.mat-stories-intro {
    text-align: center;
    max-width: 750px;           /* Ogranicza szerokość, by tekst lepiej wyglądał */
    margin: 0 auto 4rem;        /* Centruje blok i dodaje odstęp od dołu */
    font-size: 1.1rem;
    line-height: 1.7;
    color: #64748b;             /* Spójny kolor z resztą Twojej strony */
    font-weight: 300;
}

/* Responsywność dla urządzeń mobilnych */
@media (max-width: 1024px) {
    .mat-stories-intro {
        margin-bottom: 2.5rem;  /* Mniejszy margines na tabletach/telefonach */
        padding: 0 1rem;        /* Marginesy boczne, by tekst nie dotykał krawędzi */
        font-size: 1rem;
    }
}
/* NA MOBILE: Twoja istniejąca logika @1024px już wymusza:
   .kolekcja-blok-tekstowy { order: 1; } (Tekst na górze)
   .kolekcja-blok-graficzny { order: 2; } (Grafika na dole)
   Dzięki temu "kafelki" zawsze będą na dole pod zdjęciem głównym. */
