.sch-regions { position:relative; flex:none; line-height:1.25; }
.sch-regions > .sch-regions__button {
  position:relative; display:grid; place-items:center; width:42px; height:44px;
  margin:0; padding:0; color:#21384a; border:0; border-radius:6px;
  background:transparent; list-style:none; cursor:pointer;
}
.sch-regions > summary::-webkit-details-marker { display:none; }
.sch-regions .sch-regions__button svg { width:20px; height:20px; }
.sch-regions[open] > summary, .sch-regions[data-selected-region] > summary,
.sch-regions > summary:hover { background:#f1f0eb; color:#96351f; }
.sch-regions > summary:focus-visible, .sch-regions a:focus-visible { outline:2px solid #aa4428; outline-offset:-2px; }
.sch-regions__badge { position:absolute; right:1px; bottom:3px; padding:1px 3px; border-radius:3px; color:white; background:#8e371e; font:700 8px/1.1 Golos,Arial,sans-serif; }
.sch-regions__badge:empty { display:none; }
.sch-regions__panel {
  position:absolute; z-index:25; top:calc(100% + 8px); right:0; width:min(205px,calc(100vw - 20px));
  max-height:min(480px,calc(100dvh - 115px)); overflow:auto; overscroll-behavior:contain;
  padding:6px; background:white; color:#10243a; border:1px solid #d6d9d6;
  border-radius:12px; box-shadow:0 9px 25px #10243a24,0 2px 6px #10243a12;
  text-align:left; font-family:Golos,system-ui,sans-serif;
}
.sch-regions__list { padding:0; margin:0; list-style:none; }
.sch-langs .sch-regions .sch-regions__list a {
  display:flex; justify-content:space-between; align-items:center; gap:3px; min-width:0; min-height:44px;
  padding:8px 11px; color:#1e3443; border:0; border-radius:5px; margin:0; font:550 14px/1.35 Golos,system-ui,sans-serif;
  letter-spacing:normal; text-decoration:none; overflow-wrap:anywhere;
}
.sch-langs .sch-regions a:hover { background:#f6f4ee; }
.sch-langs .sch-regions a[aria-current] { background:#f5e9d9; color:#602f1f; }
.sch-regions a[aria-current]::after { content:'✓'; font-family:system-ui,sans-serif; }
.sch-drawer-school .sch-drawer-bottom { position:relative; }
.sch-drawer-bottom .sch-regions { position:static; }
.sch-drawer-bottom .sch-regions__panel { inset:auto 0 calc(100% - 2px) auto; width:min(205px,100%); max-height:min(385px,55dvh); }
@media(max-width:700px) {
  .sch-header .sch-regions { position:static; }
  .sch-header-in { position:relative; }
  .sch-header .sch-regions__panel { inset:calc(100% + 2px) 8px auto auto; width:min(205px,calc(100vw - 16px)); }
  .sch-header .sch-langs > a { min-height:44px; }
  .sch-header-in { gap:3px; }
  .sch-regions > .sch-regions__button { width:38px; }
}
@media(max-width:390px) {
  .sch-header-in, .sch-learning .sch-header-in { padding-inline:8px; }
  .sch-header .sch-tools, .sch-learning .sch-header .sch-tools { gap:2px; }
  .sch-header .school-logo { gap:4px; }
  .sch-header .school-logo img { width:32px; height:32px; }
  .sch-header .school-logo strong { font-size:19px; }
  .sch-header .school-logo small { font-size:10px; }
  .sch-header .sch-langs > a { min-width:32px; }
}
@media(max-width:355px) {
  .sch-learning .sch-header .school-logo > span { display:none; }
  .sch-learning .sch-header .school-logo { min-width:42px; min-height:44px; }
}
@media print { .sch-regions { display:none; } }
