@import url("fonts.css");

:root {
  --forest: #123a6b;
  --forest-mid: #1a4f8a;
  --leaf: #2d6bb8;
  --gold: #c9a227;
  --gold-soft: #e8d48b;
  --cream: #f3f6fb;
  --paper: #ffffff;
  --ink: #152033;
  --muted: #5b6b7c;
  --line: rgba(18, 58, 107, 0.12);
  --shadow: 0 18px 50px rgba(18, 58, 107, 0.08);
  --radius: 8px;
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Manrope, system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
textarea { resize: vertical; min-height: 140px; }

.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }

html.lv body {
  background: #fff;
  color: #000;
  font-size: 20px;
}
html.lv a { text-decoration: underline; }

.topbar {
  background: var(--forest);
  color: #e8eef5;
  font-size: 13px;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
}
.top-links { display: flex; gap: 18px; flex-wrap: wrap; }
.top-links a { opacity: .85; }
.top-links a:hover { opacity: 1; }
.sitemap a { color: var(--forest); }
.sitemap a:hover { text-decoration: underline; }
.sitemap > ul { list-style: none; margin-left: 0; }
.sitemap li { margin: .4em 0; }
.sitemap li ul { margin: .35em 0 .5em 1.15em; }
.top-actions { display: flex; gap: 10px; align-items: center; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px;
  padding: 5px 10px;
  background: rgba(255,255,255,.06);
  color: inherit;
  cursor: pointer;
}

header.site {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 18px 0;
}
.brand { display: flex; gap: 14px; align-items: center; }
.brand img { width: 64px; height: 76px; object-fit: contain; }
.brand h1 {
  font-family: Unbounded, sans-serif;
  font-size: 28px;
  letter-spacing: -.03em;
  line-height: 1;
}
.brand p { color: var(--muted); font-size: 13px; margin-top: 4px; max-width: 280px; }

.search {
  display: flex;
  background: #e8eef6;
  border-radius: 8px;
  overflow: hidden;
  max-width: 420px;
  width: 100%;
  justify-self: center;
}
.search input {
  border: 0;
  background: transparent;
  padding: 13px 18px;
  width: 100%;
  outline: none;
}
.search button {
  border: 0;
  background: var(--forest);
  color: #fff;
  padding: 0 18px;
  cursor: pointer;
}

.head-contacts { text-align: right; }
.head-contacts .phone {
  font-family: Unbounded, sans-serif;
  font-size: 16px;
  font-weight: 600;
}
.head-contacts small { color: var(--muted); display: block; }

nav.main {
  padding-bottom: 14px;
}
nav.main .nav-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav.main li {
  position: relative;
}
nav.main a {
  padding: 9px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--forest);
  display: block;
}
nav.main .has-sub > a {
  position: relative;
  padding-right: 28px;
}
nav.main .nav-list > li > a:hover,
nav.main .nav-list > li > a.active,
nav.main .nav-list > li:hover > a,
nav.main .nav-list > li:focus-within > a { background: var(--forest); color: #fff; }
nav.main .nav-toggle {
  display: none;
  position: absolute;
  top: 4px;
  right: 2px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
nav.main .nav-toggle::before {
  content: "";
  display: block;
  margin: 0 auto;
  border: 5px solid transparent;
  border-top-color: var(--forest);
  transform: translateY(3px);
}
nav.main .has-sub > a::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 0;
  height: 0;
  border: 4px solid transparent;
  border-top-color: currentColor;
  transform: translateY(-1px);
}
nav.main .nav-drop {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% - 2px);
  min-width: 260px;
  max-width: 360px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 8px 0;
  z-index: 50;
  list-style: none;
  margin: 0;
}
nav.main li:hover > .nav-drop,
nav.main li:focus-within > .nav-drop { display: block; }
nav.main .nav-drop::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}
nav.main .nav-drop .nav-drop {
  left: calc(100% - 8px);
  top: 0;
}
nav.main .nav-drop .nav-drop::before {
  left: -12px;
  right: auto;
  top: 0;
  width: 12px;
  height: 100%;
}
nav.main .nav-list > li:nth-last-child(-n+2) > .nav-drop {
  left: auto;
  right: 0;
}
nav.main .nav-list > li:nth-last-child(-n+2) .nav-drop .nav-drop {
  left: auto;
  right: calc(100% - 8px);
}
nav.main .nav-drop a {
  border-radius: 0;
  padding: 9px 16px;
  font-weight: 600;
  white-space: normal;
}
nav.main .nav-drop .has-sub > a {
  padding-right: 28px;
}
nav.main .nav-drop .has-sub > a::after {
  border-top-color: transparent;
  border-left-color: currentColor;
  transform: translateY(-50%);
}
nav.main .nav-drop a:hover,
nav.main .nav-drop a.active,
nav.main .nav-drop li:hover > a {
  background: #e8eef6;
  color: var(--forest);
}
header.site { position: relative; z-index: 30; }

.burger {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  padding: 10px 12px;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 560px;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero:not(.has-slider)::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(8,22,48,.88) 0%, rgba(8,22,48,.55) 42%, rgba(8,22,48,.18) 100%),
    url("../img/home-hero.jpg") center/cover;
  z-index: -1;
}
.hero.has-slider {
  min-height: 0;
}
.hero-slides {
  position: relative;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background: center/cover no-repeat;
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  pointer-events: none;
}
.hero-slide:first-child {
  position: relative;
  inset: auto;
}
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(8,22,48,.88) 0%, rgba(8,22,48,.55) 42%, rgba(8,22,48,.18) 100%);
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  pointer-events: auto;
}
.hero[data-animation="fade"] .hero-slide {
  transition: opacity .85s ease, visibility .85s;
}
.hero[data-animation="fade"] .hero-slide .hero-inner {
  transition: opacity .85s ease, transform .85s ease;
  opacity: 0;
  transform: translateY(18px);
}
.hero[data-animation="fade"] .hero-slide.is-active .hero-inner {
  opacity: 1;
  transform: none;
}
.hero[data-animation="slide"] .hero-slide {
  transform: translateX(8%);
  transition: opacity .75s ease, transform .75s ease, visibility .75s;
}
.hero[data-animation="slide"] .hero-slide.is-active {
  transform: none;
}
.hero[data-animation="slide"] .hero-slide.is-leave {
  transform: translateX(-8%);
  opacity: 0;
}
.hero[data-animation="slide"] .hero-slide .hero-inner {
  transition: opacity .75s ease, transform .75s ease;
  opacity: 0;
  transform: translateX(28px);
}
.hero[data-animation="slide"] .hero-slide.is-active .hero-inner {
  opacity: 1;
  transform: none;
}
.hero[data-animation="zoom"] .hero-slide {
  transform: scale(1.08);
  transition: opacity .9s ease, transform 1.1s ease, visibility .9s;
}
.hero[data-animation="zoom"] .hero-slide.is-active {
  transform: scale(1);
}
.hero[data-animation="zoom"] .hero-slide .hero-inner {
  transition: opacity .9s ease, transform .9s ease;
  opacity: 0;
  transform: scale(.96);
}
.hero[data-animation="zoom"] .hero-slide.is-active .hero-inner {
  opacity: 1;
  transform: none;
}
.hero-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 6px;
  background: rgba(8,22,48,.35);
  color: #fff;
  cursor: pointer;
}
.hero-nav::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin: 0 auto;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
}
.hero-prev { left: max(12px, calc((100% - var(--max)) / 2)); }
.hero-prev::before { transform: rotate(135deg); margin-left: 6px; }
.hero-next { right: max(12px, calc((100% - var(--max)) / 2)); }
.hero-next::before { transform: rotate(-45deg); margin-right: 6px; }
.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 58px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  cursor: pointer;
}
.hero-dots button.is-active { background: var(--gold); }
.hero-inner { position: relative; z-index: 2; padding: 72px 0 96px; max-width: 620px; }
@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-slide .hero-inner {
    transition: none !important;
  }
}
.kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 18px;
}
.hero h2 {
  font-family: Unbounded, sans-serif;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -.04em;
  margin-bottom: 16px;
}
.hero p { font-size: 18px; max-width: 520px; opacity: .92; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  padding: 13px 20px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}
.btn-gold { background: var(--gold); color: #1a1608; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.btn-dark { background: var(--forest); color: #fff; }
.btn-line { background: transparent; border: 1px solid var(--line); color: var(--forest); }
.btn-danger { background: #9b1c1c; color: #fff; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: -42px;
  position: relative;
  z-index: 2;
}
.stat {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.stat b {
  display: block;
  font-family: Unbounded, sans-serif;
  font-size: 28px;
  color: var(--forest);
}
.stat span { color: var(--muted); font-size: 14px; }

section { padding: 72px 0; }
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 28px;
}
.sec-head h3 {
  font-family: Unbounded, sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -.03em;
}
.sec-head p { color: var(--muted); }

.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.service {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 22px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid transparent;
  transition: .2s ease;
}
.service:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: var(--shadow); }
.ico {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: #e8eef8;
  display: grid; place-items: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.service h4 { font-size: 17px; margin-bottom: 6px; }
.service span { color: var(--muted); font-size: 14px; }

.grid-2 {
  display: grid;
  grid-template-columns: 2fr .7fr;
  gap: 28px;
}
.grid-2.is-solo,
.page-layout.is-solo { grid-template-columns: 1fr; }
.page-layout {
  display: grid;
  grid-template-columns: 2fr .7fr;
  gap: 28px;
  align-items: start;
  padding-bottom: 48px;
}
.page-main { min-width: 0; }
.page-layout .prose { margin-bottom: 24px; }
.page-layout .news-list { grid-template-columns: 1fr 1fr; }
.page-layout .contacts { grid-template-columns: 1fr; }
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.news-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  height: 100%;
}
.card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; }
.card img { width: 100%; height: 210px; object-fit: cover; background: #dce4ee; }
.card.featured img { height: 100%; min-height: 260px; }
.card-body { padding: 18px 20px 22px; }
.meta { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.card h4 { font-size: 18px; line-height: 1.3; margin-bottom: 10px; }
.tag {
  display: inline-block;
  background: #e8eef8;
  color: var(--forest-mid);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.side-stack { display: grid; gap: 16px; align-content: start; }
.sidebar-jobs {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.sidebar-jobs-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 18px 14px; }
.sidebar-jobs-head h3 { margin-top: 4px; color: var(--forest); font: 700 18px/1.25 Unbounded, sans-serif; letter-spacing: -.025em; }
.sidebar-jobs-head > span {
  display: grid;
  flex: 0 0 auto;
  min-width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.sidebar-jobs-list { border-top: 1px solid var(--line); }
.sidebar-job { display: block; padding: 14px 18px; border-bottom: 1px solid var(--line); transition: background .2s ease; }
.sidebar-job:hover { background: #f4f7fb; }
.sidebar-job strong { display: block; color: var(--ink); font-size: 14px; line-height: 1.35; }
.sidebar-job span { display: block; margin-top: 5px; color: var(--forest); font-size: 13px; font-weight: 800; }
.sidebar-job small { display: block; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-jobs-empty { padding: 4px 18px 16px; color: var(--muted); font-size: 13px; }
.sidebar-jobs-all { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; background: #e8eef8; color: var(--forest); font-size: 13px; font-weight: 800; }
.sidebar-jobs-all:hover { background: #dce7f4; }
.news-list-layout {
  display: grid;
  grid-template-columns: 2fr .7fr;
  gap: 28px;
  align-items: start;
}
.news-list-layout .news-list {
  grid-template-columns: 1fr 1fr;
}
.news-empty {
  grid-column: 1 / -1;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
  color: var(--muted);
}
.news-cal-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 18px 16px 14px;
  border: 1px solid var(--line);
}
.news-cal-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.news-cal-head {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.news-cal-title {
  text-align: center;
  font-family: Unbounded, sans-serif;
  font-size: 15px;
  font-weight: 700;
}
.news-cal-nav {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f9fd;
  position: relative;
}
.news-cal-nav::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: 13px auto 0;
  border-right: 2px solid var(--forest);
  border-bottom: 2px solid var(--forest);
  transform: rotate(135deg);
}
.news-cal-nav.is-next::before {
  transform: rotate(-45deg);
  margin-top: 13px;
}
.news-cal-nav:hover { background: #e8eef8; }
.news-cal-week,
.news-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.news-cal-week {
  margin-bottom: 6px;
}
.news-cal-week span {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  padding: 2px 0;
}
.news-cal-day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.news-cal-day:hover { background: #e8eef8; }
.news-cal-day.is-out { color: #9aa8b8; font-weight: 500; }
.news-cal-day.is-today {
  box-shadow: inset 0 0 0 1px var(--leaf);
}
.news-cal-day.is-active {
  background: var(--forest);
  color: #fff;
}
.news-cal-day.is-active:hover { background: var(--forest-mid); color: #fff; }
.news-cal-day.has-news i {
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--gold);
}
.news-cal-day.is-active.has-news i { background: var(--gold-soft); }
.news-cal-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}
.news-cal-foot a { color: var(--forest-mid); }
.news-cal-foot a:hover { color: var(--leaf); }
[data-news-feed].is-loading [data-news-items],
[data-news-feed].is-loading [data-news-cal-host],
[data-news-feed].is-loading [data-news-pager] {
  opacity: .4;
  pointer-events: none;
}
[data-news-items],
[data-news-cal-host],
[data-news-pager] {
  transition: opacity .18s ease;
}
.notice, .head-card, .emergency {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--line);
}
.notice-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.notice-item:last-of-type { border-bottom: 0; }
.weather-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 18px 16px 16px;
  border: 1px solid var(--line);
}
.weather-place {
  font-family: Unbounded, sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin: -4px 0 14px;
}
.weather-now {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.weather-ico {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #e8eef8;
  color: var(--forest-mid);
  flex: 0 0 auto;
}
.weather-temp {
  font-family: Unbounded, sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--ink);
}
.weather-cond {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}
.weather-facts {
  display: grid;
  gap: 0;
  margin-top: 4px;
}
.weather-facts div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.weather-facts div:last-child { border-bottom: 0; }
.weather-facts span { color: var(--muted); }
.weather-facts b { font-weight: 700; white-space: nowrap; }
.weather-days {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.weather-day {
  text-align: center;
  background: #f7f9fd;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 4px 8px;
  font-size: 12px;
  color: var(--forest-mid);
}
.weather-day svg { margin: 0 auto 4px; display: block; }
.weather-day span { display: block; color: var(--muted); margin-bottom: 4px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; font-size: 10px; }
.weather-day b { display: block; font-family: Unbounded, sans-serif; font-size: 14px; color: var(--ink); }
.weather-day small { color: var(--muted); }
.weather-hint { font-size: 13px; color: var(--muted); margin-top: 8px; }
a.weather-card {
  display: block;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
a.weather-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
}
.weather-more {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  color: var(--forest-mid);
}
a.weather-card:hover .weather-more { color: var(--leaf); }

.ad-card {
  position: relative;
  display: grid;
  height: 438px;
  min-height: 438px;
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
}
.ad-slide {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  color: inherit;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
}
.ad-slide.is-active {
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}
.ad-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #dce4ee;
}
.ad-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 18px;
  font-weight: 700;
  text-align: center;
}
.ad-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}
.ad-dots button {
  pointer-events: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,.55);
  cursor: pointer;
}
.ad-dots button.is-active { background: #fff; }
.image-picker-preview.is-ad { aspect-ratio: 600 / 880; width: min(100%, 280px); }
.sidebar-matrix-wrap { overflow-x: auto; }
.sidebar-matrix th, .sidebar-matrix td { text-align: center; }
.sidebar-matrix th:first-child,
.sidebar-matrix td:first-child { text-align: left; white-space: nowrap; }
.sidebar-check { display: flex; justify-content: center; }
.sidebar-check input { width: auto; margin: 0; }

.wx-page { padding: 12px 0 64px; }
.wx-hero, .wx-block, .wx-stat, .wx-chart {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.wx-hero {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 28px;
  padding: 24px;
  margin-bottom: 18px;
}
.wx-hero-now {
  display: flex;
  align-items: center;
  gap: 16px;
}
.wx-hero-temp {
  font-family: Unbounded, sans-serif;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -.04em;
}
.wx-hero-now p { color: var(--muted); margin-top: 6px; }
.wx-hero-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
.wx-hero-facts div,
.wx-stat-grid div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.wx-hero-facts span, .wx-stat-grid span { color: var(--muted); }
.wx-hero-facts b, .wx-stat-grid b { font-weight: 700; white-space: nowrap; }
.wx-block { padding: 20px 22px; margin-bottom: 18px; }
.wx-hours {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.wx-hour {
  flex: 0 0 72px;
  text-align: center;
  background: #f7f9fd;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 6px 8px;
  font-size: 12px;
}
.wx-hour span { display: block; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.wx-hour svg { margin: 0 auto 4px; }
.wx-hour b { display: block; font-family: Unbounded, sans-serif; font-size: 15px; }
.wx-hour small { color: var(--muted); }
.wx-forecast {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}
.wx-day {
  background: #f7f9fd;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 12px 10px;
}
.wx-day-wd {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gold);
}
.wx-day strong { display: block; margin: 2px 0 8px; }
.wx-day svg { color: var(--forest-mid); }
.wx-day-temp { display: flex; align-items: baseline; gap: 8px; margin: 6px 0; }
.wx-day-temp b { font-family: Unbounded, sans-serif; font-size: 20px; }
.wx-day-temp small { color: var(--muted); }
.wx-day p { font-size: 13px; color: var(--muted); margin-bottom: 8px; min-height: 2.4em; }
.wx-day ul { list-style: none; font-size: 12px; color: var(--forest-mid); }
.wx-day li { margin: 3px 0; }
.wx-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.wx-stat { padding: 16px; }
.wx-stat .meta { margin-top: 8px; }
.wx-stat-grid { display: grid; }
.wx-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.wx-chart { padding: 16px; }
.wx-chart-wide { padding: 0 0 8px; }
.wx-chart h3 {
  font-family: Unbounded, sans-serif;
  font-size: 15px;
  margin-bottom: 8px;
}
.wx-svg { width: 100%; height: 180px; display: block; }
.wx-svg-range { height: 240px; }
.wx-svg-line {
  fill: none;
  stroke: #1a4f8a;
  stroke-width: 2;
}
.wx-svg-mean {
  fill: none;
  stroke: #c9a227;
  stroke-width: 2.2;
}
.wx-svg-dot { fill: #c9a227; }
.wx-svg-bar { fill: #2d6bb8; }
.wx-svg-band { fill: rgba(45, 107, 184, .32); }
.wx-svg-zero { stroke: var(--line); stroke-dasharray: 4 4; }
.wx-svg-axis { font-size: 10px; fill: #5b6b7c; }
.wx-svg-label { font-size: 11px; fill: #152033; font-weight: 700; }
.wx-svg-label-min { fill: #5b6b7c; font-weight: 600; }
.wx-same-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}
.wx-leg-band::before,
.wx-leg-mean::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  vertical-align: -2px;
  border-radius: 3px;
}
.wx-leg-band::before { background: rgba(45, 107, 184, .32); }
.wx-leg-mean::before { background: #c9a227; height: 3px; vertical-align: 2px; }
.wx-years {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.wx-year {
  text-align: center;
  background: #f7f9fd;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 6px 8px;
  font-size: 12px;
}
.wx-year.is-now { border-color: var(--gold); background: #fffaf0; }
.wx-year span { display: block; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.wx-year svg { margin: 0 auto 4px; color: var(--forest-mid); }
.wx-year b { display: block; font-family: Unbounded, sans-serif; font-size: 16px; }
.wx-year small { color: var(--muted); }
.wx-year em { display: block; font-style: normal; color: var(--muted); margin-top: 4px; font-size: 11px; }
.wx-table-wrap { overflow-x: auto; }
.wx-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.wx-table th, .wx-table td {
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  white-space: nowrap;
}
.wx-table th { color: var(--muted); font-weight: 700; }
.wx-source { font-size: 13px; color: var(--muted); margin-top: 8px; }
.wx-source a { color: var(--forest-mid); text-decoration: underline; }
.head-card {
  background:
    linear-gradient(180deg, rgba(18,58,107,.08), rgba(18,58,107,.08)),
    var(--paper);
}
.portrait {
  width: 100%;
  height: 168px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 20%, rgba(232,212,139,.35), transparent 45%),
    linear-gradient(160deg, #1a4f8a, #0a2548);
  margin-bottom: 14px;
  display: grid;
  place-items: center;
  color: #eaf0f8;
  font-family: Unbounded, sans-serif;
  font-size: 42px;
  letter-spacing: .04em;
}
.head-card h4 { font-family: Unbounded, sans-serif; font-size: 18px; }
.head-card .role { color: var(--gold); font-weight: 700; font-size: 13px; margin: 4px 0 10px; }
.emergency { background: var(--forest); color: #fff; }
.emergency a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.emergency a span { min-width: 0; }
.emergency a b { white-space: nowrap; }
.emergency a:last-child { border-bottom: 0; }

.about { background: var(--forest); color: #eaf0f8; }
.about .sec-head p { color: #c5d0de; }
.places {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.place {
  position: relative;
  min-height: 280px;
  border-radius: 8px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: end;
  padding: 22px;
}
.place::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--place-img);
  background-size: cover;
  background-position: center;
  z-index: -1;
  transition: .4s;
}
.place:hover::before { transform: scale(1.06); }
.place::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(8,18,40,.82));
  z-index: -1;
}
.place h4 { font-family: Unbounded, sans-serif; font-size: 20px; margin-bottom: 6px; }

.materials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.mat {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--line);
  min-height: 150px;
}
.mat .badge {
  width: 48px; height: 48px;
  border-radius: 8px;
  display: grid; place-items: center;
  font-weight: 800;
  margin-bottom: 14px;
  background: #dbe6f5;
  color: #1a4f8a;
}

.contacts {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
}
.map {
  min-height: 340px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #dce4ee;
}
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

.district-map-wrap {
  margin: 8px 0 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.district-map {
  height: min(62vh, 520px);
  width: 100%;
  background: #dce4ee;
}
#service-map { height: min(70vh, 580px); }
.dmap-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  outline: none;
  user-select: none;
}
.dmap-viewport.is-dragging { cursor: grabbing; }
.dmap-tiles,
.dmap-svg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.dmap-tile {
  position: absolute;
  left: 0;
  top: 0;
  width: 256px;
  height: 256px;
  max-width: none;
  display: block;
  will-change: transform;
}
.dmap-zoom {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 8px 18px rgba(18, 58, 107, 0.12);
  z-index: 3;
}
.dmap-zoom button {
  width: 34px;
  height: 34px;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  line-height: 1;
}
.dmap-zoom button + button { border-top: 1px solid var(--line); }
.dmap-zoom button:hover { background: var(--cream); }
.dmap-copy {
  position: absolute;
  right: 8px;
  bottom: 8px;
  margin: 0;
  padding: 3px 8px;
  font-size: 11px;
  background: rgba(255,255,255,.82);
  border-radius: 4px;
  z-index: 3;
  pointer-events: auto;
}
.dmap-copy a { color: var(--forest); text-decoration: underline; }
.dmap-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 36px;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  z-index: 4;
  pointer-events: auto;
  transform: translate(-9999px, -9999px);
}
.dmap-pin {
  display: block;
  width: 18px;
  height: 18px;
  margin: 8px auto 0;
  background: var(--forest);
  border: 2px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 6px 12px rgba(18, 58, 107, 0.28);
}
.dmap-marker-label {
  position: absolute;
  left: 30px;
  top: 8px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  text-shadow: 0 0 4px #fff, 0 0 8px #fff;
  pointer-events: none;
}
.dmap-popup {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 230px;
  padding: 10px 28px 10px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink);
  pointer-events: auto;
}
.dmap-popup::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  background: var(--paper);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}
.dmap-popup-close {
  position: absolute;
  top: 4px;
  right: 6px;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.district-map-caption {
  padding: 10px 16px 12px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

footer {
  background: #0a1e38;
  color: #d7e0ea;
  padding: 48px 0 24px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
footer h5 { font-family: Unbounded, sans-serif; color: #fff; margin-bottom: 14px; }
footer a { display: block; padding: 5px 0; opacity: .8; }
footer a:hover { opacity: 1; }
header.site .home-spot { border-radius: 8px; }
.home-editor-page .home-canvas-page header.site { z-index: 8; }
footer .copy.home-spot { display: flex; }
.copy {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 13px;
  opacity: .7;
}

.gos {
  margin-top: 16px;
  background: linear-gradient(135deg, #0d4cd3, #2d73bc);
  color: #fff;
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.gos p { opacity: .92; font-size: 14px; margin-top: 6px; }

.page-head { padding: 40px 0 8px; }
.page-head h1 {
  font-family: Unbounded, sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -.03em;
  margin: 8px 0 10px;
}
.crumbs { color: var(--muted); font-size: 14px; }
.crumbs a:hover { color: var(--forest); }
.prose {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 20px 0 60px;
}
.prose p { margin-bottom: 1em; }
.prose h2, .prose h3 { font-family: Unbounded, sans-serif; margin: 1.2em 0 .5em; }
.prose ul, .prose ol { margin: 0 0 1em 1.2em; }
.prose li { margin: .35em 0; }
.prose img, .prose video, .prose iframe { max-width: 100%; height: auto; }
.prose a:has(> img) {
  display: inline-block;
  max-width: 100%;
}
.prose a:has(> img) img { cursor: pointer; }
.article-source { margin-top: 1.6em; font-size: 14px; }
.article-source a { color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 1em 0; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.child-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 8px 0 48px; }
.child-page {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  color: inherit;
  text-decoration: none;
}
.child-page:hover { border-color: var(--forest); }
.article-hero { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); margin: 12px 0 20px; }

.form-grid { display: grid; gap: 12px; }
.form-grid label { font-weight: 700; font-size: 14px; }
.form-grid input, .form-grid textarea, .form-grid select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  background: #fff;
}
.rss-help {
  color: var(--muted);
  font-size: 14px;
  margin: -6px 0 18px;
  max-width: 920px;
  line-height: 1.45;
}
.rss-help code {
  font-size: 12px;
  background: #eef2f7;
  padding: 2px 6px;
  border-radius: 4px;
}
.rss-form {
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.rss-form h3 { margin: 0 0 4px; }
.rss-check { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.rss-check input { width: auto; padding: 0; }
.home-edit-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.home-edit-fields .is-wide { grid-column: 1 / -1; }
.home-edit-block h3 { font-size: 18px; }
.home-edit-save { position: sticky; bottom: 12px; background: #eef2f7; padding: 12px 0; margin-top: 8px; }
.home-items { display: grid; gap: 12px; }
.home-item {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9fd;
}
.home-item.is-new { background: #fff; }
.home-item .btn-danger { justify-self: start; }
@media (max-width: 980px) {
  .home-edit-fields { grid-template-columns: 1fr; }
  .home-item { grid-template-columns: 1fr; }
}
.home-editor-page .admin-shell {
  display: block;
}
.home-editor-page .admin-side {
  display: none;
}
.home-editor-page .admin-main {
  padding: 0;
  background: var(--cream);
  overflow: auto;
  min-height: 100vh;
}
.home-editor-page .admin-main > .alert {
  margin: 12px 16px 0;
}
.home-canvas-bar {
  position: sticky;
  top: 0;
  z-index: 45;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  background: #0a1e38;
  color: #e8eef5;
}
.home-canvas-bar strong { display: block; }
.home-canvas-bar span { color: #b7c4d4; font-size: 13px; }
.home-canvas-bar-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.home-canvas-bar .btn-line {
  color: #e8eef5;
  border-color: rgba(255, 255, 255, .28);
}
.home-canvas-bar .btn-line:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}
.home-canvas-page {
  background: var(--cream);
  min-height: calc(100vh - 60px);
}
.home-spot {
  position: relative;
  outline: 2px dashed transparent;
  outline-offset: 3px;
  transition: outline-color .15s ease, box-shadow .15s ease;
}
.home-spot.is-on {
  outline-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, .12);
}
.home-spot-menu {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.home-spot-menu[hidden] { display: none; }
.home-spot-menu .btn { padding: 6px 10px; font-size: 13px; }
.home-spot-add {
  min-height: 88px;
  border: 2px dashed rgba(18, 58, 107, .28);
  background: rgba(255, 255, 255, .7);
  color: var(--forest);
  font-size: 34px;
  font-weight: 400;
  cursor: pointer;
  border-radius: var(--radius);
}
.service.home-spot-add,
.place.home-spot-add,
.mat.home-spot-add {
  min-height: 180px;
  display: grid;
  place-items: center;
}
.place.home-spot-add {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
}
.home-editor-page .home-canvas-page iframe { pointer-events: none; }
.rss-muted { color: var(--muted); font-size: 12px; margin-top: 4px; word-break: break-all; }
.editor-field { display: grid; gap: 8px; }
.editor-field > span { font-weight: 700; font-size: 14px; }
.admin-main .tox-tinymce { border-radius: 6px; border-color: var(--line) !important; }
.image-picker { display: grid; gap: 8px; }
.image-picker > span { font-weight: 700; font-size: 14px; }
.image-picker small { color: var(--muted); font-size: 13px; }
.image-picker-preview {
  position: relative;
  display: block;
  width: min(100%, 560px);
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 1px dashed rgba(18, 58, 107, 0.28);
  border-radius: 6px;
  overflow: hidden;
  background: #dce4ee;
  cursor: pointer;
}
.image-picker-preview.is-hero { aspect-ratio: 12 / 5; width: min(100%, 720px); }
.image-picker-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slider-thumb {
  width: 120px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  background: #dce4ee;
}
.image-picker-hint {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(10, 30, 56, 0.72);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
}
.alert {
  padding: 12px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
}
.alert-ok { background: #e7f6ec; color: #14532d; }
.alert-err { background: #fde8e8; color: #9b1c1c; }
.form-unofficial {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  font-weight: 500;
}

.pager { display: flex; gap: 8px; flex-wrap: wrap; margin: 28px 0 50px; }
.pager a, .pager span {
  min-width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 12px;
}
.pager .current { background: var(--forest); color: #fff; border-color: var(--forest); }

/* Bus 205 */
.bus-page { padding: 24px 0 56px; }
.bus-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 28px 30px; background: linear-gradient(125deg, var(--forest), var(--forest-mid)); color: #fff; border-radius: 14px; box-shadow: var(--shadow); }
.bus-kicker { display: block; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .78; margin-bottom: 8px; }
.bus-hero h2 { font-family: Unbounded, sans-serif; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.04em; margin-bottom: 10px; }
.bus-hero p { max-width: 600px; opacity: .9; }
.bus-alert { margin: 16px 0; padding: 14px 16px; background: #fff8df; border-left: 4px solid var(--gold); border-radius: 6px; color: #5d4a08; font-size: 14px; }
.bus-dispatch { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.bus-dispatch span, .bus-dispatch small { display: block; color: var(--muted); font-size: 13px; }
.bus-dispatch strong { display: block; color: var(--forest); font-size: 17px; margin: 2px 0; }
.bus-dispatch-links { display: flex; flex-wrap: wrap; gap: 8px; }
.bus-dispatch-links a { padding: 9px 12px; border-radius: 5px; background: var(--forest); color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; }
.bus-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 16px; }
.bus-tabs button { border: 1px solid var(--line); border-radius: 6px; padding: 11px 15px; background: #fff; color: var(--forest); font-weight: 800; cursor: pointer; }
.bus-tabs button.is-active { background: var(--forest); border-color: var(--forest); color: #fff; }
.bus-times { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.bus-times span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 3px; }
.bus-times strong { font-size: 18px; }
.bus-time-list { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.bus-time-list time, .bus-departure { padding: 8px 10px; background: #e8eef6; color: var(--forest); border: 0; border-radius: 5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bus-departure { cursor: pointer; }
.bus-departure.is-active { background: var(--forest); color: #fff; }
.bus-stops-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 26px 0 12px; }
.bus-stops-head h2 { font-family: Unbounded, sans-serif; font-size: 20px; letter-spacing: -.04em; }
.bus-stops-head label { display: grid; gap: 4px; color: var(--muted); font-size: 13px; }
.bus-stops-head input { width: min(280px, 100%); padding: 9px 11px; border: 1px solid var(--line); border-radius: 5px; outline-color: var(--forest); }
.bus-stops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; list-style: none; counter-reset: stops; }
.bus-stops li { counter-increment: stops; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 6px; font-weight: 600; }
.bus-stops-timetable li { align-items: flex-start; }
.bus-stop-name { padding-top: 2px; }
.bus-arrival { margin-left: auto; padding: 6px 9px; border-radius: 5px; background: #e8eef6; color: var(--forest); font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bus-stops li::before { content: counter(stops); display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; background: #e8eef6; color: var(--forest); font-size: 12px; font-weight: 800; }
.bus-note { margin-top: 24px; color: var(--muted); font-size: 13px; }
.bus-note a { color: var(--forest); text-decoration: underline; text-underline-offset: 2px; }
.bus-table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.bus-table { width: 100%; min-width: 760px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.bus-table th, .bus-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.bus-table thead th { background: #e8eef6; color: var(--forest); font-weight: 800; }
.bus-table th:first-child { position: sticky; left: 0; z-index: 1; min-width: 180px; text-align: left; background: #fff; }
.bus-table thead th:first-child { z-index: 2; background: #e8eef6; }
.bus-table tbody tr:nth-child(even) { background: #f7f9fc; }
.bus-table tbody tr:nth-child(even) th:first-child { background: #f7f9fc; }
.bus-table tbody tr:last-child th, .bus-table tbody tr:last-child td { border-bottom: 0; }

.admin-body { background: #eef2f7; }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side { background: #0a1e38; color: #d7e0ea; padding: 24px 16px; }
.admin-side h1 { font-family: Unbounded, sans-serif; font-size: 18px; color: #fff; margin-bottom: 20px; }
.admin-side a { display: block; padding: 10px 12px; border-radius: 6px; }
.admin-side a:hover, .admin-side a.active { background: rgba(255,255,255,.08); color: #fff; }
.admin-main { padding: 28px; }
.admin-main h2 { font-family: Unbounded, sans-serif; margin-bottom: 18px; }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.table th { background: #f3f6fb; }
.table td a:not(.btn) { color: var(--forest); text-decoration: underline; text-underline-offset: 2px; }
.login-box {
  max-width: 420px;
  margin: 12vh auto;
  background: #fff;
  padding: 32px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.row-actions { display: flex; gap: 8px; }

.page-tree-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.page-tree-head h2 { margin: 0; }
.visits-periods { display: flex; gap: 8px; flex-wrap: wrap; }
.visits-note { color: var(--muted); font-size: 14px; margin: 0 0 18px; max-width: 720px; }
.visits-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.visits-cards div {
  background: #fff;
  border-radius: 8px;
  padding: 16px 18px;
}
.visits-cards span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.visits-cards b { font-family: Unbounded, sans-serif; font-size: 28px; letter-spacing: -.03em; }
.visits-chart-wrap {
  background: #fff;
  border-radius: 8px;
  padding: 16px 18px 28px;
  margin-bottom: 24px;
}
.visits-chart-wrap h3 { margin: 0 0 12px; font-size: 16px; }
.visits-chart {
  display: flex;
  align-items: stretch;
  gap: 3px;
  height: 160px;
}
.visits-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  min-width: 0;
}
.visits-bar span {
  display: block;
  width: 100%;
  min-height: 2px;
  background: var(--forest);
  border-radius: 3px 3px 0 0;
  opacity: .85;
}
.visits-bar small {
  position: absolute;
  bottom: -18px;
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
@media (max-width: 900px) {
  .visits-cards { grid-template-columns: 1fr 1fr; }
}
.page-tree-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: auto;
}
.page-tree { list-style: none; margin: 0; padding: 0; }
.page-tree .page-tree { border-left: 1px solid var(--line); margin-left: 14px; }
.page-tree-row {
  display: grid;
  grid-template-columns: 16px 28px minmax(180px, 1.2fr) minmax(140px, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.page-tree-item { user-select: none; }
.page-tree-handle {
  width: 16px;
  height: 22px;
  cursor: grab;
  background-image: url("../img/icons/drag-handle.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 18px;
}
.page-tree-item.is-dragging { opacity: .4; }
.page-tree-item.is-dragging .page-tree-handle { cursor: grabbing; }
.page-tree-row.drop-before::before,
.page-tree-row.drop-after::after {
  content: "";
  position: absolute;
  left: 36px;
  right: 12px;
  height: 3px;
  background: var(--forest);
  border-radius: 2px;
  z-index: 2;
}
.page-tree-row.drop-before::before { top: -2px; }
.page-tree-row.drop-after::after { bottom: -2px; }
.page-tree-row.drop-inside {
  background: #e8eef6;
  box-shadow: inset 0 0 0 2px var(--forest);
}
.page-tree-item.is-drop-forbidden > .page-tree-row {
  box-shadow: inset 0 0 0 2px #9b1c1c;
  background: #fde8e8;
}
.page-tree-row:hover { background: #f5f8fc; }
.page-tree-title { font-weight: 700; font-size: 14px; }
.page-tree-title.is-hidden { opacity: .55; }
.page-tree-url { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-tree-actions { display: flex; gap: 6px; justify-content: flex-end; }
.page-tree-children { display: none; }
.page-tree-item.is-open > .page-tree-children { display: block; }
.page-tree-toggle {
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.page-tree-toggle::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin: 0 auto;
  border: 5px solid transparent;
  border-left-color: var(--forest);
  transform: translateX(2px);
}
.page-tree-item.is-open > .page-tree-row .page-tree-toggle::before {
  transform: translateY(2px) rotate(90deg);
}
.page-tree-toggle.is-leaf { cursor: default; }
.page-tree-toggle.is-leaf::before { opacity: 0; }
.icon-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff center / 16px 16px no-repeat;
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--forest); background-color: #e8eef6; }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; }
.icon-add { background-image: url("../img/icons/add.svg"); }
.icon-edit { background-image: url("../img/icons/edit.svg"); }
.icon-delete { background-image: url("../img/icons/delete.svg"); }
.icon-close { background-image: url("../img/icons/close.svg"); }
.page-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 16px;
  background: rgba(10, 30, 56, .45);
  overflow: auto;
}
.page-modal.is-open { display: flex; }
.page-modal-dialog {
  width: min(920px, 100%);
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 8px 22px 22px;
}
.page-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0 8px;
}
.page-modal-head h2 { margin: 0; font-size: 22px; }
.form-actions { display: flex; gap: 10px; }
.check-line { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.check-line input { width: auto; }
.form-error { color: #9b1c1c; font-size: 14px; margin: 0; }
body.modal-open { overflow: hidden; }
.tox-tinymce-aux { z-index: 12000 !important; }

@media (max-width: 980px) {
  .wx-hero, .wx-stats, .wx-charts { grid-template-columns: 1fr; }
  .wx-forecast { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .grid-2, .news-list-layout, .page-layout { grid-template-columns: 1fr; }
  .head { grid-template-columns: 1fr auto; }
  .search { display: none; }
  .head-contacts .phone,
  .head-contacts small { display: none; }
  .burger { display: block; }
  nav.main { display: none; padding: 0 0 16px; }
  nav.main.open { display: block; }
  nav.main .nav-list { flex-direction: column; }
  nav.main .has-sub > a { padding-right: 44px; }
  nav.main .has-sub > a::after { display: none; }
  nav.main .nav-toggle { display: block; }
  nav.main li:hover > .nav-drop,
  nav.main li:focus-within > .nav-drop { display: none; }
  nav.main li.open > .nav-drop { display: block; }
  nav.main li.open > .nav-toggle::before {
    transform: translateY(0) rotate(180deg);
  }
  nav.main .nav-drop {
    position: static;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    padding: 0 0 0 12px;
    max-width: none;
    background: transparent;
  }
  nav.main .nav-drop::before,
  nav.main .nav-drop .nav-drop::before { display: none; }
  nav.main .nav-drop .has-sub > a::after { display: none; }
  .stats, .services, .places, .materials, .foot-grid, .news-list { grid-template-columns: 1fr 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .page-tree-row { grid-template-columns: 16px 28px 1fr auto; }
  .page-tree-url { display: none; }
}
@media (max-width: 640px) {
  .top-links { display: none; }
  .stats, .services, .places, .materials, .news-grid, .news-list, .foot-grid { grid-template-columns: 1fr; }
  .hero { min-height: 460px; }
  .hero-inner { padding: 48px 0 80px; }
  .copy { flex-direction: column; }
  .gos { flex-direction: column; align-items: flex-start; }
  .bus-hero, .bus-times, .bus-stops-head, .bus-dispatch { align-items: stretch; flex-direction: column; }
  .bus-time-list { justify-content: flex-start; }
  .bus-stops { grid-template-columns: 1fr; }
  .bus-stops-head input { width: 100%; }
}

.prose:has(.med-hub) {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0 0 28px;
}
.prose .med-hub p { margin: 0; }
.prose .med-hub a { text-decoration: none; }
.prose .med-hub h2,
.prose .med-hub h3 { margin: 0; font-family: Unbounded, sans-serif; }
.med-hub { display: grid; gap: 16px; }
.med-hero {
  background: linear-gradient(135deg, #123a6b 0%, #1a4f8a 58%, #2d6bb8 100%);
  color: #fff;
  border-radius: 16px;
  padding: 28px 28px 26px;
  box-shadow: var(--shadow);
}
.med-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .82;
  margin-bottom: 8px;
}
.med-hero h2 {
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -.03em;
  line-height: 1.2;
  margin-bottom: 10px !important;
}
.med-hero .med-lead {
  font-size: 16px;
  opacity: .92;
  max-width: 46rem;
  margin-bottom: 18px !important;
}
.med-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 14px;
  opacity: .92;
  margin-bottom: 22px !important;
}
.med-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.med-actions .btn { min-height: 48px; padding: 12px 18px; }
.med-actions .btn-gold:hover { filter: brightness(1.05); }
.med-actions .btn-ghost:hover { background: rgba(255,255,255,.2); }
.med-call-grid,
.med-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.med-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  min-height: 92px;
}
a.med-card {
  color: inherit;
  transition: .2s ease;
}
a.med-card:hover {
  border-color: var(--forest);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.med-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}
.med-card strong {
  display: block;
  font-size: 20px;
  letter-spacing: -.02em;
  color: var(--forest);
  line-height: 1.25;
}
.med-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}
.med-card.is-urgent strong { color: #9b1c1c; }
.med-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px 18px;
}
.med-block h3 {
  font-size: 18px;
  letter-spacing: -.02em;
  margin-bottom: 12px !important;
}
.med-hours {
  display: grid;
  gap: 8px;
}
.med-hours div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.med-hours div:last-child { border-bottom: 0; }
.med-hours b { color: var(--forest); font-weight: 700; text-align: right; }
.med-note {
  color: var(--muted);
  font-size: 14px;
  margin-top: 10px !important;
}
.med-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.med-links .btn { min-height: 42px; }
@media (max-width: 760px) {
  .med-call-grid,
  .med-info-grid { grid-template-columns: 1fr; }
  .med-hero { padding: 22px 18px 20px; }
  .med-actions .btn { width: 100%; }
  .med-hours div { flex-direction: column; gap: 4px; }
  .med-hours b { text-align: left; }
}

/* Vacancies from hh.ru */
.jobs-head { padding-bottom: 24px; }
.jobs-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.jobs-title-row > div:first-child { min-width: 0; }
.jobs-title-row h1 { margin-bottom: 8px; }
.jobs-title-row p { color: var(--muted); max-width: 720px; }
.jobs-kicker {
  display: inline-flex;
  margin-top: 24px;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--forest);
  background: #e8eef8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.jobs-count {
  flex: 0 0 auto;
  min-width: 150px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.jobs-count strong { display: block; color: var(--forest); font: 700 28px/1 Unbounded, sans-serif; }
.jobs-count span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }
.jobs-section { padding: 16px 0 72px; }
.jobs-search {
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.jobs-search label { display: block; margin-bottom: 8px; color: var(--forest); font-size: 14px; font-weight: 800; }
.jobs-search-row { display: flex; gap: 10px; }
.jobs-search input {
  flex: 1 1 340px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  background: #fff;
  outline: none;
}
.jobs-search input:focus { border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(45,107,184,.12); }
.jobs-results-note { margin: 4px 0 14px; color: var(--muted); font-size: 14px; }
.jobs-list { display: grid; gap: 12px; }
.job-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.job-card:hover { border-color: rgba(18,58,107,.35); box-shadow: var(--shadow); transform: translateY(-2px); }
.job-card-main { min-width: 0; }
.job-date { margin-bottom: 5px; color: var(--muted); font-size: 12px; }
.job-card h2 { font-size: clamp(18px, 2.2vw, 23px); line-height: 1.25; }
.job-card h2 a:hover { color: var(--leaf); }
.job-salary { margin-top: 8px; color: var(--forest); font-size: 18px; font-weight: 800; }
.job-employer { margin-top: 8px; font-weight: 700; }
.job-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.job-meta span { padding: 5px 9px; border-radius: 5px; background: #eef3f9; color: var(--muted); font-size: 12px; }
.job-card p { max-width: 760px; margin-top: 12px; color: var(--muted); font-size: 14px; }
.job-action { flex: 0 0 auto; white-space: nowrap; }
.jobs-message {
  display: grid;
  gap: 4px;
  margin: 16px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.jobs-message span { color: var(--muted); }
.jobs-message.is-error { border-color: rgba(155,28,28,.25); color: #9b1c1c; }
.jobs-message.is-note { padding: 13px 16px; background: #fff8df; color: #745c08; font-size: 14px; }
.jobs-source { margin-top: 24px; color: var(--muted); font-size: 13px; }
.jobs-source a { color: var(--forest); text-decoration: underline; }
@media (max-width: 760px) {
  .jobs-title-row, .job-card { align-items: stretch; flex-direction: column; }
  .jobs-count { min-width: 0; }
  .jobs-search-row { flex-direction: column; }
  .jobs-search input { flex-basis: auto; }
  .job-card { gap: 18px; padding: 20px; }
  .job-action { width: 100%; }
}

/* Vacancy details */
.vacancy-head { padding-bottom: 6px; }
.vacancy-section { padding: 18px 0 72px; }
.vacancy-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.vacancy-main { display: grid; gap: 16px; min-width: 0; }
.vacancy-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 26px 28px; }
.vacancy-intro h1 { margin-top: 5px; font: 700 clamp(26px, 4vw, 40px)/1.18 Unbounded, sans-serif; letter-spacing: -.035em; }
.vacancy-salary { margin-top: 14px; color: var(--forest); font-size: clamp(21px, 3vw, 28px); font-weight: 800; }
.vacancy-employer { margin-top: 12px; font-size: 18px; font-weight: 800; }
.vacancy-meta { margin-top: 14px; }
.vacancy-apply { margin-top: 22px; }
.vacancy-description.prose { margin: 0; }
.vacancy-description h2, .vacancy-skills h2, .vacancy-side h2 { margin: 0 0 16px; font: 700 20px/1.3 Unbounded, sans-serif; }
.vacancy-description p:last-child { margin-bottom: 0; }
.vacancy-summary-note { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.vacancy-skills { padding-bottom: 22px; }
.vacancy-skill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.vacancy-skill-list span { padding: 7px 10px; border-radius: 6px; background: #e8eef8; color: var(--forest); font-size: 13px; font-weight: 700; }
.vacancy-side { position: sticky; top: 18px; display: grid; gap: 12px; }
.vacancy-side .vacancy-card { padding: 22px; }
.vacancy-side p { margin-bottom: 18px; color: var(--muted); font-size: 14px; }
.vacancy-side .btn { width: 100%; }
.vacancy-back { padding: 12px 4px; color: var(--forest); font-size: 14px; font-weight: 700; }
@media (max-width: 850px) {
  .vacancy-layout { grid-template-columns: 1fr; }
  .vacancy-side { position: static; }
}
@media (max-width: 640px) {
  .vacancy-card { padding: 20px; }
  .vacancy-intro h1 { font-size: 26px; }
  .vacancy-apply { width: 100%; }
}
