/* Внутрішні сторінки в новому дизайні (редизайн 2026). Підключається після style.css і theme.css
   на всіх сторінках, крім головної. Токени - theme.css, тут тільки те, що відрізняється від style.css.
   Що де: 1 заголовки · 2 плашка сторінки · 3 секції й кнопки · 4 акордеони, картки, блоки
          5 окремі сторінки · 6 темна тема · 7 контраст · 8 телефон · 9 друк */

/* 1. заголовки: великі - Unbounded, заголовки карток - Manrope (через --serif у theme.css) */
body{background:var(--bg);color:var(--ink)}
h1,h2,.content h1{font-family:var(--f-head);letter-spacing:-.01em}
h2{font-weight:700;font-size:clamp(22px,2.6vw,30px);line-height:1.15}
.sec-head h2{max-width:28ch}
.lead{color:var(--muted);font-size:16px}
.content h2{font-size:clamp(20px,2.2vw,26px)}
.content h3,.content h4{font-weight:800}
.content a,.f-link,.acc-go,.b-lk-h{color:var(--ink)}
.content a:hover{color:var(--navy-soft)}
html.dark .content a:hover{color:var(--accent)}

/* 2. плашка сторінки: синя картка з великим знаком, як перший екран головної */
.hero.t-hero{position:relative;background:transparent;color:#fff;padding:32px 0 8px}
.t-hero .hero-bg{inset:32px max(var(--gut),(100% - var(--container)) / 2) 8px;border-radius:32px;background:var(--brand);background-image:none;overflow:hidden}
.t-hero .hero-bg.has-photo{background-size:cover}
.t-hero .hero-bg .num{right:-24px;top:auto;bottom:-.18em;transform:none;font-family:var(--f-head);font-weight:800;font-size:clamp(150px,20vw,280px);
  color:var(--brand-soft);-webkit-text-stroke:0;letter-spacing:-.04em;animation:none!important;white-space:nowrap}
.t-hero .hero-in{padding:clamp(28px,4vw,52px) clamp(24px,4vw,52px)}
.t-hero h1{overflow-wrap:break-word;hyphens:auto;font-family:var(--f-head);font-weight:800;font-size:clamp(30px,4.6vw,58px);line-height:1.04;letter-spacing:-.02em;max-width:22ch;color:#fff}
.t-hero .hero-sub{color:var(--on-dark-muted);font-size:clamp(16px,1.6vw,19px);line-height:1.55;max-width:62ch}
.t-hero .crumbs{color:var(--on-dark-muted);font-size:13px;font-weight:600;margin-bottom:18px}
.t-hero .crumbs a{color:#fff;text-decoration:underline;text-decoration-color:rgba(255,255,255,.35);text-underline-offset:3px}
.t-hero .crumbs a:hover{text-decoration-color:#fff}
.jump{margin-top:22px;gap:8px}
.jump a{color:#fff;font-size:13px;font-weight:600;background:transparent;border:1px solid var(--brand-line);padding:7px 12px}
.jump a:hover{background:var(--accent);border-color:var(--accent);color:var(--navy-deep)}

/* 3. секції й кнопки */
.sec{padding:clamp(32px,5vw,56px) 0}
.sec.alt,.sec.sky{background:transparent}
.sp-sec,.pf-sec{padding-top:clamp(24px,4vw,40px)}
.chip{border-radius:var(--r-pill);font-weight:700}
.chip[aria-pressed=true],.chip:has(input:checked){background:var(--brand);border-color:var(--brand);color:#fff}
.chip[aria-pressed=true] span{color:var(--accent)}
.t-find input,.sch-pick select,.field input,.field textarea{border-color:var(--input-line);border-radius:var(--r-ctl)}

/* 4. акордеони, картки, блоки */
.acc{gap:12px}
.acc-item{border-radius:24px}
.acc-item.open{border-color:var(--ink);box-shadow:none}
.acc-head{padding:18px 22px}
.acc-head .ico{border-radius:12px;background:var(--tint);color:var(--ink)}
.acc-head:hover .ico,.acc-item.open .acc-head .ico{background:var(--brand);color:#fff}
.acc-t{font-weight:800;font-size:clamp(16px,1.8vw,19px)}
.acc-sub{font-weight:800}
.acc-item.link:hover{border-color:var(--ink);box-shadow:none}
.b-note{border-radius:16px;background:var(--tint);border-left-color:var(--brand)}
.b-note.warn{background:rgba(246,184,0,.16);border-left-color:var(--accent)}
.b-note.warn .ic{color:var(--accent-text)}
.b-links a,.b-people li,.b-facts div,.b-news article,.b-phones .phone,.b-button{border-radius:18px;background:var(--bg)}
.b-links a:hover,.b-people li:hover,.b-phones .phone:hover{border-color:var(--ink);box-shadow:none}
.b-stats li{border-radius:20px;background:var(--brand);background-image:none}
.b-stats b{font-family:var(--f-head);font-weight:800;color:var(--accent)}
.b-stats span{color:var(--on-dark-muted)}
.b-table{border-radius:18px}
.b-table thead th{background:var(--bg);color:var(--muted)}
.b-news h4{font-weight:800}
.b-ph,.yt,.yt-frame{border-radius:16px}
.phone strong{font-family:var(--f-head);font-weight:800;color:var(--ink)}
.faq{border-radius:18px;background:var(--surface)}
.faq[open]{border-color:var(--ink)}
.side{border-radius:20px;background:var(--surface)}
.side a[aria-current]{color:var(--ink)}
.empty-note{border-radius:18px}

/* 5. окремі сторінки */
/* темні плашки зі старою сіткою й сяйвом - тепер рівний синій, як на головній */
.h-age,.sg-leader,.sch-now{background:var(--brand);background-image:none;border-radius:24px}
.h-age b,.h-age strong{font-family:var(--f-head)}
/* заглушки фото - смугастий візерунок з макета */
.t-ph,.gal-ph{background-color:var(--navy-soft);background-image:repeating-linear-gradient(135deg,rgba(255,255,255,.05) 0 14px,transparent 14px 28px);background-size:auto}

/* адміністрація: на ПК усі в один ряд (--n ставить about-page.js), на планшеті 3, на телефоні 2 і 1 */
.adm-grid{grid-template-columns:repeat(var(--n,4),minmax(0,1fr))}
/* квадратна рамка з вертикального портрета: кадр від верху фото, щоб не зрізало маківку */
.adm .t-ph img{object-position:50% 8%}
@media (max-width:960px){.adm-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

@media (max-width:640px){.adm-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:420px){.adm-grid{grid-template-columns:1fr}}

/* педколектив */
/* освіта у вікні педагога: кожен заклад окремим пунктом */
.t-edu{list-style:none;margin:4px 0 0;padding:0;display:grid}
.t-edu li{display:flex;flex-direction:column;gap:2px;padding:8px 0 8px 14px;border-left:3px solid var(--brand)}
.t-edu li+li{margin-top:8px}
.t-edu b{font-weight:800;line-height:1.35}
.t-edu span{color:var(--muted);font-size:.92em;line-height:1.45}
html.contrast .t-edu li{border-left-color:#000}
.t-card{border-radius:22px;box-shadow:none}
.t-card:hover{box-shadow:none;border-color:var(--ink)}
.t-badge{border-radius:var(--r-pill)}
/* календар, розклад, меню, новини */
.cal-box{border-radius:28px}
.cal-head h2{font-family:var(--f-head)}
.sch-now{border-radius:22px}
.rv-sum b,.pf-code b,.pr-num,.pr-badge,.pr-facts b,.pr-time b,.pr-sw-l{font-family:var(--f-head)}
.nt-tabs::before{background:var(--brand)}
/* меню: обраний день - синя плашка бренду (у темній темі --fill надто світлий для жовтого тексту) */
.mn-week li.cur{background:var(--brand)}
/* SWOT: велика літера-декор, але читабельна */
.pr-sw-l{color:var(--ink);opacity:.55}   /* колір кластера лишається в смузі зверху картки */
/* профтест і тест профілю */
.pf-card{border-radius:28px;box-shadow:none}
.pf h2,.pf h3{font-family:var(--f-head);font-weight:700}
.pf h4{font-family:var(--f-text);font-weight:800}
.pf-q{border-radius:22px}
.pf-opt input:checked+.pf-dot{background:var(--brand);border-color:var(--brand)}
.pf-bar i{background:var(--brand)}
/* профільне навчання */
.pr-card,.pr-chart,.pr-stats li,.pr-big li{border-radius:24px;box-shadow:none}
.pr-test{background:var(--brand);background-image:none;border-radius:28px}
.pr-banner{background:var(--brand)}
.pr-card h3,.pr-chart figcaption{font-family:var(--f-text);font-weight:800}

/* сторінки-пам'ятки (info-page.js): розділи йдуть підряд білими картками */
.ip{display:grid;gap:20px;max-width:920px}
.ip-card{background:var(--surface);border:1px solid var(--line);border-radius:28px;padding:clamp(20px,3vw,32px);scroll-margin-top:100px}
.ip-card h2{display:flex;align-items:center;gap:14px;margin:0 0 16px;font-size:clamp(19px,2vw,24px)}
.ip-card h2 .ico{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:14px;background:var(--tint);color:var(--ink)}
.ip-card h2 .ico .ic{width:22px;height:22px}
.ip-body{display:grid;gap:14px}
.ip-body .b-text p{margin:0 0 .6em;line-height:1.65}
.ip-body .b-text p:last-child{margin-bottom:0}
.ip-body .acc-sub{margin:4px 0 0}
.ip-help{background:var(--tint);border-radius:28px;padding:clamp(20px,3vw,32px)}
.ip-help h2{margin:0 0 16px;font-size:clamp(19px,2vw,24px)}
.ip-upd{margin:4px 0 0;color:var(--muted);font-size:14px}
/* заглушка, яку ще треба замінити справжнім текстом */
mark.ph{background:rgba(246,184,0,.18);color:inherit;border-bottom:1px dashed var(--accent-text);border-radius:4px;padding:0 3px}

/* бланки та заяви (forms-page.js) */
.fm{display:grid;gap:28px;max-width:980px}
.fm-find{max-width:520px}
.fm-grp h2{margin:0 0 14px;font-size:clamp(19px,2vw,24px)}
.fm-list{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.fm-row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:16px 20px;background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:18px 22px}
.fm-row[hidden],.fm-grp[hidden]{display:none}
.fm-type{display:grid;place-items:center;gap:2px;width:56px;height:60px;border-radius:14px;background:var(--tint);color:var(--ink)}
.fm-type .ic{width:22px;height:22px}
.fm-type b{font-size:11px;font-weight:800;letter-spacing:.04em}
.fm-pdf{background:rgba(217,72,72,.12)}
.fm-docx,.fm-doc{background:rgba(47,91,196,.13)}
.fm-txt{min-width:0}
.fm-txt h3{margin:0;font-size:17px;font-weight:800;line-height:1.3}
.fm-txt p{margin:4px 0 0;color:var(--muted);font-size:14px;line-height:1.5}
.fm-txt .fm-meta{font-size:13px;font-weight:600}
.fm-act .btn{white-space:nowrap}
.fm-act .btn:disabled{opacity:1;cursor:default;background:var(--bg);border-color:var(--line);color:var(--muted)}
.fm-count{margin:0;color:var(--muted);font-size:14px}
.fm-count:empty{display:none}

/* профільне навчання: посилання на кабінети під кнопкою тесту */
.pr-sp-link{margin-top:12px;font-weight:700;font-size:14px;color:var(--ink);text-underline-offset:3px}

/* наші простори (spaces-page.js) */
.sp-filter{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.sp-count{margin:0 0 16px;color:var(--muted);font-size:14px;font-weight:600}
.sp-count:empty{display:none}
.sp-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:20px}
.sp-card{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:28px;overflow:hidden}
.sp-card[hidden]{display:none}
.sp-pic{position:relative;display:block;width:100%;aspect-ratio:4/3;border-radius:0;box-shadow:none}
.sp-pic.gal-item:hover{transform:none;box-shadow:none}
.sp-ph{display:grid;place-items:center;align-content:center;gap:8px;color:#fff;background-color:var(--navy-soft);
  background-image:repeating-linear-gradient(135deg,rgba(255,255,255,.05) 0 14px,transparent 14px 28px)}
.sp-ph .gal-ph{position:absolute;inset:0}
.sp-n{position:absolute;right:12px;bottom:12px;display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:var(--r-pill);background:rgba(12,26,54,.75);color:#fff;font-size:13px;font-weight:700}
.sp-n .ic{width:16px;height:16px}
.sp-txt{display:flex;flex-direction:column;gap:10px;padding:20px 22px 22px;flex:1}
.sp-txt h2{margin:0;font-family:var(--f-text);font-weight:800;font-size:18px;letter-spacing:0}
.sp-txt p{margin:0;color:var(--muted);font-size:14px;line-height:1.55}
.sp-tags{list-style:none;margin:auto 0 0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.sp-tags li{font-size:12px;font-weight:700;padding:4px 10px;border-radius:var(--r-pill);background:var(--tint);color:var(--ink)}

/* учнівський блог (blog-page.js) */
.bl-send{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 24px;background:var(--tint);border-radius:28px;padding:clamp(20px,3vw,28px);margin-bottom:28px}
.bl-send h2{margin:0 0 6px;font-size:clamp(19px,2vw,24px)}
.bl-send p{margin:0;color:var(--muted);max-width:60ch;line-height:1.55}
.bl-send .btn:disabled{opacity:1;cursor:default;background:var(--surface);border-color:var(--line);color:var(--muted)}
.bl-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:20px}
.bl-card{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:28px;overflow:hidden;cursor:pointer;transition:border-color .2s}
.bl-card:hover{border-color:var(--ink)}
.bl-pic{aspect-ratio:16/10;overflow:hidden;background:var(--navy-soft)}
.bl-pic img{width:100%;height:100%;object-fit:cover;display:block}
.bl-txt{display:flex;flex-direction:column;gap:8px;padding:20px 22px 22px;flex:1}
.bl-meta{margin:0;font-size:13px;font-weight:700;color:var(--muted)}
.bl-txt h2{margin:0;font-family:var(--f-text);font-weight:800;font-size:19px;letter-spacing:0;line-height:1.3}
.bl-txt h2 a{color:var(--ink);text-decoration:none}
.bl-card:hover h2 a,.bl-txt h2 a:focus-visible{text-decoration:underline;text-underline-offset:3px}
.bl-txt p{margin:0;color:var(--muted);font-size:14px;line-height:1.55}
.bl-more{margin-top:auto;padding-top:6px;font-weight:800;font-size:14px;color:var(--ink)}
.bl-empty{text-align:center}
.bl-post{max-width:760px;background:var(--surface);border:1px solid var(--line);border-radius:28px;padding:clamp(20px,4vw,40px)}
.bl-photo{display:block;width:100%;aspect-ratio:auto;margin:0 0 24px;border-radius:20px;box-shadow:none}
.bl-photo img{height:auto;max-height:520px;object-fit:cover}
.bl-photo.gal-item:hover{transform:none;box-shadow:none}
.bl-body p{margin:0 0 1em;font-size:17px;line-height:1.75}
.bl-author{display:flex;align-items:center;gap:10px;margin:24px 0 0;padding-top:18px;border-top:1px solid var(--line);font-weight:700;color:var(--muted)}
.bl-nav{display:grid;grid-template-columns:1fr 1fr;gap:16px;max-width:760px;margin-top:24px}
.bl-nav-a{display:flex;flex-direction:column;gap:4px;padding:16px 18px;border:1px solid var(--line);border-radius:20px;background:var(--surface);color:var(--ink);text-decoration:none}
.bl-nav-a:hover{border-color:var(--ink)}
.bl-nav-a.next{text-align:right}
.bl-nav-a small{color:var(--muted);font-weight:700}
.bl-back{margin:24px 0 0}

/* шкільна газета: підшивка (gazeta-page.js) і читалка (gazeta-read.js) */
.gz-skel{height:420px;border-radius:28px;background:var(--surface);border:1px solid var(--line)}
/* прилавок: обкладинки стоять на полиці, як у газетному кіоску */
.gz-stand{--cw:210px;margin-bottom:40px}
.gz-stand h2{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin:0 0 18px;font-size:clamp(19px,2vw,24px)}
.gz-stand h2 small{font-family:var(--f-text);font-size:14px;font-weight:700;color:var(--muted);letter-spacing:0}
.gz-shelf{position:relative;min-width:0;padding:0 4px}
/* сама полиця: дошка під обкладинками, на неї падає тінь */
.gz-shelf::before{content:"";position:absolute;left:0;right:0;top:calc(22px + var(--cw) * 1.4143 - 6px);height:26px;border-radius:6px;z-index:0;
  background:linear-gradient(180deg,var(--brand-soft) 0 9px,var(--brand) 9px);box-shadow:0 14px 22px -10px rgba(12,26,54,.45)}
.gz-rack{position:relative;z-index:1;list-style:none;margin:0;padding:22px 8px 6px;display:flex;gap:30px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:8px;scrollbar-width:none}
.gz-rack::-webkit-scrollbar{display:none}
.gz-mag{flex:0 0 var(--cw);scroll-snap-align:start}
.gz-mag a{display:flex;flex-direction:column;color:var(--ink);text-decoration:none;border-radius:6px}
.gz-mag a:focus-visible{outline:3px solid var(--accent);outline-offset:6px}
.gz-cover{position:relative;display:block;aspect-ratio:210/297;border-radius:3px;background:var(--tint);transform:rotate(var(--tilt,0deg));transform-origin:50% 100%;
  box-shadow:0 1px 1px rgba(12,26,54,.15),0 12px 18px -6px rgba(12,26,54,.35),3px 3px 0 -1px #fff,3px 3px 0 0 var(--line),6px 6px 0 -2px #fff,6px 6px 0 -1px var(--line);
  transition:transform .3s var(--ease),box-shadow .3s}
.gz-cover img{width:100%;height:100%;object-fit:cover;display:block;border-radius:3px}
.gz-mag a:hover .gz-cover,.gz-mag a:focus-visible .gz-cover{transform:translateY(-14px) rotate(0) scale(1.03);box-shadow:0 2px 2px rgba(12,26,54,.12),0 26px 30px -10px rgba(12,26,54,.45)}
.gz-fresh-tag{position:absolute;top:10px;left:-8px;padding:5px 12px 5px 14px;background:var(--accent);color:var(--navy-deep);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;border-radius:0 4px 4px 0;box-shadow:0 3px 6px rgba(12,26,54,.25)}
.gz-fresh-tag::before{content:"";position:absolute;left:0;bottom:-6px;border:3px solid transparent;border-top-color:#a37800;border-right-color:#a37800}
.gz-mag-t{display:flex;flex-direction:column;gap:3px;margin-top:40px;padding:0 2px}
.gz-mag-t b{font-size:15px;font-weight:800;line-height:1.3}
.gz-mag a:hover .gz-mag-t b{text-decoration:underline;text-underline-offset:3px}
.gz-mag-t small{color:var(--muted);font-size:13px;font-weight:600}
.gz-arrow{position:absolute;top:calc(22px + var(--cw) * .707 - 22px);z-index:3;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;
  border:1.5px solid var(--ink);background:var(--surface);color:var(--ink);box-shadow:var(--sh2);cursor:pointer;transition:background .2s,color .2s,opacity .2s}
.gz-arrow.prev{left:-18px}
.gz-arrow.next{right:-18px}
.gz-arrow.prev .ic{transform:rotate(180deg)}
.gz-arrow:hover{background:var(--brand);border-color:var(--brand);color:#fff}
.gz-arrow:disabled{opacity:0;pointer-events:none}
.gz-arrow:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.gz-hint{margin:-12px 0 28px;color:var(--muted);font-size:14px}
html.contrast .gz-shelf::before{background:#000;box-shadow:none}
html.contrast .gz-cover{box-shadow:none;outline:2px solid #000}
html.contrast .gz-arrow{border:2px solid #000}
.gz-empty{text-align:center;background:var(--surface);border:1px solid var(--line);border-radius:28px;padding:clamp(32px,6vw,64px) 20px;margin-bottom:28px}
.gz-empty-ic{display:inline-grid;place-items:center;width:64px;height:64px;border-radius:20px;background:var(--tint);color:var(--ink);margin-bottom:12px}
.gz-empty-ic .ic{width:30px;height:30px}
.gz-empty h2{margin:0 0 8px}
.gz-empty p{margin:0 auto;max-width:52ch;color:var(--muted);line-height:1.6}
.gz-sec .bl-send{margin:0}

.gz-top{padding:28px 0 12px}
.gz-top .crumbs{color:var(--muted);font-size:13px;font-weight:600;margin-bottom:10px}
.gz-top .crumbs a{color:var(--ink)}
.gz-top h1{margin:0 0 6px;font-size:clamp(22px,3vw,34px);line-height:1.15}
.gz-wrap{padding-bottom:40px}
.gz-reader{position:relative;background:var(--navy-deep);border-radius:28px;padding:clamp(12px,3vw,32px) clamp(8px,3vw,32px) 12px;color:#fff}
.gz-reader:fullscreen{border-radius:0;display:flex;flex-direction:column;justify-content:center;padding:16px}
.gz-stage{position:relative;min-height:320px;display:flex;justify-content:center;align-items:center}
.gz-fit{width:100%;margin:0 auto}
.gz-book{margin:0 auto;width:100%}
.gz-page{background:#fff;overflow:hidden}
.gz-page img{display:block;width:100%;height:100%;object-fit:contain;opacity:0;transition:opacity .25s;user-select:none}
.gz-page.ready img{opacity:1}
.gz-page.broken .gz-pg-skel{animation:none;background:#eef1f6}
.gz-pg-skel{position:absolute;inset:0;background:linear-gradient(100deg,#eef1f6 30%,#f8f9fc 50%,#eef1f6 70%);background-size:300% 100%;animation:gz-shine 1.4s linear infinite}
.gz-page.ready .gz-pg-skel{display:none}
.gz-skel-book{display:flex;gap:4px;width:min(100%,760px);aspect-ratio:2*210/297}
.gz-skel-book i{flex:1;border-radius:4px;background:linear-gradient(100deg,#1c2a48 30%,#26365a 50%,#1c2a48 70%);background-size:300% 100%;animation:gz-shine 1.4s linear infinite}
@keyframes gz-shine{to{background-position:-150% 0}}
.gz-err{text-align:center;padding:40px 16px;display:flex;flex-direction:column;align-items:center;gap:16px}
.gz-err p{margin:0;max-width:46ch;color:var(--on-dark-muted);line-height:1.6}
.gz-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:14px;padding-top:12px;border-top:1px solid rgba(255,255,255,.12)}
.gz-bar[hidden]{display:none}
.gz-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:44px;height:44px;padding:0 12px;border-radius:12px;border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.06);color:#fff;font:inherit;font-size:14px;font-weight:700;text-decoration:none;cursor:pointer;transition:background .2s,border-color .2s}
.gz-btn:hover:not(:disabled){background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.4)}
.gz-btn:disabled{opacity:.35;cursor:default}
.gz-btn .ic{width:18px;height:18px}
#gz-prev .ic{transform:rotate(180deg)}
.gz-btn:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.gz-num{min-width:9.5em;text-align:center;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.gz-tools{display:flex;flex-wrap:wrap;gap:8px;margin-left:auto}
.gz-sp{flex:1}
.gz-zoom-b{display:none}
.gz-thumbs{margin-top:12px;overflow-x:auto;padding-bottom:6px}
.gz-thumbs ul{list-style:none;margin:0;padding:0;display:flex;gap:10px}
.gz-thumbs button{display:flex;flex-direction:column;align-items:center;gap:4px;padding:4px;border-radius:8px;border:2px solid transparent;background:none;color:var(--on-dark-muted);font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.gz-thumbs button[aria-current]{border-color:var(--accent);color:#fff}
.gz-thumbs img{display:block;width:72px;aspect-ratio:210/297;object-fit:cover;background:#fff;border-radius:3px}
.gz-toast{position:absolute;left:50%;bottom:72px;transform:translate(-50%,8px);margin:0;padding:8px 14px;border-radius:var(--r-pill);background:var(--accent);color:var(--navy-deep);font-weight:800;font-size:14px;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}
.gz-toast.on{opacity:1;transform:translate(-50%,0)}
.gz-text{margin-top:20px;background:var(--surface);border:1px solid var(--line);border-radius:22px}
.gz-text summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;font-weight:800;cursor:pointer;list-style:none}
.gz-text summary::-webkit-details-marker{display:none}
.gz-text summary .ic{transform:rotate(90deg);transition:transform .2s}
.gz-text[open] summary .ic{transform:rotate(-90deg)}
.gz-text-in{padding:0 20px 20px;max-width:76ch}
.gz-text-in h2{font-family:var(--f-text);font-size:16px;font-weight:800;margin:18px 0 6px;letter-spacing:0}
.gz-text-in p{margin:0;line-height:1.7}
.gz-back{margin:24px 0 0}
dialog.gz-zoom{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#0b1222;color:#fff}
dialog.gz-zoom::backdrop{background:#0b1222}
.gz-zoom-bar{position:sticky;top:0;display:flex;gap:8px;padding:10px;background:rgba(11,18,34,.92);z-index:1}
.gz-zoom-in{overflow:auto;height:calc(100dvh - 64px);touch-action:pan-x pan-y pinch-zoom}
.gz-zoom-in img{display:block;width:100%;height:auto;max-width:none}
html.contrast .gz-reader{background:#000;border:2px solid #000}
html.contrast .gz-btn{border:2px solid #fff;background:#000}
html.contrast :is(.gz-empty,.gz-text){border:2px solid #000}

/* фотоальбом (albums-page.js): книга з обкладинкою, яку гортають; полароїди й надруковані фото */
.ab-top{padding:20px 0 10px}
.ab-top .crumbs{color:var(--muted);font-size:13px;font-weight:600;margin-bottom:10px}
.ab-top .crumbs a{color:var(--ink)}
.ab-top h1{margin:0 0 4px;font-size:clamp(24px,3vw,34px)}
.ab-wrap{padding-bottom:40px;width:calc(100% - 2*var(--gut));max-width:none}   /* стіл на всю ширину екрана - книга якомога більша */
.ab-desk{position:relative;padding:clamp(12px,1.8vw,24px) clamp(14px,1.8vw,26px) 46px;border-radius:28px;min-height:360px;display:flex;justify-content:center;align-items:center;
  background:#cbb08a;background-image:repeating-linear-gradient(90deg,rgba(255,255,255,.05) 0 2px,transparent 2px 9px),linear-gradient(180deg,#d4bb94,#b99b72)}
.ab-book{margin:0 auto;width:100%;transition:transform .6s var(--ease)}
/* закрита книга - по центру столу (бібліотека ставить обкладинку в праву половину розвороту) */
@media (min-width:769px){.ab-desk.closed .ab-book{transform:translateX(-25%)}}
.ab-pg{position:relative;overflow:hidden;background:#f7f1e3;color:#2b2a27;container-type:size;
  background-image:radial-gradient(rgba(120,95,40,.06) 1px,transparent 1px);background-size:16px 16px}
.ab-pg.stf__item.--left{box-shadow:inset -18px 0 24px -16px rgba(60,45,10,.35)}
.ab-pg.stf__item.--right{box-shadow:inset 18px 0 24px -16px rgba(60,45,10,.35)}
/* розміри всередині сторінки - у частках сторінки (cqw/cqh), тож на будь-якому екрані виглядає однаково */
.ab-grid{position:absolute;inset:6cqh 7.5cqw 10cqh;display:grid;grid-template-columns:repeat(var(--cols,3),minmax(0,1fr));grid-template-rows:repeat(var(--rows,2),minmax(0,1fr));gap:5cqh 4cqw}
.ab-cell{display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;container-type:size}
/* номер сторінки - у зовнішньому нижньому куті, як у справжньому альбомі (не заважає підписам) */
.ab-pn{position:absolute;bottom:2.2cqh;left:3.5cqw;font-family:"Caveat",var(--f-text);font-size:4cqh;line-height:1;color:#8a7b5a}
.ab-pg.--right .ab-pn{left:auto;right:3.5cqw}
/* полароїд: квадрат у білій рамці з широким низом, на скотчі */
.ph{position:relative;transform:rotate(var(--tilt));transition:transform .25s var(--ease)}
/* ширина полароїда - найбільша, за якої він влазить у клітинку: висота = ширина × (0.24 + 0.9 / пропорції фото) */
.pol{display:flex;flex-direction:column;width:min(100cqw,calc(100cqh / (.24 + .9 / var(--r,1))));padding:5% 5% 0;container-type:inline-size;border:0;background:#fff;cursor:zoom-in;
  box-shadow:0 1px 2px rgba(0,0,0,.12),0 10px 20px -8px rgba(60,45,10,.45)}
.pol::before{content:"";position:absolute;left:50%;top:-5%;width:46%;height:10%;margin-left:-23%;background:rgba(246,220,140,.6);transform:rotate(-4deg);box-shadow:0 1px 2px rgba(0,0,0,.08)}
.pol .ph-img{display:block;flex:none;width:100%;aspect-ratio:var(--r,1);overflow:hidden;background:#e9e4d6}
.ph-img img{width:100%;height:100%;object-fit:cover;display:block}
/* підпис полароїда: до 2 рядків у білій смужці, розмір - від ширини самого полароїда */
.ph-cap{flex:none;height:19cqw;display:flex;align-items:center;justify-content:center;padding:0 1%;font-family:"Caveat",var(--f-text);font-size:max(11.5cqw,12px);font-weight:600;line-height:1;color:#2b2a27;text-align:center;overflow:hidden}
.ph-cap>span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* довгий підпис полароїда: дрібніше й до 3 рядків, щоб влазив повністю */
.ph-cap.long{font-size:max(8.6cqw,11px);line-height:.98}
.ph-cap.long>span{-webkit-line-clamp:3}
/* дуже довгий (понад 55 знаків): ще дрібніше, до 4 рядків, ширша біла смужка */
.ph-cap.xlong{height:25cqw;font-size:max(7.6cqw,10px)}
.ph-cap.xlong>span{-webkit-line-clamp:4}
/* надруковане фото: свої пропорції, тонка біла рамка, паперові куточки, підпис від руки нижче */
/* надруковане фото: найбільша рамка у пропорціях фото, що влазить у клітинку разом з підписом (--cap), по центру */
.print{--cap:0px;display:flex;flex-direction:column;align-items:center;justify-content:center;margin:0;width:100%;height:100%;min-height:0}
.print.cap{--cap:max(30px,15cqh)}
.print.longcap{--cap:max(46px,24cqh)}
.ph-btn{display:block;flex:none;padding:0;border:0;background:none;cursor:zoom-in}
/* розміри надрукованого фото - від клітинки (cqh/cqw клітинки): широке фото - низька широка клітинка, високе - вузька висока */
.print .ph-img{position:relative;display:block;box-sizing:border-box;width:min(100cqw - 8px,(100cqh - var(--cap)) * var(--r,1.5));height:auto;aspect-ratio:var(--r,1.5);border:max(3px,min(2cqh,2.5cqw)) solid #fff;box-shadow:0 1px 2px rgba(0,0,0,.12),0 8px 18px -8px rgba(60,45,10,.45)}
.cn{position:absolute;width:max(10px,min(5.5cqh,7cqw));height:max(10px,min(5.5cqh,7cqw));background:#2e2a24}
.cn.tl{left:-6px;top:-6px;clip-path:polygon(0 0,100% 0,0 100%)}
.cn.tr{right:-6px;top:-6px;clip-path:polygon(0 0,100% 0,100% 100%)}
.cn.bl{left:-6px;bottom:-6px;clip-path:polygon(0 0,0 100%,100% 100%)}
.cn.br{right:-6px;bottom:-6px;clip-path:polygon(100% 0,100% 100%,0 100%)}
.ph-note{flex:none;max-width:100%;margin:max(4px,2.5cqh) 0 0;font-family:"Caveat",var(--f-text);font-size:max(12px,min(7cqh,9cqw));font-weight:600;line-height:1.05;color:#3a3527;text-align:center;
  overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.ph-note.long{font-size:max(11px,min(5.8cqh,7.5cqw));-webkit-line-clamp:4}
.ph:hover,.ph:focus-within{transform:rotate(0) scale(1.03);z-index:2}
.pol:focus-visible,.ph-btn:focus-visible{outline:3px solid var(--accent);outline-offset:4px}
/* обкладинка: темно-синя «шкіра» з тисненням */
.ab-cover{background:#14274E;color:#f2d27a;cursor:pointer;
  background-image:radial-gradient(rgba(255,255,255,.06) 1px,transparent 1.4px),linear-gradient(135deg,#1c3466,#0c1a36);background-size:5px 5px,100% 100%}
.ab-cover-in{position:absolute;inset:7%;border:2px solid rgba(242,210,122,.55);border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;padding:10%}
.ab-cover-k{font-family:"Caveat",var(--f-text);font-size:clamp(28px,4vw,52px);font-weight:700}
.ab-cover-t{font-family:var(--f-head);font-weight:800;font-size:clamp(30px,4.4vw,58px);line-height:1;color:#fff}
.ab-cover-s{font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#c9d3e6}
.ab-cover-open{margin-top:18px;display:inline-flex;align-items:center;gap:8px;padding:10px 18px;border-radius:999px;background:var(--accent);color:#0c1a36;font-weight:800;font-size:15px}
.ab-cover-open .ic{width:18px;height:18px}
.ab-back .ab-cover-in{justify-content:flex-end}
.ab-fly{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:14%}
.ab-fly-t{margin:0 0 14px;font-family:"Caveat",var(--f-text);font-size:clamp(30px,4vw,48px);font-weight:700;line-height:1;color:#1f3a7a}
.ab-fly-s{margin:0;font-family:"Caveat",var(--f-text);font-size:clamp(18px,2vw,24px);color:#5a5140}
.ab-end{display:grid;place-items:center}
.ab-end-in{position:absolute;left:50%;top:50%;width:80%;text-align:center;transform:translate(-50%,-50%) rotate(-2deg)}
.ab-end-t{margin:0 0 2cqh;font-family:"Caveat",var(--f-text);font-weight:700;font-size:9cqh;line-height:1;color:#1f3a7a}
.ab-end-s{margin:0;font-family:"Caveat",var(--f-text);font-weight:600;font-size:6cqh;line-height:1.1;color:#5a5140}
.ab-end-heart{display:block;margin-top:2cqh;font-size:7cqh;color:#d9534f}
html.contrast .ab-end-t,html.contrast .ab-end-s,html.contrast .ab-end-heart{color:#000}
/* стрілки по боках столу */
.ab-arrow{position:absolute;top:50%;z-index:5;display:grid;place-items:center;width:56px;height:56px;margin-top:-40px;border-radius:50%;border:0;cursor:pointer;
  background:rgba(255,255,255,.88);color:#14274E;box-shadow:0 6px 18px rgba(60,45,10,.35);backdrop-filter:blur(2px);transition:background .2s,transform .15s,opacity .2s}
.ab-arrow .ic{width:24px;height:24px}
.ab-arrow.prev{left:clamp(4px,.9vw,12px)}
.ab-arrow.next{right:clamp(4px,.9vw,12px)}
.ab-arrow.prev .ic{transform:rotate(180deg)}
.ab-arrow:hover{background:var(--accent)}
.ab-arrow:active{transform:scale(.92)}
.ab-arrow:disabled{opacity:0;pointer-events:none}
.ab-arrow:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.ab-num{position:absolute;left:0;right:0;bottom:10px;margin:0;text-align:center;font-family:"Caveat",var(--f-text);font-size:22px;font-weight:700;color:#4a3b22}
html.dark .ab-num{color:#e8d9b8}
html.contrast .ab-arrow{border:2px solid #000;background:#fff}
html.contrast .ab-num{color:#000}
.ab-desk.no-flip .ab-book{display:grid;gap:16px}
.ab-desk.no-flip .ab-pg{position:relative;aspect-ratio:8/7;max-width:800px;margin:0 auto}
html.dark .ab-desk{background:#3b3226;background-image:repeating-linear-gradient(90deg,rgba(255,255,255,.03) 0 2px,transparent 2px 9px),linear-gradient(180deg,#43392b,#2e271d)}
html.contrast .ab-desk{background:#fff;border:2px solid #000}
html.contrast .ph{transform:none}
html.contrast .pol::before{display:none}
@media (max-width:480px){
  .ab-desk{border-radius:20px;padding:10px 10px 44px}
  .ab-arrow{top:auto;bottom:6px;margin-top:0;width:40px;height:40px}
  .ab-arrow .ic{width:18px;height:18px}
  .ab-num{bottom:12px;font-size:19px}
  .ab-cover-in{gap:6px}
}

/* 6. темна тема: сині картки лишаються синіми, світлі - темними */
html.dark .t-hero .hero-bg{background:var(--brand)}
html.dark .b-links a,html.dark .b-people li,html.dark .b-facts div,html.dark .b-news article,html.dark .b-phones .phone,html.dark .b-button{background:var(--bg)}

/* 7. контраст: чорно-біле, рамки 2px */
html.contrast .t-hero .hero-bg{background:#000}
html.contrast .t-hero .hero-bg .num{color:#222}
html.contrast .jump a{border:2px solid #fff}
html.contrast :is(.acc-item,.t-card,.faq,.cal-box,.pf-card,.pf-q,.side,.pr-card,.pr-chart,.b-table){border:2px solid #000}
html.contrast .btn{border:2px solid #000}
html.contrast .b-stats li,html.contrast .pr-test,html.contrast .pr-banner{background:#000}
html.contrast .ip-card,html.contrast .ip-help{border:2px solid #000;background:#fff}
html.contrast .fm-row{border:2px solid #000}
html.contrast .sp-card{border:2px solid #000}
html.contrast :is(.bl-card,.bl-post,.bl-nav-a){border:2px solid #000}
html.contrast .bl-send{background:#fff;border:2px solid #000}
html.contrast .sp-tags li{background:#fff;border:1px solid #000}
html.contrast .sp-ph{background:#000}
html.contrast .fm-type{background:#fff;border:2px solid #000}
html.contrast .fm-act .btn:disabled{background:#fff;color:#000;border:2px dashed #000}
html.contrast mark.ph{background:#FFE600;color:#000}

/* 8. телефон */
@media (max-width:480px){
  .hero.t-hero{padding:16px 0 4px}
  .t-hero .hero-bg{inset:16px var(--gut) 4px;border-radius:24px}
  .t-hero .hero-in{padding:24px 20px}
  .t-hero h1{font-size:clamp(22px,6.2vw,30px)}
  .t-hero .hero-bg .num{font-size:130px}
  .acc-head{padding:14px 16px}
  .sec{padding:24px 0}
  .ip{gap:14px}
  .ip-card,.ip-help{border-radius:22px;padding:18px 16px}
  .ip-card h2{gap:10px}
  .ip-card h2 .ico{width:36px;height:36px;border-radius:12px}
  .fm-row{grid-template-columns:auto 1fr;padding:16px;border-radius:20px;gap:12px 14px}
  .fm-type{width:46px;height:50px}
  .fm-act{grid-column:1 / -1}
  .fm-act .btn{width:100%;justify-content:center}
  .sp-grid{gap:14px}
  .sp-card{border-radius:22px}
  .sp-txt{padding:16px}
  .bl-send,.bl-card,.bl-post{border-radius:22px}
  .bl-send .btn{width:100%;justify-content:center}
  .bl-txt{padding:16px}
  .bl-body p{font-size:16px}
  .bl-nav{grid-template-columns:1fr}
  .bl-nav-a.next{text-align:left}
  .gz-stand{--cw:150px}
  .gz-rack{gap:22px}
  .gz-arrow{width:38px;height:38px;margin-top:4px}
  .gz-arrow.prev{left:-8px}
  .gz-arrow.next{right:-8px}
  .gz-mag-t{margin-top:34px}
  .gz-reader{border-radius:20px}
}
@media (max-width:768px){
  .gz-zoom-b{display:inline-flex}
  .gz-lbl{display:none}
  .gz-num{min-width:0;flex:1;font-size:15px}
  .gz-tools{flex-basis:100%;margin:0;justify-content:space-between}
  .gz-zoom-bar .gz-sp{display:block}
  .gz-toast{bottom:120px}
}

/* 9. друк */
@media print{
  .t-hero .hero-bg{display:none}
  .t-hero .hero-in{padding:0}
  .t-hero h1,.t-hero .hero-sub,.t-hero .crumbs,.t-hero .crumbs a{color:#000!important}
  .ip-card,.ip-help{border:1px solid #999;break-inside:avoid}
  mark.ph{background:none}
}

/* «Про ліцей»: що означає логотип */
.logo-card{display:flex;gap:28px;align-items:center;margin-top:32px;padding:24px 28px;background:var(--surface);border:1px solid var(--line);border-radius:24px}
.logo-card .l2-logo{flex:none;width:112px;height:112px}
.logo-card .mark{width:100%;height:100%}
.logo-card h3{margin:0 0 8px}
.logo-card p{margin:0 0 8px;color:var(--ink-2)}
.logo-card p:last-child{margin-bottom:0}
@media (max-width:640px){.logo-card{flex-direction:column;align-items:flex-start;padding:20px}.logo-card .l2-logo{width:88px;height:88px}}
