:root{--bg:#f4f7f5;--surface:#fff;--ink:#142018;--muted:#667168;--line:#dbe4de;--brand:#1f6b45;--brand-dark:#174f35;--soft:#e8f2ec;--danger:#a63c3c;--shadow:0 16px 45px rgba(22,62,39,.09);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink)}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}textarea{resize:vertical}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;padding:.76rem 1.02rem;border:1px solid var(--line);border-radius:10px;background:#fff;cursor:pointer;font-weight:750}.btn.primary{background:var(--brand);border-color:var(--brand);color:#fff}.btn.primary:hover{background:var(--brand-dark)}.btn.light{background:rgba(255,255,255,.12);color:#fff;border-color:rgba(255,255,255,.35)}.muted{color:var(--muted)}.eyebrow{text-transform:uppercase;letter-spacing:.14em;font-size:.76rem;font-weight:850;color:var(--brand)}.notice{padding:13px 15px;border-radius:10px;margin:0 0 18px}.notice.success{background:#e5f5ea;color:#24613a}.notice.error{background:#fae8e8;color:#8c2b2b}.global-notice{position:fixed;right:20px;top:88px;z-index:50;max-width:420px;box-shadow:var(--shadow)}.site-header{min-height:74px;padding:0 max(22px,calc((100vw - 1180px)/2));display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}.site-logo{display:flex;align-items:center;gap:12px}.site-logo span,.brand-mark{display:grid;place-items:center;background:var(--brand);color:#fff;font-weight:900;border-radius:10px;width:44px;height:44px}.site-header nav{display:flex;gap:24px;font-weight:680}.hero{min-height:540px;display:flex;align-items:center;background:linear-gradient(115deg,rgba(11,40,25,.97),rgba(31,107,69,.82)),radial-gradient(circle at 72% 20%,#8fbea0,#1c4d34);color:#fff}.hero-content{width:min(1180px,calc(100% - 46px));margin:auto}.hero .eyebrow{color:#c0e0cb}.hero h1{font-size:clamp(2.8rem,7vw,5.7rem);line-height:.97;max-width:930px;margin:.5rem 0 1.2rem;letter-spacing:-.05em}.hero p{font-size:1.18rem;max-width:700px;color:#dcebe1;line-height:1.55}.hero-actions{display:flex;gap:12px;margin-top:28px}.public-section{padding:76px max(22px,calc((100vw - 1180px)/2));background:#fff}.public-section.alt{background:var(--bg)}.public-section.narrow{padding-left:max(22px,calc((100vw - 850px)/2));padding-right:max(22px,calc((100vw - 850px)/2))}.section-head{display:flex;justify-content:space-between;margin-bottom:30px}.section-head h2,.public-section h2{font-size:2.2rem;margin:.3rem 0}.post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.post-card{padding:24px;border:1px solid var(--line);border-radius:16px;background:#fff;min-height:230px;display:flex;flex-direction:column}.post-card h3{font-size:1.34rem;margin:14px 0}.post-card p{color:var(--muted);line-height:1.55}.post-card small{margin-top:auto;color:var(--muted)}.post-meta{display:flex;justify-content:space-between;gap:10px;font-size:.82rem;color:var(--muted)}.teacher-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.teacher-card{padding:18px;border-radius:16px;background:#fff;border:1px solid var(--line);display:flex;gap:14px;align-items:center}.teacher-card h3{font-size:1rem;margin:0 0 5px}.teacher-card p{margin:0;color:var(--muted);font-size:.9rem}.teacher-photo-placeholder,.avatar{display:grid;place-items:center;flex:none;width:58px;height:58px;border-radius:50%;background:var(--soft);color:var(--brand);font-weight:900}.teacher-photo-placeholder.large{width:130px;height:130px;font-size:2.4rem}.teacher-profile{max-width:850px;margin:70px auto;padding:0 24px;display:flex;align-items:center;gap:32px}.teacher-profile h1{font-size:3rem;line-height:1.05;margin:.4rem 0}.lead{font-size:1.18rem;color:#4d5b50;line-height:1.65}.article{max-width:850px;margin:70px auto;padding:0 24px}.article h1{font-size:clamp(2.35rem,6vw,4.5rem);line-height:1.03;letter-spacing:-.04em}.article-body{font-size:1.07rem;line-height:1.82}.article-author{margin-top:45px;padding-top:20px;border-top:1px solid var(--line)}.site-footer{padding:45px max(22px,calc((100vw - 1180px)/2));background:#13241a;color:#dfe9e2;display:flex;justify-content:space-between;gap:30px}.site-footer p{color:#aebdb3}.auth-body{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at top left,#e4efe8,#f8faf8 60%)}.auth-card{width:min(480px,100%);background:#fff;padding:34px;border-radius:22px;box-shadow:var(--shadow);border:1px solid var(--line)}.auth-brand{display:flex;align-items:center;gap:14px;margin-bottom:32px}.auth-card h1{font-size:2rem}.form-stack{display:flex;flex-direction:column;gap:18px}.form-stack label{display:flex;flex-direction:column;gap:7px;font-weight:700;font-size:.92rem}.form-stack input,.form-stack textarea,.form-stack select{width:100%;padding:11px 12px;border:1px solid #ccd7cf;border-radius:9px;background:#fff;outline:none}.form-stack input:focus,.form-stack textarea:focus,.form-stack select:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(31,107,69,.1)}.form-row{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.check{flex-direction:row!important;align-items:center}.check input{width:auto!important}.form-actions{display:flex;gap:10px}.admin-body{display:flex;min-height:100vh}.sidebar{width:255px;background:#12261a;color:#dce9e0;padding:22px 16px;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0}.brand{display:flex;align-items:center;gap:12px;color:#fff;margin-bottom:28px}.brand span{display:grid;place-items:center;background:#2a7b53;width:42px;height:42px;border-radius:10px}.sidebar nav{display:flex;flex-direction:column;gap:5px}.sidebar nav a{padding:10px 12px;border-radius:8px}.sidebar nav a:hover{background:rgba(255,255,255,.08)}.sidebar-user{margin-top:auto;border-top:1px solid rgba(255,255,255,.13);padding:18px 10px 0;display:flex;flex-direction:column;gap:5px}.sidebar-user small{color:#96ab9d}.link-button{border:0;background:none;color:inherit;padding:0;cursor:pointer;text-align:left}.sidebar-user .link-button{margin-top:8px;color:#c7d7cc}.link-button.danger{color:var(--danger)}.admin-main{margin-left:255px;width:calc(100% - 255px)}.topbar{height:66px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 30px;position:sticky;top:0;z-index:10}.admin-content{padding:30px}.page-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.page-head h1{font-size:2rem;margin:0 0 5px}.page-head p{margin:0;color:var(--muted)}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:20px}.stat,.panel{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px}.stat span{display:block;color:var(--muted);font-size:.9rem}.stat strong{display:block;font-size:2rem;margin-top:8px}.panel{box-shadow:0 2px 10px rgba(30,60,40,.03)}.table-wrap{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:14px}table{width:100%;border-collapse:collapse}th,td{padding:14px 16px;text-align:left;border-bottom:1px solid var(--line);white-space:nowrap}th{font-size:.8rem;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}.actions{display:flex;gap:12px;align-items:center}.actions form{margin:0}.badge{display:inline-flex;padding:5px 9px;border-radius:99px;font-size:.78rem;font-weight:800}.badge.published{background:#e3f4e8;color:#22643a}.badge.draft{background:#edf0ef;color:#5f6962}.badge.scheduled{background:#edf0fa;color:#425e9b}.badge.archived{background:#f3e9e9;color:#855050}.editor-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px}.cards-list{display:flex;flex-direction:column;gap:10px}.teacher-admin-card{display:grid;grid-template-columns:58px 1fr auto;gap:15px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 16px}.teacher-admin-card p{margin:4px 0;color:var(--muted)}.teacher-admin-card small{color:var(--muted)}.empty{padding:28px;background:#fff;border:1px dashed #c8d2ca;border-radius:14px;color:var(--muted)}
@media(max-width:900px){.sidebar{width:210px}.admin-main{margin-left:210px;width:calc(100% - 210px)}.post-grid{grid-template-columns:1fr 1fr}.teacher-grid{grid-template-columns:1fr 1fr}.stats{grid-template-columns:1fr 1fr}.editor-grid{grid-template-columns:1fr}.form-row{grid-template-columns:1fr 1fr}}
@media(max-width:680px){.site-header{height:auto;padding:14px 18px}.site-logo strong{display:none}.site-header nav{gap:12px;font-size:.9rem}.hero{min-height:470px}.hero-content{width:calc(100% - 36px)}.public-section{padding:52px 18px}.post-grid,.teacher-grid{grid-template-columns:1fr}.site-footer{flex-direction:column}.sidebar{position:static;width:100%;min-height:auto}.sidebar-user{display:none}.admin-body{display:block}.admin-main{margin-left:0;width:100%}.topbar{display:none}.admin-content{padding:18px}.stats{grid-template-columns:1fr 1fr}.page-head{align-items:flex-start;flex-direction:column}.form-row{grid-template-columns:1fr}.teacher-profile{align-items:flex-start;flex-direction:column}.teacher-profile h1{font-size:2.4rem}.global-notice{left:18px;right:18px;top:80px}}

/* ===== Етап 2: профілі та портфоліо викладачів ===== */
.teacher-photo{display:block;object-fit:cover;background:var(--soft)}
.teacher-photo.card-photo{width:62px;height:62px;border-radius:50%;flex:none}
.teacher-photo.directory{width:118px;height:142px;border-radius:16px}
.teacher-photo.profile{width:230px;height:280px;border-radius:24px;box-shadow:0 18px 42px rgba(13,48,29,.18)}
.teacher-photo.admin-avatar{width:58px;height:58px;border-radius:50%}
.teacher-photo.admin-preview{width:86px;height:100px;border-radius:14px}
.teacher-photo-placeholder.directory{width:118px;height:142px;border-radius:16px;font-size:2rem}
.teacher-photo-placeholder.profile{width:230px;height:280px;border-radius:24px;font-size:3.2rem}
.teacher-photo-placeholder.admin-avatar{width:58px;height:58px;border-radius:50%}
.teacher-photo-placeholder.admin-preview{width:86px;height:100px;border-radius:14px}

.page-hero.compact{padding:72px max(22px,calc((100vw - 1180px)/2));background:linear-gradient(118deg,#112d1d,#24704a);color:#fff}
.page-hero.compact .eyebrow{color:#bfe0ca}.page-hero.compact h1{font-size:clamp(2.5rem,6vw,4.6rem);letter-spacing:-.04em;margin:.4rem 0 .8rem}.page-hero.compact p{font-size:1.12rem;color:#d9e7dd;max-width:720px}
.teacher-directory{display:grid;grid-template-columns:1fr 1fr;gap:18px}.teacher-directory-card{position:relative;display:grid;grid-template-columns:118px 1fr auto;gap:20px;align-items:center;padding:18px;background:#fff;border:1px solid var(--line);border-radius:20px;transition:.2s ease}.teacher-directory-card:hover{transform:translateY(-2px);box-shadow:var(--shadow);border-color:#b9cfc0}.teacher-directory-info h2{font-size:1.22rem;margin:0 0 7px}.teacher-directory-info p{margin:0 0 10px;color:var(--muted);line-height:1.45}.mini-meta{font-size:.82rem;color:var(--brand);font-weight:750}.teacher-card-stats{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.teacher-card-stats span{font-size:.78rem;background:var(--soft);padding:5px 8px;border-radius:99px;color:#315d43}.round-arrow{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--soft);color:var(--brand);font-weight:900}

.teacher-profile-hero{padding:58px max(22px,calc((100vw - 1180px)/2));background:linear-gradient(140deg,#f7faf8,#e9f2ec)}.teacher-profile-inner{display:grid;grid-template-columns:230px minmax(0,1fr);gap:38px;align-items:center}.teacher-profile-main h1{font-size:clamp(2.4rem,5vw,4.8rem);line-height:1;letter-spacing:-.045em;margin:.5rem 0 1rem}.teacher-profile-main .lead{max-width:820px}.profile-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.profile-chips span{border:1px solid #cfe0d4;background:#fff;padding:7px 10px;border-radius:99px;font-size:.83rem;font-weight:700;color:#31533f}
.profile-nav{position:sticky;top:74px;z-index:15;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.profile-nav>div{width:min(1180px,calc(100% - 44px));margin:auto;display:flex;gap:6px;overflow:auto;padding:10px 0}.profile-nav a{padding:8px 11px;border-radius:9px;white-space:nowrap;font-size:.9rem;font-weight:700}.profile-nav a:hover{background:var(--soft)}
.profile-layout{width:min(1180px,calc(100% - 44px));margin:0 auto;padding:52px 0 80px;display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:34px}.profile-layout main{min-width:0}.profile-layout aside{position:relative}.profile-section{padding:0 0 48px;margin:0 0 48px;border-bottom:1px solid var(--line);scroll-margin-top:145px}.profile-section h2{font-size:clamp(1.75rem,3vw,2.45rem);letter-spacing:-.025em;margin:.4rem 0 1.2rem}.prose{font-size:1.04rem;line-height:1.8;color:#33483a}.compact-prose{white-space:normal}.discipline-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.discipline-grid div{padding:15px 16px;border:1px solid var(--line);background:#fff;border-radius:12px;font-weight:700}.timeline{display:grid;gap:0}.timeline-item{position:relative;padding:0 0 26px 28px;border-left:2px solid #d5e3d9}.timeline-item:before{content:"";position:absolute;left:-7px;top:3px;width:12px;height:12px;border-radius:50%;background:var(--brand);box-shadow:0 0 0 4px #e9f2ec}.timeline-item strong{color:var(--brand)}.timeline-item p{margin:7px 0 0;line-height:1.62;color:#435347}.profile-contact-card{position:sticky;top:145px;background:#14281b;color:#e8f2eb;padding:22px;border-radius:18px;display:flex;flex-direction:column;gap:11px}.profile-contact-card .eyebrow{color:#a6ceb4}.profile-contact-card h3{font-size:1.3rem;margin:2px 0 6px}.profile-contact-card a:not(.btn){color:#dce9e0;overflow-wrap:anywhere}.profile-contact-card .btn{margin-top:10px;background:transparent;border-color:#536d5d;color:#fff}.profile-posts{display:grid;grid-template-columns:1fr 1fr;gap:10px}.profile-posts a{padding:16px;border:1px solid var(--line);border-radius:12px;background:#fff;display:flex;flex-direction:column;gap:7px}.profile-posts small{color:var(--muted)}
.file-list{display:grid;gap:9px}.file-card{display:grid;grid-template-columns:56px minmax(0,1fr) auto;gap:13px;align-items:center;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#fff}.file-card:hover{border-color:#a9c6b3;background:#fbfdfb}.file-card>span:nth-child(2){min-width:0;display:flex;flex-direction:column;gap:4px}.file-card strong{font-size:.94rem;line-height:1.35;overflow-wrap:anywhere}.file-card small{color:var(--muted)}.file-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:10px;background:var(--soft);font-size:.7rem;font-weight:900;color:var(--brand)}

.head-actions{display:flex;gap:8px;flex-wrap:wrap}.profile-admin-preview{display:flex;align-items:center;gap:14px;background:#f7faf8;border:1px solid var(--line);border-radius:14px;padding:12px}.profile-admin-preview div{display:flex;flex-direction:column;gap:3px}.profile-admin-preview small{color:var(--muted)}.form-stack label small{font-weight:500;color:var(--muted)}.admin-two-col{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}.subhead{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:16px}.subhead h2{margin:0 0 5px;font-size:1.22rem}.subhead p{margin:0;color:var(--muted);font-size:.9rem}.mini-list{display:grid;gap:8px}.mini-list>div{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid var(--line);padding-top:10px}.mini-list>div:first-child{border-top:0}.mini-list span:first-child{min-width:0;display:flex;flex-direction:column;gap:3px}.mini-list strong{font-size:.9rem;overflow-wrap:anywhere}.mini-list small{font-size:.78rem;color:var(--muted)}.files-admin{margin-top:18px;max-height:510px;overflow:auto;padding-right:4px}.compact-form{padding:14px;background:#f7faf8;border-radius:12px}.import-panel{max-width:760px}.teacher-admin-card .teacher-photo{grid-column:auto}.teacher-admin-card .actions{justify-content:flex-end}.teacher-admin-card .actions a:first-child{font-size:.86rem;color:var(--brand)}

@media(max-width:980px){.teacher-directory{grid-template-columns:1fr}.profile-layout{grid-template-columns:1fr}.profile-layout aside{order:-1}.profile-contact-card{position:static}.admin-two-col{grid-template-columns:1fr}}
@media(max-width:680px){.teacher-photo.profile,.teacher-photo-placeholder.profile{width:150px;height:180px}.teacher-profile-inner{grid-template-columns:1fr;gap:22px}.teacher-profile-hero{padding:38px 18px}.profile-nav{top:73px}.profile-layout{width:calc(100% - 36px);padding-top:34px}.discipline-grid,.profile-posts{grid-template-columns:1fr}.teacher-directory-card{grid-template-columns:82px 1fr}.teacher-directory-card .round-arrow{display:none}.teacher-photo.directory,.teacher-photo-placeholder.directory{width:82px;height:104px}.teacher-admin-card{grid-template-columns:52px 1fr}.teacher-admin-card .actions{grid-column:1/-1;justify-content:flex-start}.teacher-photo.admin-avatar,.teacher-photo-placeholder.admin-avatar{width:52px;height:52px}.subhead{flex-direction:column}}

/* ===== Етап 2.1: перегляд файлів без переходу з профілю ===== */
.file-card{width:100%;text-align:left;color:inherit;font:inherit;cursor:pointer}
.file-view-label{font-size:.78rem;color:var(--brand);font-weight:800;white-space:nowrap}
.preview-link{color:var(--brand);font-weight:750}
body.preview-open{overflow:hidden}
.file-preview-modal[hidden]{display:none}
.file-preview-modal{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:22px}
.file-preview-backdrop{position:absolute;inset:0;background:rgba(7,22,13,.72);backdrop-filter:blur(5px)}
.file-preview-dialog{position:relative;z-index:1;width:min(1180px,calc(100vw - 44px));height:min(88vh,900px);display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden;background:#fff;border:1px solid rgba(255,255,255,.5);border-radius:20px;box-shadow:0 28px 90px rgba(0,0,0,.3)}
.file-preview-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 16px 14px 20px;border-bottom:1px solid var(--line);background:#f8fbf9}
.file-preview-header>div:first-child{min-width:0;display:flex;flex-direction:column;gap:3px}
.file-preview-header strong{display:block;max-width:760px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.98rem}
.file-preview-header .eyebrow{font-size:.64rem}
.file-preview-actions{display:flex;align-items:center;gap:9px;flex:none}
.file-preview-download{padding:.58rem .78rem;font-size:.86rem}
.file-preview-close{display:grid;place-items:center;width:40px;height:40px;border:1px solid var(--line);border-radius:10px;background:#fff;color:#24362a;font-size:1.65rem;line-height:1;cursor:pointer}
.file-preview-close:hover{background:var(--soft)}
.file-preview-body{min-height:0;background:#eef2ef;overflow:hidden}
.file-preview-frame{display:block;width:100%;height:100%;border:0;background:#fff}
.file-preview-image-wrap{width:100%;height:100%;display:grid;place-items:center;padding:20px;overflow:auto;background:#202824}
.file-preview-image-wrap img{display:block;max-width:100%;max-height:100%;object-fit:contain;box-shadow:0 10px 34px rgba(0,0,0,.25)}
.file-preview-unavailable{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:32px;background:#fff}
.file-preview-unavailable h3{font-size:1.45rem;max-width:560px;margin:16px 0 8px}
.file-preview-unavailable p{color:var(--muted);margin:0 0 20px}
.file-preview-type{display:grid;place-items:center;min-width:70px;height:70px;padding:0 10px;border-radius:16px;background:var(--soft);color:var(--brand);font-weight:900}
@media(max-width:680px){.file-preview-modal{padding:0}.file-preview-dialog{width:100vw;height:100dvh;max-height:none;border:0;border-radius:0}.file-preview-header{padding:10px 10px 10px 14px}.file-preview-header strong{max-width:48vw}.file-preview-download{font-size:0;padding:.55rem}.file-preview-download:after{content:"↓";font-size:1.15rem}.file-preview-close{width:38px;height:38px}.file-view-label{font-size:0}.file-view-label:after{content:"Перегляд";font-size:.74rem}}

/* ===== Етап 3: дві ОПП, загальні/програмні дані та програмні права ===== */
.main-nav{display:flex;align-items:center;gap:22px}.main-nav>a,.nav-root{font-weight:720}.nav-dropdown{position:relative;display:flex;align-items:center;min-height:74px}.nav-root{display:flex;align-items:center;gap:6px;height:74px}.nav-chevron{font-size:.9rem;color:var(--muted);transition:.18s}.nav-dropdown:hover .nav-chevron,.nav-dropdown:focus-within .nav-chevron,.nav-dropdown.open .nav-chevron{transform:rotate(180deg)}.nav-dropdown-menu{position:absolute;top:calc(100% - 5px);left:-20px;width:390px;padding:10px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 22px 60px rgba(18,51,31,.16);display:none;z-index:80}.nav-dropdown:hover .nav-dropdown-menu,.nav-dropdown:focus-within .nav-dropdown-menu,.nav-dropdown.open .nav-dropdown-menu{display:grid}.nav-dropdown-menu a,.nav-dropdown-menu .nav-future{display:flex;flex-direction:column;gap:3px;padding:12px 14px;border-radius:11px}.nav-dropdown-menu a:hover{background:var(--soft)}.nav-dropdown-menu strong{font-size:.92rem}.nav-dropdown-menu small{font-size:.76rem;color:var(--muted);font-weight:500}.nav-future{opacity:.48;cursor:default;border-top:1px solid transparent}.nav-dropdown-menu a+span,.nav-dropdown-menu span+span{border-top-color:#eef2ef}

.scope-shell{width:min(1180px,calc(100% - 44px));margin:0 auto;padding:38px 0 82px}.general-hero{padding-bottom:54px}.scope-switcher{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:-66px;position:relative;z-index:3}.scope-tab{display:grid;grid-template-columns:48px minmax(0,1fr);gap:12px;align-items:center;padding:16px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 8px 28px rgba(25,61,39,.07);transition:.18s}.scope-tab:hover{transform:translateY(-2px);border-color:#acc8b6}.scope-tab.active{border-color:var(--brand);box-shadow:0 10px 34px rgba(31,107,69,.13)}.scope-tab>span:last-child{min-width:0;display:flex;flex-direction:column;gap:3px}.scope-tab strong{font-size:.9rem;line-height:1.25}.scope-tab small{color:var(--muted);font-size:.74rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.scope-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:12px;background:var(--soft);color:var(--brand);font-weight:900;font-size:.76rem}.scope-tab.active .scope-icon{background:var(--brand);color:#fff}
.scope-heading{display:flex;justify-content:space-between;gap:28px;padding:54px 0 30px;border-bottom:1px solid var(--line)}.scope-heading>div:first-child{max-width:760px}.scope-heading h2{font-size:clamp(2rem,4vw,3.5rem);line-height:1.04;letter-spacing:-.035em;margin:10px 0 14px}.scope-heading p{font-size:1.02rem;color:var(--muted);line-height:1.65}.scope-label,.scope-mini{display:inline-flex;align-items:center;width:max-content;border-radius:99px;font-weight:850}.scope-label{padding:7px 11px;font-size:.75rem;letter-spacing:.03em}.scope-label.commission{background:#e8f2ec;color:#24583a}.scope-label.program{background:#edf1fa;color:#435f99}.scope-mini{padding:4px 8px;font-size:.7rem;background:#edf2ef;color:#5d6c62}.program-code{font-weight:800;color:var(--brand)!important}.program-heading{align-items:flex-start}.guarantor-card{width:330px;flex:none;background:#14281b;color:#edf5ef;padding:20px;border-radius:18px;box-shadow:var(--shadow)}.guarantor-card .eyebrow{color:#a7ceb5}.guarantor-person{display:grid;grid-template-columns:64px 1fr;gap:13px;align-items:center;margin:14px 0 16px}.guarantor-person>div{display:flex;flex-direction:column;gap:4px}.guarantor-person small,.guarantor-empty small{color:#afc2b5}.teacher-photo.guarantor-photo,.teacher-photo-placeholder.guarantor-photo{width:64px;height:64px;border-radius:14px;object-fit:cover;background:#284936;color:#fff}.guarantor-card .btn{width:100%;background:transparent;border-color:#547260;color:#fff}.guarantor-empty{display:flex;flex-direction:column;gap:5px;padding:16px 0}.general-blocks{display:grid;gap:14px;padding:30px 0 54px}.general-block{padding:24px 26px;background:#fff;border:1px solid var(--line);border-radius:16px}.general-block h3{font-size:1.3rem;margin:0 0 11px}.general-block .prose{font-size:1rem}.program-overview{padding-top:18px;border-top:1px solid var(--line)}.program-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.program-card{padding:24px;background:linear-gradient(150deg,#fff,#f4f8f5);border:1px solid var(--line);border-radius:18px;transition:.18s}.program-card:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:#b3cdbb}.program-card-code{display:inline-flex;padding:5px 8px;border-radius:8px;background:var(--soft);color:var(--brand);font-weight:900;font-size:.75rem}.program-card h3{font-size:1.35rem;line-height:1.25;margin:15px 0 9px}.program-card p{color:var(--muted);line-height:1.55}.program-card-link{display:inline-block;margin-top:10px;color:var(--brand);font-weight:850}
.program-badges,.table-badges{display:flex;flex-wrap:wrap;gap:5px}.program-badges{margin:8px 0}.program-badge{display:inline-flex;align-items:center;padding:5px 8px;border-radius:99px;background:#edf1fa;color:#405d96;font-size:.7rem;font-weight:850;line-height:1.2}.program-badge.guarantor-access{background:#f4eee0;color:#765d22}.program-badge.global-access{background:#e6f3ea;color:#24613a}.post-scope{margin:10px 0 -2px}.article-scope{margin:15px 0}.teacher-filter{display:flex;gap:8px;flex-wrap:wrap;margin:-26px 0 26px}.teacher-filter a{padding:8px 11px;border:1px solid var(--line);border-radius:99px;background:#fff;font-size:.82rem;font-weight:800}.teacher-filter a.active{background:var(--brand);color:#fff;border-color:var(--brand)}

.sidebar-programs{display:flex;flex-direction:column;gap:5px;margin:8px 0 4px}.sidebar-programs span{font-size:.7rem;padding:5px 7px;border-radius:6px;background:rgba(255,255,255,.08);color:#b9ccbf}.admin-scope-switcher{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:18px}.admin-scope{display:flex;flex-direction:column;gap:3px;padding:13px 14px;background:#fff;border:1px solid var(--line);border-radius:12px}.admin-scope strong{font-size:.86rem}.admin-scope small{font-size:.72rem;color:var(--muted)}.admin-scope.active{border-color:var(--brand);box-shadow:0 0 0 2px rgba(31,107,69,.08)}.admin-scope.locked{opacity:.45;cursor:not-allowed}.scope-admin-intro{padding:18px 20px;border-radius:14px;margin-bottom:18px;border:1px solid var(--line);background:#fff}.scope-admin-intro h2{margin:8px 0 5px}.scope-admin-intro p{margin:0;color:var(--muted)}.scope-admin-intro.program{border-left:4px solid #5874ad}.scope-admin-intro.commission{border-left:4px solid var(--brand)}.program-settings{margin-bottom:18px}.program-settings>h2{margin:0 0 4px}.permission-note{padding:12px 14px;border-radius:10px;background:var(--soft);color:#31553f}.general-admin-blocks{margin-top:18px}.content-block-list{display:grid;gap:8px}.content-block-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 0;border-top:1px solid var(--line)}.content-block-row:first-child{border-top:0}.content-block-row>div:first-child{display:flex;min-width:0;flex-direction:column;gap:4px}.content-block-row strong{font-size:.93rem}.content-block-row small{color:var(--muted);font-size:.76rem}.program-membership{margin:0;padding:16px;border:1px solid var(--line);border-radius:12px;background:#f8faf8}.program-membership legend{padding:0 6px;font-weight:850}.program-membership>p{font-size:.82rem;margin:3px 0 13px}.permission-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.permission-option{display:grid!important;grid-template-columns:auto minmax(0,1fr);align-items:flex-start!important;gap:10px!important;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fff;cursor:pointer}.permission-option input{width:auto!important;margin-top:3px}.permission-option span{display:flex;flex-direction:column;gap:3px}.permission-option strong{font-size:.86rem}.permission-option small{font-size:.72rem!important;color:var(--muted)}.table-sub{display:block;margin-top:4px;color:var(--muted);font-size:.72rem}.btn.small{padding:.5rem .7rem;font-size:.78rem}

@media(max-width:1000px){.scope-switcher,.admin-scope-switcher{grid-template-columns:1fr}.scope-switcher{margin-top:-38px}.program-heading{display:grid}.guarantor-card{width:100%}.program-grid{grid-template-columns:1fr}.permission-grid{grid-template-columns:1fr}.main-nav{gap:14px}.nav-dropdown-menu{left:auto;right:0}}
@media(max-width:680px){.site-header{align-items:flex-start}.main-nav{width:100%;justify-content:flex-end;flex-wrap:wrap}.nav-dropdown{min-height:auto}.nav-root{height:auto}.nav-dropdown-menu{position:fixed;top:72px;left:10px;right:10px;width:auto}.scope-shell{width:calc(100% - 36px);padding-top:28px}.scope-switcher{margin-top:-50px}.scope-heading{padding-top:38px}.scope-heading h2{font-size:2rem}.general-block{padding:20px}.admin-scope-switcher{grid-template-columns:1fr}.content-block-row{align-items:flex-start;flex-direction:column}.teacher-filter{margin-top:-10px}}
.hero-programs{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}.hero-programs span{padding:7px 10px;border:1px solid rgba(255,255,255,.28);border-radius:99px;background:rgba(255,255,255,.08);font-size:.8rem;font-weight:750;color:#dcebe1}

/* ===== Етап 4: ОПП, вступ, кадрове забезпечення та нормативна база ===== */
.sidebar-label{padding:13px 12px 4px;color:#829889;font-size:.66rem;font-weight:850;letter-spacing:.11em;text-transform:uppercase}.section-library-hero{padding-bottom:54px}.section-library{padding-bottom:90px}.library-scope-heading{margin-bottom:4px}.section-program-overview{padding:28px 0 6px;border-top:0}.section-info-blocks{padding-bottom:30px}.year-pill{display:inline-flex;padding:5px 8px;margin-bottom:10px;border-radius:99px;background:var(--soft);color:var(--brand);font-size:.72rem;font-weight:850}.document-library-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;padding:34px 0 18px;border-top:1px solid var(--line)}.document-library-head h2{font-size:2rem;margin:.35rem 0 .2rem}.document-library-head p{margin:0;color:var(--muted)}.document-search{width:min(360px,100%);display:flex;flex-direction:column;gap:6px;font-size:.78rem;font-weight:800;color:var(--muted)}.document-search input{padding:11px 13px;border:1px solid var(--line);border-radius:11px;background:#fff;outline:none}.document-search input:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(31,107,69,.08)}.year-jump{display:flex;flex-wrap:wrap;gap:7px;margin:8px 0 28px}.year-jump a{padding:7px 10px;border:1px solid var(--line);border-radius:99px;background:#fff;font-size:.78rem;font-weight:800}.year-jump a:hover{border-color:#a8c4b2;color:var(--brand)}.document-year-group{scroll-margin-top:105px;margin:0 0 34px}.document-year-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:12px}.document-year-head>div{display:flex;align-items:center;gap:12px}.document-year-head h2{margin:0;font-size:1.3rem}.document-year-head>span{font-size:.78rem;color:var(--muted)}.year-marker{display:grid;place-items:center;min-width:76px;padding:8px 10px;border-radius:10px;background:#14281b;color:#fff;font-weight:900;font-size:.78rem}.document-list{display:grid;gap:9px}.document-card{display:grid;grid-template-columns:54px minmax(0,1fr) auto;gap:14px;align-items:center;padding:15px 16px;background:#fff;border:1px solid var(--line);border-radius:14px;transition:.16s}.document-card:hover{border-color:#afc8b7;box-shadow:0 7px 22px rgba(24,61,38,.06)}.document-icon{display:grid;place-items:center;width:50px;height:50px;border-radius:11px;background:var(--soft);color:var(--brand);font-size:.72rem;font-weight:950}.document-main{min-width:0}.document-main h3{font-size:.96rem;line-height:1.35;margin:5px 0 4px}.document-main p{margin:3px 0 7px;color:var(--muted);font-size:.82rem;line-height:1.45}.document-main small{color:var(--muted);font-size:.73rem}.document-meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:.68rem;font-weight:820;color:#587064}.document-meta>span:first-child{padding:4px 7px;border-radius:99px;background:#f0f4f1}.document-current{background:#e8f2ec!important;color:#245d3d!important}.document-open{white-space:nowrap;padding:.58rem .8rem;font-size:.78rem}.section-doc-admin{margin-top:18px}.admin-document-list{display:grid;gap:8px}.admin-document-row{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:12px;align-items:center;padding:11px 0;border-top:1px solid var(--line)}.admin-document-row:first-child{border-top:0}.admin-document-type{display:grid;place-items:center;width:44px;height:44px;border-radius:10px;background:var(--soft);color:var(--brand);font-size:.68rem;font-weight:900}.admin-document-info{display:flex;flex-direction:column;gap:4px;min-width:0}.admin-document-info strong{font-size:.9rem;line-height:1.3}.admin-document-info small{color:var(--muted);font-size:.73rem}.check-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:12px;border:1px solid var(--line);border-radius:11px;background:#f8faf8}
@media(max-width:780px){.document-library-head{align-items:stretch;flex-direction:column}.document-search{width:100%}.document-card{grid-template-columns:46px minmax(0,1fr)}.document-icon{width:44px;height:44px}.document-open{grid-column:1/-1;width:100%}.admin-document-row{grid-template-columns:44px minmax(0,1fr)}.admin-document-row .actions{grid-column:1/-1;justify-content:flex-end}.check-grid{grid-template-columns:1fr}.document-year-head{align-items:flex-start}.document-year-head>div{align-items:flex-start;flex-direction:column;gap:7px}}


/* ===== Етап 4.1: виправлення читабельності та навігації ===== */
.site-header{gap:34px}
.site-logo{min-width:0;flex:0 1 auto}
.site-logo strong{font-size:.94rem;line-height:1.2;white-space:nowrap}
.main-nav{margin-left:auto;flex:0 0 auto;gap:26px}
.main-nav>a,.nav-root{white-space:nowrap}
.section-info-blocks{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding-top:18px}
.section-info-blocks .general-block{min-height:100%;padding:22px 24px;border-radius:18px;box-shadow:0 4px 18px rgba(24,61,38,.035)}
.section-info-blocks .general-block:first-child:last-child{grid-column:1/-1}
.general-block .prose{color:#3f4d43;line-height:1.72}
.general-block .prose p{margin:0 0 12px}
.general-block .prose p:last-child{margin-bottom:0}
.document-library-head{margin-top:8px}
.document-year-group{padding:20px;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.48)}
.document-year-group+.document-year-group{margin-top:18px}
.document-list{gap:10px}
.document-card{background:#fff;box-shadow:0 2px 10px rgba(24,61,38,.025)}
.document-card:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px rgba(31,107,69,.08)}
.year-jump{position:sticky;top:74px;z-index:8;padding:10px 0;background:linear-gradient(var(--bg) 75%,rgba(244,247,245,0));backdrop-filter:blur(4px)}
.year-jump a{background:#fff}
.empty{line-height:1.6}

@media(max-width:1100px){
  .site-header{gap:18px;padding-left:18px;padding-right:18px}
  .site-logo strong{max-width:250px;white-space:normal}
  .main-nav{gap:16px;font-size:.9rem}
}
@media(max-width:860px){
  .section-info-blocks{grid-template-columns:1fr}
  .section-info-blocks .general-block:first-child:last-child{grid-column:auto}
  .site-header{flex-wrap:wrap;padding-top:12px;padding-bottom:12px}
  .main-nav{width:100%;justify-content:flex-start;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}
  .main-nav::-webkit-scrollbar{display:none}
}

/* ===== Етап 5: Освітній процес, айдентика та основні дані ===== */
.brand-icon{width:44px;height:44px;object-fit:cover;border-radius:11px;display:block;flex:none;box-shadow:0 4px 12px rgba(20,71,44,.16)}
.sidebar .brand-icon{width:42px;height:42px;border-radius:10px;box-shadow:none}
.auth-brand .brand-icon{width:46px;height:46px}
.hero-institution{display:block;max-width:820px;margin-top:24px;color:#bcd1c3;line-height:1.45;font-size:.78rem}

/* футер тепер є джерелом основних контактних даних сайту */
.site-footer{display:block;padding:0;background:#102319;color:#dfe9e2}
.footer-main{width:min(1180px,calc(100% - 44px));margin:auto;padding:46px 0 34px;display:grid;grid-template-columns:minmax(0,1.7fr) minmax(160px,.6fr) minmax(260px,1fr);gap:42px}
.footer-brand{display:flex;gap:16px;align-items:flex-start}.footer-brand img{border-radius:14px;flex:none}.footer-brand strong{display:block;color:#fff;line-height:1.35;font-size:.96rem}.footer-brand p{margin:8px 0 0;max-width:620px;color:#aebdb3;line-height:1.55;font-size:.82rem}
.footer-links,.footer-contacts{display:flex;flex-direction:column;gap:8px;font-size:.84rem}.footer-links>strong,.footer-contacts>strong{color:#fff;margin-bottom:4px}.footer-links a,.footer-contacts a{color:#cfe0d5}.footer-links a:hover,.footer-contacts a:hover{color:#fff}.footer-contacts span{color:#b8c8bd;line-height:1.45}
.footer-bottom{border-top:1px solid rgba(255,255,255,.09);width:min(1180px,calc(100% - 44px));margin:auto;padding:18px 0 22px;display:flex;justify-content:space-between;gap:24px;color:#8fa398;font-size:.76rem}

/* другий верхній розділ меню */
.education-menu{width:430px}.education-menu a strong{font-size:.9rem}.education-menu a small{line-height:1.35}
.education-landing-hero{padding:78px max(22px,calc((100vw - 1180px)/2)) 56px;background:linear-gradient(120deg,#eef6f1,#f8fbf9)}
.education-landing-hero>div{max-width:850px}.education-landing-hero h1{font-size:clamp(2.5rem,6vw,4.8rem);letter-spacing:-.045em;margin:.45rem 0 1rem}.education-landing-hero p{max-width:760px;color:var(--muted);font-size:1.06rem;line-height:1.65}
.education-landing{background:var(--bg);padding-top:36px}.education-module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.education-module-card{position:relative;display:grid;grid-template-columns:64px minmax(0,1fr);gap:18px;padding:26px;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:0 8px 28px rgba(24,61,38,.04);transition:.18s}.education-module-card:hover{transform:translateY(-2px);border-color:#abc6b4;box-shadow:0 15px 34px rgba(24,61,38,.08)}.education-module-number{display:grid;place-items:center;width:58px;height:58px;border-radius:15px;background:var(--soft);color:var(--brand);font-weight:950;font-size:.82rem}.education-module-card h2{font-size:1.35rem!important;margin:2px 0 8px}.education-module-card p{margin:0 0 18px;color:var(--muted);line-height:1.55;font-size:.9rem}.module-link{font-size:.8rem;color:var(--brand);font-weight:850}
.education-subnav{width:min(1180px,calc(100% - 44px));margin:-24px auto 22px;padding:8px;display:grid;grid-template-columns:repeat(4,1fr);gap:7px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 10px 30px rgba(24,61,38,.07);position:relative;z-index:5}.education-subnav a{display:flex;align-items:center;justify-content:center;min-height:54px;padding:10px 12px;border-radius:11px;text-align:center;font-size:.79rem;font-weight:780;color:#536158}.education-subnav a:hover{background:#f3f7f4;color:var(--ink)}.education-subnav a.active{background:var(--brand);color:#fff;box-shadow:0 5px 14px rgba(31,107,69,.18)}
.admin-section-tabs{display:flex;flex-wrap:wrap;gap:7px;margin:-6px 0 18px;padding:7px;background:#eef3ef;border-radius:12px}.admin-section-tabs a{padding:8px 10px;border-radius:8px;font-size:.75rem;font-weight:800;color:#5d6961}.admin-section-tabs a.active{background:#fff;color:var(--brand);box-shadow:0 2px 8px rgba(24,61,38,.08)}

/* фільтри й метадані навчальної документації */
.document-filter-panel{width:min(690px,100%);display:flex;justify-content:flex-end;align-items:flex-end;gap:10px;flex-wrap:wrap}.document-filter-panel label{display:flex;flex-direction:column;gap:6px;min-width:130px;font-size:.75rem;font-weight:800;color:var(--muted)}.document-filter-panel .document-search{min-width:280px;flex:1}.document-filter-panel select{height:42px;padding:0 11px;border:1px solid var(--line);border-radius:11px;background:#fff;color:var(--ink);outline:none}.document-filter-panel select:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(31,107,69,.08)}
.document-extra-meta{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 3px}.document-extra-meta span{padding:4px 7px;border-radius:7px;background:#f6f8f6;color:#66736b;font-size:.68rem;font-weight:720;border:1px solid #e5ebe7}
.document-card[hidden],.document-year-group[hidden]{display:none!important}

@media(max-width:1000px){
  .footer-main{grid-template-columns:1fr 1fr}.footer-brand{grid-column:1/-1}
  .education-subnav{grid-template-columns:repeat(2,1fr)}
  .education-module-grid{grid-template-columns:1fr}
}
@media(max-width:780px){
  .document-filter-panel{width:100%;display:grid;grid-template-columns:1fr 1fr}.document-filter-panel .document-search{grid-column:1/-1;min-width:0}
}
@media(max-width:680px){
  .brand-icon{width:40px;height:40px}.site-logo strong{display:block;max-width:210px;font-size:.8rem}
  .footer-main{width:calc(100% - 36px);grid-template-columns:1fr;padding:36px 0 28px;gap:28px}.footer-brand{grid-column:auto}.footer-bottom{width:calc(100% - 36px);flex-direction:column;gap:8px}
  .education-subnav{width:calc(100% - 24px);grid-template-columns:1fr 1fr;margin-top:-20px}.education-subnav a{font-size:.72rem;min-height:50px}
  .education-module-card{grid-template-columns:50px minmax(0,1fr);padding:20px}.education-module-number{width:48px;height:48px}
  .document-filter-panel{grid-template-columns:1fr}
  .document-filter-panel .document-search{grid-column:auto}
  .education-menu{width:auto}
}

/* === Етап 6: новини з фотогалереями та вкладеннями === */
.visual-post-grid{align-items:stretch}.visual-post-card{padding:0;overflow:hidden;display:flex;flex-direction:column;min-width:0}.post-card-cover{display:block;aspect-ratio:16/9;background:#e9f0eb;overflow:hidden}.post-card-cover img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s ease}.visual-post-card:hover .post-card-cover img{transform:scale(1.025)}.post-card-body{display:flex;flex-direction:column;gap:10px;padding:20px;height:100%}.post-card-body .post-meta{margin:0}.post-card-body h3{margin:0}.post-card-body p{margin:0;color:var(--muted);line-height:1.65}.post-card-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:auto;padding-top:8px}.post-card-footer>small{color:var(--muted)}.post-media-counts{white-space:nowrap;color:var(--muted);font-size:.82rem}.news-hero{background:linear-gradient(135deg,#f3f8f5,#e6f1ea)}.news-archive-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.article-with-media{max-width:940px}.article-cover{width:100%;padding:0;border:0;border-radius:20px;overflow:hidden;background:#eef4f0;cursor:zoom-in;margin:26px 0 30px;box-shadow:0 10px 30px rgba(24,70,45,.08)}.article-cover img{width:100%;max-height:600px;object-fit:cover;display:block}.article-section-head{margin:38px 0 16px}.article-section-head h2{margin:4px 0 0;font-size:1.45rem}.post-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.post-gallery-item{position:relative;padding:0;border:0;border-radius:14px;aspect-ratio:4/3;overflow:hidden;background:#e8eeea;cursor:zoom-in}.post-gallery-item img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .2s ease}.post-gallery-item:hover img{transform:scale(1.03)}.post-gallery-item span{position:absolute;left:9px;bottom:9px;background:rgba(10,35,22,.78);color:#fff;border-radius:99px;padding:5px 9px;font-size:.72rem;font-weight:800}.post-attachment-list{display:grid;gap:10px}.post-attachment-card{width:100%;display:grid;grid-template-columns:52px 1fr auto;align-items:center;gap:14px;text-align:left;border:1px solid var(--line);border-radius:14px;background:#fff;padding:13px 14px;cursor:pointer}.post-attachment-card:hover{border-color:#9cb7a5;box-shadow:0 6px 20px rgba(29,66,44,.06)}.post-attachment-card>span:nth-child(2){display:flex;flex-direction:column;gap:3px;min-width:0}.post-attachment-card strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.post-attachment-card small{color:var(--muted)}.post-attachment-card>b{font-size:.82rem;color:var(--brand)}.post-attachment-type{display:grid;place-items:center;width:48px;height:40px;border-radius:9px;background:#e7f2eb;color:#1d7048;font-size:.72rem;font-weight:900;letter-spacing:.04em}
.post-upload-zone{border:1px dashed #b7c9bd;background:#f8fbf9;border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:10px}.post-upload-zone>div:first-child{display:flex;flex-direction:column;gap:4px}.post-upload-zone small{color:var(--muted);font-weight:400;line-height:1.45}.post-upload-zone input[type=file]{padding:10px;background:#fff;border:1px solid var(--line);border-radius:9px}.selected-image-preview{display:flex;gap:8px;flex-wrap:wrap}.selected-image-preview:empty{display:none}.selected-image-preview img{width:86px;height:66px;object-fit:cover;border-radius:9px;border:1px solid var(--line)}.post-media-manager{border-top:1px solid var(--line);padding-top:8px}.post-media-manager h3{margin:10px 0 12px;font-size:1rem}.post-media-manager-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.post-media-admin-item{border:1px solid var(--line);border-radius:12px;padding:8px;background:#fff}.post-media-admin-item>img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px;display:block;margin-bottom:8px}.media-cover-choice,.media-delete-choice{font-size:.78rem!important;display:flex!important;flex-direction:row!important;align-items:center;gap:5px!important;padding:3px 0}.media-cover-choice input,.media-delete-choice input{width:auto!important}.media-delete-choice{color:#9a3636}.post-file-admin-list{display:grid;gap:8px;margin-top:10px}.post-file-admin-item{display:grid!important;grid-template-columns:48px 1fr auto auto;align-items:center;gap:10px;border:1px solid var(--line);border-radius:10px;padding:10px!important;font-size:.8rem!important}.post-file-admin-item>span:nth-child(2){display:flex;flex-direction:column;min-width:0}.post-file-admin-item strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.post-file-admin-item small{font-weight:400;color:var(--muted)}.post-file-admin-item input{width:auto!important}.post-file-admin-item>b{color:#a33;font-size:.76rem}
@media(max-width:980px){.news-archive-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.post-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.post-media-manager-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.news-archive-grid,.post-gallery{grid-template-columns:1fr}.post-card-footer{align-items:flex-start;flex-direction:column}.post-attachment-card{grid-template-columns:44px 1fr}.post-attachment-card>b{display:none}.post-media-manager-grid{grid-template-columns:1fr}.post-file-admin-item{grid-template-columns:44px 1fr auto}.post-file-admin-item>b{display:none}}

/* Етап 7: методичне забезпечення */
.methodical-menu{min-width:360px}
.methodical-subnav{margin-bottom:20px}
@media(max-width:900px){.methodical-menu{min-width:0}}

/* Stage 7.1 — desktop admin sidebar scrolling */
@media (min-width:681px){
  .sidebar{
    height:100vh;
    max-height:100vh;
    overflow-y:auto;
    overflow-x:hidden;
    overscroll-behavior:contain;
    scrollbar-width:thin;
    scrollbar-color:rgba(255,255,255,.28) transparent;
  }
  .sidebar::-webkit-scrollbar{width:7px}
  .sidebar::-webkit-scrollbar-track{background:transparent}
  .sidebar::-webkit-scrollbar-thumb{background:rgba(255,255,255,.22);border-radius:99px}
  .sidebar::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.34)}
  .sidebar nav{flex:0 0 auto}
  .sidebar-user{flex:0 0 auto;margin-top:22px;padding-bottom:4px}
}

@media (max-width:680px){
  .sidebar{height:auto;max-height:none;overflow:visible}
}

/* Stage 8 — Якість освіти */
.quality-menu{width:430px}
.quality-subnav{grid-template-columns:repeat(5,1fr)}
.quality-landing-hero{background:linear-gradient(135deg,#123c28,#246b49)}
.quality-module-grid .education-module-number{background:#e7f1eb}
.quality-admin-tabs{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:1280px){
  .main-nav{gap:12px}
  .main-nav>a,.nav-root{font-size:.88rem}
}
@media(max-width:1050px){
  .quality-subnav{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:680px){
  .quality-menu{width:auto}
  .quality-subnav{grid-template-columns:1fr 1fr}
}


/* === Етап 9: нова інформаційна архітектура та Публічна інформація === */
.nav-menu-separator{display:block;padding:9px 14px 4px;margin-top:3px;border-top:1px solid #edf2ee;color:#7c8a80;font-size:.66rem;font-weight:900;letter-spacing:.1em;text-transform:uppercase}
.public-info-menu{width:390px}
.methodical-three{grid-template-columns:repeat(4,minmax(0,1fr))}
.methodical-inside-education{background:linear-gradient(135deg,#eef6f1,#dfece4)}
.public-info-hero{background:linear-gradient(135deg,#123c28,#2e7955);color:#fff;padding:82px max(22px,calc((100vw - 1180px)/2))}.public-info-hero>div{max-width:880px}.public-info-hero .eyebrow{color:#bfe2cc}.public-info-hero h1{font-size:clamp(2.6rem,6vw,5rem);letter-spacing:-.045em;margin:.45rem 0 1rem}.public-info-hero p{max-width:760px;color:#e0eee5;font-size:1.06rem;line-height:1.65}.compact-public{padding-top:68px;padding-bottom:68px}.dormitory-hero{background:linear-gradient(120deg,rgba(16,55,36,.94),rgba(34,105,70,.84)),url('/media/public/dormitory/dorm-building.jpg') center/cover}.teams-hero{background:linear-gradient(135deg,#192f46,#385e7d)}
.public-info-content{background:var(--bg);padding-top:42px}.public-info-grid .education-module-number{background:#e5f2e9}
.info-callout{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 26px;background:#fff;border:1px solid var(--line);border-radius:18px;margin-bottom:20px}.info-callout h2{margin:.3rem 0 .5rem!important}.info-callout p{margin:0;color:var(--muted);max-width:760px;line-height:1.6}.drive-library-frame{height:min(72vh,820px);min-height:560px;border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 8px 28px rgba(24,61,38,.05)}.drive-library-frame iframe{width:100%;height:100%;border:0}
.quick-facts-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:24px}.quick-fact{padding:18px 19px;background:#fff;border:1px solid var(--line);border-radius:15px}.quick-fact small{display:block;margin-bottom:6px;color:var(--muted);font-size:.74rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.quick-fact strong{font-size:1.05rem}.info-two-col{display:grid;grid-template-columns:1.4fr .8fr;gap:16px;margin-bottom:16px}.info-article{padding:25px;background:#fff;border:1px solid var(--line);border-radius:18px}.info-article h2{margin:.35rem 0 .8rem;font-size:1.55rem}.info-article p{color:#425047;line-height:1.7}.contact-action-row{margin-top:20px}.copyable-code{display:inline-block;margin-top:7px;padding:10px 12px;background:#f0f5f2;border:1px solid #dce7df;border-radius:9px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.88rem;word-break:break-all}.rules-card{margin-bottom:28px}.nice-list{margin:12px 0 0;padding-left:20px;color:#425047;line-height:1.7}.nice-list li+li{margin-top:8px}.dorm-gallery-head{margin-top:34px}.dorm-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.dorm-gallery .post-gallery-item{aspect-ratio:4/3}
.teams-video-wrap{position:relative;width:min(900px,100%);aspect-ratio:16/9;margin:0 auto 26px;border-radius:20px;overflow:hidden;background:#101820;box-shadow:0 14px 40px rgba(20,42,62,.14)}.teams-video-wrap iframe{width:100%;height:100%;border:0}.teams-facts{grid-template-columns:repeat(4,minmax(0,1fr))}.instruction-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:26px 0}.instruction-step{padding:22px 23px;background:#fff;border:1px solid var(--line);border-radius:17px}.instruction-step h2{font-size:1.1rem!important;margin:0 0 8px}.instruction-step p{margin:0;color:var(--muted);line-height:1.65}.teams-tip{margin-top:22px}
.sidebar-sublabel{padding-top:5px!important;font-size:.61rem!important;color:#668273!important}

/* Шапка: жодного накладання пунктів на назву сайту */
.site-header{padding-left:24px;padding-right:24px;gap:18px}.site-logo{flex:0 1 280px;min-width:44px}.site-logo strong{max-width:220px;overflow:hidden;text-overflow:ellipsis}.main-nav{min-width:0;gap:20px}.main-nav>a,.nav-root{font-size:.94rem}
@media(max-width:1360px){.site-logo{flex:0 0 auto}.site-logo strong{display:none}.main-nav{gap:18px}.main-nav>a,.nav-root{font-size:.91rem}}
@media(max-width:1120px){.site-header{flex-wrap:wrap;padding-top:10px;padding-bottom:10px}.site-logo strong{display:block;max-width:270px;white-space:normal}.main-nav{width:100%;overflow-x:auto;justify-content:flex-start;gap:18px;padding-bottom:3px;scrollbar-width:none}.main-nav::-webkit-scrollbar{display:none}.nav-dropdown{min-height:auto}.nav-root{height:auto;padding:8px 0}.nav-dropdown-menu{top:calc(100% + 8px)}}
@media(max-width:900px){.methodical-three{grid-template-columns:repeat(2,1fr)}.quick-facts-grid,.teams-facts{grid-template-columns:repeat(2,1fr)}.info-two-col{grid-template-columns:1fr}.dorm-gallery{grid-template-columns:repeat(2,1fr)}}
@media(max-width:680px){.public-info-menu{width:auto}.public-info-hero{padding:58px 18px}.drive-library-frame{height:70vh;min-height:460px}.quick-facts-grid,.teams-facts,.instruction-steps{grid-template-columns:1fr}.dorm-gallery{grid-template-columns:1fr}.info-callout{align-items:flex-start;flex-direction:column}.methodical-three{grid-template-columns:1fr 1fr}.site-logo strong{display:none}}

.education-five{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:1050px){.education-five{grid-template-columns:repeat(3,1fr)}}
@media(max-width:680px){.education-five{grid-template-columns:1fr 1fr}}

/* ===== Етап 10: розширене оформлення публічних сторінок та бібліотеки ===== */
.site-header{
  gap:18px;
  align-items:center;
}
.site-logo{
  flex:0 1 460px;
  min-width:260px;
  align-items:center;
}
.site-logo strong{
  display:block;
  max-width:420px;
  white-space:normal;
  line-height:1.15;
  font-size:clamp(1rem,1.05vw,1.22rem);
}
.main-nav{
  flex:1 1 auto;
  justify-content:flex-end;
  flex-wrap:wrap;
  row-gap:10px;
}
.main-nav > a,
.main-nav > .nav-dropdown > .nav-root{
  white-space:nowrap;
}

.hero,
.page-hero,
.public-info-hero,
.education-landing-hero,
.quality-landing-hero,
.news-hero,
.general-hero,
.section-library-hero{
  position:relative;
  isolation:isolate;
  overflow:hidden;
}
.hero::before,
.page-hero::before,
.public-info-hero::before,
.education-landing-hero::before,
.quality-landing-hero::before,
.news-hero::before,
.general-hero::before,
.section-library-hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-2;
  background:
    linear-gradient(115deg, rgba(3,38,20,.90), rgba(20,88,53,.84) 48%, rgba(44,132,84,.78)),
    url('/media/public/theme/building-cycle.png') center/cover no-repeat;
}
.hero::after,
.page-hero::after,
.public-info-hero::after,
.education-landing-hero::after,
.quality-landing-hero::after,
.news-hero::after,
.general-hero::after,
.section-library-hero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420' viewBox='0 0 420 420'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.16)' stroke-width='1'%3E%3Cpath d='M0 70h420M0 140h420M0 210h420M0 280h420M0 350h420'/%3E%3Cpath d='M70 0v420M140 0v420M210 0v420M280 0v420M350 0v420'/%3E%3Crect x='108' y='98' width='152' height='182' rx='2'/%3E%3Cpath d='M108 150h152M108 202h152M160 98v182'/%3E%3Cpath d='M74 330c38-26 86-46 144-46 59 0 109 18 160 49'/%3E%3C/g%3E%3C/svg%3E");
  background-size:420px 420px;
  opacity:.65;
  mix-blend-mode:screen;
}
.hero > *,
.page-hero > *,
.public-info-hero > *,
.education-landing-hero > *,
.quality-landing-hero > *,
.news-hero > *,
.general-hero > *,
.section-library-hero > *{
  position:relative;
}

.public-info-hero.compact-public,
.page-hero.compact,
.news-hero,
.general-hero,
.education-landing-hero,
.quality-landing-hero,
.section-library-hero{
  background:transparent !important;
}

.dormitory-hero::before{
  background:
    linear-gradient(116deg, rgba(6,47,28,.88), rgba(28,105,63,.78)),
    url('/media/public/dormitory/dorm-building.jpg') center/cover no-repeat;
}
.teams-hero::before{
  background:
    linear-gradient(116deg, rgba(8,45,30,.88), rgba(19,96,58,.78)),
    url('/media/public/theme/public-info-interior.jpg') center/cover no-repeat;
}
.library-hero::before{
  background:
    linear-gradient(116deg, rgba(5,41,25,.90), rgba(24,102,60,.82)),
    url('/media/public/theme/public-info-building.jpg') center/cover no-repeat;
}

.feature-presentation-section,
.news-feature-section{
  display:grid;
  grid-template-columns:minmax(280px,1.1fr) minmax(280px,.9fr);
  gap:24px;
  align-items:stretch;
}
.feature-presentation-callout{
  height:100%;
}
.presentation-embed-card{
  background:rgba(255,255,255,.78);
  border:1px solid rgba(27,94,60,.12);
  border-radius:28px;
  padding:16px;
  box-shadow:0 22px 60px rgba(9,41,22,.14);
  backdrop-filter:blur(10px);
}
.presentation-embed-card video{
  width:100%;
  height:100%;
  min-height:280px;
  border-radius:18px;
  background:#0f1b16;
  display:block;
}
.preview-only-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 16px;
  border-radius:999px;
  background:rgba(25,109,67,.1);
  color:#0b5e35;
  font-weight:800;
}
.preview-only-badge::before{
  content:'👁';
}

.library-catalog-section{
  display:flex;
  flex-direction:column;
  gap:22px;
}
.library-toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
  align-items:flex-end;
  justify-content:space-between;
}
.library-tabs{
  display:inline-flex;
  flex-wrap:wrap;
  gap:10px;
}
.library-tab{
  border:1px solid rgba(17,88,52,.18);
  background:#fff;
  color:#11492d;
  border-radius:999px;
  padding:12px 20px;
  font-weight:800;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.library-tab.active{
  color:#fff;
  background:linear-gradient(135deg,#14603b,#2b8c58);
  box-shadow:0 18px 34px rgba(14,75,46,.24);
}
.library-tab:hover{transform:translateY(-1px)}
.library-search-row{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  align-items:flex-end;
}
.library-search-row label{
  display:flex;
  flex-direction:column;
  gap:8px;
  color:#456357;
  font-size:.94rem;
  font-weight:700;
}
.library-search-row input,
.library-search-row select{
  min-width:240px;
  border-radius:16px;
  border:1px solid rgba(17,88,52,.16);
  background:#fff;
  padding:12px 14px;
  font:inherit;
}
.library-loading{
  padding:18px 20px;
  border-radius:20px;
  background:rgba(17,88,52,.08);
  color:#18492f;
  font-weight:700;
}
.library-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:22px;
}
.library-card{
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border-radius:24px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(17,88,52,.12);
  box-shadow:0 22px 54px rgba(10,40,23,.08);
}
.library-card-cover{
  position:relative;
  aspect-ratio:4 / 3;
  background:linear-gradient(160deg,#dcefe4,#f7fbf8);
}
.library-card-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.library-card-type{
  position:absolute;
  top:14px;
  right:14px;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(6,56,31,.84);
  color:#fff;
  font-weight:800;
  font-size:.82rem;
  letter-spacing:.04em;
}
.library-card-body{
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:18px 18px 20px;
}
.library-card-body h3{
  margin:0;
  color:#173e2c;
  font-size:1.05rem;
  line-height:1.35;
}
.library-card-meta{
  display:grid;
  gap:6px;
  color:#5b7269;
  font-size:.93rem;
}
.library-card-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-top:auto;
}
.library-view-note{
  color:#507163;
  font-size:.88rem;
  font-weight:700;
}
.file-preview-video-wrap{
  display:flex;
  justify-content:center;
}
.file-preview-video-wrap video{
  width:min(100%,1080px);
  max-height:78vh;
  border-radius:18px;
  background:#000;
}

@media (max-width: 1220px){
  .site-logo{flex-basis:380px}
  .site-logo strong{max-width:340px;font-size:1rem}
}
@media (max-width: 1000px){
  .site-header{align-items:flex-start}
  .site-logo{flex-basis:auto;max-width:100%}
  .site-logo strong{max-width:none}
  .main-nav{width:100%}
  .feature-presentation-section,
  .news-feature-section{grid-template-columns:1fr}
}
@media (max-width: 680px){
  .site-logo strong{font-size:.98rem}
  .library-search-row,
  .library-toolbar,
  .library-card-actions{flex-direction:column;align-items:stretch}
  .library-search-row input,
  .library-search-row select{min-width:0;width:100%}
  .preview-only-badge{align-self:flex-start}
}
