/* ==========================================================================
   ARKUSZ STYLÓW — ZESPÓŁ SZKOLNO-PRZEDSZKOLNY W POBIEDNEJ
   ==========================================================================

   SPIS SEKCJI (kolejność zachowana dla bezpieczeństwa kaskady CSS)
   01. Ustawienia globalne i podstawowe komponenty
   02. Nagłówek i nawigacja
   03. Hero i sekcje strony głównej
   04. Aktualności i ogłoszenia
   05. Dokumenty
   06. Galeria i lightbox
   07. Kalendarz i panel „Dzisiaj w naszej szkole”
   08. Strefa pracownicza i formularze
   09. Identyfikacja wizualna szkoły
   10. Stopka
   11. Reguły responsywne (media queries)

   UWAGA: Zachowano kolejność istniejących reguł i wszystkie selektory.
   Dzięki temu nie zmienia się priorytet deklaracji ani działanie podstron.
   Powtarzające się selektory wymagają testów wizualnych przed scaleniem.
   ========================================================================== */


:root {
    --primary: #173b70;
    --primary-dark: #10294e;
    --accent: #3984d6;
    --text: #263449;
    --muted: #718096;
    --background: #ffffff;
    --light: #f3f6fa;
    --border: #e3e9f0;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--background);
    line-height: 1.6;
}

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

a:hover {
    color: var(--primary);
}

.container {
    width: min(1160px, 92%);
    margin: 0 auto;
}

/* 02. NAGŁÓWEK I NAWIGACJA */

.site-header {
    background: white;
    border-bottom: 1px solid var(--border);
}

.navbar {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
}

.brand-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: var(--primary);
    color: white;
    display: grid;
    place-items: center;
    font-size: 23px;
    font-weight: bold;
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    font-size: 11px;
    color: var(--muted);
}

.nav-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

/* 03. HERO */

.hero {
    background: linear-gradient(120deg, #10294e, #285c96);
    color: white;
    padding: 105px 0;
}

.hero-content {
    max-width: 1160px;
}

.eyebrow {
    display: block;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.hero .eyebrow {
    color: #b9d8ff;
}

.hero h1 {
    font-size: clamp(38px, 6vw, 62px);
    line-height: 1.15;
    margin: 12px 0 20px;
}

.hero p {
    max-width: 560px;
    color: #e0eaf6;
    font-size: 17px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 13px 23px;
    border-radius: 7px;
    font-weight: 700;
}

.btn-primary {
    background: white;
    color: var(--primary);
}

.btn-primary:hover {
    background: #e8f1ff;
}

/* 03. SEKCJE I KOMPONENTY WSPÓLNE */

.section {
    padding: 75px 0;
}

.section-light {
    background: var(--light);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 32px;
}

h2 {
    font-size: 32px;
    color: var(--primary);
    margin: 0;
}

.text-link {
    font-weight: 700;
}

/* 04. AKTUALNOŚCI I ARTYKUŁY */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.article-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px #173b7015;
}

.card-image,
.card-placeholder {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.card-placeholder {
    display: grid;
    place-items: center;
    background: var(--light);
    color: var(--primary);
    font-weight: bold;
}

.card-body {
    padding: 22px;
}

.card-body h3 {
    color: var(--primary);
    margin: 12px 0;
}

.category {
    display: inline-block;
    color: var(--accent);
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.card-body p {
    color: var(--muted);
    font-size: 14px;
}

/* 05. DOKUMENTY */

.document-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: white;
}

.document-icon {
    width: 48px;
    height: 48px;
    border-radius: 9px;
    background: #e8f1ff;
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: bold;
}

.document-info {
    flex: 1;
}

.document-info strong,
.document-info small {
    display: block;
}

.document-info small {
    color: var(--muted);
    font-size: 12px;
}

/* 06. GALERIA */

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

.gallery-card {
    padding: 28px;
    border-radius: 12px;
    background: var(--light);
    color: var(--text);
}

.gallery-card h3 {
    color: var(--primary);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 30px;
}

.photo-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
}

.photo-grid figure {
    margin: 0;
}

.photo-grid figcaption {
    color: var(--muted);
    padding: 7px;
}

/* 04. SZCZEGÓŁY ARTYKUŁU */

.page-header {
    padding: 65px 0;
    background: var(--light);
}

.page-header h1 {
    font-size: 42px;
    color: var(--primary);
    margin: 0;
}

.page-header p,
.article-meta {
    color: var(--muted);
}

.article-content {
    max-width: 850px;
}

.article-content h1 {
    font-size: 40px;
    color: var(--primary);
    line-height: 1.2;
}

.article-cover {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 12px;
    margin: 25px 0;
}

.article-text {
    font-size: 17px;
    line-height: 1.9;
}

/* 10. STOPKA — STARSZE KOMPONENTY ZACHOWANE DLA KOMPATYBILNOŚCI */

.site-footer {
    background: var(--primary-dark);
    color: white;
    padding: 35px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.footer-content p {
    color: #c5d4e8;
    font-size: 13px;
}

/* 11. RESPONSYWNOŚĆ — UKŁAD PODSTAWOWY */

@media (max-width: 800px) {
    .navbar {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px 0;
    }

    .nav-links {
        gap: 12px;
    }

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

@media (max-width: 550px) {
    .hero {
        padding: 70px 0;
    }

    .section {
        padding: 50px 0;
    }

    .card-grid,
    .gallery-grid,
    .photo-grid {
        grid-template-columns: 1fr;
    }

    .section-heading,
    .footer-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .document-item {
        flex-wrap: wrap;
    }

    .document-info {
        min-width: 150px;
    }
}

/* 06. GALERIA — LICZNIK I INTERAKCJE */

.gallery-counter {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 14px;
    background: #e5efff;
    color: var(--primary);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
}

/* 06. GALERIA — UKŁAD MASONRY */

.photo-grid {
    display: block;
    columns: 3;
    column-gap: 18px;
}

.photo-card {
    display: block;
    width: 100%;
    position: relative;
    padding: 0;
    margin: 0 0 18px;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: var(--light);
    cursor: pointer;
    break-inside: avoid;
    text-align: left;
}

.photo-card img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .35s ease;
}

.photo-card:hover img {
    transform: scale(1.06);
}

.photo-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 18px;
    background: linear-gradient(
        transparent 45%,
        rgba(10, 25, 45, .75)
    );
    opacity: 0;
    transition: opacity .3s ease;
    color: white;
}

.photo-card:hover .photo-overlay,
.photo-card:focus-visible .photo-overlay {
    opacity: 1;
}

.photo-zoom {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: white;
    color: var(--primary);
    font-size: 26px;
}

.photo-caption {
    font-size: 14px;
    font-weight: 600;
}

.photo-card:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

/* 06. GALERIA — LIGHTBOX */

.lightbox {
    position: fixed;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    inset: 0;
    margin: 0;
    padding: 65px 90px;
    border: none;
    background: rgba(8, 15, 28, .97);
    color: white;
    overflow: hidden;
}

.lightbox::backdrop {
    background: rgba(0, 0, 0, .9);
}

.lightbox[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.lightbox-content img {
    max-width: 100%;
    max-height: calc(100% - 65px);
    object-fit: contain;
    border-radius: 5px;
}

.lightbox-footer {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: white;
    font-size: 14px;
}

.lightbox-footer p {
    margin: 15px 0 0;
}

#lightboxCounter {
    color: #b8c9df;
    white-space: nowrap;
}

.lightbox-close,
.lightbox-arrow {
    position: absolute;
    border: none;
    background: rgba(255,255,255,.12);
    color: white;
    cursor: pointer;
    border-radius: 50%;
    transition: background .2s;
}

.lightbox-close:hover,
.lightbox-arrow:hover {
    background: rgba(255,255,255,.3);
}

.lightbox-close {
    top: 20px;
    right: 25px;
    width: 48px;
    height: 48px;
    font-size: 32px;
}

.lightbox-arrow {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    font-size: 20px;
}

.lightbox-arrow:disabled {
    opacity: .3;
    cursor: default;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

@media (max-width: 800px) {
    .photo-grid {
        columns: 2;
    }

    .lightbox {
        padding: 65px 55px;
    }
}

@media (max-width: 500px) {
    .photo-grid {
        columns: 1;
    }

    .lightbox {
        padding: 65px 15px;
    }

    .lightbox-arrow {
        width: 40px;
        height: 40px;
    }

    .lightbox-prev {
        left: 8px;
    }

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

/* 06. GALERIA — LISTA ALBUMÓW */

.gallery-list-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.gallery-list-card {
    overflow: hidden;
    border-radius: 16px;
    background: #f2f5fa;
    transition: transform .25s ease, box-shadow .25s ease;
}

.gallery-list-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(20, 45, 80, .12);
}

.gallery-list-image {
    display: block;
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #dce5f1;
}

.gallery-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.gallery-list-card:hover .gallery-list-image img {
    transform: scale(1.05);
}

.gallery-no-cover {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #64748b;
    font-size: 14px;
}

.gallery-image-count {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 7px 12px;
    border-radius: 20px;
    background: rgba(15, 35, 65, .85);
    color: white;
    font-size: 12px;
}

.gallery-list-content {
    padding: 22px 24px 25px;
}

.gallery-list-content h2 {
    margin: 0 0 10px;
    color: var(--primary);
    font-size: 21px;
}

.gallery-list-content p {
    color: #64748b;
    line-height: 1.6;
}

.gallery-open-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.gallery-open-link:hover {
    text-decoration: underline;
}

@media (max-width: 650px) {
    .gallery-list-grid {
        grid-template-columns: 1fr;
    }

    .gallery-list-image {
        height: 220px;
    }
}

/* 06. GALERIA — FILTROWANIE KATEGORII */

.gallery-filter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.gallery-filter label {
    color: var(--primary);
    font-weight: 700;
}

.gallery-filter select {
    min-width: 220px;
    padding: 12px 15px;
    border: 1px solid #d8e1ed;
    border-radius: 8px;
    background: white;
    color: #26364d;
    font: inherit;
}

.gallery-filter button {
    padding: 12px 22px;
    border: none;
    border-radius: 8px;
    background: var(--primary);
    color: white;
    font-weight: 700;
    cursor: pointer;
}

.gallery-filter button:hover {
    opacity: .9;
}

.filter-reset {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.filter-reset:hover {
    text-decoration: underline;
}

@media (max-width: 500px) {
    .gallery-filter {
        align-items: stretch;
        flex-direction: column;
    }

    .gallery-filter select,
    .gallery-filter button {
        width: 100%;
    }
}

/* 03. STRONA GŁÓWNA — HERO SZKOŁY */

.hero-school {
    padding: 75px 0;
    background: linear-gradient(115deg, #142e52, #28578a);
    color: white;
}

.hero-school-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 55px;
}

.hero-school-content h1 {
    max-width: 560px;
    font-size: clamp(36px, 3.2vw, 48px);
    letter-spacing: -1px;
}

.hero-school-content {
    min-width: 0;
}

.hero-school-content .eyebrow {
    color: #b9d8ff;
    margin-bottom: 20px;
    display: block;
}

.hero-school-content h1 {
    font-size: clamp(34px, 3.5vw, 52px);
    line-height: 1.15;
    margin: 0 0 22px;
    color: white;
}

.hero-school-content h1 span {
    display: block;
}

.hero-school-content p {
    color: #dce8f7;
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 28px;
}

.hero-button {
    display: inline-block;
    padding: 15px 23px;
    border-radius: 8px;
    background: white;
    color: #173b69;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s, background .2s;
}

.hero-button:hover {
    background: #eaf2fc;
    transform: translateY(-2px);
}

.hero-school-image {
    width: 100%;
    height: 390px;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .25);
}

.hero-school-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Responsive layout */

@media (max-width: 850px) {
    .hero-school-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .hero-school-image {
        height: 320px;
    }
}

@media (max-width: 500px) {
    .hero-school {
        padding: 50px 0;
    }

    .hero-school-image {
        height: 240px;
    }

    .hero-school-content h1 {
        font-size: 34px;
    }
}


/* 04. STRONA GŁÓWNA — AKTUALNOŚCI */

.home-news {
    padding: 75px 0;
    background: #fff;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 25px;
    margin-bottom: 35px;
}

.section-heading h2 {
    margin: 10px 0;
    color: var(--primary);
    font-size: 32px;
}

.section-heading p {
    color: #718096;
    margin: 0;
}

.all-news-link {
    color: #2878d0;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.home-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.home-news-card {
    overflow: hidden;
    border-radius: 14px;
    background: white;
    border: 1px solid #e7edf4;
    box-shadow: 0 5px 20px rgba(20, 45, 80, .06);
    transition: transform .25s ease, box-shadow .25s ease;
}

.home-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(20, 45, 80, .12);
}

.home-news-image {
    display: block;
    height: 220px;
    overflow: hidden;
    background: #edf2f8;
}

.home-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.home-news-card:hover .home-news-image img {
    transform: scale(1.05);
}

.news-image-placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    color: #718096;
}

.home-news-content {
    padding: 22px;
}

.home-news-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    color: #8290a3;
    font-size: 12px;
    margin-bottom: 14px;
}

.news-category {
    color: #2878d0;
    font-weight: 700;
}

.home-news-content h3 {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.4;
}

.home-news-content h3 a {
    color: var(--primary);
    text-decoration: none;
}

.home-news-content p {
    color: #64748b;
    line-height: 1.7;
    font-size: 14px;
}

.news-read-more {
    display: inline-block;
    margin-top: 10px;
    color: #2878d0;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

.news-read-more:hover {
    text-decoration: underline;
}

@media (max-width: 850px) {
    .home-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 550px) {
    .home-news-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-news-image {
        height: 220px;
    }
}

/* 04. OGŁOSZENIA */

.announcements-section {
    padding: 45px 0;
    background: #f2f6fb;
}

.announcements-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.announcements-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #173b69;
    color: white;
    font-size: 26px;
    font-weight: 800;
}

.announcements-heading .eyebrow {
    color: #2878d0;
}

.announcements-heading h2 {
    margin: 4px 0 0;
    color: var(--primary);
    font-size: 26px;
}

.announcements-list {
    display: grid;
    gap: 15px;
}

.announcement-card {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 20px;
    padding: 24px;
    border-left: 5px solid #2878d0;
    border-radius: 10px;
    background: white;
    box-shadow: 0 4px 15px rgba(20, 45, 80, .05);
}

.announcement-date {
    color: #718096;
    font-size: 13px;
    font-weight: 700;
}

.announcement-content h3 {
    margin: 0 0 10px;
    color: var(--primary);
    font-size: 19px;
}

.announcement-content p {
    margin: 0 0 10px;
    color: #526176;
    line-height: 1.7;
}

.announcement-content a {
    color: #2878d0;
    font-weight: 700;
    text-decoration: none;
}

.announcement-content a:hover {
    text-decoration: underline;
}

@media (max-width: 550px) {
    .announcement-card {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 18px;
    }
}

/* 04. OGŁOSZENIA PILNE */

.announcement-card.announcement-urgent {
    border-left: 5px solid #dc2626;
    background: #fffafa;
}

.urgent-label {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 11px;
    border-radius: 5px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .7px;
}

/* 03. O NASZEJ SZKOLE */

.school-about {
    padding: 80px 0;
    background: #f2f6fb;
}

.school-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 55px;
}

.school-about-image {
    height: 370px;
    overflow: hidden;
    border-radius: 16px;
    background: #dce5f1;
}

.school-about-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.school-about-placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    color: #64748b;
}

.school-about-content h2 {
    color: var(--primary);
    font-size: 34px;
    margin: 12px 0;
}

.school-about-content h3 {
    color: #2878d0;
    font-size: 19px;
    line-height: 1.5;
}

.school-about-text {
    color: #526176;
    line-height: 1.8;
}

@media (max-width: 750px) {
    .school-about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .school-about-image {
        height: 260px;
    }
}

/* 07. PANEL „DZISIAJ W NASZEJ SZKOLE” */

.school-dashboard {
    padding: 75px 0;
    background: #f2f6fb;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 35px;
}

.dashboard-header h2 {
    color: #183b6b;
    font-size: 32px;
    margin: 12px 0;
}

.dashboard-header p {
    color: #64748b;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-bottom: 25px;
}

.dashboard-clock,
.dashboard-status {
    min-height: 190px;
    padding: 30px;
    border-radius: 16px;
    color: white;
    background: linear-gradient(135deg, #15345d, #245b91);
    box-shadow: 0 8px 24px rgba(20, 50, 85, 0.12);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dashboard-status {
    background: linear-gradient(135deg, #2365a5, #348bd0);
}

.dashboard-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    opacity: 0.8;
    margin-bottom: 15px;
}

#school-clock {
    font-size: clamp(38px, 5vw, 58px);
    font-weight: 700;
    letter-spacing: 2px;
    font-variant-numeric: tabular-nums;
}

#school-date {
    margin-top: 8px;
    font-size: 16px;
    color: #d6e7fa;
}

#school-status {
    font-size: 25px;
    font-weight: 700;
    line-height: 1.4;
}

#school-next-event {
    margin-top: 12px;
    color: #e0efff;
    font-size: 14px;
}

.dashboard-calendar {
    background: white;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(20, 50, 85, 0.06);
}

.calendar-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.calendar-heading h3 {
    color: #183b6b;
    font-size: 22px;
    margin: 0;
}

.calendar-controls {
    display: flex;
    gap: 8px;
}

.calendar-controls button {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 9px;
    background: #eaf2fb;
    color: #245b91;
    font-size: 25px;
    cursor: pointer;
    transition: background 0.2s;
}

.calendar-controls button:hover {
    background: #d4e6f8;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    column-gap: 8px;
    row-gap: 12px;
}

.calendar-day {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: #334155;
    font-size: 14px;
    transition: background 0.2s;
}

/* Weekend w kalendarzu */
.calendar-weekend {
    background: #f1f5f9;
    color: #8493a7;
}

/* Dzisiejszy dzień ma pierwszeństwo */
.calendar-weekend.calendar-today {
    background: #2478c5;
    color: white;
}

.calendar-weekday {
    color: #64748b;
    font-weight: 700;
    font-size: 12px;
}

.calendar-today {
    background: #2478c5;
    color: white;
    font-weight: 700;
}

@media (max-width: 750px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-clock,
    .dashboard-status {
        min-height: 160px;
    }

    .dashboard-calendar {
        padding: 18px;
    }

    .calendar-grid {
        gap: 4px;
    }

    .calendar-day {
        min-height: 36px;
    }
}

.dashboard-status {
    transition: background 0.4s ease;
}

.dashboard-status.status-lesson {
    background: linear-gradient(135deg, #167447, #269b68);
}

.dashboard-status.status-break {
    background: linear-gradient(135deg, #b96b16, #e69a35);
}

.dashboard-status.status-before {
    background: linear-gradient(135deg, #2365a5, #348bd0);
}

.dashboard-status.status-after,
.dashboard-status.status-weekend {
    background: linear-gradient(135deg, #526176, #718096);
}

.dashboard-status.status-empty {
    background: linear-gradient(135deg, #2365a5, #348bd0);
}


/* 04. FILTROWANIE AKTUALNOŚCI */

.article-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.article-filter {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 30px;
    background: #eef3f9;
    color: #38516f;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.article-filter:hover {
    background: #dce9f7;
    color: #174d82;
}

.article-filter.active {
    background: #245b91;
    color: white;
}

.article-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 45px 20px;
    background: #f2f6fb;
    border-radius: 14px;
    color: #526176;
}

.article-empty h3 {
    color: #183b6b;
    margin-bottom: 10px;
}

.article-empty a {
    display: inline-block;
    margin-top: 12px;
    color: #2478c5;
    font-weight: 600;
}

@media (max-width: 600px) {
    .article-filters {
        gap: 8px;
    }

    .article-filter {
        padding: 9px 15px;
        font-size: 13px;
    }
}

/* 08. LOGOWANIE PRACOWNIKÓW */
.document-login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(20, 50, 80, 0.06);
}

.document-login-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.document-login-form label {
    font-weight: 600;
    color: #183b6b;
}

.document-login-form input {
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font: inherit;
}

.document-login-form input:focus {
    outline: 2px solid #348bd0;
    border-color: #348bd0;
}

.document-login-form button {
    cursor: pointer;
    border: none;
}

.login-error {
    color: #b42318;
    background: #fef3f2;
    padding: 12px;
    border-radius: 8px;
}

/* 08. NAWIGACJA STREFY PRACOWNICZEJ */
.nav-login,
.nav-staff {
    color: #2478c5 !important;
    font-weight: 700;
}

.nav-logout-form {
    display: inline-flex;
    margin: 0;
}

.nav-logout {
    background: transparent;
    border: 0;
    padding: 0;
    color: #b45309;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.nav-logout:hover {
    color: #92400e;
}

.nav-login:hover,
.nav-staff:hover {
    color: #174d82 !important;
}

/* 08. PULPIT PRACOWNIKA */

.staff-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 45px;
}

.staff-dashboard-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
}

.staff-dashboard-label {
    display: block;
    color: #64748b;
    font-size: 14px;
    margin-bottom: 12px;
}

.staff-dashboard-number {
    display: block;
    font-size: 42px;
    color: #2478c5;
}

.staff-dashboard-account {
    display: block;
    font-size: 25px;
    color: #1e293b;
    overflow-wrap: anywhere;
}

.staff-dashboard-card p {
    color: #64748b;
    margin: 10px 0 18px;
}

.staff-dashboard-card > a {
    color: #2478c5;
    font-weight: 600;
    text-decoration: none;
}

.staff-dashboard-card > a:hover {
    text-decoration: underline;
}

.staff-dashboard-recent h2 {
    margin-bottom: 22px;
    font-size: 25px;
}

.staff-dashboard-logout {
    background: none;
    border: none;
    padding: 0;
    color: #b45309;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}


/* ========================================
   PULPIT PRACOWNIKA - ULEPSZENIA
======================================== */

/* Kafelki pulpitu */
.staff-dashboard-card {
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.staff-dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(20, 50, 90, 0.10);
}

/* Ikony w kafelkach */
.staff-dashboard-card::before {
    display: block;
    font-size: 26px;
    margin-bottom: 14px;
}

.staff-dashboard-card:nth-child(1)::before {
    content: "📁";
}

.staff-dashboard-card:nth-child(2)::before {
    content: "👤";
}

.staff-dashboard-card:nth-child(3)::before {
    content: "🔒";
}

/* Odstępy i czytelność */
.staff-dashboard-card p {
    line-height: 1.6;
}

.staff-dashboard-card a {
    display: inline-block;
    margin-top: 8px;
}

/* Formularz wylogowania */
.staff-dashboard-card form {
    margin-top: 4px;
}

/* Responsywność */
@media (max-width: 900px) {
    .staff-dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .staff-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .staff-dashboard-card {
        padding: 24px;
    }
}


/* 05. KATEGORIE DOKUMENTÓW */

.document-category {
    margin-bottom: 45px;
}

.document-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5edf7;
}

.document-category-header h2 {
    margin: 0;
    color: #193f73;
    font-size: 23px;
}

.document-category-header span {
    color: #71839e;
    font-size: 13px;
}

.document-category .document-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.document-category .document-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.document-category .document-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(20, 50, 90, 0.07);
}

@media (max-width: 600px) {
    .document-category-header {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* 09. IDENTYFIKACJA WIZUALNA SZKOŁY */

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
}

.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    border-radius: 13px;
    background: #193f73;
    color: #ffffff;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -1px;
    box-shadow: 0 4px 12px rgba(25, 63, 115, 0.18);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.brand-text strong {
    color: #193f73;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.brand-text small {
    color: #71839e;
    font-size: 11px;
}

.brand-text .brand-subtitle {
    color: #9aa8ba;
    font-size: 10px;
}

/* Responsywność nagłówka */

@media (max-width: 900px) {
    .navbar {
        flex-wrap: wrap;
        gap: 15px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 12px;
    }
}

@media (max-width: 600px) {
    .brand-icon {
        width: 46px;
        height: 46px;
        font-size: 23px;
    }

    .brand-text strong {
        font-size: 12px;
    }

    .brand-text small {
        font-size: 10px;
    }

    .nav-links {
        width: 100%;
        justify-content: flex-start;
    }
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo {
    width: 72px;
    height: 82px;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.brand-text strong {
    color: #193f73;
    font-size: 14px;
    font-weight: 800;
}

.brand-text small {
    color: #71839e;
    font-size: 12px;
}

@media (max-width: 600px) {
    .brand-logo {
        width: 55px;
        height: 65px;
    }

    .brand-text strong {
        font-size: 11px;
    }

    .brand-text small {
        font-size: 10px;
    }
}


/* 10. STOPKA SZKOŁY */

.site-footer {
    background: #142f53;
    color: #ffffff;
    margin-top: 0;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
    gap: 45px;
    padding-top: 55px;
    padding-bottom: 50px;
}

.footer-school {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.footer-logo {
    width: 75px;
    height: 85px;
    object-fit: contain;
}

.footer-school h3 {
    font-size: 16px;
    line-height: 1.5;
    margin: 5px 0 8px;
}

.footer-school p {
    color: #bdcce0;
    font-size: 13px;
    line-height: 1.6;
}

.footer-column h4 {
    color: #ffffff;
    font-size: 15px;
    margin: 5px 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #438bd5;
}

.footer-column p {
    color: #bdcce0;
    font-size: 13px;
    line-height: 1.8;
    margin: 5px 0;
}

.footer-column a {
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: #75b9ff;
}

.footer-column > a {
    display: inline-block;
    margin-top: 10px;
}

.footer-column span {
    color: #ffffff;
    font-weight: 600;
}

.footer-hours {
    margin-bottom: 3px !important;
}

.footer-column strong {
    color: #ffffff;
    font-size: 15px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    background: #102744;
}

.footer-bottom-content {
    min-height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-bottom span {
    color: #aebed2;
    font-size: 12px;
}

@media (max-width: 900px) {
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
}

@media (max-width: 550px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 40px;
        padding-bottom: 35px;
    }

    .footer-bottom-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 18px 0;
    }
}

/* 10. STOPKA — UKŁAD RESPONSYWNY */

.footer-main {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.15fr 0.9fr 1.35fr;
    gap: 30px;
    padding-top: 55px;
    padding-bottom: 50px;
}

.footer-school {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
}

.footer-logo {
    width: 75px;
    height: 85px;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-school h3 {
    font-size: 15px;
    line-height: 1.5;
    margin: 5px 0 8px;
}

.footer-school p,
.footer-column p {
    color: #bdcce0;
    font-size: 13px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.footer-column h4 {
    color: #fff;
    font-size: 14px;
    margin: 5px 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #438bd5;
}

.footer-column a {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
}

.footer-column a:hover {
    color: #75b9ff;
}

.footer-column span {
    color: #fff;
    font-weight: 600;
}

.footer-column strong {
    color: #fff;
    font-size: 15px;
}

.footer-address {
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.footer-placeholder {
    color: #91a8c5 !important;
    font-style: italic;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.14);
    background: #102744;
}

.footer-bottom-content {
    min-height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-bottom span {
    color: #aebed2;
    font-size: 12px;
}

/* TABLETY */
@media (max-width: 1100px) {
    .footer-main {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 35px;
    }
}

/* TELEFONY */
@media (max-width: 650px) {
    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 20px;
        padding: 40px 20px;
    }

    .footer-school {
        grid-column: 1 / -1;
    }

    .footer-logo {
        width: 65px;
        height: 75px;
    }

    .footer-school h3 {
        font-size: 14px;
    }

    .footer-column h4 {
        font-size: 13px;
    }

    .footer-column p,
    .footer-column a {
        font-size: 12px;
    }

    .footer-bottom-content {
    min-height: 65px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    flex-wrap: wrap;
    }

    .footer-bottom span {
        color: #aebed2;
        font-size: 12px;
    }
}

/* BARDZO WĄSKIE EKRANY */
@media (max-width: 380px) {
    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-school {
        grid-column: auto;
    }
}/* POPRAWKA: rozmieszczenie dolnego paska stopki */
.site-footer .footer-bottom .footer-bottom-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    min-height: 65px;
    text-align: center;
}

@media (max-width: 550px) {
    .site-footer .footer-bottom .footer-bottom-content {
        flex-direction: column;
        gap: 8px;
        padding: 15px 0;
    }
}


/* Ikonki w stopce */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 12px;
}

.footer-icon {
    width: 17px;
    height: 17px;
    min-width: 17px;
    fill: none;
    stroke: #8db9e8;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-top: 2px;
}

.footer-contact-item strong {
    color: #ffffff;
}

.footer-contact-item a {
    color: #ffffff;
    text-decoration: none;
}

.footer-contact-item a:hover {
    color: #8db9e8;
}


/* Poprawiony układ stopki */
.footer-main {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1.2fr 1fr 1.35fr;
    gap: 28px;
    align-items: start;
}

.footer-school {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
}

.footer-school h3 {
    margin-top: 0;
    line-height: 1.5;
}

.footer-column {
    min-width: 0;
}

.footer-column p {
    line-height: 1.6;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 10px 0;
    line-height: 1.5;
}

.footer-contact-item span {
    min-width: 0;
    font-weight: 400;
    overflow-wrap: anywhere;
}

.footer-icon {
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    margin-top: 2px;
}

.footer-address {
    overflow-wrap: anywhere;
    line-height: 1.5;
}

.footer-bottom-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 30px;
}

@media (max-width: 1000px) {
    .footer-main {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 20px;
    }

    .footer-school {
        grid-column: 1 / -1;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

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

    .footer-school {
        grid-column: auto;
    }
}

/* Nazwa szkoły obok logo w jednej linii */
.footer-school {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    white-space: nowrap;
}

.footer-school h3 {
    white-space: nowrap;
    font-size: 15px;
    line-height: 1.4;
    margin: 0 0 10px;
}

.footer-school p {
    white-space: normal;
}

/* Korekta szerokości kolumn stopki */
.footer-main {
    display: grid;
    grid-template-columns: 100px repeat(4, minmax(0, 1fr));
    gap: 28px;
    align-items: start;
}

/* Logo i nazwa szkoły */
.footer-school {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    white-space: normal;
}

.footer-school > div {
    min-width: 0;
}

.footer-school h3 {
    white-space: nowrap;
    font-size: 15px;
    line-height: 1.4;
    margin: 0 0 10px;
}

.footer-school p {
    white-space: normal;
}

@media (max-width: 1000px) {
    .footer-main {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .footer-main {
        grid-template-columns: 1fr;
    }
}
/* Poprawka odstępu w sekcji logo i nazwy szkoły */
.footer-school {
    align-items: flex-start;
    gap: 18px;
}

.footer-school h3 {
    margin: 0 0 6px;
    line-height: 1.3;
}

.footer-school p {
    margin: 0;
    line-height: 1.5;
}
.footer-school {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    min-width: 0;
}