* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #EFECE7;
    color: #222;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    
    font-family:
        system-ui,
        -apple-system,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    font-size: 17px;
    line-height: 1.6;
    color: #222222;
}

h1,
h2,
h3,
h4 {
    line-height: 1.25;

    color: #1f1f1f;
}

h1 {
    font-size: 38px;
    font-weight: 700;
}

h2 {
    font-size: 28px;
    font-weight: 700;
}

h3 {
    font-size: 21px;
    font-weight: 600;
}

p {
    line-height: 1.7;
}

a {
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.news-read-more,
.album-open,
.document-actions a {
    font-weight: 600;
}

.news-date,
.album-date,
.document-meta,
.gallery-detail-date {
    font-size: 16px;
    font-weight: 400;
}

.site-header {
    position: relative;
    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.60),
            rgba(0, 0, 0, 0.60)
        ),
        url("../images/school_header.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
}

.header-container {
    width: 100%;
    max-width: 1400px;
    min-height: 400px;
    margin: 0 auto;
    padding: 32px 24px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.school-brand {
    display: flex;
    align-items: center;

    gap: 20px;
}

.school-logo {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 10px;
    box-sizing: border-box;
    background: rgba(255, 255, 255);
    border-radius: 16px;
}

.school-logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 20px;
}

.school-title h1 {
    margin: 0;
    color: #ffffff;
    text-shadow:
        0 2px 5px rgba(0, 0, 0, 0.45);
}

.school-title p {
    margin: 5px 0 0;
    color: rgba(255, 255, 255, 0.9);
    text-shadow:
        0 1px 4px rgba(0, 0, 0, 0.45);
}



.main-nav {
    width: 100%;
    background: #3478ad;
    position: relative;
    z-index: 1000;
}

.main-menu {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 24px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    list-style: none;
    box-sizing: border-box;
}

.main-menu li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-menu > li {
    position: relative;
}

.main-menu > li > a {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 18px 10px;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.main-menu > li > a:hover {
    background: rgba(0, 0, 0, 0.12);
    color: #ffffff;
}

.main-menu > li.active > a {
    background-color: rgba(0, 0, 0, 0.18);
}

.has-submenu > a::after {
    content: "▼";
    margin-left: 6px;
    font-size: 8px;
    line-height: 1;
    opacity: 0.8;
}

.submenu {
    position: absolute;

    top: 100%;
    left: 0;

    min-width: 280px;
    max-width: 380px;

    margin: 0;
    padding: 8px 0;

    background: #ffffff;

    border: 1px solid #dddddd;

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.15);

    list-style: none;

    display: none;

    z-index: 2000;
}

.submenu li {
    width: 100%;

    margin: 0;
    padding: 0;

    list-style: none;
}

.submenu li a {
    display: block;

    width: 100%;

    padding: 11px 16px;

    color: #222222;
    text-decoration: none;

    font-size: 14px;
    line-height: 1.4;

    white-space: normal;

    box-sizing: border-box;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}
.submenu li a:hover {
    background: #f2f5f7;
    color: #111111;
}

.has-submenu:hover > .submenu {
    display: block;
}

.mobile-menu-toggle {
    display: none;

    width: 100%;

    padding: 14px 20px;

    border: 0;

    background: #3478ad;
    color: #ffffff;

    font-size: 17px;
    font-family: inherit;

    text-align: left;

    cursor: pointer;
}

.submenu-toggle {
    display: none;
}



.main-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
    background-color: #EFECE7;
    min-height: 500px;
}

.site-main {
    width: 100%;
    flex: 1;
}

.site-footer {
    width: 100%;
    margin-top: 30px;
    background: #222222;
    color: #ffffff;
}

.footer-container {
    width: 100%;
    max-width: 1400px;

    margin: 0 auto;
    padding: 40px 30px;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 60px;

    box-sizing: border-box;
}

.footer-school {
    max-width: 600px;
}

.footer-school h3 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.3;
    color: white;
}

.footer-school p {
    margin: 0;

    color: #cccccc;

    font-size: 14px;
    line-height: 1.5;
}

.footer-contacts {
    min-width: 320px;
}

.footer-contacts h3 {
    margin: 0 0 15px;

    font-size: 18px;
}

.footer-contacts p {
    margin: 7px 0;

    color: #dddddd;

    font-size: 14px;
    line-height: 1.5;
}


.footer-contacts strong {
    color: #ffffff;
}


.footer-contacts a {
    color: #ffffff;
    text-decoration: none;
}


.footer-contacts a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}


.footer-bottom-container {
    width: 100%;
    max-width: 1400px;

    margin: 0 auto;
    padding: 16px 30px;

    box-sizing: border-box;
}


.footer-bottom-container p {
    margin: 0;

    color: #aaaaaa;

    font-size: 13px;
}


/* ========================================
   СПИСОК НОВИН
   ======================================== */

.news-list > h1 {
    margin-top: 0;
    margin-bottom: 30px;
}

.news-list-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 30px;
}

.news-card {
    display: flex;
    flex-direction: column;

    margin: 0;
    padding: 0;

    border: 1px solid #dddddd;
    border-radius: 6px;

    background: #ffffff;

    overflow: hidden;
}

.news-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.news-card-title {
    margin: 20px 20px 8px;
}

.news-card-title a {
    color: #222222;
    text-decoration: none;
}

.news-card-title a:hover {
    text-decoration: underline;
}

.news-date {
    margin: 0 20px 15px;

    color: #777777;

    font-size: 14px;
}

.news-preview {
    padding: 0 20px;

    color: #444444;

    line-height: 1.6;
}

.news-read-more {
    margin: auto 20px 20px;

    padding-top: 10px;

    color: #3478ad;

    text-decoration: none;

    font-weight: 600;
}

.news-read-more:hover {
    text-decoration: underline;
}


/* ========================================
   СТОРІНКА КОНКРЕТНОЇ НОВИНИ
   ======================================== */

.news-detail {
    width: 100%;
    max-width: 1000px;

    margin: 0 auto;
}

/* ========================================
   ПОСИЛАННЯ НАЗАД
   ======================================== */

.news-detail-back {
    margin-bottom: 25px;
}


.news-detail-back a,
.news-detail-bottom a {
    color: #3478ad;
    text-decoration: none;

    font-size: 14px;
}

.news-detail-back a:hover,
.news-detail-bottom a:hover {
    text-decoration: underline;
}

/* ========================================
   ЗАГОЛОВОК НОВИНИ
   ======================================== */

.news-detail-header {
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.news-detail-header h1 {
    max-width: 900px;
    margin: 0 0 12px;
    color: #222222;
    font-size: 40px;
    line-height: 1.2;
}

.news-detail-date {
    margin: 0;
    color: #777777;
    font-size: 14px;
}

/* ========================================
   ТЕКСТ НОВИНИ
   ======================================== */

.news-detail-content {
    max-width: 900px;
    margin-bottom: 45px;
    color: #333333;
    font-size: 17px;
    line-height: 1.75;
}

.news-detail-content p {
    margin-top: 0;
    margin-bottom: 20px;
}

/* ========================================
   ФОТОГАЛЕРЕЯ НОВИНИ
   ======================================== */

.news-detail-gallery {
    margin-top: 45px;
}


.news-detail-gallery > h2 {
    margin-bottom: 25px;
    font-size: 26px;
}


.news-gallery-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 25px;
}

.news-gallery-item {
    margin: 0;
}

.news-gallery-item a {
    display: block;
    width: 100%;
    text-align: center;
    background: #f5f5f5;
    overflow: hidden;
    border-radius: 6px;
}


.news-gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 700px;
    object-fit: contain;
    margin: 0 auto;
}

.news-gallery-item a:hover img {
    transform: scale(1.02);
}

.news-gallery-item figcaption {
    margin-top: 8px;

    color: #666666;

    font-size: 14px;
    line-height: 1.4;
}

/* ========================================
   НИЖНЄ ПОСИЛАННЯ
   ======================================== */

.news-detail-bottom {
    margin-top: 45px;
    padding-top: 25px;
    border-top: 1px solid #e5e5e5;
}



.home-intro {
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 25px;
}

.section-header h2 {
    margin: 0;
}

.latest-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}


/* ========================================
   ДОКУМЕНТИ
   ======================================== */

.documents-header {
    margin-bottom: 35px;
}

.documents-header h1 {
    margin-top: 0;
    margin-bottom: 10px;
}

.documents-header p {
    margin: 0;
    color: #666666;
    line-height: 1.5;
}

.documents-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}


/* ========================================
   ОДИН ДОКУМЕНТ
   ======================================== */

.document-item {
    width: 100%;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid #dddddd;
    border-radius: 6px;
    background: #ffffff;
    box-sizing: border-box;
}

/* PDF / DOCX / XLSX */

.document-type {
    width: 65px;
    min-width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #f1f4f6;
    color: #444444;
    font-size: 13px;
    font-weight: 700;
}

/* Текстова частина */

.document-info {
    flex: 1;
    min-width: 0;
}

.document-title {
    margin: 0 0 8px;
    color: #222222;
    font-size: 18px;
    line-height: 1.3;
}

.document-description {
    margin-bottom: 8px;
    color: #555555;
    font-size: 14px;
    line-height: 1.5;
}

.document-description p {
    margin: 0;
}

.document-meta {
    margin: 0;
    color: #888888;
    font-size: 13px;
}


/* Кнопка справа */

.document-actions {
    flex-shrink: 0;
}

.document-actions a {
    display: inline-block;
    padding: 10px 15px;
    border: 1px solid #3478ad;
    border-radius: 4px;
    color: #3478ad;
    text-decoration: none;
    font-size: 14px;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.document-actions a:hover {
    background: #3478ad;
    color: #ffffff;
}

/* Документи всередині звичайної Page */

.page-documents {
    margin-top: 50px;
}

.page-documents > h2 {
    margin-bottom: 25px;
}



.page-blocks {
    width: 100%;
    max-width: 1000px;
    margin-top: 35px;
}

.page-text-block,
.page-image-block,
.page-video-block {
    margin-top: 0;
    margin-bottom: 35px;
}

.page-blocks > :last-child {
    margin-bottom: 0;
}

.page-text-block p {
    margin-top: 0;
    margin-bottom: 16px;
}

.page-text-block p:last-child {
    margin-bottom: 0;
}

.page-text-block {
    max-width: 900px;
    font-size: 17px;
    line-height: 1.75;
    color: #333333;
}

.page-text-block p:first-child {
    margin-top: 0;
}

.page-text-block p:last-child {
    margin-bottom: 0;
}

.page-image-block {
    width: 100%;
    max-width: 900px;
}

.page-image-block img {
    display: block;
    width: 80%;
    height: auto;
    max-height: 700px;
    object-fit: contain;
    background: #f5f5f5;
    border-radius: 10px;
}

.page-image-block figcaption {
    max-width: 900px;
    margin-top: 10px;
    color: #666666;
    font-size: 14px;
    line-height: 1.5;
}

.page-video-block {
    width: 100%;
    max-width: 900px;
}

.page-video-block iframe {
    display: block;
    width: 80%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 6px;
}

.page-video-caption {
    margin: 10px 0 0;
    color: #666666;
    font-size: 14px;
    line-height: 1.5;
}

.page-text-block,
.page-image-block,
.page-video-block {
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 35px;
}


/* ========================================
   ГОЛОВНА СТОРІНКА
   ======================================== */

.home-hero {
    margin-bottom: 50px;
}

.home-hero-content h1 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 38px;
    line-height: 1.2;
}

/* ========================================
   БЛОКИ ГОЛОВНОЇ
   ======================================== */

.home-blocks {
    margin-bottom: 50px;
}

/* ========================================
   КОРИСНІ РОЗДІЛИ
   ======================================== */

.home-links {
    margin: 50px 0;
}

.home-links > h2 {
    margin-bottom: 25px;
}

.home-links-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.home-link-card {
    display: block;
    padding: 25px;
    border: 1px solid #dddddd;
    border-radius: 6px;
    background: #ffffff;
    color: #222222;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.home-link-card:hover {
    transform: translateY(-3px);
    border-color: #bbbbbb;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.08);
}

.home-link-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.home-link-card p {
    margin: 0;
    color: #666666;
    line-height: 1.5;
}

/* ========================================
   PAGINATION
   ======================================== */

.pagination {
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.pagination a {
    padding: 9px 14px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    color: #3478ad;
    text-decoration: none;
    background: #ffffff;
}

.pagination a:hover {
    background: #f2f5f7;
}

.pagination-current {
    color: #555555;
    font-size: 14px;
}


/* ========================================
   ФОТОГАЛЕРЕЯ — СПИСОК АЛЬБОМІВ
   ======================================== */

.gallery-header {
    margin-bottom: 30px;
}

.gallery-header h1 {
    margin-top: 0;
}

.album-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.album-card {
    overflow: hidden;
    border: 1px solid #dddddd;
    border-radius: 6px;
    background: #ffffff;
}

.album-cover {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eeeeee;
}

.album-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.album-cover:hover img {
    transform: scale(1.02);
}

.album-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777777;
}

.album-card-content {
    padding: 20px;
}

.album-date {
    margin: 0 0 8px;
    color: #777777;
    font-size: 13px;
}

.album-card h2 {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.3;
}

.album-card h2 a {
    color: #222222;
    text-decoration: none;
}

.album-card h2 a:hover {
    text-decoration: underline;
}

.album-description {
    margin-bottom: 15px;
    color: #555555;
    font-size: 14px;
    line-height: 1.5;
}

.album-open {
    color: #3478ad;
    text-decoration: none;

    font-weight: 600;
}

.album-open:hover {
    text-decoration: underline;
}


/* ========================================
   ФОТОГАЛЕРЕЯ — АЛЬБОМ
   ======================================== */

.gallery-detail {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;
}

.gallery-back {
    margin-bottom: 25px;
}

.gallery-back a,
.gallery-bottom a {
    color: #3478ad;
    text-decoration: none;

    font-size: 14px;
}

.gallery-back a:hover,
.gallery-bottom a:hover {
    text-decoration: underline;
}

.gallery-detail-header {
    margin-bottom: 35px;
}

.gallery-detail-header h1 {
    margin: 0 0 10px;
    font-size: 38px;
    line-height: 1.2;
}

.gallery-detail-date {
    margin: 0 0 20px;
    color: #777777;
    font-size: 14px;
}

.gallery-detail-description {
    max-width: 850px;
    color: #444444;
    line-height: 1.7;
}

.gallery-photo-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.gallery-photo {
    margin: 0;
}

.gallery-photo a {
    display: block;
    width: 100%;
    text-align: center;
    background: #f5f5f5;
    overflow: hidden;
    border-radius: 6px;
}

.gallery-photo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 700px;
    object-fit: contain;
    margin: 0 auto;
}

.gallery-photo a:hover img {
    transform: scale(1.02);
}

.gallery-photo figcaption {
    margin-top: 8px;
    color: #666666;
    font-size: 14px;
    line-height: 1.4;
}

.gallery-bottom {
    margin-top: 45px;
    padding-top: 25px;
    border-top: 1px solid #e5e5e5;
}



/* ========================================
   ЗВИЧАЙНІ ІНФОРМАЦІЙНІ СТОРІНКИ
   ======================================== */

.standard-page {
    width: 100%;
}

.page-header {
    margin-bottom: 30px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e5e5e5;
}

.page-header h1 {
    margin: 0;
    font-size: 36px;
    line-height: 1.2;
    color: #222222;
}


/* =========================================================
   МОБІЛЬНА / ПЛАНШЕТНА ВЕРСІЯ
   УСІ ЕКРАНИ ДО 1200px
   ========================================================= */

@media (max-width: 1200px) {

    /* ========================================
       ЗАГАЛЬНЕ
       ======================================== */

    body {
        font-size: 18px;
    }

    .main-content {
        width: 100%;

        padding: 32px 20px 45px;

        box-sizing: border-box;
    }

    img {
        max-width: 100%;
    }



    /* ========================================
       HEADER
       ======================================== */

    .header-container {
        padding: 20px;
    }

    .school-brand {
        gap: 16px;
    }

    .school-logo {
        width: 70px;
        height: 70px;

        flex-shrink: 0;
    }

    .school-logo img {
        width: 100%;
        height: 100%;

        object-fit: contain;
    }

    .school-title h1 {
        margin-top: 0;
        margin-bottom: 5px;

        font-size: 24px;
        line-height: 1.25;
    }

    .school-title p {
        margin: 0;

        font-size: 16px;
    }
    
    .site-header {
        background-position: center;
    }



    /* ========================================
       МОБІЛЬНЕ МЕНЮ
       ======================================== */

    .mobile-menu-toggle {
        display: block;
        width: 100%;
        padding: 15px 20px;
        border: 0;
        background: #3478ad;
        color: #ffffff;
        text-align: left;
        font-size: 17px;
        font-weight: 600;
        cursor: pointer;
    }

    .main-menu {
        display: none;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        flex-direction: column;
        align-items: stretch;
        background: #3478ad;
    }

    .main-nav.is-open .main-menu {
        display: flex;
    }

    .main-menu > li {
        position: relative;
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .main-menu > li > a {
        display: block;

        width: 100%;

        padding: 15px 55px 15px 20px;

        box-sizing: border-box;

        white-space: normal;

        font-size: 16px;
        line-height: 1.4;
    }

    .main-menu > li.active > a {
        background-color: rgba(0, 0, 0, 0.18);

        box-shadow: inset 4px 0 0 #ffffff;
    }

    .has-submenu {
        position: relative;
    }

    .has-submenu > a::after {
        display: none;
    }

    .submenu-toggle {
        position: absolute;

        top: 0;
        right: 0;

        width: 55px;
        height: 51px;

        display: flex;
        align-items: center;
        justify-content: center;

        padding: 0;

        border: 0;

        background: transparent;
        color: #ffffff;

        font-size: 15px;

        cursor: pointer;
    }

    .submenu {
        position: static;

        width: 100%;
        min-width: 0;
        max-width: none;

        display: none;

        margin: 0;
        padding: 0;

        border: 0;
        box-shadow: none;

        background: #ffffff;
    }

    .has-submenu:hover > .submenu {
        display: none;
    }

    .has-submenu.submenu-open > .submenu {
        display: block;
    }

    .submenu li {
        border-top: 1px solid #eeeeee;
    }

    .submenu li a {
        display: block;

        padding: 13px 20px 13px 35px;

        font-size: 16px;
        line-height: 1.4;
    }

    .submenu li.active > a {
        background-color: #f0f4f8;
        color: #3478ad;

        font-weight: 600;
    }



    /* ========================================
       ГОЛОВНА — HERO
       ======================================== */

    .home-hero {
        margin-bottom: 40px;
    }

    .home-hero-content h1 {
        font-size: 32px;
        line-height: 1.2;
    }



    /* ========================================
       ГОЛОВНА — КОРИСНІ РОЗДІЛИ
       ======================================== */

    .home-links {
        width: 100%;

        margin-bottom: 45px;
    }

    .home-links > h2 {
        margin-top: 0;
        margin-bottom: 22px;

        font-size: 25px;
        line-height: 1.3;
    }

    .home-links-grid {
        display: grid;

        grid-template-columns: 1fr;

        gap: 16px;
    }

    .home-link-card {
        width: 100%;

        display: grid;

        grid-template-columns:
            minmax(130px, 35%)
            minmax(0, 1fr);

        align-items: start;

        gap: 18px;

        padding: 18px;

        box-sizing: border-box;

        border-radius: 7px;

        overflow-wrap: anywhere;
    }

    .home-link-card h3 {
        margin: 0;

        font-size: 19px;
        line-height: 1.3;
    }

    .home-link-card p {
        margin: 0;

        font-size: 16px;
        line-height: 1.55;
    }



    /* ========================================
       ЗАГОЛОВКИ СЕКЦІЙ
       ======================================== */

    .section-header {
        display: flex;

        align-items: center;
        justify-content: space-between;

        flex-wrap: wrap;

        gap: 12px;

        margin-bottom: 20px;
    }

    .section-header h2 {
        margin: 0;

        font-size: 25px;
        line-height: 1.3;
    }



    /* ========================================
       ГОЛОВНА — ОСТАННІ НОВИНИ
       ======================================== */

    .latest-news {
        margin-bottom: 20px;
    }

    .latest-news h2 {
        font-size: 25px;
        line-height: 1.3;
    }



    /* ========================================
       НОВИНИ — СІТКА
       ======================================== */

    .latest-news-grid,
    .news-list-grid {
        display: grid;

        grid-template-columns: 1fr;

        gap: 18px;
    }



    /* ========================================
       НОВИНИ — КАРТКА
       ======================================== */

    .latest-news-grid .news-card,
    .news-list-grid .news-card {
        width: 100%;

        display: grid;

        grid-template-columns:
            minmax(120px, 35%)
            minmax(0, 1fr);

        grid-template-rows:
            auto
            auto
            1fr
            auto;

        overflow: hidden;

        box-sizing: border-box;

        border-radius: 7px;

        overflow-wrap: anywhere;
    }

    .latest-news-grid .news-card > a:first-child,
    .news-list-grid .news-card > a:first-child {
        grid-column: 1;
        grid-row: 1 / 5;

        width: 100%;
        height: 100%;

        min-height: 210px;

        overflow: hidden;
    }

    .latest-news-grid .news-card-image,
    .news-list-grid .news-card-image {
        display: block;

        width: 100%;
        height: 100%;

        min-height: 210px;

        object-fit: cover;
    }

    .latest-news-grid .news-card-title,
    .news-list-grid .news-card-title {
        grid-column: 2;

        margin: 18px 18px 6px;

        font-size: 20px;
        line-height: 1.3;
    }

    .latest-news-grid .news-date,
    .news-list-grid .news-date {
        grid-column: 2;

        margin: 0 18px 12px;

        font-size: 14px;
        line-height: 1.5;
    }

    .latest-news-grid .news-preview,
    .news-list-grid .news-preview {
        grid-column: 2;

        padding: 0 18px;

        font-size: 16px;
        line-height: 1.55;
    }

    .latest-news-grid .news-read-more,
    .news-list-grid .news-read-more {
        grid-column: 2;

        margin: 15px 18px 18px;

        font-size: 16px;
        font-weight: 600;
    }



    /* ========================================
       НОВИНИ БЕЗ ФОТО
       ======================================== */

    .news-card:not(:has(.news-card-image)) {
        grid-template-columns: 1fr;
    }

    .news-card:not(:has(.news-card-image)) .news-card-title,
    .news-card:not(:has(.news-card-image)) .news-date,
    .news-card:not(:has(.news-card-image)) .news-preview,
    .news-card:not(:has(.news-card-image)) .news-read-more {
        grid-column: 1;
    }



    /* ========================================
       ПАГІНАЦІЯ
       ======================================== */

    .pagination {
        display: flex;

        flex-wrap: wrap;

        gap: 10px;

        font-size: 16px;
    }



    /* ========================================
       КОНКРЕТНА НОВИНА
       ======================================== */

    .news-detail {
        width: 100%;
    }

    .news-back {
        margin-bottom: 25px;
    }

    .news-detail-header h1 {
        font-size: 32px;
        line-height: 1.2;
    }

    .news-detail-content {
        font-size: 17px;
        line-height: 1.7;

        overflow-wrap: anywhere;
    }

    .news-detail-gallery > h2 {
        margin-bottom: 22px;

        font-size: 25px;
        line-height: 1.3;
    }



    /* ========================================
       ФОТО ВСЕРЕДИНІ НОВИНИ
       НЕ ОБРІЗАЄМО
       ======================================== */

    .news-gallery-grid {
        display: grid;

        grid-template-columns:
            repeat(
                auto-fit,
                minmax(240px, 1fr)
            );

        gap: 18px;
    }

    .news-gallery-item {
        width: 100%;
    }

    .news-gallery-item a {
        display: block;

        width: 100%;

        overflow: hidden;

        text-align: center;

        background: #f5f5f5;

        border-radius: 6px;
    }

    .news-gallery-item img {
        display: block;

        width: 100%;
        height: auto;

        max-height: 600px;

        margin: 0 auto;

        object-fit: contain;
    }



    /* ========================================
       ДОКУМЕНТИ
       ======================================== */

    .page-documents {
        margin-top: 45px;
    }

    .page-documents > h2 {
        margin-top: 0;
        margin-bottom: 22px;

        font-size: 25px;
        line-height: 1.3;
    }

    .documents-list {
        width: 100%;

        gap: 15px;
    }

    .documents-list .document-item {
        width: 100%;

        display: grid;

        grid-template-columns:
            65px
            minmax(0, 1fr);

        align-items: start;

        gap: 16px;

        padding: 18px;

        box-sizing: border-box;

        border-radius: 7px;

        overflow-wrap: anywhere;
    }

    .documents-list .document-type {
        grid-column: 1;
        grid-row: 1 / 3;

        width: 65px;
        min-width: 65px;
        height: 65px;

        font-size: 14px;
    }

    .documents-list .document-info {
        grid-column: 2;

        width: 100%;
        min-width: 0;
    }

    .documents-list .document-title {
        margin-top: 0;

        font-size: 19px;
        line-height: 1.35;
    }

    .documents-list .document-description {
        font-size: 16px;
        line-height: 1.55;
    }

    .documents-list .document-meta {
        font-size: 14px;
        line-height: 1.5;
    }

    .documents-list .document-actions {
        grid-column: 2;

        width: 100%;

        padding: 0;
    }

    .documents-list .document-actions a {
        display: inline-block;

        box-sizing: border-box;

        font-size: 16px;
        font-weight: 600;
    }



    /* ========================================
       ФОТОГАЛЕРЕЯ — СПИСОК АЛЬБОМІВ
       ОБКЛАДИНКУ МОЖНА ОБРІЗАТИ
       ======================================== */

    .gallery-header h1 {
        font-size: 32px;
        line-height: 1.2;
    }

    .album-grid {
        display: grid;

        grid-template-columns: 1fr;

        gap: 18px;
    }

    .album-grid .album-card {
        width: 100%;

        display: grid;

        grid-template-columns:
            minmax(130px, 35%)
            minmax(0, 1fr);

        overflow: hidden;

        border-radius: 7px;

        overflow-wrap: anywhere;
    }

    .album-grid .album-cover {
        width: 100%;
        height: 100%;

        min-height: 210px;

        overflow: hidden;
    }

    .album-grid .album-cover img {
        display: block;

        width: 100%;
        height: 100%;

        object-fit: cover;
    }

    .album-grid .album-card-content {
        padding: 18px;
    }

    .album-grid .album-date {
        font-size: 14px;
        line-height: 1.5;
    }

    .album-grid .album-card h2 {
        font-size: 20px;
        line-height: 1.3;
    }

    .album-grid .album-description {
        font-size: 16px;
        line-height: 1.55;
    }

    .album-grid .album-open {
        font-size: 16px;
        font-weight: 600;
    }



    /* ========================================
       ФОТОГАЛЕРЕЯ — КОНКРЕТНИЙ АЛЬБОМ
       ======================================== */

    .gallery-detail {
        width: 100%;
    }

    .gallery-back {
        margin-bottom: 25px;
    }

    .gallery-detail-header h1 {
        font-size: 32px;
        line-height: 1.2;
    }

    .gallery-detail-date {
        font-size: 14px;
        line-height: 1.5;
    }

    .gallery-detail-description {
        font-size: 17px;
        line-height: 1.7;
    }



    /* ========================================
       ФОТО ВСЕРЕДИНІ АЛЬБОМУ
       НЕ ОБРІЗАЄМО
       ======================================== */

    .gallery-photo-grid {
        display: grid;

        grid-template-columns:
            repeat(
                auto-fit,
                minmax(240px, 1fr)
            );

        gap: 18px;
    }

    .gallery-photo {
        width: 100%;
    }

    .gallery-photo a {
        display: block;

        width: 100%;

        overflow: hidden;

        text-align: center;

        background: #f5f5f5;

        border-radius: 6px;
    }

    .gallery-photo img {
        display: block;

        width: 100%;
        height: auto;

        max-height: 600px;

        margin: 0 auto;

        object-fit: contain;
    }

    .gallery-photo figcaption {
        font-size: 14px;
        line-height: 1.5;
    }



    /* ========================================
       ЗВИЧАЙНІ ІНФОРМАЦІЙНІ СТОРІНКИ
       ======================================== */

    .page-header {
        margin-bottom: 25px;
        padding-bottom: 15px;
    }

    .page-header h1 {
        font-size: 32px;
        line-height: 1.2;
    }

    .page-main-content {
        font-size: 17px;
        line-height: 1.7;

        overflow-wrap: anywhere;
    }



    /* ========================================
       PAGE BLOCKS
       ======================================== */

    .page-blocks {
        margin-top: 30px;
    }
    
    .page-text-block,
    .page-image-block,
    .page-video-block {
        margin-bottom: 30px;
    }

    .page-blocks > :last-child {
        margin-bottom: 0;
    }

    .page-text-block {
        font-size: 17px;
        line-height: 1.7;
        overflow-wrap: anywhere;
    }



    /* ========================================
       ФОТО НА ІНФОРМАЦІЙНИХ СТОРІНКАХ
       НЕ ОБРІЗАЄМО
       ======================================== */

    .page-image-block {
        width: 100%;
        max-width: 900px;
    }

    .page-image-block img {
        display: block;

        width: 100%;
        height: auto;

        max-height: 600px;

        object-fit: contain;

        background: #f5f5f5;

        border-radius: 6px;
    }

    .page-image-block figcaption {
        font-size: 14px;
        line-height: 1.5;
    }



    /* ========================================
       YOUTUBE
       ======================================== */

    .page-video-block {
        width: 100%;
    }

    .page-video-block iframe {
        display: block;

        width: 100%;

        aspect-ratio: 16 / 9;

        border: 0;
    }

    .page-video-caption {
        font-size: 14px;
        line-height: 1.5;
    }



    /* ========================================
       FOOTER
       ======================================== */

    .footer-container {
        display: flex;

        flex-direction: column;

        padding: 32px 20px;

        gap: 30px;
    }

    .footer-school,
    .footer-contacts {
        width: 100%;
        min-width: 0;
    }

    .footer-school h3,
    .footer-contacts h3 {
        font-size: 20px;
    }

    .footer-school p,
    .footer-contacts p,
    .footer-contacts a {
        font-size: 16px;
        line-height: 1.6;
    }

    .footer-bottom-container {
        padding: 16px 20px;
    }

    .footer-bottom-container p {
        font-size: 14px;
        line-height: 1.5;
    }
}
