/*
Theme Name: Ліцей №26
Theme URI: https://s26.edu.vn.ua/
Description: Дочірня тема Twenty Twenty-Five для сайту Вінницького ліцею №26. Кольори та шрифти ліцею, шапка з меню, головна сторінка, підвал.
Author: Вінницький ліцей №26
Template: twentytwentyfive
Version: 1.9.13
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lyceum26
*/

/* ---------- Base ---------- */
:root {
	--l26-navy: #0B2762;
	--l26-navy-dark: #071A44;
	--l26-yellow: #EDC71C;
	--l26-sky: #E8EDF8;
	--l26-cloud: #F5F6FA;
	--l26-ink: #14213D;
	--l26-muted: #4A5675;
	--l26-line: #E3E7F0;
	--l26-cream: #FFF6D6;
}
.wp-site-blocks { padding-top: 0; padding-bottom: 0; }
.wp-site-blocks > * { margin-block-start: 0; }
.l26-wrap { max-width: 1200px; margin-left: auto !important; margin-right: auto !important; padding-left: 24px; padding-right: 24px; box-sizing: border-box; width: 100%; }
.l26-home > * , .l26-section > * { margin-block-start: 0; }

/* ---------- Top bar ---------- */
.l26-topbar { background: var(--l26-navy-dark); color: #DDE3F2; font-size: 14px; }
.l26-topbar-row { padding-top: 8px; padding-bottom: 8px; gap: 8px 24px; }
.l26-topbar p { margin: 0; }
.l26-topbar a { color: #DDE3F2; text-decoration: none; }
.l26-topbar a:hover { color: #FFFFFF; text-decoration: underline; }
.l26-social.wp-block-social-links { gap: 14px; margin: 0; }
.l26-social .wp-social-link { color: #DDE3F2; }
.l26-social .wp-social-link svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.l26-header { background: #FFFFFF; border-bottom: 1px solid var(--l26-line); }
.l26-header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; padding-top: 14px; }
.l26-header-row > * { margin: 0 !important; }
.l26-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; order: 1; flex: 1 1 auto; min-width: 0; }
.l26-brand img { width: 64px; height: 64px; flex-shrink: 0; }
.l26-brand-text { display: flex; flex-direction: column; min-width: 0; }
.l26-brand-name { font-size: 22px; font-weight: 800; color: var(--l26-navy); line-height: 1.2; }
.l26-brand-sub { font-size: 14px; color: var(--l26-muted); }
.l26-search-desk { order: 2; width: 260px; }
.l26-search-desk .wp-block-search__inside-wrapper, .l26-search-mob .wp-block-search__inside-wrapper { border: 1px solid var(--l26-line) !important; border-radius: 10px; padding: 0 0 0 12px !important; height: 44px; background: #FFFFFF; align-items: center; box-sizing: border-box; }
.l26-search-desk .wp-block-search__input, .l26-search-mob .wp-block-search__input { border: 0 !important; background: transparent; font-size: 15px; padding: 0 6px; height: 42px; min-height: 0; box-shadow: none; }
.l26-search-desk .wp-block-search__button, .l26-search-mob .wp-block-search__button { background: transparent !important; color: var(--l26-navy) !important; border: 0 !important; width: 42px; height: 42px; padding: 0; margin: 0; display: flex; align-items: center; justify-content: center; }
@media (min-width: 600px) { .l26-nav .l26-search-mob { display: none !important; } }
@media (max-width: 599px) { .l26-search-desk { display: none !important; } .l26-search-mob { width: 100%; margin-bottom: 12px; } }
.l26-header-row > .wp-block-navigation { order: 3; flex: 1 1 100%; margin-top: 14px !important; border-top: 1px solid var(--l26-line); font-size: 16px; font-weight: 600; gap: 4px 28px; }
.l26-header-row .wp-block-navigation-item__content { padding: 14px 0; color: var(--l26-ink); text-decoration: none; border-bottom: 3px solid transparent; }
.l26-header-row .wp-block-navigation-item:hover > .wp-block-navigation-item__content,
.l26-header-row .current-menu-item > .wp-block-navigation-item__content { color: var(--l26-navy); border-bottom-color: var(--l26-yellow); }

/* Dropdown (desktop only) */
@media (min-width: 600px) {
.l26-header-row .wp-block-navigation .wp-block-navigation__submenu-container {
	background: #FFFFFF; border: 1px solid var(--l26-line) !important; border-radius: 0 0 12px 12px;
	padding: 8px 0; min-width: 280px !important; font-size: 15px; font-weight: 500; box-shadow: 0 12px 24px rgba(11, 39, 98, 0.08);
}
.l26-header-row .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 9px 18px; border-bottom: 0; width: 100%; }
.l26-header-row .wp-block-navigation__submenu-container .wp-block-navigation-item:hover > .wp-block-navigation-item__content { background: var(--l26-cloud); color: var(--l26-navy); }
}

/* Phone: logo + search + hamburger in one row */
@media (max-width: 599px) {
	.l26-header-row { padding-bottom: 10px; gap: 0 8px; flex-wrap: nowrap; }
	.l26-brand img { width: 44px; height: 44px; }
	.l26-brand-name { font-size: 17px; }
	.l26-brand-sub { display: none; }
	.l26-header-row > .wp-block-navigation { order: 3; flex: 0 0 auto; margin-top: 0 !important; border-top: 0; }
	.l26-header-row .wp-block-navigation__responsive-container-open { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; padding: 0; background: var(--l26-navy); color: #FFFFFF; border-radius: 10px; }
	.l26-topbar-row { justify-content: center !important; text-align: center; }
}
/* Full-screen phone menu */
.wp-block-navigation__responsive-container.is-menu-open { padding: 20px !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 18px; font-weight: 700; padding: 10px 0 !important; border: 0 !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { border: 0 !important; box-shadow: none !important; background: transparent !important; min-width: 0 !important; padding: 0 0 10px 16px !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-size: 16px; font-weight: 500; padding: 6px 0 !important; color: #2C3A5A; }

/* ---------- Sections ---------- */
.l26-section { padding-top: 64px; padding-bottom: 64px; }
.l26-section-white { background: #FFFFFF; border-top: 1px solid var(--l26-line); border-bottom: 1px solid var(--l26-line); }
.l26-section-gray { background: var(--l26-cloud); }
.l26-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 24px; }
.l26-section-head > * { margin: 0; }
.l26-eyebrow { font-size: 14px !important; font-weight: 700; color: var(--l26-muted); margin: 0 0 6px !important; }
.l26-section h2 { font-size: clamp(26px, 3vw, 34px); margin: 0; }
.l26-more { font-weight: 700; }

/* ---------- Hero ---------- */
.l26-hero { background: var(--l26-navy); color: #FFFFFF; }
.l26-hero-cols { padding-top: 72px; padding-bottom: 72px; gap: 48px; align-items: center !important; margin: 0 auto !important; }
.l26-hero .l26-hero-eyebrow { color: var(--l26-yellow); font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 14px; }
.l26-hero h1 { color: #FFFFFF; font-size: clamp(34px, 5vw, 54px); line-height: 1.08; margin: 0 0 14px; }
.l26-hero .l26-hero-sub { color: #DDE3F2; font-size: 19px; margin: 0 0 24px; }
.l26-btn-yellow .wp-block-button__link { background: var(--l26-yellow) !important; color: var(--l26-navy-dark) !important; padding: 14px 24px; border-radius: 10px; }
.l26-collage { display: grid !important; grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px; gap: 14px; }
.l26-collage > * { margin: 0 !important; }
.l26-collage figure { height: 100%; border-radius: 18px; overflow: hidden; }
.l26-collage figure:first-child { grid-row: span 2; }
.l26-collage img { width: 100%; height: 100% !important; object-fit: cover; }

/* ---------- News ---------- */
.l26-news .wp-block-post-template { gap: 24px; }
.l26-news .wp-block-post { background: #FFFFFF; border: 1px solid var(--l26-line); border-radius: 16px; overflow: hidden; margin: 0; }
.l26-news .wp-block-post-featured-image { margin: 0; }
.l26-news .wp-block-post-featured-image img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.l26-news-body { padding: 18px 20px 22px; }
.l26-news-body > * { margin: 0 0 8px; }
.l26-news .wp-block-post-date { font-size: 13px; color: var(--l26-muted); }
.l26-news .wp-block-post-title { font-size: 18px; line-height: 1.35; font-weight: 700; }
.l26-news .wp-block-post-title a { color: var(--l26-ink); text-decoration: none; }
.l26-news .wp-block-post-title a:hover { color: var(--l26-navy); text-decoration: underline; }

/* ---------- About ---------- */
.l26-about-cols { gap: 56px; align-items: center !important; }
.l26-about-photo img { border-radius: 20px; width: 100%; height: 420px; object-fit: cover; }
.l26-stats { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--l26-line); border-bottom: 1px solid var(--l26-line); padding: 18px 0; margin: 20px 0 0 !important; }
.l26-stats > * { margin: 0 !important; padding-left: 16px; border-left: 1px solid var(--l26-line); }
.l26-stats > *:first-child { padding-left: 0; border-left: 0; }
.l26-stat-num { font-size: 30px !important; font-weight: 800; color: var(--l26-navy); margin: 0 !important; line-height: 1.2; }
.l26-stat-label { font-size: 14px !important; color: var(--l26-muted); margin: 0 !important; }

/* ---------- Offer cards ---------- */
.l26-cards { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.l26-cards > * { margin: 0 !important; }
.l26-card { background: #FFFFFF; border: 1px solid var(--l26-line); border-radius: 16px; padding: 24px; }
.l26-card > * { margin: 0 0 10px; }
.l26-card .l26-card-icon img { width: 48px; height: 48px; }
.l26-card h3 { font-size: 19px; }
.l26-card p { font-size: 15px; color: var(--l26-muted); margin: 0; }

/* ---------- Gallery ---------- */
.l26-gallery { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 220px 220px; gap: 14px; }
.l26-gallery > * { margin: 0 !important; }
.l26-gallery figure { position: relative; height: 100%; border-radius: 18px; overflow: hidden; }
.l26-gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
.l26-gallery img { width: 100%; height: 100% !important; object-fit: cover; }
.l26-gallery figcaption { position: absolute; left: 14px; bottom: 14px; margin: 0; background: #FFFFFF; color: var(--l26-navy); padding: 6px 12px; border-radius: 8px; font-size: 14px; font-weight: 700; }

/* ---------- Useful links ---------- */
.l26-links { display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.l26-links > * { margin: 0 !important; }
.l26-links p { border: 1px solid var(--l26-line); background: #FFFFFF; border-radius: 12px; font-size: 15px; font-weight: 600; }
.l26-links p a { display: block; padding: 16px; color: var(--l26-ink); text-decoration: none; }
.l26-links p a:hover { color: var(--l26-navy); }

/* ---------- Notice ---------- */
.l26-notice { background: var(--l26-cream); border-bottom: 1px solid #F1DE8C; color: #5A4500; }
.l26-notice p { margin: 0; padding: 14px 0; }
.l26-notice strong { background: var(--l26-yellow); color: var(--l26-navy-dark); padding: 3px 8px; border-radius: 6px; margin-right: 8px; font-size: 13px; }

/* ---------- Footer ---------- */
.l26-footer { background: var(--l26-navy-dark); color: #DDE3F2; font-size: 15px; }
.l26-footer a { color: #DDE3F2; }
.l26-footer-row { padding-top: 48px; padding-bottom: 24px; gap: 24px 40px; }
.l26-footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.l26-footer-brand img { width: 72px; height: 72px; flex-shrink: 0; }
.l26-footer-brand strong { color: #FFFFFF; font-size: 17px; display: block; margin-bottom: 8px; }
.l26-footer-bottom { position: relative; padding-top: 16px; padding-bottom: 28px; font-size: 14px; color: #B9C4E2; gap: 12px; }
.l26-footer-bottom p { margin: 0; }
.l26-footer-bottom::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; border-top: 1px solid #22356A; }

/* ---------- Content pages ---------- */
.wp-block-post-content h2 { margin-top: 2em; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
	.l26-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.l26-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.l26-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 260px 160px 160px; }
	.l26-gallery figure:first-child { grid-row: span 1; }
}
@media (max-width: 781px) {
	.l26-section { padding-top: 40px; padding-bottom: 40px; }
	.l26-hero-cols { padding-top: 32px; padding-bottom: 32px; gap: 24px; }
	.l26-collage { grid-template-rows: 120px 120px; }
	.l26-about-photo img { height: 220px; }
	.l26-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 0; }
	.l26-stats > *:nth-child(3) { padding-left: 0; border-left: 0; }
	.l26-cards { grid-template-columns: 1fr; }
	.l26-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =========================================================
   1.1 — Блоки для внутрішніх сторінок
   ========================================================= */

/* Файл (PDF) — картка */
.wp-block-file { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: #FFFFFF; border: 1px solid var(--l26-line); border-radius: 14px; padding: 16px 20px; margin: 0 0 12px; }
.wp-block-file::before { content: ""; width: 40px; height: 48px; flex-shrink: 0; background: url("assets/images/icon-pdf.svg") center / contain no-repeat; }
.wp-block-file > a:first-of-type { flex: 1 1 200px; color: var(--l26-ink); font-weight: 700; text-decoration: none; }
.wp-block-file > a:first-of-type:hover { color: var(--l26-navy); text-decoration: underline; }
.wp-block-file .wp-block-file__button { background: var(--l26-navy); color: #FFFFFF; border-radius: 10px; padding: 10px 18px; font-size: 15px; font-weight: 700; margin: 0; }
.l26-docs > * { margin-block-start: 0; }

/* Картка людини */
.l26-person { background: #FFFFFF; border: 1px solid var(--l26-line); border-radius: 18px; padding: 24px; gap: 24px; }
.l26-person-photo { margin: 0; flex: 0 0 200px; }
.l26-person-photo img { width: 200px; height: 250px; object-fit: cover; border-radius: 14px; }
.l26-person-text { flex: 1 1 260px; }
.l26-person-text > * { margin: 0 0 8px; }
.l26-person-role { font-size: 14px; font-weight: 700; color: var(--l26-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.l26-person-text h3 { font-size: 24px; margin-bottom: 12px; }
.l26-person-meta { font-size: 16px; }

/* Сітка вчителів */
.l26-people { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.l26-people > * { margin: 0 !important; }
.l26-teacher { background: #FFFFFF; border: 1px solid var(--l26-line); border-radius: 16px; overflow: hidden; }
.l26-teacher > * { margin: 0; }
.l26-teacher-photo img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; display: block; }
.l26-teacher h4 { font-size: 17px; padding: 14px 16px 2px; }
.l26-teacher-subject { font-size: 14px; color: var(--l26-muted); padding: 0 16px 16px; }

/* Розгортання */
.wp-block-details { background: #FFFFFF; border: 1px solid var(--l26-line); border-radius: 14px; padding: 0; margin: 0 0 10px; overflow: hidden; }
.wp-block-details summary { cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--l26-navy); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--l26-navy); }
.wp-block-details[open] summary { background: var(--l26-cloud); }
.wp-block-details[open] summary::after { content: "−"; }
.wp-block-details > *:not(summary) { padding: 0 20px; }
.wp-block-details > *:last-child { padding-bottom: 16px; }
.l26-accordion > * { margin-block-start: 0; }

/* Контакти */
.l26-contacts { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.l26-contacts > * { margin: 0 !important; }
.l26-contact-card { background: var(--l26-cloud); border-radius: 16px; padding: 22px; border-top: 4px solid var(--l26-yellow); }
.l26-contact-card > * { margin: 0 0 6px; }
.l26-contact-card h4 { font-size: 15px; color: var(--l26-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.l26-contact-card p { font-size: 17px; font-weight: 600; }

/* Таблиця */
.wp-block-table table { border-collapse: separate; border-spacing: 0; border: 1px solid var(--l26-line); border-radius: 12px; overflow: hidden; width: 100%; }
.wp-block-table thead { border: 0; }
.wp-block-table th { background: var(--l26-navy); color: #FFFFFF; text-align: left; font-weight: 700; padding: 12px 16px; border: 0; }
.wp-block-table td { padding: 12px 16px; border: 0; border-top: 1px solid var(--l26-line); }
.wp-block-table tbody tr:nth-child(even) td { background: var(--l26-cloud); }

/* Важливо */
.l26-callout { background: var(--l26-cream); border: 1px solid #F1DE8C; border-radius: 14px; padding: 18px 22px; color: #3F3000; }
.l26-callout > * { margin: 0 0 6px; }
.l26-callout > *:last-child { margin-bottom: 0; }
.l26-callout-title strong { background: var(--l26-yellow); color: var(--l26-navy-dark); padding: 3px 10px; border-radius: 6px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }

/* Цитата і роздільник */
.wp-block-quote { border-left: 4px solid var(--l26-yellow) !important; padding-left: 20px; }
.wp-block-separator { border-color: var(--l26-line); }

@media (max-width: 781px) {
	.l26-people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.l26-contacts { grid-template-columns: 1fr; }
	.l26-person-photo, .l26-person-photo img { width: 120px; height: 144px; flex-basis: 120px; }
}


/* =========================================================
   1.4 — Шаблон сторінок: смуга із заголовком, бічна навігація, картки персоналу
   ========================================================= */
.l26-page-head { background: var(--l26-sky); border-bottom: 1px solid #D5DCEC; }
.l26-page-head .l26-wrap { padding-top: 28px; padding-bottom: 32px; }
.l26-page-head .l26-wrap > * { margin: 0; }
.l26-page-head h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; margin-top: 10px !important; }
.l26-breadcrumbs { font-size: 14px; color: var(--l26-muted); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.l26-breadcrumbs a { color: var(--l26-muted); text-decoration: none; }
.l26-breadcrumbs a:hover { color: var(--l26-navy); text-decoration: underline; }
.l26-breadcrumbs [aria-current] { color: var(--l26-ink); }
.l26-post-meta { margin-top: 12px !important; gap: 6px 14px; font-size: 14px; color: var(--l26-muted); }
.l26-post-meta > * { margin: 0; }
.l26-post-meta a { color: var(--l26-navy); }

.l26-page-grid { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 48px; padding-top: 40px; padding-bottom: 72px; }
.l26-page-grid:has(.l26-subnav) { grid-template-columns: minmax(0, 1fr) 280px; }
.l26-page-grid > * { margin: 0 !important; }
.l26-page-content > .wp-block-post-content > *:first-child { margin-top: 0; }
.l26-page-content .wp-block-post-content { max-width: 920px; }
.l26-page-content h2 { font-size: 26px; margin-top: 1.8em; }
.l26-page-content h3 { font-size: 20px; }
.l26-post-image { margin: 0 0 24px; }
.l26-post-image img { border-radius: 16px; }

.l26-subnav { position: sticky; top: 24px; background: #FFFFFF; border: 1px solid var(--l26-line); border-radius: 16px; padding: 18px 0 10px; }
.l26-subnav > * { margin: 0; }
.l26-subnav-title { padding: 0 20px 12px; border-bottom: 1px solid var(--l26-line); font-weight: 800; font-size: 16px; }
.l26-subnav-title a { color: var(--l26-navy); text-decoration: none; }
.l26-subnav ul { list-style: none; margin: 8px 0 0; padding: 0; }
.l26-subnav li a { display: block; padding: 9px 20px; color: var(--l26-ink); text-decoration: none; font-size: 15px; border-left: 3px solid transparent; }
.l26-subnav li a:hover { background: var(--l26-cloud); color: var(--l26-navy); }
.l26-subnav li.is-current a { border-left-color: var(--l26-yellow); background: var(--l26-cloud); color: var(--l26-navy); font-weight: 700; }
.l26-subnav .wp-block-latest-posts { padding: 4px 20px 6px; margin: 0; }
.l26-subnav .wp-block-latest-posts li { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--l26-line); }
.l26-subnav .wp-block-latest-posts li:last-child { border-bottom: 0; }
.l26-subnav .wp-block-latest-posts a { padding: 0; border: 0; font-weight: 600; font-size: 15px; }
.l26-subnav .wp-block-latest-posts__post-date { font-size: 13px; color: var(--l26-muted); }

/* Картки персоналу (без фото) */
.l26-person-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.l26-person-grid > * { margin: 0 !important; }
.l26-person-grid .l26-person { padding: 18px; gap: 16px; align-items: flex-start !important; }
.l26-person-grid .l26-person-photo { flex: 0 0 140px; }
.l26-person-grid .l26-person-photo img { width: 140px; height: 175px; }
.l26-person-grid .l26-person-text { flex: 1 1 180px; }
.l26-person-grid .l26-person-role { font-size: 12px; }
@media (max-width: 900px) { .l26-person-grid { grid-template-columns: minmax(0, 1fr); } }
.l26-staff { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.l26-staff > * { margin: 0 !important; }
.l26-staff-card { background: #FFFFFF; border: 1px solid var(--l26-line); border-radius: 12px; padding: 14px 16px; }
.l26-staff-card > * { margin: 0 0 4px; }
.l26-staff-card > *:last-child { margin-bottom: 0; }
.l26-staff-name { font-weight: 700; color: var(--l26-ink); font-size: 16px; }
.l26-staff-role { font-size: 14px; color: var(--l26-navy); }
.l26-staff-cat { font-size: 13px; color: var(--l26-muted); }
.wp-block-details .l26-staff { margin: 4px 0 16px; }

/* Список посилань-документів, що ведуть на Google Диск */
.wp-block-file > a:first-of-type[target="_blank"]::after { content: " ↗"; color: var(--l26-muted); font-weight: 400; }

@media (max-width: 1000px) {
	.l26-page-grid:has(.l26-subnav) { grid-template-columns: minmax(0, 1fr); }
	.l26-subnav { position: static; }
	.l26-staff { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
	.l26-staff { grid-template-columns: 1fr; }
	.l26-page-grid { padding-top: 24px; gap: 32px; }
}


/* =========================================================
   1.5 — Фотоальбоми
   ========================================================= */
.l26-album { position: relative; display: block; height: 100%; min-height: 0; border-radius: 18px; overflow: hidden; background: var(--l26-navy); color: #FFFFFF; text-decoration: none; isolation: isolate; }
.l26-album img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; transition: transform .4s ease; }
.l26-album::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(7, 26, 68, .88) 0%, rgba(7, 26, 68, .35) 45%, rgba(7, 26, 68, 0) 70%); transition: background .3s ease; }
.l26-album-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.l26-album-title { font-size: 18px; font-weight: 700; line-height: 1.25; color: #FFFFFF; }
.l26-album-count { font-size: 13px; font-weight: 600; color: var(--l26-yellow); }
.l26-album:hover img, .l26-album:focus-visible img { transform: scale(1.05); }
.l26-album:hover::after, .l26-album:focus-visible::after { background: linear-gradient(to top, rgba(7, 26, 68, .92) 0%, rgba(7, 26, 68, .55) 60%, rgba(7, 26, 68, .25) 100%); }
.l26-album:focus-visible { outline: 3px solid var(--l26-yellow); outline-offset: 3px; }
.l26-album-empty { background: linear-gradient(135deg, var(--l26-navy) 0%, #23408A 100%); }
.l26-album-empty img { object-position: center 70%; }
.l26-album-photo::after { background: rgba(7, 26, 68, 0); }
.l26-album-photo:hover::after { background: rgba(7, 26, 68, .25); }

.l26-albums-home > .l26-album:first-child { grid-column: span 2; grid-row: span 2; }
.l26-albums-home > .l26-album:first-child .l26-album-title { font-size: 26px; }
.l26-albums-home > .l26-album:first-child .l26-album-text { padding: 22px 26px; }
.l26-albums-home.l26-n1 { grid-template-columns: minmax(0, 1fr); grid-template-rows: 380px; }
.l26-albums-home.l26-n1 > .l26-album:first-child { grid-column: auto; grid-row: auto; }
.l26-albums-home.l26-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 340px; }
.l26-albums-home.l26-n2 > .l26-album:first-child { grid-column: auto; grid-row: auto; }
.l26-albums-home.l26-n3 > .l26-album:nth-child(n+2) { grid-column: span 2; }
.l26-albums-home.l26-n4 > .l26-album:nth-child(4) { grid-column: span 2; }

.l26-albums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 32px; }
.l26-albums .l26-album { aspect-ratio: 4 / 3; height: auto; }
.l26-albums-more { margin-top: 8px !important; }
.l26-album-back { margin-top: 32px !important; }
.l26-album-back a { font-weight: 700; color: var(--l26-navy); text-decoration: none; }
.l26-album-back a:hover { text-decoration: underline; }

/* 6 плиток: два ряди по 4 колонки, широкі плитки по діагоналі */
.l26-albums-home.l26-n6 { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 250px 250px; }
.l26-albums-home.l26-n6 > .l26-album:first-child { grid-column: span 2; grid-row: span 1; }
.l26-albums-home.l26-n6 > .l26-album:nth-child(6) { grid-column: span 2; }
.l26-albums-home.l26-n6 > .l26-album:nth-child(6) .l26-album-title { font-size: 22px; }

@media (max-width: 781px) {
	.l26-albums-home.l26-n6 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
	.l26-albums-home.l26-n6 > .l26-album:nth-child(6) { grid-column: 1 / -1; }
	.l26-albums-home, .l26-albums-home.l26-n1, .l26-albums-home.l26-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: 170px; }
	.l26-albums-home > .l26-album:first-child, .l26-albums-home.l26-n1 > .l26-album:first-child, .l26-albums-home.l26-n2 > .l26-album:first-child { grid-column: 1 / -1; grid-row: span 1; }
	.l26-albums-home > .l26-album:first-child .l26-album-title { font-size: 20px; }
	.l26-albums-home > .l26-album:first-child .l26-album-text { padding: 16px 18px; }
	.l26-albums-home.l26-n3 > .l26-album:nth-child(n+2) { grid-column: auto; }
	.l26-albums-home.l26-n4 > .l26-album:nth-child(4) { grid-column: 1 / -1; }
	.l26-albums-home.l26-n2 > .l26-album:last-child { grid-column: 1 / -1; }
	.l26-album-title { font-size: 15px; }
	.l26-album-text { padding: 12px 14px; }
	.l26-albums { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 480px) {
	.l26-albums { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	.l26-album img, .l26-album::after { transition: none; }
}


/* =========================================================
   1.6 — Сторінка новин, відступи файлів
   ========================================================= */
.wp-block-file { margin: 16px 0 0 !important; }
.wp-block-file + .wp-block-file { margin-top: 10px !important; }
.l26-page-content .wp-block-heading + * { margin-top: 16px !important; }
.l26-news-page { padding-top: 40px; padding-bottom: 72px; }
.l26-news-list .wp-block-post-template { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 24px; }
@media (max-width: 1000px) { .l26-news-list .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 600px) { .l26-news-list .wp-block-post-template { grid-template-columns: minmax(0, 1fr) !important; } }
.l26-news-list .wp-block-post-title { font-size: 19px; }
.l26-news-list .wp-block-post-excerpt { font-size: 15px; color: var(--l26-muted); margin-top: 6px; }
.l26-news-list .wp-block-post-excerpt__more-text { display: none; }
.l26-news-list .wp-block-query-pagination { margin-top: 40px; gap: 8px; font-weight: 700; }
.l26-news-list .wp-block-query-pagination a, .l26-news-list .wp-block-query-pagination .current { color: var(--l26-navy); padding: 6px 12px; border-radius: 8px; text-decoration: none; }
.l26-news-list .wp-block-query-pagination .current { background: var(--l26-navy); color: #FFFFFF; }
.l26-news-list .wp-block-query-pagination a:hover { background: var(--l26-sky); }


/* 1.7 — меню з пунктом «Головна» вміщується в один рядок */
@media (min-width: 1000px) { .l26-header-row > .wp-block-navigation, .l26-header-row > .wp-block-navigation .wp-block-navigation__container { gap: 4px 20px; } }

/* =========================================================
   1.7 — Сторінка пошуку
   ========================================================= */
.l26-page-head .wp-block-query-title { margin: 0 0 20px; }
.l26-search-big { max-width: 720px; margin: 0 !important; }
.l26-search-big .wp-block-search__inside-wrapper { gap: 10px; }
.l26-search-big .wp-block-search__input { border: 1px solid var(--l26-line); border-radius: 12px; padding: 12px 16px; font-size: 16px; background: #FFFFFF; }
.l26-search-big .wp-block-search__button { margin: 0; border-radius: 12px; background: var(--l26-navy); color: #FFFFFF; padding: 12px 24px; font-weight: 700; border: 0; }
.l26-search-page { padding-top: 32px; padding-bottom: 64px; }
.l26-search-results .wp-block-post-template { margin: 0; padding: 0; list-style: none; max-width: 920px; }
.l26-search-results .wp-block-post-template > li { margin: 0 !important; }
.l26-search-item { padding: 20px 0; border-bottom: 1px solid var(--l26-line); }
.l26-search-item .wp-block-post-title { font-size: 20px; margin: 0; }
.l26-search-item .wp-block-post-title a { color: var(--l26-navy); text-decoration: none; }
.l26-search-item .wp-block-post-title a:hover { text-decoration: underline; }
.l26-search-item .wp-block-post-excerpt { margin: 6px 0 0; color: var(--l26-muted); font-size: 15px; }
.l26-search-item .wp-block-post-excerpt__excerpt { margin: 0; }
.l26-search-item .wp-block-post-excerpt__more-text { display: none; }
.l26-search-results .wp-block-query-pagination { margin-top: 32px; gap: 8px; font-weight: 700; }
.l26-search-results .wp-block-query-pagination a, .l26-search-results .wp-block-query-pagination .current { color: var(--l26-navy); padding: 6px 12px; border-radius: 8px; text-decoration: none; }
.l26-search-results .wp-block-query-pagination .current { background: var(--l26-navy); color: #FFFFFF; }


/* =========================================================
   1.8 — Педагогічний колектив
   ========================================================= */
.l26-kicker { margin: 14px 0 4px !important; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--l26-muted); }
.l26-mo-total { margin: 0 0 20px; font-size: 17px; }
.l26-mo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.l26-mo-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: #FFFFFF; border: 1px solid var(--l26-line); border-radius: 16px; color: var(--l26-ink); text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.l26-mo-card:hover, .l26-mo-card:focus-visible { border-color: var(--l26-navy); box-shadow: 0 10px 24px rgba(11, 39, 98, .10); transform: translateY(-2px); }
.l26-mo-card:focus-visible { outline: 3px solid var(--l26-yellow); outline-offset: 2px; }
.l26-mo-icon { flex: 0 0 48px; height: 48px; border-radius: 12px; background: var(--l26-cream); display: flex; align-items: center; justify-content: center; }
.l26-mo-icon img { width: 26px; height: 26px; }
.l26-mo-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.l26-mo-name { font-size: 17px; font-weight: 800; line-height: 1.3; color: var(--l26-navy); }
.l26-mo-head { font-size: 14px; color: var(--l26-muted); }
.l26-mo-count { align-self: flex-start; margin-top: 6px; padding: 3px 10px; border-radius: 999px; background: var(--l26-sky); color: var(--l26-navy); font-size: 13px; font-weight: 700; }

.l26-mo-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.l26-chip { padding: 5px 12px; border-radius: 999px; background: var(--l26-cloud); border: 1px solid var(--l26-line); font-size: 14px; color: var(--l26-ink); }
.l26-chip-main { background: var(--l26-navy); border-color: var(--l26-navy); color: #FFFFFF; font-weight: 700; }
.l26-mo-desc { margin: 0 0 28px; max-width: 760px; }

.l26-teachers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.l26-teacher { display: flex; flex-direction: column; background: #FFFFFF; border: 1px solid var(--l26-line); border-radius: 16px; overflow: hidden; }
.l26-teacher-photo { position: relative; aspect-ratio: 1 / 1; background: var(--l26-sky); overflow: hidden; }
.l26-teacher-photo img { width: 100%; height: 100% !important; object-fit: cover; object-position: center 20%; display: block; box-sizing: border-box; }
.l26-teacher-photo img.l26-teacher-noimg { object-fit: contain; object-position: center bottom; padding: 22% 18% 0; }
.l26-badge { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; background: var(--l26-yellow); color: var(--l26-navy); font-size: 12px; font-weight: 800; }
.l26-teacher-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; flex: 1; }
.l26-teacher-body > * { margin: 0 !important; }
.l26-teacher-name { font-size: 16px !important; line-height: 1.3; }
.l26-teacher-name a { color: var(--l26-navy); text-decoration: none; }
.l26-teacher-name a:hover { text-decoration: underline; }
.l26-teacher-sub { font-size: 14px; color: var(--l26-ink); }
.l26-teacher-qual { font-size: 13px; color: var(--l26-muted); }
.l26-teacher-more { margin-top: auto !important; padding-top: 8px; font-size: 14px; font-weight: 700; color: var(--l26-navy); text-decoration: none; }
.l26-teacher-more:hover { text-decoration: underline; }

.l26-profile { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; }
.l26-profile-photo { border-radius: 18px; overflow: hidden; background: var(--l26-sky); aspect-ratio: 4 / 5; }
.l26-profile-photo img { width: 100%; height: 100% !important; object-fit: cover; display: block; box-sizing: border-box; }
.l26-profile-photo img.l26-teacher-noimg { object-fit: contain; object-position: center bottom; padding: 22% 18% 0; }
.l26-profile-data { margin: 0; }
.l26-profile-data > div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--l26-line); }
.l26-profile-data > div:first-child { padding-top: 0; }
.l26-profile-data dt { color: var(--l26-muted); font-size: 14px; }
.l26-profile-data dd { margin: 0; font-weight: 600; font-size: 16px; line-height: 1.45; }
.l26-profile-data dd a { color: var(--l26-navy); }
.l26-profile-more { margin-top: 36px; }

.l26-page-content .wp-block-table { font-size: 16px; line-height: 1.45; }
.l26-page-content .wp-block-table th { font-size: 16px; }
@media (max-width: 1100px) { .l26-teachers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 781px) {
	.l26-mo-grid { grid-template-columns: minmax(0, 1fr); }
	.l26-profile { grid-template-columns: minmax(0, 1fr); }
	.l26-profile-photo { max-width: 260px; }
	.l26-profile-data > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (max-width: 420px) {
	.l26-teachers { gap: 10px; }
	.l26-teacher-body { padding: 12px; }
	.l26-teacher-name { font-size: 15px !important; }
}

/* 1.8.1 — відступи акордеонів */
.l26-page-content * + .wp-block-details { margin-top: 12px !important; }
.wp-block-details > .wp-block-file { padding: 14px 18px !important; margin: 12px 16px 0 !important; }
.wp-block-details > .wp-block-file:last-child { margin-bottom: 16px !important; }

/* 1.9 — сторінка 404 */
.l26-404 { padding-top: 40px; padding-bottom: 72px; }
.l26-404 > * { max-width: 760px; margin-left: 0 !important; }
.l26-404 > p { font-size: 18px; margin: 0 0 24px; }
.l26-404 .wp-block-search { margin: 0 0 28px; }
.l26-404-links { gap: 10px; }
.l26-404-links .wp-block-button__link { border: 1px solid var(--l26-navy); color: var(--l26-navy); background: #FFFFFF; border-radius: 10px; padding: 10px 18px; font-weight: 700; font-size: 15px; }
.l26-404-links .wp-block-button__link:hover { background: var(--l26-navy); color: #FFFFFF; }
/* 1.9 — списки в акордеонах */
.wp-block-details > ul, .wp-block-details > ol { padding-left: 44px !important; padding-right: 20px !important; }

/* 1.9.1 — онлайн-розклад */
.l26-rozklad-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.l26-rozklad-btn { display: inline-block; background: var(--l26-navy); color: #FFFFFF !important; text-decoration: none !important; font-weight: 700; font-size: 15px; padding: 11px 18px; border-radius: 10px; }
.l26-rozklad-btn-alt { background: #FFFFFF; color: var(--l26-navy) !important; border: 1px solid var(--l26-navy); }
.l26-rozklad-frame { display: block; width: 100%; height: 760px; border: 1px solid #E3E8F2; border-radius: 14px; background: #FFFFFF; }
@media (max-width: 781px) { .l26-rozklad-frame { display: none; } }

/* 1.9.2 — вчителі в ряд */
.l26-person-grid.l26-person-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.l26-person-row .l26-person { flex-direction: column; flex-wrap: nowrap !important; align-items: center !important; text-align: center; padding: 16px 14px 18px; gap: 12px; height: 100%; }
.l26-person-grid.l26-person-row .l26-person-photo { flex: 0 0 auto; width: 100%; max-width: 180px; height: auto; }
.l26-person-grid.l26-person-row .l26-person-photo img { width: 100%; height: auto; flex-basis: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
.l26-person-row .l26-person-text { flex: 1 1 auto; width: 100%; }
.l26-person-row .l26-person-text h3 { font-size: 17px; line-height: 1.3; }
.l26-person-row .l26-person-meta { font-size: 14px; }
.l26-person-row .l26-person-role { font-size: 11px; }
@media (max-width: 900px) { .l26-person-grid.l26-person-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .l26-person-grid.l26-person-row { gap: 10px; } .l26-person-row .l26-person { padding: 12px 10px 14px; } .l26-person-row .l26-person-text h3 { font-size: 15px; } }

/* 1.9.3 — збільшення фото людей */
.l26-person-photo .lightbox-trigger { opacity: 0 !important; }
.l26-person-photo .lightbox-trigger:focus-visible { opacity: 1 !important; }
.l26-person-photo img { cursor: zoom-in; }
.l26-person-photo img[src$="avatar.svg"] { cursor: default; }
.l26-teacher-photo img { cursor: zoom-in; }
.l26-teacher-photo img[src$="avatar.svg"] { cursor: default; }
.l26-zoom { position: fixed; inset: 0; z-index: 100000; background: rgba(255, 255, 255, .96); display: flex; align-items: center; justify-content: center; padding: 56px 16px 24px; cursor: zoom-out; }
.l26-zoom img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 12px; box-shadow: 0 10px 40px rgba(15, 35, 80, .2); }
.l26-zoom-close { position: absolute; top: 12px; right: 16px; width: 40px; height: 40px; border: 0; background: none; font-size: 34px; line-height: 1; color: #0F2350; cursor: pointer; }

/* 1.9.4 — онлайн-розклад компактніше і на телефоні */
.l26-rozklad-frame { width: 100%; max-width: 480px; height: 620px; border-radius: 14px; }
@media (max-width: 781px) { .l26-rozklad-frame { display: block; max-width: 100%; height: 600px; } }

/* 1.9.5 — історична довідка, директори */
.l26-history-block { gap: 28px; margin: 24px 0 32px !important; }
.l26-history-block .wp-block-media-text__media img { border-radius: 14px; max-height: 320px; object-fit: cover; }
.l26-history-block .wp-block-media-text__content { padding: 0 !important; }
.l26-history-block .wp-block-media-text__content > *:first-child { margin-top: 0; }
.l26-photo-note { font-size: 14px; color: var(--l26-muted); }
.l26-directors { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 20px 0 28px !important; }
.l26-director { background: #FFFFFF; border: 1px solid var(--l26-line); border-radius: 16px; padding: 14px 12px 16px; text-align: center; }
.l26-director > * { margin: 0 !important; }
.l26-director figure img { width: 120px; height: 160px; object-fit: cover; display: block; margin: 0 auto 10px; border-radius: 10px; }
.l26-director-years { font-size: 13px; font-weight: 700; color: var(--l26-navy); background: var(--l26-cream); border-radius: 999px; display: inline-block; padding: 2px 10px; margin-bottom: 8px !important; }
.l26-director-name { font-weight: 700; line-height: 1.3; font-size: 16px; }
.l26-director-subj { font-size: 14px; color: var(--l26-muted); margin-top: 4px !important; }
@media (max-width: 600px) { .l26-history-block { gap: 12px; } .l26-directors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.l26-directors > * { margin: 0 !important; }

/* Галереї: рівні плитки 4:3, фото не розтягуються під вертикальні сусідні (повне фото — у переглядачі) */
body .wp-block-gallery.has-nested-images.is-cropped{align-items:flex-start}
body .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image){flex-grow:0;align-self:flex-start}
body .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img{aspect-ratio:4/3;width:100%;height:auto;flex:none;object-fit:cover;object-position:50% 30%}

/* Пам'ять Героїв */
.l26-heroes{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:22px;margin:24px 0}
.l26-hcard{background:#fff;border:1px solid var(--l26-line,#e3e7ef);border-radius:16px;overflow:hidden;display:flex;flex-direction:column}
.l26-hcard img{width:100%;aspect-ratio:18/25;object-fit:cover;object-position:top;display:block}
.l26-hcard-body{padding:14px 16px 18px}
.l26-hcard-body h3,.l26-hsmall h3{margin:0 0 2px;font-size:1.1rem}
.l26-hcard-body p,.l26-hsmall p{margin:6px 0 0;font-size:.92rem;line-height:1.45}
.l26-hcard-cs{font-weight:600;margin-top:0 !important}
.l26-hero-yrs{color:#5a6478;font-size:.88rem !important}
.l26-heroes-small{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px;margin:20px 0}
.l26-hsmall{background:#f6f8fc;border-left:4px solid #f5c400;border-radius:10px;padding:12px 16px}
.l26-hero-main{margin:28px 0 !important;background:#f6f8fc;border-radius:18px;overflow:hidden;align-items:start !important}
.l26-hero-main .wp-block-media-text__media img{border-radius:0}
.l26-note{color:#5a6478;font-size:.92rem}
