/* =========================
   RESET
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Montserrat',sans-serif;
    background:#FCFBF8;
    color:#3F4A5A;
    overflow-x:hidden;
}

img{
    max-width:100%;
    display:block;
}
#logo1{
    width: 80px;
    height: 80px;
}

a{
    text-decoration:none;
}

ul{
    list-style:none;
}

/* =========================
   ZMIENNE
========================= */

:root{

    --primary:#1F3F73;
    --secondary:#4A90E2;

    --bg:#FCFBF8;
    --white:#FFFFFF;

    --text:#3F4A5A;

    --shadow:
        0 10px 30px rgba(31,63,115,.08);

    --shadow-hover:
        0 18px 40px rgba(31,63,115,.14);

    --radius-card:20px;
    --radius-btn:30px;

}
.container{
    width:min(1320px,92%);
    margin:auto;
}
.header{

    position:fixed;
    top:0;
    left:0;

    width:100%;
    height:90px;

    background:rgba(255,255,255,.95);

    backdrop-filter:blur(12px);

    border-bottom:1px solid #F0F2F5;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:0 40px;

    z-index:9999;

    transition:.3s;
}

.header.shrink{
    height:70px;
}

.logo-wrapper{
    display:flex;
    align-items:center; 
   
    
}

.logo-link{
    display:flex;
    align-items:center;
    gap:18px;
}

.logo{
    width:52px;
    height:auto;
}
#cale {
    width: 20px;
    height: 20px;
    float: right;
}
span {
    display: flex;
    flex-direction: row;
}
.hero {
    background-image: url('banerHERO.png ') ;
    width: 100%;
}
.hero-content {
    width: 100%;
}

    
    


.logo-text h2{

    font-family:'Cormorant Garamond',serif;

    font-size:clamp(1rem,2.5vw,2.5rem);

    color:var(--primary);

    font-weight:600;

    margin-bottom: 0px;
    width: 100%;

}
.logo-text h3 {
    color: #275db6;
}
.logo-text {
    width: 400px;
}
.logo-wrapper {
    
    width: 100%;
}

.logo-text span{

    display:block;

    margin-top:4px;

    font-size:clamp(0.5rem,1vw,1rem);;

    color:#1d5ea8 ;

    font-weight:500;

    margin-top: -130px;
}
.desktop-menu ul{

    display:flex;
    align-items:center;
    
    gap:45px;
}
#cos {
    width: 90px;
}
#cos a {
    width: 100%;
}
#cos1 {
    width: 70px;
}
#cos1 a {
    width: 100%;
}
.menu-link{

    position:relative;

    color:#243B67;

    font-size:20px;

    font-weight:500;

    transition:.3s;
}

.menu-link:hover{

    color:var(--primary);
}

.menu-link::after{

    content:'';

    position:absolute;

    left:50%;
    bottom:-8px;

    width:0;
    height:2px;

    background:var(--secondary);

    transition:.3s;
}

.menu-link:hover::after{

    width:100%;
    left:0;
}

.menu-link.active{

    font-weight:700;

    color:var(--primary);
}

.menu-link.active::after{

    width:100%;
    left:0;
}
.hamburger{

    display:none;

    border:none;
    background:none;

    font-size:34px;

    color:var(--primary);

    cursor:pointer;
}

.mobile-menu{

    position:fixed;

    top:70px;
    left:-100%;

    width:100%;

    background:white;

    padding:40px;

    transition:.4s;

    z-index:9000;
}

.mobile-menu.active{

    left:0;
}

.mobile-menu a{

    display:block;

    margin:15px 0;

    color:var(--primary);

    font-size:20px;
}
.hero{

    position:relative;

    min-height:100vh;

    background-image:url('../images/hero-home.jpg');

    background-position:center center;

    background-size:cover;

    display:flex;
    align-items:center;
}

.hero-overlay{

    position:absolute;
    inset:0;

    background:
    linear-gradient(
        rgba(255,255,255,.25),
        rgba(255,255,255,.15)
    );
}

.hero-content{

    position:relative;

    z-index:2;

    margin-left:100px;

    max-width:700px;
}

.hero h1{

    font-family:'Cormorant Garamond',serif;

    color:var(--primary);

    font-size:72px;

    line-height:1.05;

    font-weight:600;
    width: 100%;
}
.hero-script{

    margin-top:20px;

    font-family:'Parisienne',cursive;

    font-size:48px;

    color:var(--primary);
}

.hero-heart{

    margin-top:12px;

    font-size:40px;
}

.hero p{

    margin-top:40px;

    font-size:24px;

    color:#333;

    line-height:1.5;
}
.hero-btn{

    display:inline-block;

    margin-top:35px;

    background:var(--primary);

    color:white;

    padding:16px 40px;

    border-radius:30px;

    font-size:22px;

    font-weight:600;

    transition:.3s;
}

.hero-btn:hover{

    background:#2C5AA0;

    transform:translateY(-2px);
}
.hero-gradient{

    position:absolute;

    left:0;
    right:0;
    bottom:0;

    height:180px;

    background:
    linear-gradient(
        transparent,
        #FCFBF8
    );
}
/* =========================
   KAFELKI
========================= */

.cards-section{

    padding:120px 0;

    background:#FCFBF8;
}

.cards-grid{

    display:grid;

    grid-template-columns:
    repeat(3,1fr);

    gap:35px;
}

.card{

    background:white;

    border-radius:20px;

    overflow:hidden;

    box-shadow:var(--shadow);

    transition:.35s;

    display:flex;

    flex-direction:column;

    min-height:720px;

    position:relative;
}

.card:hover{

    transform:translateY(-10px);

    box-shadow:var(--shadow-hover);
}
.card-icon{

    padding-top:35px;

    display:flex;

    justify-content:center;
}

.card-icon img{

    width:70px;

    height:70px;

    object-fit:contain;
}

.card-heart{

    text-align:center;

    color:#8BB4F7;

    font-size:26px;

    margin-top:15px;
}
.card h2{

    font-family:
    'Cormorant Garamond',
    serif;

    color:var(--primary);

    font-size:38px;

    text-align:center;

    padding:25px 30px 10px;

    line-height:1.15;
    color: #1F3F73;
}

.card p{

    text-align:center;

    padding:10px 35px;

    font-size:18px;

    line-height:1.7;

    flex-grow:1;
}
.kaf {
    font-weight: bold;
    color:#3F4A5A;
    
    
}
.card-image{

    height:260px;

    overflow:hidden;
}

.card-image img{

    width:100%;
    height:100%;

    object-fit:cover;

    transition:.5s;
}

.card:hover .card-image img{

    transform:scale(1.05);
}
.card-btn{

    width:85%;

    margin:25px auto 35px;

    text-align:center;

    background:var(--primary);

    color:white;

    padding:15px 20px;

    border-radius:30px;

    font-size:18px;

    font-weight:600;

    transition:.3s;
}

.card-btn:hover{

    background:#4A90E2;
}
/* =========================
   WARTOŚCI
========================= */

.value-bar{

    background:white;

    padding:100px 0;
}

.value-grid{

    display:grid;

    grid-template-columns:
    repeat(5,1fr);

    gap:25px;
}
.value-item{

    background:#FCFBF8;

    border-radius:20px;

    padding:35px;

    text-align:center;

    transition:.3s;

    color:inherit;
}

.value-item:hover{

    transform:translateY(-5px);

    box-shadow:var(--shadow);
}

.value-item img{

    width:65px;

    height:65px;

    margin:auto auto 20px;
}

.value-item h3{

    font-family:
    'Cormorant Garamond',
    serif;

    color:var(--primary);

    font-size:32px;

    margin-bottom:15px;
}

.value-item p{

    font-size:17px;

    line-height:1.6;
}
/* =========================
   CYTAT
========================= */

.quote-section{

    

    background:
    linear-gradient(
        180deg,
        #FCFBF8,
        #F3F5F7
    );
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    
}

blockquote{

    max-width:1100px;

    margin:auto;

    text-align:center;

    font-family:
    'Cormorant Garamond',
    serif;

    color:var(--primary);

    font-size:44px;

    line-height:1.3;

   
}
/* =========================
   FOOTER
========================= */

.footer{

    background:#1F3F73;

    color:white;

    
    height: 240px;
}

.footer-logo{

    text-align:center;
}

.footer-logo img{

    width:90px;

    margin:auto;
}

.footer-logo h3{

    margin-top:20px;

    font-family:
    'Cormorant Garamond',
    serif;

    font-size:32px;
}

.footer-logo p{

    margin-top:10px;

    color:#D6E5FF;
}
.footer-menu{

    display:flex;

    justify-content:center;

    flex-wrap:wrap;

    gap:30px;

    margin:45px 0;
}

.footer-menu a{

    color:white;

    font-size:18px;
}

.footer-menu a:hover{

    color:#8BB4F7;
}

.footer-copy{

    text-align:center;

    font-size:15px;

    opacity:.8;
}
@media(max-width:1200px){

.hero h1{
    font-size:60px;
}

.cards-grid{
    grid-template-columns:
    repeat(2,1fr);
}

.value-grid{
    grid-template-columns:
    repeat(2,1fr);
}

blockquote{
    font-size:48px;
}

}
@media(max-width:1500px){

.desktop-menu{
    display:none;
}

.hamburger{
    display:block;
}

.hero-content{

    margin:0 30px;
}

.hero h1{

    font-size:46px;
}

.hero-script{

    font-size:34px;
}

.hero p{

    font-size:20px;
}

.cards-grid{

    grid-template-columns:1fr;
}

.value-grid{

    grid-template-columns:1fr;
}

blockquote{

    font-size:34px;

    padding:0 20px;
}

.logo-text h2{

    font-size:26px;
}

.logo-text span{

    font-size:13px;
}

.header{

    padding:0 20px;
}

}
/* ==========================================
   KAFELEK 1
   PIERWSZA PRZYSTAŃ
========================================== */

/* BANER */

.subpage-hero{

    position:relative;

    min-height:350px;
    width: 100%;
    height: 400px;
    display:flex;

    align-items:center;
    justify-content:center;

    text-align:center;

    background-image:url('baner-pierwsza-przystan.jpg');

    background-size:cover;
    background-position:center;

    margin-top:90px;
}

.subpage-overlay{

    position:absolute;
    inset:0;

    background:
    linear-gradient(
        rgba(255,255,255,.35),
        rgba(255,255,255,.15)
    );
}

.subpage-content{

    position:relative;

    z-index:2;

    width:min(1000px,90%);
}

.subpage-content h1{

    font-family:'Cormorant Garamond',serif;

    color:#1F3F73;

    font-size:clamp(3rem,6vw,5rem);

    margin-bottom:20px;
}

.subpage-subtitle{

    font-size:clamp(1.1rem,2vw,1.8rem);

    color:#243B67;

    font-weight:500;
}

/* WPROWADZENIE */

.intro-section{

    padding:20px 0;
}

.intro-container{

    max-width:950px;
    
}

.intro-text{

    text-align:justify;

    line-height:1.9;

    font-size:20px;
}

.intro-text p{

    margin-bottom:28px;
}

.intro-text h3{

    margin-top:40px;

    color:#1F3F73;

    font-size:32px;

    font-family:'Cormorant Garamond',serif;
}

/* KAFELKI */

.direction-section{

    padding:40px 0 120px;
}

.direction-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:35px;

    max-width:1100px;

    margin:auto;
}

.direction-card{

    background:white;

    border-radius:20px;

    min-height:240px;

    display:flex;

    flex-direction:column;

    justify-content:center;
    align-items:center;

    text-align:center;

    padding:40px;

    box-shadow:0 10px 30px rgba(31,63,115,.08);

    transition:.3s;

    color:#243B67;
}

.direction-card:hover{

    transform:translateY(-8px);

    box-shadow:0 18px 40px rgba(31,63,115,.14);
}

.direction-icon{

    font-size:52px;

    margin-bottom:20px;
}

.direction-card h2{

    font-family:'Cormorant Garamond',serif;

    font-size:36px;

    color:#1F3F73;

    margin-bottom:25px;
}

.direction-card span{

    display:inline-block;

    background:#1F3F73;

    color:white;

    padding:12px 28px;

    border-radius:30px;

    font-size:16px;

    font-weight:600;
}

.direction-center{

    grid-column:1 / span 2;

    max-width:520px;

    width:100%;

    justify-self:center;
}

/* SEKCJA KOŃCOWA */

.closing-section{

    padding:50px 0;

    background:
    linear-gradient(
        180deg,
        #FCFBF8,
        #F3F5F7
    );
}

.closing-section blockquote{

    max-width:900px;

    margin:auto;

    text-align:center;

    font-family:'Cormorant Garamond',serif;

    color:#1F3F73;

    font-size:42px;

    line-height:1.4;

 
}
.artykul {
    scroll-margin-top: 40px;
    margin-top: 50px;
}
.article {
    max-width: 900px;
    margin: 0 auto;
}
.article p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #4a4a4a;
    text-align: left;
    margin-bottom: 2rem;
}
/* RESPONSYWNOŚĆ */

@media(max-width:992px){

    .direction-grid{

        grid-template-columns:1fr;
    }

    .direction-center{

        grid-column:auto;

        max-width:none;
    }

    .direction-card{

        min-height:220px;
    }

}

@media(max-width:768px){

    .subpage-hero{

        min-height:500px;
    }

    .intro-section{

        padding:70px 0;
    }

    .intro-text{

        font-size:18px;
    }

    .intro-text h3{

        font-size:28px;
    }

    .direction-card h2{

        font-size:30px;
    }

    .closing-section blockquote{

        font-size:32px;

        padding:0 20px;
    }

}
.article-list{

    max-width:900px;

    margin:40px auto;

    padding-left:25px;

    line-height:2;
}

.article-list li{

    margin-bottom:10px;
}

.article-list a{

    color:#1F3F73;

    font-size:20px;

    font-weight:500;
}

.article-list a:hover{

    color:#4A90E2;
}
html {
    scroll-behavior: smooth;
}
/* ==========================================
   KAFELEK 3
   POZIOM 0
========================================== */

/* SPIS DZIAŁÓW */

.direction-grid{

    grid-template-columns:repeat(2,1fr);

    gap:35px;

    max-width:1200px;

}

.direction-card{

    min-height:260px;

    padding:45px;

    border:1px solid #E8EDF5;

}

.direction-card h2{

    font-size:34px;

    line-height:1.25;

    color:#1F3F73;

}

.direction-card span{

    margin-top:20px;

}

/* SEKCJA WAŻNE INFORMACJE */

.info-section{

    padding:90px 0;

}

.info-box{

    max-width:980px;

    margin:auto;

    background:#ffffff;

    border-left:6px solid #1F3F73;

    border-radius:20px;

    padding:50px;

    box-shadow:0 10px 30px rgba(31,63,115,.08);

}

.info-box h2{

    font-family:'Cormorant Garamond',serif;

    color:#1F3F73;

    font-size:42px;

    margin-bottom:30px;

}

.info-box p{

    margin-bottom:20px;

    line-height:1.9;

    font-size:18px;

}

/* LEPSZY BANER */

.subpage-content{

    max-width:900px;

}

.subpage-content h1{

    max-width:900px;

    margin:auto auto 20px;

    line-height:1.05;

}

.subpage-subtitle{

    max-width:700px;

    margin:auto;

    line-height:1.6;

    font-size:20px;

}

/* WPROWADZENIE */

.intro-text{

    max-width:900px;

    margin:auto;

}

.intro-text p{

    font-size:20px;

    line-height:2;

}

/* RESPONSYWNOŚĆ */

@media(max-width:992px){

    .direction-grid{

        grid-template-columns:1fr;

    }

    .direction-card{

        min-height:220px;

    }

    .info-box{

        padding:35px;

    }

}

@media(max-width:768px){

    .direction-card h2{

        font-size:28px;

    }

    .info-box h2{

        font-size:34px;

    }

    .info-box{

        padding:28px;

    }

}
.autoship-image {
    margin: 30px auto 55px;
    text-align: center;
}

.autoship-image img {
    width: 100%;
    max-width: 680px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .autoship-image {
        margin: 24px auto 42px;
    }

    .autoship-image img {
        max-width: 100%;
        border-radius: 8px;
    }
}
.autoship-guide p {
    margin-bottom: 18px;
}

.autoship-guide h3 {
    margin-top: 42px;
    margin-bottom: 16px;
}

.autoship-guide ul {
    margin-top: 8px;
    margin-bottom: 22px;
}

.autoship-guide li {
    margin-bottom: 6px;
}

@media (max-width: 768px) {
    .autoship-guide p {
        margin-bottom: 14px;
        line-height: 1.65;
    }

    .autoship-guide h3 {
        margin-top: 34px;
        margin-bottom: 12px;
    }

    .autoship-guide ul {
        margin-top: 6px;
        margin-bottom: 18px;
    }

    .autoship-guide li {
        margin-bottom: 5px;
    }
}
/* ===== KAFELEK 2 — ZWARTY TEKST ARTYKUŁÓW ===== */

.kafelek2-compact-section {
    padding: 45px 0 !important;
}

.kafelek2-compact-text {
    text-align: left !important;
    font-size: 19px !important;
    line-height: 1.65 !important;
    max-width: 900px;
    margin: 0 auto;
}

.kafelek2-compact-text p {
    text-align: left !important;
    font-size: 19px !important;
    line-height: 1.65 !important;
    margin-bottom: 18px !important;
    letter-spacing: 0 !important;
    word-spacing: normal !important;
}

.kafelek2-compact-text b,
.kafelek2-compact-text strong {
    font-weight: 700;
}

.kafelek2-compact-text h3 {
    margin-top: 34px !important;
    margin-bottom: 16px !important;
    font-size: clamp(28px, 3vw, 36px) !important;
    line-height: 1.25 !important;
    color: #1F3F73;
}

@media (max-width: 768px) {
    .kafelek2-compact-section {
        padding: 38px 0 !important;
    }

    .kafelek2-compact-text {
        font-size: 17px !important;
        line-height: 1.6 !important;
    }

    .kafelek2-compact-text p {
        font-size: 17px !important;
        line-height: 1.6 !important;
        margin-bottom: 15px !important;
        text-align: left !important;
        word-spacing: normal !important;
    }

    .kafelek2-compact-text h3 {
        font-size: 26px !important;
        margin-top: 28px !important;
        margin-bottom: 14px !important;
    }
}
/* ===== KAFELEK 2 / PORTY — ODSTĘP TEKSTU OD KRAWĘDZI ===== */

main[data-category="Portal"] .article {
    width: min(900px, 92%) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

main[data-category="Portal"] .article p {
    font-size: 18px !important;
    line-height: 1.7 !important;
    margin-bottom: 18px !important;
    text-align: left !important;
}

main[data-category="Portal"] .article h2 {
    line-height: 1.25 !important;
    margin-bottom: 22px !important;
}

@media (max-width: 768px) {
    main[data-category="Portal"] .article {
        width: 90% !important;
    }

    main[data-category="Portal"] .article p {
        font-size: 16.5px !important;
        line-height: 1.6 !important;
        margin-bottom: 15px !important;
    }

    main[data-category="Portal"] .article h2 {
        font-size: 25px !important;
        line-height: 1.25 !important;
        margin-bottom: 18px !important;
    }
}
/* ===== ZDJĘCIA W ARTYKUŁACH PORTÓW ===== */

.port-article-image {
    margin: 30px auto 36px;
    text-align: center;
}

.port-article-image img {
    width: auto;
    max-width: 100%;
    max-height: 620px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 14px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .port-article-image {
        margin: 24px auto 30px;
    }

    .port-article-image img {
        width: 100%;
        max-height: none;
        border-radius: 10px;
    }
}
.subpage-hero {
    position: relative;
    overflow: hidden;
}

.subpage-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.subpage-content {
    position: relative;
    z-index: 2;
}
.subpage-content h1 {
    color: #1F3F73;
    font-weight: 700;
    letter-spacing: 1.5px;

    text-shadow:
        -1px -1px 1px rgba(255, 255, 255, 0.95),
         1px -1px 1px rgba(255, 255, 255, 0.95),
        -1px  1px 1px rgba(255, 255, 255, 0.95),
         1px  1px 1px rgba(255, 255, 255, 0.95),
         0 0 6px rgba(255, 255, 255, 0.8);
}

.subpage-subtitle,
.subpage-subtitle strong {
    color: #1F3F73;

    text-shadow:
        -1px -1px 1px rgba(255, 255, 255, 0.9),
         1px -1px 1px rgba(255, 255, 255, 0.9),
        -1px  1px 1px rgba(255, 255, 255, 0.9),
         1px  1px 1px rgba(255, 255, 255, 0.9),
         0 0 5px rgba(255, 255, 255, 0.75);
}

/* Zwarty tekst — Przewodnik Podróży do Zdrowia */

.przewodnik-compact-section {
    padding-top: 45px;
    padding-bottom: 45px;
}

.przewodnik-compact-text p {
    margin-bottom: 14px;
    line-height: 1.65;
}

.przewodnik-compact-text h2 {
    margin-bottom: 24px;
}

.przewodnik-compact-text p[style*="text-align:center"] {
    margin-top: 22px;
    margin-bottom: 22px;
}

@media (max-width: 768px) {
    .przewodnik-compact-section {
        padding-top: 34px;
        padding-bottom: 34px;
    }

    .przewodnik-compact-text p {
        margin-bottom: 12px;
        line-height: 1.6;
    }

    .przewodnik-compact-text h2 {
        margin-bottom: 20px;
    }
}

/* Podgląd stron Przewodnika Podróży do Zdrowia */

.przewodnik-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    max-width: 900px;
    margin: 38px auto 10px;
    align-items: start;
}

.przewodnik-preview-item {
    text-align: center;
}

.przewodnik-preview-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(31, 63, 115, 0.16);
}

@media (max-width: 768px) {
    .przewodnik-preview-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 420px;
        margin: 30px auto 5px;
    }

    .przewodnik-preview-item img {
        border-radius: 12px;
    }
}

/* Podgląd stron Biblioteki Praktycznej Wiedzy */

.biblioteka-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    max-width: 1100px;
    margin: 38px auto 34px;
    align-items: start;
}

.biblioteka-preview-item {
    text-align: center;
}

.biblioteka-preview-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(31, 63, 115, 0.16);
}

/* Tablet — 2 zdjęcia w pierwszym rzędzie, trzecie wyśrodkowane pod spodem */
@media (max-width: 1024px) and (min-width: 769px) {
    .biblioteka-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 760px;
    }

    .biblioteka-preview-item:nth-child(3) {
        grid-column: 1 / -1;
        width: calc((100% - 26px) / 2);
        justify-self: center;
    }
}

/* Telefon — jedno zdjęcie pod drugim */
@media (max-width: 768px) {
    .biblioteka-preview-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 420px;
        margin: 30px auto 28px;
    }

    .biblioteka-preview-item:nth-child(3) {
        width: 100%;
    }

    .biblioteka-preview-item img {
        border-radius: 12px;
    }
}

/* ===== GALERIA DEVIN — ARTYKUŁ 1 ===== */

.devin-gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    max-width: 980px;
    margin: 36px auto 42px;
    align-items: stretch;
}

.devin-gallery-item {
    grid-column: span 2;
    background: #ffffff;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 12px 30px rgba(31, 63, 115, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
}

.devin-gallery-item:nth-child(4) {
    grid-column: 2 / span 2;
}

.devin-gallery-item:nth-child(5) {
    grid-column: 4 / span 2;
}

.devin-gallery-item img {
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: contain;
    display: block;
    border-radius: 10px;
}

/* Tablet — 2 zdjęcia w rzędzie, ostatnie wyśrodkowane */
@media (max-width: 1024px) and (min-width: 769px) {
    .devin-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 760px;
        gap: 22px;
    }

    .devin-gallery-item,
    .devin-gallery-item:nth-child(4),
    .devin-gallery-item:nth-child(5) {
        grid-column: auto;
    }

    .devin-gallery-item:nth-child(5) {
        grid-column: 1 / -1;
        width: calc((100% - 22px) / 2);
        justify-self: center;
    }
}

/* Telefon — jedno zdjęcie pod drugim */
@media (max-width: 768px) {
    .devin-gallery {
        grid-template-columns: 1fr;
        max-width: 420px;
        gap: 22px;
        margin: 30px auto 36px;
    }

    .devin-gallery-item,
    .devin-gallery-item:nth-child(4),
    .devin-gallery-item:nth-child(5) {
        grid-column: auto;
        width: 100%;
    }

    .devin-gallery-item {
        padding: 8px;
        border-radius: 12px;
    }

    .devin-gallery-item img {
        max-height: none;
        border-radius: 8px;
    }
}

/* ===== ZDJĘCIE BRAD I MARCIA ===== */

.founders-image {
    max-width: 760px;
    margin: 30px auto 38px;
    text-align: center;
}

.founders-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(31, 63, 115, 0.16);
}

@media (max-width: 768px) {
    .founders-image {
        max-width: 100%;
        margin: 26px auto 32px;
    }

    .founders-image img {
        border-radius: 12px;
    }
}

/* ===== ZDJĘCIA RICHARD RICHARDSON ===== */

.richard-article-image {
    max-width: 760px;
    margin: 30px auto 38px;
    text-align: center;
}

.richard-article-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(31, 63, 115, 0.16);
}

@media (max-width: 768px) {
    .richard-article-image {
        max-width: 100%;
        margin: 26px auto 32px;
    }

    .richard-article-image img {
        border-radius: 12px;
    }
}

/* ===== ZDJĘCIA EKSPERTÓW W ARTYKUŁACH ===== */

.ekspert-article-image {
    max-width: 760px;
    margin: 30px auto 38px;
    text-align: center;
}

.ekspert-article-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(31, 63, 115, 0.16);
}

@media (max-width: 768px) {
    .ekspert-article-image {
        max-width: 100%;
        margin: 26px auto 32px;
    }

    .ekspert-article-image img {
        border-radius: 12px;
    }
}

/* ===== ZDJĘCIE RAPORTU — MNIEJSZY ODSTĘP NAD I POD ===== */

.badania-report-section {
    padding-top: 8px !important;
}

.badania-report-image {
    max-width: 820px;
    margin: 10px auto 18px;
}

.badania-report-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
}

.badania-report-image + h2 {
    margin-top: 0 !important;
}

/* ===== TABELA W ARTYKUŁACH ===== */

.article-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 28px 0 34px;
}

.article-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 18px;
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 14px;
    overflow: hidden;
}

.article-table th,
.article-table td {
    border: 1px solid rgba(31, 63, 115, 0.18);
    padding: 16px 18px;
    text-align: left;
    vertical-align: top;
}

.article-table th {
    color: #1F3F73;
    font-weight: 700;
    background: rgba(31, 63, 115, 0.08);
}

.article-table td:first-child {
    font-weight: 700;
    color: #1F3F73;
    width: 28%;
}

@media (max-width: 768px) {
    .article-table {
        font-size: 16px;
    }

    .article-table th,
    .article-table td {
        padding: 13px 14px;
    }
}