/*
Theme Name: МОУ СШ № 5
Theme URI: https://пятая34.рф/
Author: МОУ СШ № 5
Description: Лёгкая доступная тема официального сайта МОУ СШ № 5 имени С.П. Королёва.
Version: 1.2.6
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: school5
*/
:root {
  --blue: #164b7a;
  --blue-dark: #0d3559;
  --blue-light: #eaf3fa;
  --gold: #f2b84b;
  --text: #20252a;
  --muted: #59636d;
  --line: #d9e1e8;
  --bg: #f5f7f9;
  --white: #fff;
  --focus: #b22a00;
  --menu-dark: #3f464c;
  --menu: #596168;
  --menu-hover: #eceff1;
  --menu-sub: #f6f7f8;
  --menu-line: #d4d8dc;
  --sidebar: 310px;
}
* { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Arial, "Helvetica Neue", sans-serif; font-size: 1rem; line-height: 1.6; overflow-wrap: anywhere; }
a { color: #075a9c; text-decoration-thickness: .08em; text-underline-offset: .15em; }
a:hover { color: #073d69; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
button { font: inherit; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 9999; background: #fff; color: #000; padding: .75rem 1rem; font-weight: 700; }
.skip-link:focus { left: 1rem; top: 1rem; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.site-header { position: relative; min-height: clamp(230px, 22vw, 340px); display: flex; overflow: hidden; isolation: isolate; color: #fff; border-bottom: 5px solid #9a7d45; background: #596168; }
.site-header-photo { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.site-header-shade { position: absolute; z-index: -1; inset: 0; background: transparent; }
.header-inner { width: 100%; max-width: 1440px; margin: auto; display: flex; align-items: center; gap: 1.25rem; padding: 1.5rem; }
.header-copy { min-width: 0; max-width: 760px; padding: .9rem 1.1rem; border-left: 4px solid rgba(242,184,75,.95); background: rgba(28,32,35,.36); backdrop-filter: blur(2px); }
.site-logo-link { display: grid; flex: 0 0 auto; width: 112px; height: 112px; place-items: center; padding: 8px; border-radius: 12px; background: rgba(255,255,255,.92); box-shadow: 0 5px 22px rgba(0,0,0,.28); }
.site-logo { display: block; width: 96px; height: 96px; object-fit: contain; }
.site-name { margin: 0; color: #fff; font-size: clamp(1.45rem, 2.7vw, 2.35rem); line-height: 1.2; font-weight: 700; text-shadow: 0 2px 7px rgba(0,0,0,.75); }
.site-description { margin: .45rem 0 0; color: #fff; font-size: 1rem; text-shadow: 0 1px 5px rgba(0,0,0,.9); }
.site-layout { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: var(--sidebar) minmax(0,1fr); gap: 1.5rem; padding: 1.5rem; }
.site-layout > * { min-width: 0; }
.site-sidebar { align-self: start; background: #fff; border: 1px solid var(--menu-line); border-radius: 8px; box-shadow: 0 3px 14px rgba(35,39,42,.09); overflow: hidden; position: sticky; top: 1rem; }
.sidebar-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem 1rem; background: linear-gradient(135deg, var(--menu-dark), var(--menu)); color: #fff; }
.sidebar-title { margin: 0; color: #fff; font-size: 1.08rem; }
.menu-panel-toggle { display: none; border: 2px solid rgba(255,255,255,.8); border-radius: 5px; background: transparent; color: #fff; padding: .35rem .65rem; font-weight: 700; cursor: pointer; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; }
.main-navigation li { position: relative; margin: 0; border-bottom: 1px solid var(--menu-line); }
.main-navigation li:last-child { border-bottom: 0; }
.main-navigation a { display: block; padding: .72rem 1rem; color: var(--text); text-decoration: none; line-height: 1.35; overflow-wrap: anywhere; }
.main-navigation .menu-item-has-children > a { padding-right: 3.25rem; }
.main-navigation a:hover, .main-navigation .current-menu-item > a, .main-navigation .current-menu-ancestor > a { background: var(--menu-hover); color: #2f353a; }
.main-navigation .current-menu-item > a { font-weight: 700; box-shadow: inset 4px 0 0 var(--gold); }
.main-navigation .sub-menu { background: var(--menu-sub); border-top: 1px solid var(--menu-line); }
.main-navigation .sub-menu a { padding-left: 1.55rem; font-size: .94rem; }
.main-navigation .sub-menu .sub-menu a { padding-left: 2.25rem; font-size: .91rem; }
.main-navigation .submenu-toggle { position: absolute; z-index: 2; top: .38rem; right: .55rem; width: 2.2rem; height: 2.2rem; border: 1px solid #aeb4b9; border-radius: 5px; background: #fff; color: var(--menu-dark); cursor: pointer; line-height: 1; }
.main-navigation .submenu-toggle:hover { background: #e5e8ea; border-color: #848b91; }
.main-navigation .submenu-toggle::before { content: "+"; font-size: 1.35rem; font-weight: 700; }
.main-navigation .submenu-toggle[aria-expanded="true"]::before { content: "−"; }
.main-navigation .sub-menu .submenu-toggle { top: .3rem; }
.site-main { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: clamp(1rem,2.5vw,2rem); box-shadow: 0 2px 12px rgba(20,45,70,.05); }
.page-header h1, .entry-title { margin: 0 0 1.25rem; color: var(--blue-dark); font-size: clamp(1.55rem,3vw,2.25rem); line-height: 1.2; overflow-wrap: anywhere; }
.entry-content h2, .entry-content h3 { color: var(--blue-dark); line-height: 1.3; }
.entry-content img { max-width: 100%; height: auto; }
.entry-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: .65rem; vertical-align: top; }
.breadcrumbs { margin: 0 0 1rem; color: var(--muted); font-size: .9rem; }
.notice { padding: 1rem 1.1rem; background: #fff8e7; border-left: 5px solid var(--gold); border-radius: 4px; }
.school-facts { display: grid; grid-template-columns: minmax(13rem, 30%) minmax(0, 1fr); margin: 0 0 1.5rem; border: 1px solid var(--line); border-bottom: 0; }
.school-facts dt, .school-facts dd { margin: 0; padding: .75rem .9rem; border-bottom: 1px solid var(--line); }
.school-facts dt { background: var(--blue-light); color: var(--blue-dark); font-weight: 700; }
.school-facts dd { min-width: 0; background: #fff; }
.school-facts address { font-style: normal; }
.document-link { display: inline-block; padding: .65rem .85rem; border: 1px solid #9bb2c5; border-radius: 5px; background: var(--blue-light); font-weight: 700; }
.news-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 1.25rem; }
.news-card { display: flex; min-width: 0; flex-direction: row; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.news-thumb { display: block; flex: 0 0 min(34%, 320px); aspect-ratio: 16/9; overflow: hidden; background: var(--blue-light); text-decoration: none; }
.news-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.news-placeholder { display: grid; width: 100%; height: 100%; place-items: center; padding: 1rem; color: var(--blue-dark); font-weight: 700; text-align: center; }
.news-card-content { display: flex; flex: 1; flex-direction: column; padding: 1rem; }
.news-card h2 { margin: 0; font-size: 1.18rem; line-height: 1.3; }
.news-card h2 a { color: var(--blue-dark); text-decoration: none; }
.entry-meta { margin: .45rem 0; color: var(--muted); font-size: .88rem; }
.news-excerpt p { margin: .45rem 0; }
.read-more { margin: auto 0 0; padding-top: .5rem; font-weight: 700; }
.pagination { margin-top: 1.5rem; }
.pagination .page-numbers { display: inline-block; margin: .2rem; padding: .4rem .7rem; border: 1px solid var(--line); border-radius: 4px; }
.pagination .current { background: var(--blue); color: #fff; }
.site-footer { margin-top: 1rem; background: var(--blue-dark); color: #fff; }
.footer-inner { max-width: 1440px; margin: 0 auto; padding: 1.25rem 1.5rem; }
.footer-inner p { margin: .25rem 0; }
.site-footer a { color: #fff; }
.search-form { display: flex; gap: .5rem; max-width: 36rem; }
.search-form label { flex: 1; }
.search-field { width: 100%; min-height: 2.75rem; padding: .55rem .7rem; border: 1px solid #8797a5; border-radius: 4px; }
.search-submit { min-height: 2.75rem; padding: .55rem 1rem; border: 0; border-radius: 4px; background: var(--blue); color: #fff; font-weight: 700; cursor: pointer; }
@media (max-width: 1100px) { .news-grid { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 820px) {
  .site-header { min-height: 260px; }
  .site-header-photo { object-position: 50% 50%; }
  .site-header-shade { background: transparent; }
  .header-inner { padding: 1rem; }
  .site-logo-link { width: 88px; height: 88px; padding: 7px; }
  .site-logo { width: 74px; height: 74px; }
  .header-copy { padding: .75rem .9rem; }
  .site-layout { grid-template-columns: minmax(0,1fr); gap: 1rem; padding: 1rem; }
  .site-sidebar { position: static; width: 100%; }
  .menu-panel-toggle { display: inline-block; }
  .js .main-navigation { display: none; }
  .js .main-navigation.is-open { display: block; }
}
@media (max-width: 600px) {
  .news-grid { grid-template-columns: minmax(0,1fr); }
  .news-card { flex-direction: column; }
  .news-thumb { flex-basis: auto; width: 100%; }
}
@media (max-width: 600px) {
  .school-facts { display: block; border-bottom: 1px solid var(--line); }
  .school-facts dt, .school-facts dd { border-bottom: 0; }
  .school-facts dd { padding-top: .45rem; padding-bottom: 1rem; }
}
@media (max-width: 480px) {
  .site-header { min-height: 235px; }
  .header-inner { align-items: flex-end; gap: .7rem; padding: .8rem; }
  .site-logo-link { width: 66px; height: 66px; padding: 5px; border-radius: 9px; }
  .site-logo { width: 56px; height: 56px; }
  .header-copy { padding: .6rem .7rem; border-left-width: 3px; }
  .site-name { font-size: 1.08rem; }
  .site-description { margin-top: .25rem; font-size: .78rem; line-height: 1.3; }
  .site-layout { padding: .65rem; }
  .site-main { padding: 1rem; }
  .search-form { flex-direction: column; }
}
/* GTO section */
.gto-hero { margin-bottom: 1.5rem; padding: clamp(1.25rem, 3vw, 2.25rem); color: #fff; border-radius: 18px; background: linear-gradient(135deg, #07543b 0%, #087451 62%, #b86718 100%); box-shadow: 0 10px 28px rgba(9, 60, 44, .18); }
.gto-hero h2 { margin-top: 0; color: #fff; }
.gto-hero p { max-width: 780px; font-size: 1.06rem; }
.gto-kicker { display: inline-block; margin-bottom: .65rem; padding: .3rem .65rem; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.gto-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.gto-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .65rem 1rem; border: 2px solid #fff; border-radius: 9px; color: #07543b; background: #fff; font-weight: 800; text-decoration: none; }
.gto-button:hover, .gto-button:focus { color: #fff; background: transparent; }
.gto-guide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1rem 0 1.75rem; padding: 0; list-style: none; counter-reset: gto-guide; }
.gto-guide li { position: relative; min-height: 100%; padding: 1rem 1rem 1rem 3.35rem; border: 1px solid #cddbd5; border-radius: 12px; background: #f6faf8; counter-increment: gto-guide; }
.gto-guide li::before { position: absolute; top: .9rem; left: .85rem; display: grid; width: 1.85rem; height: 1.85rem; place-items: center; border-radius: 50%; color: #fff; background: #087451; font-weight: 800; content: counter(gto-guide); }
.gto-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); gap: 1rem; margin: 1rem 0 1.75rem; }
.gto-card { display: flex; flex-direction: column; min-width: 0; padding: 1rem; border: 1px solid #cddbd5; border-top: 5px solid #087451; border-radius: 12px; background: #fff; box-shadow: 0 4px 15px rgba(15, 61, 47, .08); }
.gto-card h3 { margin: .35rem 0 .35rem; font-size: 1.12rem; }
.gto-card p { margin: 0 0 .85rem; color: #47524e; }
.gto-card-link { margin-top: auto; }
.gto-card a { font-weight: 800; }
.gto-age { align-self: flex-start; padding: .2rem .55rem; border-radius: 999px; color: #07543b; background: #def2e9; font-size: .9rem; font-weight: 800; }
.gto-note { margin: 1.25rem 0; padding: 1rem 1.1rem; border-left: 5px solid #b86718; border-radius: 7px; background: #fff7e9; }
@media (max-width: 720px) {
  .gto-guide { grid-template-columns: 1fr; }
  .gto-grid { grid-template-columns: 1fr; }
  .gto-actions, .gto-button { width: 100%; }
}
/* VPR section */
.vpr-hero { margin-bottom: 1.5rem; padding: clamp(1.25rem, 3vw, 2.2rem); color: #fff; border-radius: 18px; background: linear-gradient(135deg, #123f68 0%, #17679b 67%, #11847b 100%); box-shadow: 0 10px 28px rgba(18, 63, 104, .18); }
.vpr-hero h2 { margin-top: 0; color: #fff; }
.vpr-hero p { max-width: 800px; font-size: 1.06rem; }
.vpr-kicker { display: inline-block; margin-bottom: .65rem; padding: .3rem .65rem; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.vpr-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1rem 0 1.6rem; }
.vpr-fact { padding: 1rem; border: 1px solid #c7d8e5; border-radius: 12px; background: #f4f8fb; }
.vpr-fact strong { display: block; margin-bottom: .3rem; color: #123f68; }
.vpr-doc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0 1.6rem; }
.vpr-doc-card { display: flex; flex-direction: column; min-width: 0; padding: 1.1rem; border: 1px solid #c7d8e5; border-top: 5px solid #17679b; border-radius: 12px; background: #fff; box-shadow: 0 4px 15px rgba(18, 63, 104, .08); }
.vpr-doc-card h3 { margin: 0 0 .5rem; font-size: 1.15rem; }
.vpr-doc-card p { margin: 0 0 .8rem; }
.vpr-doc-link { margin-top: auto; font-weight: 800; }
.vpr-note { margin: 1.25rem 0; padding: 1rem 1.1rem; border-left: 5px solid #b86718; border-radius: 7px; background: #fff7e9; }
@media (max-width: 720px) {
  .vpr-facts, .vpr-doc-grid { grid-template-columns: 1fr; }
}
/* Material resources and accessible environment */
.mto-hero { margin-bottom: 1.5rem; padding: clamp(1.25rem, 3vw, 2.25rem); color: #fff; border-radius: 18px; background: linear-gradient(135deg, #173f52 0%, #176b72 62%, #2b8170 100%); box-shadow: 0 10px 28px rgba(23, 63, 82, .18); }
.mto-hero h2 { margin-top: 0; color: #fff; }
.mto-hero p { max-width: 850px; font-size: 1.06rem; }
.mto-kicker { display: inline-block; margin-bottom: .65rem; padding: .3rem .65rem; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.mto-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0 1.7rem; }
.mto-stat { padding: 1rem; border: 1px solid #c8ddd8; border-radius: 12px; background: #f3f9f7; }
.mto-stat strong { display: block; margin-bottom: .2rem; color: #175e58; font-size: 1.55rem; line-height: 1.1; }
.mto-list-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin: 1rem 0 1.6rem; padding: 0; list-style: none; }
.mto-list-grid li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-width: 0; padding: .75rem .9rem; border: 1px solid #d4e2de; border-radius: 10px; background: #fff; }
.mto-count { flex: 0 0 auto; min-width: 2rem; padding: .15rem .5rem; color: #fff; border-radius: 999px; background: #176b72; text-align: center; font-weight: 800; }
.mto-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0 1.7rem; }
.mto-card { min-width: 0; padding: 1rem; border: 1px solid #c8ddd8; border-top: 5px solid #176b72; border-radius: 12px; background: #fff; box-shadow: 0 4px 15px rgba(23, 63, 82, .07); }
.mto-card h3 { margin: 0 0 .45rem; font-size: 1.12rem; }
.mto-card p, .mto-card ul { margin-bottom: 0; }
.mto-access-list { display: grid; gap: .75rem; margin: 1rem 0 1.7rem; padding: 0; list-style: none; }
.mto-access-list li { display: grid; grid-template-columns: minmax(180px, .65fr) minmax(0, 1.35fr); gap: 1rem; padding: .9rem 1rem; border: 1px solid #d4e2de; border-radius: 10px; background: #fff; }
.mto-access-list strong { color: #173f52; }
.mto-pending { margin: 1.25rem 0; padding: 1rem 1.1rem; border-left: 5px solid #b86718; border-radius: 7px; background: #fff7e9; }
.mto-source { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #d4e2de; color: #4d5c58; font-size: .94rem; }
@media (max-width: 820px) {
  .mto-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mto-cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .mto-stats, .mto-list-grid { grid-template-columns: 1fr; }
  .mto-access-list li { grid-template-columns: 1fr; gap: .3rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
