@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("https://images.unsplash.com/photo-1473448912268-2022ce9509d8?auto=format&fit=crop&w=1800&q=80") 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;
}
.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; }
.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; }
.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; }

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;
  gap: 12px;
  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; }

.cookie {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: auto;
  max-width: 360px;
  background: #111;
  color: #fff;
  border-radius: 8px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  z-index: 60;
  display: none;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.cookie.is-open { display: flex; }
.cookie p { font-size: 13px; opacity: .85; }

.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; }
.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; }
.home-editor-page .home-canvas-page .cookie { display: 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); }

.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; }
.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("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 22'%3E%3Ccircle cx='5' cy='4' r='1.4' fill='%238aa0b8'/%3E%3Ccircle cx='11' cy='4' r='1.4' fill='%238aa0b8'/%3E%3Ccircle cx='5' cy='11' r='1.4' fill='%238aa0b8'/%3E%3Ccircle cx='11' cy='11' r='1.4' fill='%238aa0b8'/%3E%3Ccircle cx='5' cy='18' r='1.4' fill='%238aa0b8'/%3E%3Ccircle cx='11' cy='18' r='1.4' fill='%238aa0b8'/%3E%3C/svg%3E");
  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("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1e38' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
.icon-edit { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1e38' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4 12.5-12.5z'/%3E%3C/svg%3E"); }
.icon-delete { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239b1c1c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7h14M10 11v6M14 11v6M9 7V5h6v2M7 7l1 12h8l1-12'/%3E%3C/svg%3E"); }
.icon-close { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1e38' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
.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) {
  .grid-2, .news-list-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; }
  .cookie { left: 16px; right: 16px; max-width: none; }
}
