/* ============================================================
   Centrum Edukacji i Kultury ZENIT – style.css
   ============================================================ */

/* === 1. CUSTOM PROPERTIES === */
:root {
    --c-primary:      #1a9fd4;   /* jasnobłękitny */
    --c-primary-dk:   #0e7aaa;   /* ciemniejszy błękit */
    --c-primary-lt:   #4bbde0;   /* jaśniejszy błękit */
    --c-accent:       #c8a040;   /* stonowane złoto – CTA */
    --c-accent-dk:    #a8831a;
    --c-accent-lt:    #dfc060;
    --c-blue:         #5bb8d4;   /* pomocniczy niebieski */
    --c-green:        #2ecc71;
    --c-text:         #1e2d3a;
    --c-text-light:   #5e7a8a;
    --c-bg:           #ffffff;
    --c-bg-light:     #f0f8fd;   /* bardzo jasny błękit */
    --c-bg-mid:       #d8eff9;   /* jasnoniebieski */
    --c-border:       #b3ddf2;   /* jasnoniebieskie obramowanie */
    --c-shadow:       rgba(14,122,170,.12);
    --ff-head:        'Montserrat', sans-serif;
    --ff-body:        'Open Sans', sans-serif;
    --radius:         10px;
    --radius-sm:      6px;
    --shadow:         0 4px 20px var(--c-shadow);
    --shadow-sm:      0 2px 8px var(--c-shadow);
    --trans:          .3s ease;
    --container-w:    1200px;
    --fs-base:        16px;
}

/* === 2. RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: var(--fs-base); scroll-behavior: smooth; }
body {
    font-family: var(--ff-body);
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.7;
    overflow-x: hidden;
}
img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--c-accent); }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* === 3. ACCESSIBILITY === */
.skip-nav {
    position: absolute; left: -9999px; top: 1rem;
    background: var(--c-primary); color: #fff;
    padding: .5rem 1rem; border-radius: var(--radius-sm);
    font-weight: 600; z-index: 9999;
}
.skip-nav:focus { left: 1rem; }

*:focus-visible {
    outline: 3px solid var(--c-accent);
    outline-offset: 3px;
    border-radius: 3px;
}

/* === 4. LAYOUT === */
.container {
    width: min(var(--container-w), 100%);
    margin-inline: auto;
    padding-inline: 1.5rem;
}

/* === 5. TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--ff-head);
    color: var(--c-primary);
    line-height: 1.25;
    font-weight: 700;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p { margin-bottom: 1rem; }

.section-title {
    text-align: center;
    margin-bottom: .5rem;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px; height: 4px;
    background: var(--c-accent);
    border-radius: 2px;
    margin: .75rem auto 0;
}
.section-subtitle {
    text-align: center;
    color: var(--c-text-light);
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

/* === 6. BUTTONS === */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .75rem 1.75rem;
    font-family: var(--ff-head);
    font-weight: 600; font-size: .95rem;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer; transition: all var(--trans);
    text-decoration: none; white-space: nowrap;
}
.btn--primary {
    background: var(--c-primary);
    color: #fff;
    border-color: var(--c-primary);
}
.btn--primary:hover {
    background: var(--c-primary-lt);
    border-color: var(--c-primary-lt);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14,122,170,.3);
}
.btn--accent {
    background: var(--c-accent);
    color: #fff;
    border-color: var(--c-accent);
}
.btn--accent:hover {
    background: var(--c-accent-dk);
    border-color: var(--c-accent-dk);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200,160,64,.35);
}
.btn--outline {
    background: transparent;
    color: var(--c-primary);
    border-color: var(--c-primary);
}
.btn--outline:hover { background: var(--c-primary); color: #fff; }
.btn--sm { padding: .5rem 1.1rem; font-size: .875rem; }
.btn--lg { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn--full { width: 100%; }

/* === 7. FORMS === */
.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block;
    font-weight: 600; font-size: .9rem;
    color: var(--c-primary);
    margin-bottom: .4rem;
}
.form-label .required { color: var(--c-accent); margin-left: .25rem; }
.form-control {
    width: 100%;
    padding: .75rem 1rem;
    border: 2px solid var(--c-border);
    border-radius: var(--radius-sm);
    font-family: var(--ff-body);
    font-size: 1rem;
    color: var(--c-text);
    background: var(--c-bg);
    transition: border-color var(--trans), box-shadow var(--trans);
    appearance: none;
}
.form-control:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(26,159,212,.18);
}
textarea.form-control { min-height: 130px; resize: vertical; }
.form-check {
    display: flex; gap: .75rem;
    align-items: flex-start;
    padding: .75rem;
    background: var(--c-bg-light);
    border-radius: var(--radius-sm);
    border: 1px solid var(--c-border);
    cursor: pointer;
    transition: background var(--trans);
}
.form-check:hover { background: var(--c-bg-mid); }
.form-check input[type="checkbox"] {
    width: 20px; height: 20px;
    min-width: 20px;
    accent-color: var(--c-primary);
    cursor: pointer;
    margin-top: .15rem;
}
.form-check-label { font-size: .9rem; line-height: 1.5; cursor: pointer; }
.form-error { color: #c0392b; font-size: .85rem; margin-top: .3rem; }
.form-success {
    background: #d4edda; color: #155724;
    padding: 1rem 1.5rem; border-radius: var(--radius-sm);
    border: 1px solid #c3e6cb;
    margin-bottom: 1.5rem;
    font-weight: 500;
}
.form-error-msg {
    background: #f8d7da; color: #721c24;
    padding: 1rem 1.5rem; border-radius: var(--radius-sm);
    border: 1px solid #f5c6cb;
    margin-bottom: 1.5rem;
}

/* === 8. TOP BAR === */
.topbar {
    background: var(--c-primary-dk);
    color: rgba(255,255,255,.85);
    font-size: .82rem;
    padding: .4rem 0;
}
.topbar-inner {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: .5rem;
}
.topbar-contact { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.topbar-actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.topbar-link {
    color: rgba(255,255,255,.85); display: inline-flex; align-items: center; gap: .35rem;
    transition: color var(--trans);
}
.topbar-link:hover { color: #fff; }
.topbar-fb { color: #90b8ff; }
.topbar-btn {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.85);
    padding: .2rem .55rem; border-radius: 4px;
    font-size: .78rem; font-weight: 600;
    display: inline-flex; align-items: center; gap: .3rem;
    transition: all var(--trans);
}
.topbar-btn:hover { background: rgba(255,255,255,.2); color: #fff; }

/* === 9. HEADER === */
.site-header {
    background: var(--c-bg);
    box-shadow: 0 2px 10px var(--c-shadow);
    position: sticky; top: 0; z-index: 1000;
    transition: box-shadow var(--trans);
}
.header-inner {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: .75rem 0;
    gap: 1rem;
}
.site-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.site-logo-img { height: 64px; width: auto; object-fit: contain; display: block; }
.logo-default {
    display: flex; align-items: center; gap: .75rem;
}
.logo-icon {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-accent) 100%);
    color: #fff; font-family: var(--ff-head);
    font-size: 1.8rem; font-weight: 800;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}
.logo-text-wrap { display: flex; flex-direction: column; }
.logo-name {
    font-family: var(--ff-head);
    font-size: 1.3rem; font-weight: 800;
    color: var(--c-primary); letter-spacing: .05em;
    line-height: 1;
}
.logo-sub {
    font-size: .65rem; color: var(--c-text-light);
    text-transform: uppercase; letter-spacing: .08em;
    line-height: 1.3;
}

/* Nav */
.main-nav { display: flex; }
.nav-list { display: flex; align-items: center; gap: .1rem; }
.nav-link {
    display: block;
    padding: .55rem .8rem;
    font-family: var(--ff-head);
    font-size: .82rem; font-weight: 600;
    color: var(--c-text);
    border-radius: var(--radius-sm);
    transition: all var(--trans);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.nav-link:hover, .nav-link--active {
    color: var(--c-accent);
    background: var(--c-bg-light);
}
.nav-link--active { color: var(--c-accent); }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column; justify-content: center; align-items: center;
    gap: 5px; width: 44px; height: 44px;
    background: transparent; border: 2px solid var(--c-border);
    border-radius: var(--radius-sm); padding: 6px;
    transition: border-color var(--trans);
}
.hamburger:hover { border-color: var(--c-primary); }
.hamburger span {
    display: block; width: 22px; height: 2px;
    background: var(--c-text); border-radius: 2px;
    transition: all var(--trans); transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === 10. HERO === */
.hero {
    position: relative;
    min-height: 380px;
    display: flex; align-items: center;
    background: #0a3d6e; /* fallback gdy zdjęcie nie załaduje */
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
    margin-bottom: -4rem;
    padding-bottom: 4rem;
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center 20%;
}
/* Gradient od lewej do prawej: biały szron (lewa – tekst) → przezroczysty (prawa – zdjęcie widoczne) */
.hero-bg::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(
        to right,
        rgba(255,255,255,.92) 0%,
        rgba(255,255,255,.72) 25%,
        rgba(255,255,255,.30) 50%,
        rgba(0,0,0,.06)       72%,
        transparent           100%
    );
}
.hero-content {
    position: relative; z-index: 1;
    padding: 3.5rem 0 4rem;
    max-width: 640px;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--c-accent);
    color: #fff; font-family: var(--ff-head);
    font-size: .78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em;
    padding: .35rem .9rem; border-radius: 30px;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 12px rgba(200,160,64,.30);
}
/* Tytuł granatowy – wyraźny na jasnym tle po lewej */
.hero h1 {
    color: #0a2463;
    margin-bottom: 1rem;
    text-shadow: none;
}
.hero-sub {
    font-family: 'Dancing Script', cursive;
    font-size: 4.2rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    margin-left: 30%;
    color: #0a2463;
    letter-spacing: .01em;
    display: inline-block;
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: .15rem 1.1rem .3rem;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(10,36,99,.14);
}
.hero-exp {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(255,255,255,.65); border: 1px solid rgba(10,36,99,.15);
    border-radius: 30px; padding: .4rem 1rem;
    font-size: .9rem; margin-bottom: 2rem; color: #1e3a5f;
    backdrop-filter: blur(6px);
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
/* Przycisk outline dostosowany do jasnego tła po lewej */
.hero-btn-outline {
    border-color: #0a2463 !important;
    color: #0a2463 !important;
    background: rgba(255,255,255,.50) !important;
    backdrop-filter: blur(4px);
}
.hero-btn-outline:hover {
    background: #0a2463 !important;
    color: #fff !important;
    border-color: #0a2463 !important;
}

/* === 11. SECTIONS === */
.section { padding: 5rem 0; }
.section--light { background: var(--c-bg-light); }
.section--mid { background: var(--c-bg-mid); }
.section--primary { background: var(--c-primary); color: #fff; }
.section--primary h2, .section--primary h3 { color: #fff; }
.section--primary .section-title::after { background: var(--c-accent); }

/* === 12. ARTICLE CARDS === */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
}
.article-card {
    background: var(--c-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform var(--trans), box-shadow var(--trans);
}
.article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}
.card-img-link { display: block; overflow: hidden; }
.card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #f0f4f8;
    transition: transform .5s ease;
}
.card-img-link:hover .card-img { transform: scale(1.05); }
.card-body {
    padding: 1.5rem;
    display: flex; flex-direction: column; flex: 1;
}
.card-date {
    font-size: .8rem; color: var(--c-accent);
    font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
    display: block; margin-bottom: .5rem;
}
.card-title {
    font-size: 1.1rem; margin-bottom: .75rem; line-height: 1.35;
}
.card-title a { color: var(--c-primary); }
.card-title a:hover { color: var(--c-accent); }
.card-excerpt { font-size: .9rem; color: var(--c-text-light); flex: 1; margin-bottom: 1rem; }
.card-type-badge {
    display: inline-block;
    background: var(--c-bg-mid);
    color: var(--c-primary);
    font-size: .72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em;
    padding: .2rem .6rem; border-radius: 20px;
    margin-bottom: .6rem;
}

/* === 13. SINGLE ARTICLE === */
.page-hero {
    background: linear-gradient(135deg, var(--c-primary-dk) 0%, var(--c-primary) 100%);
    color: #fff; padding: 4rem 0 3rem;
}
.page-hero--img {
    background-size: cover;
    background-position: center 30%;
    position: relative;
}
.page-hero--img::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(
        to right,
        rgba(255,255,255,.92) 0%,
        rgba(255,255,255,.72) 25%,
        rgba(255,255,255,.30) 50%,
        rgba(0,0,0,.06)       72%,
        transparent           100%
    );
}
.page-hero--img .container { position: relative; z-index: 1; }
.page-hero.page-hero--img h1 { color: #0a2463; text-shadow: none; }
.page-hero.page-hero--img .breadcrumb { opacity: 1; color: var(--c-text-light); }
.page-hero.page-hero--img .breadcrumb a { color: var(--c-primary); opacity: 1; }
.page-hero.page-hero--img .breadcrumb a:hover { color: var(--c-primary-dk); }
.page-hero--tall { padding: 7rem 0 5.5rem; }

/* Hero bez niebieskiego tła – jasny wariant */
.page-hero--plain {
    background: #f0f8fd;
    color: var(--c-text);
    border-bottom: 3px solid var(--c-border);
}
.page-hero--plain h1 { color: var(--c-primary-dk); }
.page-hero--plain .breadcrumb a { color: var(--c-primary); opacity: 1; }
.page-hero--plain .breadcrumb { opacity: 1; color: var(--c-text-light); }
.page-hero--plain .hero-sub-text { color: var(--c-text-light) !important; }
.page-hero h1 { color: #fff; margin-bottom: .75rem; }
.page-hero .breadcrumb { font-size: .85rem; opacity: .75; display: flex; gap: .5rem; flex-wrap: wrap; }
.page-hero .breadcrumb a { color: rgba(255,255,255,.8); }
.page-hero .breadcrumb a:hover { color: #fff; }

.article-layout { display: grid; grid-template-columns: 1fr min(280px, 30%); gap: 2.5rem; padding: 3rem 0; }
.article-main {}
.article-sidebar {}
.article-featured-img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.article-meta {
    display: flex; gap: 1.5rem; flex-wrap: wrap;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--c-border);
    font-size: .9rem; color: var(--c-text-light);
}
.article-meta-item { display: flex; align-items: center; gap: .4rem; }
.article-content { line-height: 1.8; }
.article-content h2, .article-content h3 { margin: 2rem 0 1rem; }
.article-content p { margin-bottom: 1.25rem; }
.article-content ul, .article-content ol { margin: 0 0 1.25rem 1.5rem; }
.article-content img { border-radius: var(--radius-sm); margin: 1.5rem 0; box-shadow: var(--shadow-sm); }

/* Gallery */
.article-gallery { margin-top: 3rem; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}
.gallery-item {
    border-radius: var(--radius-sm); overflow: hidden;
    cursor: pointer; aspect-ratio: 4/3;
    transition: transform var(--trans), box-shadow var(--trans);
}
.gallery-item:hover { transform: scale(1.03); box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* Lightbox */
.lightbox-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.92); z-index: 9998;
    justify-content: center; align-items: center; padding: 1rem;
}
.lightbox-overlay.active { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); }
.lightbox-close {
    position: fixed; top: 1.5rem; right: 1.5rem;
    background: rgba(255,255,255,.15); border: none;
    color: #fff; width: 48px; height: 48px; border-radius: 50%;
    font-size: 1.5rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--trans);
}
.lightbox-close:hover { background: rgba(255,255,255,.25); }
.lightbox-nav {
    position: fixed; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.15); border: none;
    color: #fff; width: 52px; height: 52px; border-radius: 50%;
    font-size: 1.4rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--trans);
}
.lightbox-nav:hover { background: rgba(255,255,255,.25); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* Videos */
.video-wrapper {
    position: relative; padding-top: 56.25%;
    height: 0; overflow: hidden;
    border-radius: var(--radius); margin: 1.5rem 0;
    box-shadow: var(--shadow);
}
.video-wrapper iframe, .video-wrapper--native { position: absolute; inset: 0; width: 100%; height: 100%; }
.video-wrapper--native { position: relative; padding-top: 0; height: auto; }

/* Files section */
.files-section { margin-top: 2.5rem; }
.files-list { display: flex; flex-direction: column; gap: .75rem; margin-top: 1rem; }
.file-item {
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--c-bg-light);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    transition: all var(--trans);
    text-decoration: none; color: var(--c-text);
}
.file-item:hover { background: var(--c-bg-mid); border-color: var(--c-primary); color: var(--c-primary); }
.file-icon { font-size: 1.5rem; flex-shrink: 0; }
.file-info { flex: 1; }
.file-name { font-weight: 600; font-size: .95rem; }
.file-meta { font-size: .8rem; color: var(--c-text-light); margin-top: .15rem; }
.file-dl { font-size: .8rem; color: var(--c-blue); font-weight: 600; }

/* Map */
.map-wrapper { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin: 2rem 0; }
.map-wrapper iframe { display: block; }

/* Sidebar */
.sidebar-card {
    background: var(--c-bg-light);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--c-border);
}
.sidebar-card h3 { font-size: 1rem; margin-bottom: 1rem; }
.sidebar-links { display: flex; flex-direction: column; gap: .5rem; }
.sidebar-links a {
    font-size: .9rem; padding: .5rem .75rem;
    border-radius: var(--radius-sm);
    transition: background var(--trans);
    display: block; color: var(--c-text);
}
.sidebar-links a:hover { background: var(--c-bg-mid); color: var(--c-primary); }

/* === 14. HOME PAGE === */
.home-news-preview { padding: 5rem 0; }
.news-preview-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem;
    margin-top: 2.5rem;
}
.news-preview-grid .article-card { height: 100%; min-width: 0; }

/* Contact section on home */
.contact-section {
    display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
    align-items: stretch;
}
.contact-info-block { }
.contact-info-block h2 { margin-bottom: 1.5rem; }
.contact-info-items { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.contact-info-item {
    display: flex; gap: 1rem; align-items: flex-start;
    padding: 1rem; background: var(--c-bg-light);
    border-radius: var(--radius-sm); border: 1px solid var(--c-border);
}
.contact-info-icon {
    width: 40px; height: 40px; min-width: 40px;
    background: var(--c-primary); color: #fff;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
}
.contact-info-text strong { display: block; font-weight: 600; color: var(--c-primary); }
.contact-info-text span, .contact-info-text a { font-size: .95rem; color: var(--c-text); }

/* === 15. MEDIA SECTION === */
.media-section { padding: 5rem 0; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; margin-top: 2rem; }

/* === 16. ROOM RENTAL === */
.rental-generator {
    background: var(--c-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.generator-steps {
    display: flex; background: var(--c-bg-light);
    border-bottom: 2px solid var(--c-border);
    overflow-x: auto;
}
.gen-step-btn {
    flex: 1; min-width: 140px;
    padding: 1rem 1.25rem;
    background: transparent; border: none;
    font-family: var(--ff-head); font-size: .85rem; font-weight: 600;
    color: var(--c-text-light); text-align: center;
    border-bottom: 3px solid transparent;
    transition: all var(--trans);
    cursor: pointer;
    display: flex; flex-direction: column; align-items: center; gap: .4rem;
}
.gen-step-btn .step-num {
    width: 28px; height: 28px;
    background: var(--c-border); color: var(--c-text-light);
    border-radius: 50%; font-size: .8rem;
    display: flex; align-items: center; justify-content: center;
}
.gen-step-btn.active {
    color: var(--c-primary);
    border-bottom-color: var(--c-primary);
}
.gen-step-btn.active .step-num { background: var(--c-primary); color: #fff; }
.gen-step-btn.done { color: var(--c-green); }
.gen-step-btn.done .step-num { background: var(--c-green); color: #fff; }
.generator-body { padding: 2.5rem; }
.gen-step { display: none; }
.gen-step.active { display: block; }
.gen-step h3 { margin-bottom: 1.5rem; color: var(--c-primary); }
.room-option {
    display: flex; align-items: center; gap: .75rem;
    padding: .85rem 1rem;
    background: var(--c-bg-light); border: 2px solid var(--c-border);
    border-radius: var(--radius-sm); margin-bottom: .75rem;
    transition: all var(--trans); cursor: pointer;
}
.room-option:has(input:checked) {
    border-color: var(--c-primary);
    background: var(--c-bg-mid);
}
.room-option label { flex: 1; cursor: pointer; font-weight: 500; }
.room-area-input {
    width: 90px; padding: .4rem .6rem;
    border: 1px solid var(--c-border); border-radius: 4px;
    font-size: .85rem;
}
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.check-option {
    display: flex; align-items: center; gap: .65rem;
    padding: .75rem 1rem;
    background: var(--c-bg-light); border: 2px solid var(--c-border);
    border-radius: var(--radius-sm); cursor: pointer;
    transition: all var(--trans);
}
.check-option:has(input:checked) {
    border-color: var(--c-primary); background: var(--c-bg-mid);
}
.check-option label { cursor: pointer; font-size: .9rem; font-weight: 500; }
.generator-nav {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 2rem; padding-top: 1.5rem;
    border-top: 2px solid var(--c-border);
}
.generator-preview {
    background: var(--c-bg-light); border-radius: var(--radius);
    padding: 2rem; margin-bottom: 2rem; border: 1px solid var(--c-border);
}
.preview-section { margin-bottom: 1.5rem; }
.preview-section h4 { color: var(--c-primary); border-bottom: 1px solid var(--c-border); padding-bottom: .5rem; margin-bottom: .75rem; }
.preview-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.preview-table td { padding: .5rem .75rem; border: 1px solid var(--c-border); }
.preview-table td:first-child { font-weight: 600; width: 40%; background: var(--c-bg); }

/* === 17. NO ARTICLES === */
.no-articles {
    text-align: center; padding: 4rem 2rem;
    color: var(--c-text-light);
}

/* === 18. CATEGORY FILTERS === */
.cat-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 2.5rem;
}
.cat-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem 1rem;
    border-radius: 50px;
    border: 1.5px solid var(--c-border);
    background: #fff;
    color: var(--c-text);
    font-family: var(--ff-body);
    font-size: .82rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background var(--trans), border-color var(--trans), color var(--trans), box-shadow var(--trans);
    white-space: nowrap;
}
.cat-filter-btn:hover {
    background: var(--c-bg-light);
    border-color: var(--c-primary);
    color: var(--c-primary);
}
.cat-filter-btn--active {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: #fff;
    box-shadow: 0 3px 10px rgba(26,159,212,.25);
}
.cat-filter-btn--active:hover {
    background: var(--c-primary-dk);
    border-color: var(--c-primary-dk);
    color: #fff;
}
.cat-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 5px;
    border-radius: 50px;
    background: rgba(0,0,0,.1);
    font-size: .72rem;
    font-weight: 700;
}
.cat-filter-btn--active .cat-count {
    background: rgba(255,255,255,.25);
}
@media (max-width: 600px) {
    .cat-filters { gap: .4rem; }
    .cat-filter-btn { font-size: .78rem; padding: .4rem .8rem; }
}

/* === 18b. PAGINATION === */
.pagination {
    display: flex; justify-content: center; gap: .5rem;
    margin-top: 3rem;
}
.page-link {
    padding: .5rem .9rem; border-radius: var(--radius-sm);
    font-weight: 600; font-size: .9rem;
    border: 2px solid var(--c-border); color: var(--c-text);
    transition: all var(--trans);
}
.page-link:hover, .page-link--active {
    background: var(--c-primary); border-color: var(--c-primary); color: #fff;
}

/* === 19. CONTACT PAGE === */
.contact-page-grid {
    display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem;
    padding: 4rem 0;
}

/* === 20. ICONS SECTION === */
.icons-section { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-top: 2.5rem; }
.icon-card {
    text-align: center; padding: 2rem 1.5rem;
    background: var(--c-bg); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); border: 1px solid var(--c-border);
    transition: transform var(--trans), box-shadow var(--trans);
}
.icon-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.icon-card-icon {
    width: 64px; height: 64px; margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-lt) 100%);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.75rem;
}
.icon-card h3 { font-size: 1rem; margin-bottom: .5rem; }
.icon-card p { font-size: .875rem; color: var(--c-text-light); margin: 0; }
.room-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
}
.room-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: var(--c-bg-mid);
}
.room-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    flex: 1;
}
.room-card-body h3,
.room-card-body p { margin: 0; }
.room-card-body .btn {
    margin-top: auto;
    align-self: flex-start;
    white-space: normal;
}
.room-card-body .btn:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.room-gallery-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0,0,0,.78);
    padding: 1.5rem;
    align-items: center;
    justify-content: center;
}
.room-gallery-modal.active { display: flex; }
.room-gallery-dialog {
    position: relative;
    width: min(1120px, 100%);
    max-height: 92vh;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 18px 60px rgba(0,0,0,.28);
    padding: 1.25rem;
    overflow: hidden;
}
.room-gallery-dialog h2 {
    font-size: 1.25rem;
    margin: 0 3rem 1rem 0;
}
.room-gallery-close {
    position: absolute;
    top: .9rem;
    right: .9rem;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--c-bg-light);
    color: var(--c-text);
    font-size: 1.6rem;
    line-height: 1;
}
.room-gallery-layout {
    display: grid;
    grid-template-columns: 1fr 170px;
    gap: 1rem;
    min-height: 420px;
}
.room-gallery-main {
    position: relative;
    background: #0f1720;
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.room-gallery-main img {
    width: 100%;
    height: min(68vh, 620px);
    object-fit: contain;
}
.room-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.88);
    color: var(--c-primary-dk);
    font-size: 2rem;
    line-height: 1;
    z-index: 1;
}
.room-gallery-prev { left: .9rem; }
.room-gallery-next { right: .9rem; }
.room-gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    overflow-y: auto;
    padding-right: .25rem;
}
.room-gallery-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 3px solid transparent;
    border-radius: 8px;
    padding: 0;
    background: transparent;
    overflow: hidden;
}
.room-gallery-thumb.active { border-color: var(--c-accent); }
.room-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === 21. FOOTER === */
.site-footer { background: var(--c-primary-dk); color: rgba(255,255,255,.85); }
.footer-top { padding: 4rem 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1.2fr 1.5fr; gap: 3rem; }
.footer-heading {
    font-family: var(--ff-head); font-size: .9rem;
    text-transform: uppercase; letter-spacing: .08em;
    color: rgba(255,255,255,.5);
    margin-bottom: 1.25rem;
}
.footer-logo { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.footer-logo-img { height: 70px; width: auto; object-fit: contain; filter: brightness(0) invert(1); }
.footer-logo-icon {
    width: 44px; height: 44px;
    background: var(--c-accent);
    color: #fff; font-family: var(--ff-head);
    font-size: 1.4rem; font-weight: 800;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.footer-logo-name { font-family: var(--ff-head); font-size: 1.1rem; font-weight: 800; color: #fff; line-height: 1; }
.footer-logo-sub { font-size: .65rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .07em; line-height: 1.4; }
.footer-desc { font-size: .875rem; color: rgba(255,255,255,.65); line-height: 1.7; margin-bottom: 1.5rem; }
.footer-social {
    display: inline-flex; align-items: center; gap: .5rem;
    color: rgba(255,255,255,.7); font-size: .875rem;
    padding: .5rem .9rem;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 30px;
    transition: all var(--trans);
}
.footer-social:hover { background: rgba(255,255,255,.1); color: #fff; }
.footer-links { display: flex; flex-direction: column; gap: .5rem; }
.footer-links li { display: flex; align-items: flex-start; gap: .6rem; }
.footer-links a { color: rgba(255,255,255,.7); font-size: .875rem; transition: color var(--trans); }
.footer-links a:hover { color: #fff; }
.footer-links svg { margin-top: .2rem; flex-shrink: 0; color: var(--c-accent); }
.footer-bottom {
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: .8rem; color: rgba(255,255,255,.5);
    display: flex; flex-direction: column; gap: .4rem;
}
.footer-bottom .container { display: flex; flex-direction: column; gap: .25rem; }
.footer-bottom a { color: rgba(255,255,255,.6); transition: color var(--trans); }
.footer-bottom a:hover { color: #fff; }
.footer-wcag { font-size: .75rem; }

/* === 22. SCROLL TO TOP === */
.scroll-top {
    position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--c-primary);
    color: #fff; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow);
    opacity: 0; pointer-events: none;
    transform: translateY(10px);
    transition: all var(--trans);
}
.scroll-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top:hover { background: var(--c-accent); }

/* === 23. ANIMATIONS === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp .6s ease both; }
.fade-in-up-2 { animation: fadeInUp .6s ease .15s both; }
.fade-in-up-3 { animation: fadeInUp .6s ease .3s both; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* === 24. HIGH CONTRAST MODE === */
body.high-contrast {
    --c-primary:    #000080;
    --c-primary-dk: #000060;
    --c-accent:     #ff4500;
    --c-text:       #000000;
    --c-bg:         #ffffff;
    --c-bg-light:   #eeeeee;
    filter: contrast(1.3);
}
body.high-contrast .article-card { border: 2px solid #000; }
body.high-contrast .btn { border-width: 2px; }

/* === 25. PRINT === */
@media print {
    .topbar, .site-header, .site-footer, .scroll-top,
    .hamburger, .lightbox-overlay, .hero-actions, .btn { display: none !important; }
    body { font-size: 12pt; color: #000; }
    a { color: #000; text-decoration: underline; }
    .container { max-width: 100%; }
    .article-layout { grid-template-columns: 1fr; }
    .video-wrapper { display: none; }
}

/* === 25b. BANER POD HERO === */
.hero-bottom-banner {
    width: 100%;
    line-height: 0;
    overflow: hidden;
    position: relative;
    z-index: 5;
    margin-top: 2rem;   /* wyrównanie z clip-path hero */
}
.hero-bottom-banner img {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* === 26. STATS BAR === */
.stats-bar {
    position: relative;
    z-index: 10;
    background: #fff;
    padding: 0;
    margin-top: 4rem;
    box-shadow: 0 8px 40px rgba(14,122,170,.13);
    border-radius: 0 0 var(--radius) var(--radius);
}
.stats-bar-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    divide-x: 1px solid var(--c-border);
}
.stats-bar-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 2rem 2.5rem;
    border-right: 1px solid var(--c-border);
    transition: background var(--trans);
}
.stats-bar-item:last-child { border-right: none; }
.stats-bar-item:hover { background: var(--c-bg-light); }
.stats-bar-icon {
    width: 56px; height: 56px; min-width: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 14px rgba(200,160,64,.25);
}
.stats-bar-num {
    font-family: var(--ff-head);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--c-primary);
    line-height: 1;
    letter-spacing: -.02em;
}
.stats-bar-label {
    font-size: .85rem;
    color: var(--c-text-light);
    margin-top: .2rem;
    font-weight: 500;
}

/* === 26b. PARTNERS === */
.partners-section { padding: 4rem 0; }
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.partner-card {
    background: var(--c-bg);
    border: 2px solid var(--c-border);
    border-radius: var(--radius);
    padding: 1.5rem 1.25rem;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: .75rem;
    text-align: center;
    transition: border-color var(--trans), box-shadow var(--trans), transform var(--trans);
    min-height: 130px;
}
.partner-card:hover {
    border-color: var(--c-primary);
    box-shadow: 0 6px 24px rgba(14,122,170,.14);
    transform: translateY(-4px);
}
.partner-card img {
    max-width: 130px;
    max-height: 64px;
    object-fit: contain;
    filter: grayscale(1) opacity(.7);
    transition: filter var(--trans);
}
.partner-card:hover img { filter: grayscale(0) opacity(1); }
.partner-card-name {
    font-size: .82rem;
    font-weight: 600;
    color: var(--c-text-light);
}

/* === 27. RESPONSIVE === */
@media (max-width: 1100px) {
    .nav-link { padding: .5rem .6rem; font-size: .78rem; }
    .footer-grid { grid-template-columns: 1.5fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
    .hamburger { display: flex; }
    .main-nav {
        display: none;
        position: fixed; inset: 0; top: 0;
        background: var(--c-bg);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        z-index: 999;
        overflow-y: auto;
    }
    .main-nav.open { display: flex; }
    .nav-list { flex-direction: column; align-items: stretch; gap: .4rem; }
    .nav-link { padding: .85rem 1rem; font-size: .95rem; border: 1px solid var(--c-border); }
    .contact-section { grid-template-columns: 1fr; }
    .contact-page-grid { grid-template-columns: 1fr; }
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { order: -1; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .topbar-contact { font-size: .75rem; gap: .75rem; }
    .topbar-actions { gap: .4rem; }
    .hero { min-height: 280px; clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%); }
    .hero-sub { margin-left: 5%; font-size: 2.4rem; padding: .15rem .8rem .3rem; }
    .hero-bottom-banner img { max-height: 140px; }
    .hero-content { padding: 3rem 0; }
    .generator-body { padding: 1.5rem 1rem; }
    .contact-section { gap: 2rem; }
    .articles-grid { grid-template-columns: 1fr; }
    .news-preview-grid { grid-template-columns: repeat(2, 1fr); }
    .icons-section { grid-template-columns: repeat(2, 1fr); }
    .room-gallery-modal { padding: .75rem; }
    .room-gallery-dialog { max-height: 95vh; overflow-y: auto; }
    .room-gallery-layout {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .room-gallery-main img { height: min(58vh, 420px); }
    .room-gallery-thumbs {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 0 .25rem;
    }
    .room-gallery-thumb {
        width: 76px;
        min-width: 76px;
    }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-bar-inner { grid-template-columns: 1fr; }
    .stats-bar-item { border-right: none; border-bottom: 1px solid var(--c-border); padding: 1.5rem 1.75rem; }
    .stats-bar-item:last-child { border-bottom: none; }
    .partners-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) and (min-width: 601px) {
    .stats-bar-inner { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 420px) {
    .news-preview-grid { grid-template-columns: 1fr; }
}

/* === 27. ALERT MESSAGES === */
.alert {
    padding: 1rem 1.5rem; border-radius: var(--radius-sm);
    margin-bottom: 1.5rem; font-weight: 500;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger  { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info    { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }
