/* ============================================================
   ZSEE TME — Główny arkusz stylów
   Zgodny z WCAG 2.1 AA (Ustawa z dnia 4 kwietnia 2019 r.)
   ============================================================ */

/* ===== CSS VARIABLES ===== */
:root {
    --yellow: #ffec00;
    --red: #e30016;
    --dark: #0d0d0d;
    --dark2: #1a1a1a;
    --dark3: #252525;
    --mid: #3a3a3a;
    --light-text: #e0e0e0;
    --light: #ccc;
    --muted: #888;
    --border: rgba(255,236,0,0.15);
    --font-display: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-size-base: 16px;
    --spacing: 1;
}

/* ===== HIGH CONTRAST MODE ===== */
body.high-contrast {
    --dark: #000000;
    --dark2: #000000;
    --dark3: #111111;
    --mid: #000000;
    --light-text: #ffffff;
    --light: #ffffff;
    --muted: #ffff00;
    --yellow: #ffff00;
    --border: rgba(255,255,0,0.5);
}
body.high-contrast * { border-color: #ffff00 !important; outline-color: #ffff00; }
body.high-contrast a { color: #ffff00 !important; text-decoration: underline !important; }
body.high-contrast .nav-link { color: #ffff00 !important; }
body.high-contrast .btn-primary { background: #ffff00 !important; color: #000 !important; }
    body.high-contrast .quick-item {
        color: black !important;
    }

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-body);
    background-color: var(--dark);
    color: var(--light-text);
    line-height: calc(1.6 * var(--spacing));
    overflow-x: hidden;
    position: relative;
}

a {
    color: var(--yellow);
    text-decoration: none;
    transition: opacity 0.2s;
}
a:hover { opacity: 0.8; }
a:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 3px;
    border-radius: 2px;
}

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

/* ===== SKIP LINK ===== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 12px;
    background: var(--yellow);
    color: #000;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 0 0 6px 6px;
    z-index: 9999;
    font-family: var(--font-body);
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ===== ACCESSIBILITY BAR ===== */
#accessibility-bar {
    background: var(--dark3);
    border-bottom: 2px solid var(--yellow);
    padding: 6px 0;
    position: relative;
    z-index: 100;
    display: none;
}
#accessibility-bar.a11y-open { display: block; }

.a11y-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.a11y-label {
    font-size: 0.72rem;
    color: var(--yellow);
    font-family: var(--font-body);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-right: 4px;
}
.a11y-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--light-text);
    font-family: var(--font-body);
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.a11y-btn:hover, .a11y-btn.active { background: var(--yellow); color: #000; border-color: var(--yellow); }
.a11y-btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.a11y-btn .bi { font-size: 15px; line-height: 1; }
.a11y-separator { width: 1px; height: 18px; background: var(--border); }
.a11y-font-size { display: flex; align-items: center; gap: 4px; }
.a11y-links { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.a11y-links a { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.a11y-links a:hover { color: var(--yellow); }

/* ===== ACCESSIBILITY PAGE TOGGLE BUTTON ===== */
.a11y-page-toggle {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 300;
    background: var(--yellow);
    border: none;
    padding: 7px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    color: #000;
    border-radius: 0 6px 0 0;
    transition: background 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    line-height: 1;
    white-space: nowrap;
    height: 30px;
}
.a11y-page-toggle:hover,
.a11y-page-toggle[aria-expanded="true"] { background: #fff176; }
.a11y-page-toggle:focus-visible { outline: 3px solid #000; outline-offset: 2px; }
.a11y-page-toggle svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ===== CIRCUIT BOARD BACKGROUND ===== */
.circuit-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    background-image: url('../images/background.png');
    background-repeat: repeat;
    pointer-events: none;
}

/* ===== LOGO HEADER (non-sticky) ===== */
#logo-header { background: var(--dark3); }

.logo-header-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-shield-img {
    height: 100px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
    transition: transform 0.2s;
}
.header-shield-img:hover { transform: scale(1.05); }

.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-area img { height: 80px; width: auto; }

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    font-size: 1.8rem;
}
.logo-text .abbr { font-family: var(--font-display); font-weight: 800; color: var(--yellow); }

.logo-text .full {
    color: var(--light-text);
    font-size: 1.1rem;
}

/* ===== HEADER / NAV ===== */
#main-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: var(--dark3);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--yellow);
}
.header-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}
.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; flex-wrap: wrap; justify-content: flex-start; }
.nav-item { position: relative; }
.nav-link {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    color: var(--yellow);
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    background: transparent;
    border: none;
    cursor: pointer;
}
.nav-link:hover, .nav-link:focus-visible { color: var(--yellow); background: rgba(255,236,0,0.07); }
.nav-link.text-main { color: var(--yellow) !important; }
.nav-link .bi { font-size: 12px; line-height: 1; }

/* Invisible bridge fills gap between button and dropdown */
.nav-item::after { content: ''; position: absolute; top: 100%; left: 0; width: 100%; height: 12px; display: none; }
.nav-item:hover::after { display: block; }

.dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 9px);
    left: 0;
    background: var(--dark2);
    border: 1px solid var(--border);
    border-top: 2px solid var(--yellow);
    border-radius: 0 0 8px 8px;
    min-width: 220px;
    z-index: 200;
    padding: 8px 0;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown { display: block; }
.dropdown a { display: block; padding: 8px 18px; font-size: 0.85rem; color: var(--light-text); font-family: var(--font-body); transition: all 0.15s; }
.dropdown a:hover { background: rgba(255,236,0,0.07); color: var(--yellow); padding-left: 24px; }

/* Nested submenu */
.dropdown-item-sub { position: relative; }
.dropdown-item-sub > a { display: flex !important; justify-content: space-between; align-items: center; gap: 8px; }
.dropdown-item-sub > a:hover { padding-left: 18px !important; }
.dropdown-sub {
    display: none;
    position: absolute;
    top: -1px; left: 100%;
    background: var(--dark2);
    border: 1px solid var(--border);
    border-top: 2px solid var(--yellow);
    border-radius: 0 8px 8px 8px;
    min-width: 210px;
    z-index: 300;
    padding: 8px 0;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}
.dropdown-item-sub:hover .dropdown-sub,
.dropdown-item-sub:focus-within .dropdown-sub { display: block; }
.dropdown-sub-arrow { width: 10px; height: 10px; flex-shrink: 0; opacity: 0.6; }

.header-cta { display: flex; gap: 10px; flex-shrink: 0; width: 100%; max-width: 200px; }

.btn-primary {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--yellow);
    color: #000;
    padding: 8px 18px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    line-height: 2;
}
.btn-primary:hover { background: #fff176; color: #000; opacity: 1; }
.btn-primary:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.btn-outline {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    background: transparent;
    color: var(--light-text);
    padding: 8px 18px;
    border-radius: 4px;
    border: 3px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-outline:hover { border-color: var(--yellow); color: var(--yellow); }

/* Mobile nav toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 6px 10px;
    color: var(--light-text);
    cursor: pointer;
    margin-left: auto;
}
.menu-toggle svg { width: 22px; height: 22px; }

/* ===== MAIN WRAPPER ===== */
#main-content {
    width: 100%;
    max-width: 1600px;
    margin: auto;
    background-color: var(--mid);
    box-shadow: 0 0 20px 10px rgba(0,0,0,0.4);
}
.page-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 100px;
}

/* ===== HERO ===== */
#hero {
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(to right, rgba(58,58,58,0.95) 40%, rgba(58,58,58,0) 75%), url('../images/hero-bg.png');
    background-size: cover;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: white;
    margin-bottom: 20px;
}
.hero-tag::before { content: ''; display: inline-block; width: 28px; height: 2px; background: white; }
.hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 3rem;
    line-height: 1.0;
    letter-spacing: -0.01em;
    color: var(--yellow);
    margin-bottom: 8px;
}
.hero-title span { display: block; }
.hero-subtitle { font-size: 0.95rem; color: var(--light-text); margin-bottom: 32px; line-height: 1.6; max-width: 480px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 3px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 40px;
}
.stat-item { background: #333; color: white; padding: 20px 16px; text-align: center; }
.stat-number { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; line-height: 1; }
.stat-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; margin-top: 4px; }

.hero-visual { position: relative; }
.hero-board {
    background: var(--dark2);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.hero-board img { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; mix-blend-mode: screen; }
.hero-board-overlay { position: absolute; top: 0; right: 0; }
.hero-board-overlay img.logo-big { width: 160px; opacity: 1; filter: drop-shadow(0 0 30px rgba(0,0,0,0.6)); }
.hero-badge {
    background: var(--red);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 4px;
}

/* ===== SECTION COMMON ===== */
.section { padding: 64px 0; }
.section-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; gap: 16px; }
.section-label { font-family: var(--font-display); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 6px; }
.section-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.6rem); color: #fff; line-height: 1.05; }
.section-link {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 3px solid var(--border);
    padding-bottom: 2px;
    white-space: nowrap;
    flex-shrink: 0;
}
.section-link:hover { color: var(--yellow); border-color: var(--yellow); }

/* ===== QUICK LINKS BELT ===== */
#quick-links { background: var(--yellow); padding: 0; border-top: none; }
.quick-links-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 160px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.quick-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    color: #000;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-right: 1px solid rgba(0,0,0,0.12);
    transition: background 0.2s;
    text-decoration: none;
}
.quick-item:last-child { border-right: none; }
.quick-item:hover { background: rgba(0,0,0,0.08); color: #000; opacity: 1; }
.quick-item:focus-visible { outline: 3px solid #000; outline-offset: -3px; }
.quick-icon {
    width: 36px; height: 36px;
    background: rgba(0,0,0,0.1);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.quick-icon svg { width: 18px; height: 18px; }
.quick-item-text .quick-sub {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.72rem;
    opacity: 0.6;
    text-transform: none;
    letter-spacing: 0;
    display: block;
    margin-top: 1px;
}

/* ===== NEWS CARDS ===== */
.news-grid { display: grid; grid-template-columns: 2fr 1fr; column-gap: 24px; }
.news-main { grid-row: span 2; }
.news-card {
    border: 3px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
}
.news-card:hover { border-color: rgba(255,236,0,0.35); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.news-card:focus-within { border-color: var(--yellow); }
.news-card-thumb {
    background: var(--dark3);
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.news-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card-thumb.placeholder { background: linear-gradient(135deg, var(--dark3) 0%, var(--mid) 100%); }
.news-card-thumb .cat-badge {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--red);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 3px;
}
.news-card-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.news-card-date { font-size: 0.72rem; color: var(--light-text); font-family: var(--font-body); letter-spacing: 0.05em; margin-bottom: 8px; }
.news-card-title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: #fff; line-height: 1.25; margin-bottom: 10px; }
.news-card.big .news-card-title { font-size: 1.5rem; }
.news-card-excerpt { font-size: 0.86rem; color: var(--light-text); line-height: 1.6; flex: 1; margin-bottom: 16px; }
.news-read-more {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--yellow);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    align-self: flex-start;
}
.news-read-more .bi { font-size: 14px; line-height: 1; }
.news-side { display: flex; flex-direction: column; gap: 24px; }
.news-side .news-card-thumb { aspect-ratio: 16/7; }

/* ===== PROFILE SECTION (kierunki) ===== */
#profiles { background: var(--dark2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.profiles-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; border-radius: 8px; overflow: hidden; }
.profile-card {
    background: var(--dark2);
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
    transition: background 0.2s;
    display: flex;
    flex-direction: column;
}
.profile-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: var(--yellow);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.25s;
}
.profile-card:hover { background: var(--dark3); }
.profile-card:hover::before { transform: scaleY(1); }

.profile-icon {
    width: 52px;
    height: 52px;
    background: rgba(255,236,0,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    flex-shrink: 0;
}

.profile-icon .bi {
    font-size: 22px;
    color: var(--red);
    line-height: 1;
}
.profile-title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: #fff; margin-bottom: 8px; line-height: 1.2; }
.profile-desc { font-size: 0.83rem; color: var(--muted); line-height: 1.55; flex: 1; }
.profile-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--red);
    margin-top: 16px;
    align-self: flex-start;
}

/* ===== EVENTS / TERMINARZ ===== */
.events-list { display: flex; flex-direction: column; gap: 2px; }
.event-item {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 16px 20px;
    background: var(--dark2);
    border-radius: 6px;
    border-left: 3px solid transparent;
    transition: all 0.2s;
    text-decoration: none;
}
.event-item:hover { border-left-color: var(--yellow); background: var(--dark3); }
.event-date { text-align: center; }
.event-date .day { font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--yellow); line-height: 1; }
.event-date .month { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.event-name { font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; color: var(--light-text); margin-bottom: 3px; }
.event-desc { font-size: 0.78rem; color: var(--muted); }
.event-tag {
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 3px;
    background: rgba(255,236,0,0.1);
    color: var(--yellow);
    white-space: nowrap;
}
.event-tag.red { background: rgba(227,0,22,0.15); color: #ff4d5a; }

/* ===== INFO GRID ===== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

/* ===== CONTACT / INFO ===== */
.info-block { border: 3px solid var(--border); border-radius: 10px; padding: 28px; }
.info-block-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.info-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 0.88rem; }
.info-row:last-child { border-bottom: none; }
.info-row .bi { font-size: 16px; color: var(--yellow); flex-shrink: 0; margin-top: 2px; line-height: 1; }
.info-row-label { min-width: 120px; flex-shrink: 0; }
.info-row-val { color: var(--light-text); }

/* ===== SOCIAL STRIP ===== */
.social-strip { display: flex; gap: 10px; }
.social-btn {
    width: 40px; height: 40px;
    border-radius: 6px;
    border: 3px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    color: var(--muted);
}
.social-btn:hover { background: var(--yellow); color: #000; border-color: var(--yellow); opacity: 1; }
.social-btn .bi { font-size: 18px; line-height: 1; }

/* ===== PARTNERS CAROUSEL ===== */
#partners {
    padding: 52px 0;
    border-top: 3px solid var(--border);
    border-bottom: 3px solid var(--border);
    overflow: hidden;
    background: #666;
}
.partners-track-wrap { overflow: hidden; background-color: white; position: relative; }
.partners-track {
    display: flex;
    gap: 0;
    width: max-content;
    animation: scroll-partners 32s linear infinite;
}
.partners-track:hover { animation-play-state: paused; }
@keyframes scroll-partners {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.partner-logo {
    flex-shrink: 0;
    width: 160px; height: 100px;
    margin: 0 24px;
    display: flex; align-items: center; justify-content: center;
    transition: border-color 0.2s;
    padding: 12px;
    border-radius: 8px;
}
.partner-logo img { height: 100%; width: auto; object-fit: contain; transition: opacity 0.2s; }
.partner-logo:hover img { opacity: 1; }

/* ===== CONTACT + MAP ===== */
.contact-map-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; row-gap: 10px; align-items: stretch; }
.map-container { border-radius: 10px; overflow: hidden; border: 3px solid var(--border); min-height: 340px; }
.map-container iframe { width: 100%; height: 100%; min-height: 340px; display: block; border: 0; filter: invert(90%) hue-rotate(180deg) brightness(0.85) contrast(1.1); }
.js-map { position: relative; width: 100%; height: 100%; min-height: 340px; }
.js-map iframe { width: 100%; height: 100%; min-height: 340px; display: block; border: 0; filter: invert(90%) hue-rotate(180deg) brightness(0.85) contrast(1.1); }
.map-consent-placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 100%; height: 100%; min-height: 340px;
    background: var(--dark2); color: var(--muted);
    text-align: center; padding: 32px 24px; gap: 16px;
    border-radius: 8px;
}
.map-consent-placeholder p { font-size: 0.88rem; line-height: 1.6; margin: 0; }
.map-consent-placeholder p::before {
    content: '\1F5FA'; display: block; font-size: 2rem; margin-bottom: 8px; opacity: 0.5;
}
.btn-map-consent {
    background: var(--yellow); color: #000;
    font-family: var(--font-display); font-weight: 700; font-size: 0.82rem;
    letter-spacing: 0.08em; text-transform: uppercase;
    padding: 10px 22px; border-radius: 4px; border: none; cursor: pointer;
    transition: opacity 0.2s;
}
.btn-map-consent:hover { opacity: 0.85; }

/* ===== RODO — lista klauzul ===== */
.rodo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 32px;
}
.rodo-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: var(--dark2);
    border: 2px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.rodo-card:hover, .rodo-card:focus-visible {
    border-color: var(--yellow);
    transform: translateX(4px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.35);
    outline: none;
}
.rodo-card-icon {
    font-size: 1.4rem;
    color: var(--yellow);
    flex-shrink: 0;
    line-height: 1;
}
.rodo-card-title {
    flex: 1;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.35;
}
.rodo-card-arrow {
    font-size: 1.1rem;
    color: var(--muted);
    flex-shrink: 0;
    transition: color 0.2s;
}
.rodo-card:hover .rodo-card-arrow,
.rodo-card:focus-visible .rodo-card-arrow { color: var(--yellow); }

/* ===== FOOTER ===== */
#main-footer { background: var(--dark3); border-top: 2px solid var(--yellow); padding: 48px 0 0; }
.footer-inner {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 120px;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-logo { height: 48px; margin-bottom: 16px; }
.footer-about { font-size: 0.83rem; color: var(--muted); line-height: 1.65; margin-bottom: 20px; }
.footer-col-title { font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.83rem; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--yellow); opacity: 1; }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 16px 160px;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-copy, .footer-copy a {
    font-size: 0.75rem;
    color: var(--muted);
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 0.75rem; color: var(--muted); }
    .footer-legal a:hover, .footer-copy a:hover {
        color: var(--yellow);
    }

/* Footer BIP / logos */
.footer-logos-col { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; justify-content: flex-start; }
.footer-logo-link {
    display: block;
    opacity: 0.75;
    transition: opacity 0.2s;
    text-decoration: none;
}
.footer-logo-link:hover { opacity: 1; }
.footer-logo-link img { display: block; width: auto; max-width: 110px; height: auto; }
/* Legacy selectors kept for backwards compat */
.footer-bip-logo, .footer-city-logo {
    display: block;
    opacity: 0.75;
    transition: opacity 0.2s;
    text-decoration: none;
}
.footer-bip-logo:hover, .footer-city-logo:hover { opacity: 1; }
.footer-bip-logo img { height: 30px; width: auto; }
.footer-bip-text { display: none; }
.footer-city-logo img { height: 36px; width: auto; object-fit: contain; }

/* ===== COOKIE BANNER ===== */
#cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--dark2);
    border-top: 2px solid var(--yellow);
    padding: 16px 24px;
    box-shadow: 0 -8px 30px rgba(0,0,0,0.5);
}
.cookie-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1600px;
    margin: auto;
}
#cookie-banner p { font-size: 0.82rem; color: var(--muted); flex: 1; min-width: 200px; }
#cookie-banner a { color: var(--yellow); }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btns button {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
}
.btn-accept { background: var(--yellow); color: #000; }
.btn-reject { background: transparent; color: var(--muted); border: 1px solid var(--border) !important; }
.btn-reject:hover { color: var(--light-text); }

/* ===== IMAGE CAROUSEL (homepage) ===== */
/* Scalona sekcja: hero jest slajdem 0, obrazki są slajdami 1..N */
#hero.has-carousel { padding: 0; background-image: none; background-color: var(--dark-bg); }
.img-carousel-wrap { position: relative; overflow: hidden; }
.img-carousel-track { display: flex; transition: transform 0.65s cubic-bezier(0.4,0,0.2,1); }
.img-carousel-slide { flex-shrink: 0; width: 100%; display: block; overflow: hidden; }
.img-carousel-slide img { width: 100%; aspect-ratio: 16/9; object-fit: cover; object-position: top; display: block; }

/* Slajd hero (treść tekstowa) — zachowuje wygląd oryginalnego hero */
.hero-content-slide {
    background-image: linear-gradient(to right, rgba(58,58,58,0.95) 40%, rgba(58,58,58,0) 75%), url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    min-height: 420px;
    padding: 20px 0 20px;
    box-sizing: border-box;
}
.hero-content-slide .page-wrapper { width: 100%; }
.img-carousel-btn {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.25);
    width: 44px; height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    transition: background 0.2s, border-color 0.2s;
}
.img-carousel-btn:hover { background: var(--yellow); border-color: var(--yellow); color: #000; }
.img-carousel-btn svg { width: 20px; height: 20px; }
.img-carousel-btn.prev { left: 16px; }
.img-carousel-btn.next { right: 16px; }
.img-carousel-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; z-index: 10; }
.img-carousel-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.4); border: none; cursor: pointer; padding: 0; transition: background 0.2s, transform 0.2s; }
.img-carousel-dot.active { background: var(--yellow); transform: scale(1.3); }

/* ===== ARTICLE PAGE ===== */
.breadcrumb { padding: 32px 0 16px; display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--muted); flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--yellow); opacity: 1; }
.breadcrumb-sep { color: var(--border); }
.breadcrumb-no-link { color: var(--muted); cursor: default; }
.breadcrumb span { color: var(--light-text); }
.breadcrumb span.breadcrumb-no-link { color: var(--muted); }

.article-section { padding: 0 0 32px; }
.article-header { border-bottom: 3px solid var(--border); margin-bottom: 28px; padding-bottom: 20px; }
.article-cat { display: inline-flex; align-items: center; gap: 6px; background: var(--red); color: #fff; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; border-radius: 3px; margin-bottom: 14px; }
.article-title { font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); color: #fff; line-height: 1.1; margin-bottom: 16px; }
.article-meta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.article-meta-item { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--muted); }
.article-meta-item .bi { font-size: 14px; color: var(--yellow); line-height: 1; }
.article-hero-img { width: 100%; object-fit: cover; border-radius: 6px; display: block; margin: 0 0 28px; border: 1px solid var(--border); }
.article-hero-trigger { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; border-radius: 6px; overflow: hidden; margin: 0 0 28px; text-align: left; }
.article-hero-trigger .article-hero-img { margin: 0; }
.article-hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0); display: flex; align-items: center; justify-content: center; transition: background 0.3s; }
.article-hero-trigger:hover .article-hero-overlay,
.article-hero-trigger:focus-visible .article-hero-overlay { background: rgba(0,0,0,0.38); }
.article-hero-overlay .bi { color: #fff; font-size: 40px; line-height: 1; opacity: 0; transition: opacity 0.3s; }
.article-hero-trigger:hover .article-hero-overlay .bi,
.article-hero-trigger:focus-visible .article-hero-overlay .bi { opacity: 1; }
.article-hero-trigger:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.article-body { font-size: 1rem; color: #fff; line-height: 1.75; }
.article-body p { margin-bottom: 20px; }
.article-body h2 { font-weight: 700; font-size: 1.25rem; color: #fff; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.article-body h3 { font-weight: 700; font-size: 1.05rem; color: var(--yellow); margin: 24px 0 10px; }
.article-body ul, .article-body ol { margin: 0 0 20px 1.5em; }
.article-body li { margin-bottom: 6px; }
.article-body a { color: var(--yellow); }
.article-body blockquote {
    border-left: 3px solid var(--yellow);
    padding: 12px 20px;
    margin: 24px 0;
    background: var(--dark2);
    border-radius: 0 6px 6px 0;
    color: var(--light);
    font-style: italic;
}

/* GALLERY */
.gallery-section { margin: 36px 0; }
.gallery-carousel-wrap { position: relative; }
.gallery-carousel { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.gallery-carousel::-webkit-scrollbar { height: 4px; }
.gallery-carousel::-webkit-scrollbar-track { background: var(--dark3); border-radius: 2px; }
.gallery-carousel::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.gallery-carousel::-webkit-scrollbar-thumb:hover { background: var(--yellow); }
.gallery-item { position: relative; flex: 0 0 260px; height: 175px; overflow: hidden; border-radius: 6px; border: 1px solid var(--border); background: var(--dark3); cursor: pointer; padding: 0; outline: none; display: block; scroll-snap-align: start; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; display: block; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.06); }
.gallery-item-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background 0.3s; display: flex; align-items: center; justify-content: center; }
.gallery-item:hover .gallery-item-overlay, .gallery-item:focus-visible .gallery-item-overlay { background: rgba(0,0,0,0.4); }
.gallery-item-overlay .bi { opacity: 0; transition: opacity 0.3s; color: #fff; font-size: 32px; line-height: 1; }
.gallery-item:hover .gallery-item-overlay .bi, .gallery-item:focus-visible .gallery-item-overlay .bi { opacity: 1; }
.gallery-item:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 40px; height: 40px; background: rgba(13,13,13,0.85); border: 1px solid var(--border); color: var(--light-text); border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; backdrop-filter: blur(4px); }
.gallery-arrow:hover { background: var(--yellow); color: #000; border-color: var(--yellow); }
.gallery-arrow:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.gallery-arrow svg { width: 18px; height: 18px; }
.gallery-arrow.prev { left: -16px; }
.gallery-arrow.next { right: -16px; }
.gallery-arrow[disabled] { opacity: 0.3; pointer-events: none; }

/* ARTICLE TAGS */
.article-tags { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tags-label { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.tag { background: var(--dark2); border: 1px solid var(--border); color: var(--muted); font-size: 0.78rem; padding: 4px 12px; border-radius: 20px; transition: all 0.2s; }
.tag:hover { border-color: var(--yellow); color: var(--yellow); opacity: 1; }

/* ARTICLE NAV */
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.art-nav-item { background: var(--dark2); border: 1px solid var(--border); border-radius: 8px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; transition: all 0.2s; text-decoration: none; }
.art-nav-item:hover { border-color: rgba(255,236,0,0.35); transform: translateY(-2px); opacity: 1; }
.art-nav-label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.art-nav-title { font-size: 0.88rem; color: var(--light-text); font-weight: 600; line-height: 1.35; }
.art-nav-item.next { text-align: right; }

/* PAGE (statyczne strony — bez sidebara) */
.page-section { padding: 0 0 32px; }
.page-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
.page-grid > article { min-width: 0; }
.page-header { border-bottom: 3px solid var(--border); margin-bottom: 28px; padding-bottom: 20px; }
.page-title { font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); color: #fff; line-height: 1.1; margin-bottom: 16px; }
.page-hero-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; display: block; margin: 0 0 28px; border: 1px solid var(--border); }
.page-body { font-size: 0.95rem; color: #fff; line-height: 1.75; }
.page-body p { margin-bottom: 20px; }
.page-body h2 { font-weight: 700; font-size: 1.25rem; color: #fff; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.page-body h3 { font-weight: 700; font-size: 1.05rem; color: var(--yellow); margin: 24px 0 10px; }
.page-body ul, .page-body ol { margin: 0 0 20px 1.5em; }
.page-body li { margin-bottom: 6px; }
.page-body a { color: var(--yellow); }
.page-body blockquote {
    border-left: 3px solid var(--yellow);
    padding: 12px 20px;
    margin: 24px 0;
    background: var(--dark2);
    border-radius: 0 6px 6px 0;
    color: var(--light);
    font-style: italic;
}

/* SIDEBAR */
.article-grid { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.article-grid > article { min-width: 0; }
.sidebar-block { border: 3px solid var(--border); border-radius: 8px; padding: 20px; margin-bottom: 20px; }
.sidebar-title { font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--yellow); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.sidebar-news-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.sidebar-news-item:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-news-thumb { width: 64px; height: 48px; border-radius: 4px; overflow: hidden; flex-shrink: 0; background: var(--dark3); }
.sidebar-news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-news-date { font-size: 0.68rem; color: var(--muted); margin-bottom: 3px; }
.sidebar-news-title { font-size: 0.8rem; color: var(--light-text); font-weight: 600; line-height: 1.3; }
.sidebar-news-title a { color: var(--light-text); }
.sidebar-news-title a:hover { color: var(--yellow); opacity: 1; }

/* LIGHTBOX */
#lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.92); display: none; align-items: center; justify-content: center; }
#lightbox.open { display: flex; }
.lb-inner { position: relative; max-width: 90vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; gap: 12px; }
#lb-img { max-width: 90vw; max-height: 80vh; border-radius: 6px; border: 1px solid var(--border); object-fit: contain; display: block; }
#lb-caption { color: var(--light-text); font-size: 0.85rem; text-align: center; max-width: 600px; }
#lb-counter { color: var(--muted); font-size: 0.78rem; }
.lb-btn { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; width: 48px; height: 64px; border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; font-size: 1.5rem; }
.lb-btn:hover { background: rgba(255,236,0,0.2); border-color: var(--yellow); }
.lb-btn:focus-visible { outline: 2px solid var(--yellow); }
#lb-prev { left: 16px; }
#lb-next { right: 16px; }
#lb-close { position: fixed; top: 16px; right: 16px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: background 0.2s; }
#lb-close:hover { background: var(--red); border-color: var(--red); }
#lb-close:focus-visible { outline: 2px solid var(--yellow); }

/* ARCHIVE PAGE */
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.archive-header { border-bottom: 1px solid var(--border); margin-bottom: 28px; padding-bottom: 20px; }
.archive-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.6rem); color: #fff; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; padding-top: 24px; padding-bottom: 24px; border-top: 1px solid var(--border); }
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 4px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.88rem;
    background: var(--dark2);
    border: 1px solid var(--border);
    color: var(--muted);
    transition: all 0.2s;
}
.pagination a:hover { border-color: var(--yellow); color: var(--yellow); opacity: 1; }
.pagination .current { background: var(--yellow); color: #000; border-color: var(--yellow); }

/* SEARCH FORM */
.search-form { display: flex; align-items: center; gap: 0; background: var(--dark3); border: 3px solid var(--border); border-radius: 6px; overflow: hidden; width: 100%; flex-shrink: 0; }
.search-form input { background: transparent; border: none; outline: none; color: var(--light-text); font-family: var(--font-body); font-size: 0.85rem; padding: 7px 12px; flex: 1; width: 0; }
.search-form input::placeholder { color: var(--muted); }
.search-form button { background: transparent; border: none; padding: 7px 10px; color: var(--muted); cursor: pointer; display: flex; align-items: center; }
.search-form button:hover { color: var(--yellow); }
.search-form button .bi { font-size: 16px; line-height: 1; }

/* SCROLL TO TOP */
.scroll-top-btn {
    height: 30px;
    display: none;
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 400;
    background: var(--yellow);
    color: #000;
    border: none;
    border-radius: 6px 0 0 0;
    padding: 10px 22px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    align-items: center;
    gap: 7px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
    white-space: nowrap;
}
.scroll-top-btn.visible { opacity: 1; pointer-events: auto; }
.scroll-top-btn:hover, .scroll-top-btn:focus-visible { background: #f5c842; transform: translateY(-3px); outline: 2px solid var(--yellow); outline-offset: 2px; }

/* ===== KONTAKT PAGE STYLES ===== */
.contact-page-wrap {
    padding: 0 0 64px;
}

.contact-hero-bar {
    background: var(--dark2);
    border-bottom: 1px solid var(--border);
    padding: 40px 0 32px;
    margin-bottom: 48px;
}

.contact-school-name {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--yellow);
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.contact-school-sub {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0;
}

/* Sekcja główna — dane + mapa */
.contact-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: stretch;
}

@media (max-width: 900px) {
    .contact-main-grid {
        grid-template-columns: 1fr;
    }
}

/* Bus lines */
.bus-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.bus-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--dark2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 16px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1rem;
    color: #000;
    background: var(--yellow);
    text-decoration: none;
    transition: opacity 0.15s, transform 0.15s;
}

.bus-chip:hover {
    opacity: 0.85;
    transform: translateY(-2px);
    color: #000;
}

.bus-chip .bus-icon {
    font-size: 1rem;
}

.bus-note {
    margin-top: 16px;
    font-size: 0.82rem;
}

.bus-note a {
    color: var(--yellow);
    text-decoration: none;
}

.bus-note a:hover {
    text-decoration: underline;
}

/* Social strip */
.contact-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* ANIMATIONS */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeInUp 0.5s ease both; }
.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1280px) {
    .profiles-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .page-wrapper {
        padding: 0 24px;
    }
    .circuit-bg { display: none; }
    .quick-links-inner { padding: 0 24px; grid-template-columns: 1fr 1fr; }
    .logo-header-inner { padding: 6px 16px; }
    .circuit-bg {
        display: none;
    }

    .logo-text {
        font-size: 1.4rem;
    }

    .header-inner {
        padding-left: 24px;
    }
}
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { display: none; }
    .news-grid { grid-template-columns: 1fr; }
    .news-main { grid-row: auto; }
    .profiles-grid { grid-template-columns: 1fr 1fr; }
    .two-col { grid-template-columns: 1fr; gap: 24px; }
    .quick-item { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.12); }
    .article-grid { grid-template-columns: 1fr; }
    .archive-grid { grid-template-columns: 1fr 1fr; }
    .contact-map-grid { grid-template-columns: 1fr; }
    .footer-inner {
        padding: 0 24px;
        grid-template-columns: 1fr 1fr 1fr;
    }
    .footer-bottom {
        padding: 16px 24px;
    }
    .footer-brand {
        grid-column: span 2;
    }
    .footer-logos-col {
        grid-row-start: 1;
        grid-column-start: 3;
        justify-content: space-evenly;
        align-items: center;
    }
    .footer-inner nav {
        text-align: center;
    }
    .footer-bottom {
        text-align: center;
    }

    .footer-copy, .footer-legal {
        width: 100%;
    }
    .footer-legal {
        justify-content: center;
    }
	
	.news-main {
		margin-bottom: 24px;
	}
}
@media (max-width: 768px) {
    .main-nav { display: none; }
    .main-nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--dark2); border-bottom: 2px solid var(--yellow); padding: 16px; z-index: 150; gap: 4px; }
    .menu-toggle { display: flex; }
    .header-cta { display: none; }
    .profiles-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .quick-links-inner {
        grid-template-columns: 1fr;
    }
    .a11y-links { display: none; }
    #hero { padding: 40px 0; }
    .section { padding: 40px 0; }
    .logo-area img { height: 44px; }
    .logo-text { font-size: 1rem; }

    .logo-text .full {
        font-size: 0.8rem;
    }
    .header-shield-img { height: 60px; }
    .header-inner { padding: 4px 12px; }
    .logo-header-inner { padding: 5px 12px; }
    .a11y-page-toggle { bottom: 0; left: 0; border-radius: 0 6px 0 0; }
    .dropdown-sub { position: static; left: auto; top: auto; border: none; border-left: 2px solid var(--yellow); border-radius: 0; box-shadow: none; min-width: auto; margin: 4px 0 4px 16px; padding: 4px 0; }
    .dropdown-sub-arrow { display: none; }
    .scroll-top-btn { display: flex; }
    .article-nav { grid-template-columns: 1fr; }
    .archive-grid { grid-template-columns: 1fr; }
    .gallery-arrow { display: none; }
    .gallery-item { flex: 0 0 200px; height: 134px; }
    .dropdown {
        left: 50%;
        transform: translate(-50%, 0%);
    }
    .hero-stats{
        max-width: 400px;
    }
    .stat-item {
        padding: 10px 8px;
    }
    .stat-number {
        font-size: 1rem;
    }
    .stat-label {
        font-size: 0.6rem;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 0.8rem;
    }
    .hero-content-slide {
        background-image: linear-gradient(to right, rgba(58,58,58,0.95) 60%, rgba(58,58,58,0) 100%), url('../images/hero-bg.png');
    }

    /* Opcja A: unified height na mobile — obrazki dopasowują się do wysokości slajdu hero */
    /* Nie ustawiamy stałej wysokości wrapperze — hero content wyznacza wysokość karuzelii */
    /* Flex align-items: stretch rozciąga slajdy obrazków do tej samej wysokości */
    #hero.has-carousel .img-carousel-slide img { width: 100%; height: 100%; aspect-ratio: unset; object-fit: cover; }
    .hero-content-slide { min-height: unset; padding: clamp(20px, 5vw, 40px) 0; }
}

@media (max-width: 540px) {
    .header-shield-img {
        display: none;
    }
}

@media (max-width: 480px) {
    .logo-text .abbr {
        font-size: clamp(0.5rem, 3vw, 1rem);
    }

    .logo-text .full {
        font-size: clamp(0.3rem, 3vw, 1rem);
    }
	
	.info-row {
		flex-wrap: wrap;
	}

    .hero-content-slide {
        background-image: linear-gradient(rgba(58,58,58,0.85), rgba(58,58,58,0.85)), url('../images/hero-bg.png');
    }
}

@media (max-width: 320px) {
    .logo-text {display: none;}
    .logo-area {width: 100%;}
    .logo-area img {margin: auto;}
}
