/*
Theme Name: ДК Терский 2026
Theme URI: https://dkumba.ru
Author: Сверстано по мотивам kola-centr.ru
Description: Новая тема для МБУК ДК «Терский» п.г.т. Умба. Классическая тема (не блоки). Цвета настраиваются во Внешний вид → Настроить → Цвета. Поддерживает тёмную тему и версию для слабовидящих.
Version: 0.1.0
License: GNU General Public License v2 or later
Text Domain: dkumba-2026
*/

/* ============================================================
   1. Токены и база
   ============================================================ */
:root {
  --paper: #f6f1e7;
  --paper-deep: #eee5d7;
  --ink: #212a2c;
  --muted: #6e7775;
  --accent: #c96543;
  --accent-deep: #9e432b;
  --berry: #9c365f;
  --card: #fffcf5;
  --header-bg: #f7f2e8;
  --line: rgba(42, 49, 47, .16);
  --ev-2: #2f6b63;
  --ev-3: #a8842c;
  --shadow: 0 24px 70px rgba(53, 39, 25, .13);
  --night: #102133;
  --font-body: 'Manrope', Arial, sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1240px;
}

html[data-theme="dark"] {
  --paper: #0e1b2a;
  --paper-deep: #15283a;
  --ink: #f3eadb;
  --muted: #b5bdc3;
  --accent: #df805a;
  --accent-deep: #ff9b72;
  --card: #122333;
  --header-bg: #0e1b2a;
  --line: rgba(230, 218, 201, .16);
  --shadow: 0 24px 80px rgba(0, 0, 0, .34);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color .25s ease, color .25s ease;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-deep); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 .5em;
  color: var(--ink);
}

p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   2. Кнопки и ярлыки
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: var(--accent-deep); color: #fff; }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(4px); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.overline {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(34px, 4.4vw, 54px);
  letter-spacing: -.02em;
  margin: 0;
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 42px;
}

.all-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
  white-space: nowrap;
}
.all-link:hover { color: var(--accent); }

/* ============================================================
   3. Верхняя строка и шапка
   ============================================================ */
.topbar {
  background: var(--paper-deep);
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
}
.topbar a { color: var(--muted); font-weight: 600; }
.topbar a:hover { color: var(--accent); }
.topbar-links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.topbar-blind {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  color: var(--muted);
  padding: 0;
}
.topbar-blind:hover { color: var(--accent); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}

.logo { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.logo img { height: 40px; width: auto; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
}
.logo-sub {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.site-header .logo-sub {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

.main-nav { margin-left: auto; }
.main-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--accent); }
.main-nav .current-menu-item > a,
.main-nav .current-page-ancestor > a {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.main-nav li { position: relative; }
.main-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
  flex-direction: column;
}
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu { display: flex; }
.main-nav .sub-menu a { padding: 9px 12px; border-radius: 8px; border-bottom: 0; }
.main-nav .sub-menu a:hover { background: var(--paper-deep); }
.main-nav .menu-item-has-children > a::after { content: " ⌄"; color: var(--muted); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink);
  transition: border-color .2s ease, color .2s ease;
}
.icon-btn:hover, .icon-btn.active { border-color: var(--accent); color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* Строка площадок */
.branches {
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}
.branches .container {
  display: flex;
  gap: 10px;
  align-items: center;
  overflow-x: auto;
  padding-top: 12px;
  padding-bottom: 12px;
  scrollbar-width: none;
}
.branches .container::-webkit-scrollbar { display: none; }
.branch-pill {
  flex-shrink: 0;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid transparent;
  white-space: nowrap;
}
.branch-pill:hover { color: var(--accent); }
.branch-pill.current {
  background: var(--ink);
  color: var(--paper);
}

/* Мобильное меню */
.nav-toggle { display: none; }
@media (max-width: 1080px) {
  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--paper);
    padding: 90px 32px 32px;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .3s ease, visibility 0s linear .3s;
    overflow-y: auto;
    z-index: 200;
  }
  .main-nav.open {
    transform: translateX(0);
    visibility: visible;
    transition: transform .3s ease;
  }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { font-size: 20px; padding: 12px 0; font-family: var(--font-display); }
  .main-nav .sub-menu { position: static; box-shadow: none; border: 0; display: flex; padding-left: 18px; }
  .nav-toggle {
    display: inline-flex;
    width: 44px; height: 44px;
    background: transparent; border: 1px solid var(--line); border-radius: 10px;
    cursor: pointer; align-items: center; justify-content: center;
    color: var(--ink); font-size: 22px;
  }
  .nav-close {
    display: inline-flex;
    position: absolute; top: 24px; right: 24px;
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--line); background: var(--card); color: var(--ink);
    font-size: 20px; cursor: pointer;
    align-items: center; justify-content: center;
  }
  .site-header .container { min-height: 64px; }
}
@media (min-width: 1081px) {
  .nav-close { display: none; }
}

/* Поиск */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 20, .55);
  backdrop-filter: blur(4px);
  z-index: 300;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 14vh 20px 20px;
}
.search-overlay.open { display: flex; }
.search-panel {
  width: min(680px, 100%);
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 34px;
  position: relative;
}
.search-panel h3 { font-size: 30px; margin-bottom: 18px; }
.search-form { display: flex; gap: 10px; }
.search-form input[type="search"] {
  flex: 1;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 10px;
  padding: 13px 16px;
  font: inherit;
}
.search-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  cursor: pointer; font-size: 18px;
}

/* ============================================================
   4. Главная: hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--paper-deep);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 30%;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--paper) 0%, var(--paper) 34%, color-mix(in srgb, var(--paper) 55%, transparent) 58%, transparent 100%);
}
html[data-theme="dark"] .hero-bg::after {
  background: linear-gradient(90deg, var(--paper) 0%, var(--paper) 30%, color-mix(in srgb, var(--paper) 62%, transparent) 60%, rgba(14,27,42,.25) 100%);
}
/* Если ни фото-фона, ни иллюстрации — первый экран светлый с мягким декоративным градиентом. */
.hero:not(:has(.hero-bg)):not(:has(.hero-art)) {
  background:
    radial-gradient(1100px 480px at 88% 20%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 65%),
    radial-gradient(700px 420px at 70% 90%, color-mix(in srgb, var(--berry) 10%, transparent), transparent 60%),
    var(--paper-deep);
}
/* Иллюстрация здания (мокет): правый край — по границе колонки сайта,
   здание крупное, по вертикали по центру экрана, слева мягко растворяется. */
.hero-art {
  position: absolute;
  top: 0;
  right: max(16px, calc((100% - 1240px) / 2));
  bottom: 0;
  width: 56%;
  max-width: 840px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 42%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 42%, #000 88%, transparent 100%);
}
html[data-theme="dark"] .hero-art img {
  filter: brightness(.76) saturate(.85);
}
.hero .container { width: 100%; }
.hero-inner { position: relative; z-index: 1; padding: 90px 0 110px; max-width: 640px; }
.hero-title {
  font-size: clamp(52px, 7.6vw, 96px);
  letter-spacing: -.02em;
  margin: 0 0 22px;
}
.hero-dash { width: 54px; height: 2px; background: var(--accent); margin: 0 0 26px; }
.hero-sub {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--muted);
  max-width: 460px;
  margin-bottom: 36px;
}
.hero .btn { padding: 16px 34px; font-size: 16px; }

/* ============================================================
   5. Секции главной
   ============================================================ */
.section { padding: 84px 0; }
.section-alt { background: var(--paper-deep); }

/* Новости */
.news-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 32px;
  align-items: start;
}
.news-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s ease;
}
.news-feature:hover { transform: translateY(-4px); }
.news-feature img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3.4; }
.news-feature-body { padding: 30px; display: flex; flex-direction: column; }
.news-feature h3 { font-size: 27px; margin: 10px 0 14px; }
.news-feature h3 a { color: var(--ink); }
.news-feature h3 a:hover { color: var(--accent); }
.news-feature p { color: var(--muted); font-size: 14px; }

.news-list { display: flex; flex-direction: column; }
.news-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.news-item:first-child { padding-top: 0; }
.news-item h3 { font-size: 22px; margin: 8px 0 10px; }
.news-item h3 a { color: var(--ink); }
.news-item h3 a:hover { color: var(--accent); }
.news-item p { color: var(--muted); font-size: 14px; margin: 0; }

.date {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.read-link {
  margin-top: auto;
  display: inline-flex;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
  width: fit-content;
}
.read-link:hover { color: var(--accent); }
.news-item .read-link { margin-top: 12px; }

/* Афиша */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.event-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 30px;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  color: #fff;
  overflow: hidden;
  background: var(--accent);
  transition: transform .25s ease, box-shadow .25s ease;
}
.event-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.event-card.tone-2 { background: var(--ev-2); }
.event-card.tone-3 { background: var(--ev-3); }
.event-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,.10), transparent 55%);
  pointer-events: none;
}
.event-when {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: auto;
}
.event-date {
  width: 66px; height: 66px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}
.event-date .d { font-family: var(--font-display); font-size: 26px; font-weight: 700; }
.event-date .m { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; margin-top: 4px; }
.event-date.wide {
  width: auto; min-width: 66px; height: auto;
  border-radius: 18px; padding: 10px 16px;
}
.event-date.wide .d { font-size: 20px; white-space: nowrap; }
.event-date.wide .m { margin-top: 2px; }
.event-time {
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 15px;
}
.event-place {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .85;
  margin: 26px 0 10px;
}
.event-card h3 {
  font-size: 26px;
  color: #fff;
  margin: 0 0 18px;
}
.event-card h3 a { color: #fff; }
.event-card h3 a:hover { opacity: .85; }
.event-more {
  display: inline-flex; gap: 8px;
  color: #fff; font-size: 13px; font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,.7);
  padding-bottom: 3px; width: fit-content;
}
.event-more:hover { opacity: .85; color: #fff; }

/* Коллективы */
.collectives-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.coll-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s ease;
}
.coll-card:hover { transform: translateY(-4px); }
.coll-card img { width: 100%; aspect-ratio: 4/2.9; object-fit: cover; }
.coll-card-body { padding: 26px; }
.coll-card h3 { font-size: 24px; margin: 0 0 14px; }
.coll-card h3 a { color: var(--ink); }
.coll-card h3 a:hover { color: var(--accent); }

/* Фото-лента */
.photo-band { background: var(--berry); color: #fff; padding: 84px 0; }
.photo-band .section-title, .photo-band h3 { color: #fff; }
.photo-band .overline { color: rgba(255,255,255,.75); }
.photo-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 26px;
  align-items: center;
}
.photo-band-text p { color: rgba(255,255,255,.85); max-width: 380px; }
.photo-band .btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.photo-band .btn-ghost:hover { background: #fff; border-color: #fff; color: var(--berry); }
.photo-stack { display: flex; flex-direction: column; gap: 18px; }
.photo-stack img {
  border-radius: var(--radius);
  aspect-ratio: 16/9.4;
  object-fit: cover;
  width: 100%;
  transition: transform .25s ease;
}
.photo-stack img:hover { transform: scale(1.02); }

/* О нас */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.about-text { color: var(--muted); font-size: 16px; }
.counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 34px;
}
.counter {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}
.counter:last-child { border-right: 0; }
.counter b {
  display: block;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.counter span { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

/* Документы */
.doc-list { border-top: 1px solid var(--line); }
.doc-row {
  display: grid;
  grid-template-columns: 70px 1fr auto 48px;
  align-items: center;
  gap: 24px;
  padding: 24px 4px;
  border-bottom: 1px solid var(--line);
  transition: background .2s ease;
}
.doc-row:hover { background: var(--card); }
.doc-type {
  font-size: 11px; font-weight: 800; letter-spacing: .1em;
  color: var(--accent);
  text-transform: uppercase;
}
.doc-row h3 { font-size: 21px; margin: 0; }
.doc-row h3 a { color: var(--ink); }
.doc-row h3 a:hover { color: var(--accent); }
.doc-note { color: var(--muted); font-size: 13px; text-align: right; }
.doc-dl {
  width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.doc-dl:hover { border-color: var(--accent); color: var(--accent); }
.doc-dl svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* Контакты на главной */
.contacts-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: stretch;
}
.contact-rows { margin: 26px 0 30px; display: flex; flex-direction: column; gap: 14px; }
.contact-row {
  display: flex; gap: 16px; align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.contact-row .lbl { width: 130px; flex-shrink: 0; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-row a { color: var(--ink); font-weight: 600; }
.contact-row a:hover { color: var(--accent); }
.contact-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* Официальные сервисы на главной */
.official-feedback {
  background: #17364d;
  color: #f5ecdf;
  padding: 76px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.official-feedback + .site-footer { margin-top: 0; }
.official-feedback-layout {
  display: grid;
  grid-template-columns: minmax(320px, .82fr) minmax(540px, 1.18fr);
  align-items: center;
  gap: clamp(34px, 5vw, 70px);
}
.official-feedback .section-kicker {
  margin: 0 0 20px;
  color: #ef8a63;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.official-feedback-intro h2 {
  margin: 0;
  color: #f5ecdf;
  font-family: var(--font-display);
  font-size: clamp(44px, 4.6vw, 66px);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.04em;
}
.official-feedback-intro > p:not(.section-kicker) {
  max-width: 540px;
  margin: 24px 0 30px;
  color: rgba(245,236,223,.68);
  font-size: 14px;
  line-height: 1.75;
}
.official-feedback-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.official-feedback-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card);
  box-shadow: 0 12px 34px rgba(26,35,38,.07);
}
.official-feedback-links img { width: 100%; aspect-ratio: 270/184; object-fit: cover; }
.official-feedback-links span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 12px 14px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.official-feedback-links b { color: var(--accent); font-size: 15px; }

.official-feedback #js-show-iframe-wrapper {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(13,76,211,.13);
  border-radius: 20px;
  background: #fff;
  color: #0b1f33;
  box-shadow: 0 30px 80px rgba(0,0,0,.16);
}
.official-feedback .pos-banner-fluid,
.official-feedback .pos-banner-fluid * { box-sizing: border-box; }
.official-feedback .bf-41 { display: grid; grid-template-columns: minmax(230px, 1fr) minmax(300px, .95fr); min-height: 360px; }
.official-feedback .bf-41__decor {
  position: relative;
  min-height: 100%;
  background: #f4faff url('assets/img/banner-fluid-bg-41-2.svg') bottom/cover no-repeat;
}
.official-feedback .bf-41__logo-wrap { position: absolute; top: 0; left: 0; padding: 18px 15px 14px; border-radius: 0 0 9px; background: #fff; }
.official-feedback .bf-41__logo { width: 72px; height: auto; }
.official-feedback .bf-41__slogan { margin-top: 5px; color: #005ca9; font: 800 13px/1.2 Arial, sans-serif; }
.official-feedback .bf-41__content { display: flex; flex-direction: column; justify-content: center; padding: 38px 34px; background: #fff; }
.official-feedback .bf-41__description { display: flex; flex-direction: column; margin-bottom: 26px; }
.official-feedback .bf-41__text { color: #0b1f33; font: 700 18px/1.42 Arial, sans-serif; }
.official-feedback .bf-41__text_small { margin-top: 12px; color: #496879; font-size: 16px; font-weight: 400; }
.official-feedback .bf-41__bottom-wrap { display: flex; align-items: center; }
.official-feedback .bf-41__btn-wrap { width: 100%; max-width: 150px; }
.official-feedback .pos-banner-btn_2 {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 2px solid #0d4cd3;
  border-radius: 8px;
  outline: 0;
  background: #fff;
  color: #0d4cd3;
  cursor: default;
  font: 700 16px/1.2 Arial, sans-serif;
}
.official-feedback .pos-banner-btn_2:disabled { background: #fff; color: #0d4cd3; opacity: 1; }
.official-feedback .pos-banner-btn_2:focus-visible { outline: 3px solid rgba(13,76,211,.3); outline-offset: 3px; }
@media (max-width: 1080px) {
  .official-feedback-layout { grid-template-columns: 1fr; }
  .official-feedback-intro { max-width: 720px; }
  .official-feedback-links { max-width: 650px; }
}
@media (max-width: 700px) {
  .official-feedback { padding: 58px 0; }
  .official-feedback-layout { gap: 36px; }
  .official-feedback-links { gap: 8px; }
  .official-feedback-links span { min-height: 60px; padding: 10px 11px; font-size: 9px; }
  .official-feedback #js-show-iframe-wrapper { border-radius: 14px; }
  .official-feedback .bf-41 { grid-template-rows: 238px auto; grid-template-columns: 1fr; min-height: 0; }
  .official-feedback .bf-41__decor { min-height: 238px; }
  .official-feedback .bf-41__content { padding: 27px 24px 28px; }
  .official-feedback .bf-41__text { font-size: 17px; }
  .official-feedback .bf-41__btn-wrap { max-width: 138px; }
}

.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
  background: var(--paper-deep);
}
.map-frame iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* Гостевая книга: связь списка и формы */
.gb-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.gb-head h3 { font-size: 30px; margin: 0; }
#respond { scroll-margin-top: 170px; }
.comment-list .comment #respond {
  margin: 18px 0 6px;
  border: 2px solid var(--accent);
  border-radius: 12px;
  padding: 22px;
  background: var(--card);
}
.comment-reply-title small { font-size: 14px; font-family: var(--font-body); font-weight: 400; margin-left: 10px; }
.comment-reply-title small a { color: var(--muted); }
p.form-submit { margin-bottom: 0; }
p.comment-form-cookies-consent { font-size: 13px; color: var(--muted); }
.logged-in-as { font-size: 13px; color: var(--muted); }

/* Карта сайта */
.sitemap { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; align-items: start; }
.sitemap-block { margin-bottom: 36px; }
.sitemap-block h2 { font-size: 25px; margin-bottom: 12px; }
.sitemap-block h2 a { color: var(--ink); border-bottom: 1px solid transparent; }
.sitemap-block h2 a:hover { color: var(--accent); }
.sitemap-block ul { list-style: none; margin: 0; padding: 0; }
.sitemap-block ul ul { margin: 4px 0 8px 12px; padding-left: 14px; border-left: 2px solid var(--line); }
.sitemap-block li { padding: 4px 0; font-size: 15px; }
.sitemap-block li a { color: var(--muted); }
.sitemap-block li a:hover { color: var(--accent); }
@media (max-width: 900px) {
  .sitemap { grid-template-columns: 1fr; gap: 0; }
}

/* Галерея WP: привьюшки-сетка + лайтбокс */
.entry .gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 0;
}
.entry .gallery .gallery-item { margin: 0; }
.entry .gallery .gallery-icon { padding: 0; border: 0; }
.entry .gallery a { display: block; overflow: hidden; border-radius: 10px; position: relative; }
.entry .gallery a::after {
  content: "⤢";
  position: absolute; right: 8px; bottom: 8px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.45); color: #fff;
  border-radius: 50%; font-size: 15px;
  opacity: 0; transition: opacity .2s ease;
}
.entry .gallery a:hover::after { opacity: 1; }
.entry .gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 10px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.entry .gallery a:hover img { transform: scale(1.05); box-shadow: var(--shadow); }
@media (max-width: 1080px) { .entry .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .entry .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* Лайтбокс */
.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(8, 12, 16, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lb-overlay[hidden] { display: none; }
.lb-img {
  max-width: min(92vw, 1200px);
  max-height: 82vh;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
  cursor: default;
}
.lb-btn {
  position: absolute;
  width: 46px; height: 46px;
  background: rgba(255,255,255,.10);
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
}
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-caption {
  position: absolute;
  bottom: 16px; left: 0; right: 0;
  text-align: center;
  color: #ddd; font-size: 14px;
}
.lb-counter {
  position: absolute;
  top: 20px; left: 20px;
  color: #ccc; font-size: 13px;
}

/* Филиал: карточка на странице */
.filial-card {
  margin-top: 34px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.filial-info { flex: 1; min-width: 260px; }
.filial-info p { color: var(--muted); }
.filial-qr { text-align: center; flex-shrink: 0; }
.filial-qr img {
  width: 180px; height: 180px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px;
}
.filial-qr span { display: block; font-size: 12px; color: var(--muted); margin-top: 8px; max-width: 190px; }

/* VK-виджет плавающий */
.vk-float {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #0077ff;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  z-index: 90;
}
.vk-float:hover { background: #0066dd; color: #fff; }
.vk-float svg { width: 26px; height: 26px; fill: currentColor; }

/* ============================================================
   6. Подвал
   ============================================================ */
.site-footer {
  background: var(--night);
  color: #cfd8de;
  margin-top: 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 44px;
  padding: 64px 0 48px;
}
.footer-brand .logo-name { color: #fff; }
.footer-brand .logo-sub { color: #8fa0ac; }
.footer-brand p { color: #8fa0ac; font-size: 13px; margin-top: 14px; max-width: 320px; }
.footer-h {
  font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: #fff; margin-bottom: 18px;
  font-family: var(--font-body);
}
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: #cfd8de; font-size: 14px; }
.footer-nav a:hover { color: #fff; }
.footer-contacts { font-size: 14px; display: flex; flex-direction: column; gap: 10px; }
.footer-contacts a { color: #cfd8de; }
.footer-contacts a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 20px 0;
  font-size: 13px;
  color: #8fa0ac;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom a { color: #cfd8de; }
.footer-dev-link { color: #8fa0ac; }
.footer-dev-link:hover { color: #fff; }
.footer-legal { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-legal a:hover { color: #fff; }

/* Согласие на cookie */
.cookie-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1200;
  pointer-events: none;
}
.cookie-consent[hidden] { display: none; }
.cookie-consent-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 20px 70px rgba(16,33,51,.22);
  pointer-events: auto;
}
.cookie-consent-copy strong { font-family: var(--font-display); font-size: 23px; line-height: 1.2; }
.cookie-consent-copy p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.cookie-consent-copy a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; }
.cookie-consent-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.cookie-more { color: var(--ink); font-size: 13px; font-weight: 700; border-bottom: 1px solid var(--line); }
.cookie-more:hover { color: var(--accent); border-color: var(--accent); }
.cookie-accept { justify-content: center; white-space: nowrap; padding: 12px 26px; }
.cookie-consent-open .vk-float { visibility: hidden; }
@media (max-width: 680px) {
  .cookie-consent { left: 10px; right: 10px; bottom: 10px; }
  .cookie-consent-inner { max-height: calc(100vh - 20px); overflow-y: auto; flex-direction: column; align-items: stretch; gap: 14px; padding: 18px; }
  .cookie-consent-actions { justify-content: space-between; }
  .cookie-accept { flex: 1; }
}

/* ============================================================
   7. Внутренние страницы
   ============================================================ */
.page-hero {
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
  padding: 54px 0 46px;
}
.page-hero h1 { font-size: clamp(38px, 5vw, 60px); margin: 0 0 10px; letter-spacing: -.02em; }
.page-hero .lead { color: var(--muted); max-width: 640px; margin: 0; font-size: 17px; }

.crumbs {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { margin: 0 8px; color: var(--accent); }

.content-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  padding: 96px 0 84px;
  align-items: start;
}
.content-layout > * { min-width: 0; }
.content-full { padding: 96px 0 84px; }

.entry h1 { font-size: clamp(34px, 4vw, 48px); letter-spacing: -.02em; }
.entry h2 { font-size: 32px; margin-top: 1.2em; }
.entry h3 { font-size: 26px; margin-top: 1.1em; }
.entry h4 { font-size: 21px; }
.entry ul, .entry ol { padding-left: 22px; margin: 0 0 1em; }
.entry li { margin-bottom: 6px; }
.entry hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 34px 0;
}
.entry table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.4em;
  font-size: 15px;
  display: block;
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}
.entry table img { max-width: 100%; }
.entry th, .entry td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.entry th { background: var(--paper-deep); }
.entry blockquote {
  margin: 0 0 1em;
  padding: 18px 24px;
  border-left: 3px solid var(--accent);
  background: var(--card);
  font-style: italic;
}
.entry img { border-radius: var(--radius); }
.entry .alignleft { float: left; margin: 6px 22px 12px 0; }
.entry .alignright { float: right; margin: 6px 0 12px 22px; }
.entry .wp-caption-text, .entry figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }

.entry-meta { display: flex; gap: 18px; align-items: center; margin-bottom: 22px; color: var(--muted); font-size: 13px; }

/* Боковое меню раздела */
.side-nav { position: sticky; top: 96px; }
.side-nav .side-h {
  font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.side-nav .side-h a { color: var(--muted); }
.side-nav .side-h a:hover { color: var(--accent); }
.side-nav ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.side-nav a {
  display: block;
  padding: 9px 0 9px 18px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.side-nav a:hover { color: var(--accent); }
.side-nav .current > a,
.side-nav .current_page_item > a,
.side-nav a.current {
  border-left-color: var(--accent);
  color: var(--accent);
}
.side-nav .children { list-style: none; padding-left: 16px; margin: 0; }
.side-nav .children a { font-weight: 400; color: var(--muted); }
.side-nav .children a:hover { color: var(--accent); }

/* Списки новостей/архивов */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.news-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.news-card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-card h3 { font-size: 21px; margin: 0; }
.news-card h3 a { color: var(--ink); }
.news-card h3 a:hover { color: var(--accent); }
.news-card p { color: var(--muted); font-size: 14px; margin: 0; }
.news-card .read-link { margin-top: auto; }

.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
}
.single .pagination { margin-top: 48px; align-items: stretch; }
.single .pagination a {
  height: auto;
  min-height: 48px;
  max-width: calc(50% - 4px);
  padding: 12px 18px;
  line-height: 1.45;
  text-align: center;
  overflow-wrap: anywhere;
}
@media (max-width: 680px) {
  .single .pagination { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 12px; }
  .single .pagination a { width: 100%; max-width: none; }
}
.pagination a, .pagination span {
  min-width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  font-weight: 600;
  color: var(--ink);
}
.pagination .current { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pagination a:hover { border-color: var(--accent); color: var(--accent); }

/* Пагинация таблиц TablePress / DataTables */
.entry .dt-container .dt-layout-row:has(.dt-paging) {
  gap: 18px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.entry .dt-container .dt-info {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.entry .dt-container .dt-paging {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.entry .dt-container .dt-paging .dt-paging-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  margin: 0;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink) !important;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.entry .dt-container .dt-paging .dt-paging-button:hover {
  border-color: var(--accent);
  background: var(--paper-deep);
  color: var(--accent-deep) !important;
}
.entry .dt-container .dt-paging .dt-paging-button.current,
.entry .dt-container .dt-paging .dt-paging-button.current:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff !important;
  cursor: default;
}
.entry .dt-container .dt-paging .dt-paging-button.disabled,
.entry .dt-container .dt-paging .dt-paging-button.disabled:hover {
  border-color: var(--line);
  background: transparent;
  color: var(--muted) !important;
  cursor: default;
  opacity: .45;
}
.entry .dt-container .dt-paging .dt-paging-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.entry .dt-container .dt-paging .ellipsis {
  padding: 0 4px;
  color: var(--muted);
}
@media (max-width: 767px) {
  .entry .dt-container .dt-layout-row:has(.dt-paging) .dt-layout-cell {
    align-items: center;
    width: 100%;
    margin: 0;
  }
  .entry .dt-container .dt-info { width: 100%; text-align: center; }
  .entry .dt-container .dt-paging { justify-content: center; width: 100%; gap: 7px; }
}

/* Афиша: архив */
.events-archive { display: flex; flex-direction: column; gap: 22px; }
.event-wide {
  display: grid;
  grid-template-columns: minmax(180px, max-content) minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.event-wide:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.event-wide .event-when { margin-bottom: 0; flex-wrap: wrap; }
.event-wide .event-date { color: var(--ink); border-color: var(--line); }
.event-wide .event-time { color: var(--ink); border-color: var(--line); white-space: nowrap; }
.event-wide h3 { font-size: 27px; margin: 0 0 8px; }
.event-wide h3 a { color: var(--ink); }
.event-wide h3 a:hover { color: var(--accent); }
.event-wide .event-place { color: var(--muted); margin: 0; opacity: 1; }
.event-wide .btn { flex-shrink: 0; }
.event-place .event-venue-link { color: inherit; border-bottom: 1px solid transparent; }
.event-place .event-venue-link:hover { color: var(--accent); border-bottom-color: currentColor; }
.event-card .event-place .event-venue-link:hover { color: #fff; }

.event-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.event-filter {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.event-filter:hover { color: var(--accent-deep); border-color: var(--accent); }
.event-filter.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.event-filter:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.filial-events { margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--line); }
.filial-events-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.filial-events-head h2 { margin: 6px 0 0; }
.filial-events-head .read-link { flex-shrink: 0; }
.filial-events .event-wide { grid-template-columns: minmax(160px, max-content) minmax(0, 1fr) auto; gap: 20px; padding: 22px; }
@media (max-width: 680px) {
  .event-filters { gap: 8px; margin-top: 22px; }
  .event-filter { padding: 8px 13px; font-size: 12px; }
  .filial-events-head { align-items: flex-start; flex-direction: column; }
  .filial-events .event-wide { grid-template-columns: 1fr; }
}

/* Одно событие */
.single-event {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow);
}
.single-event .event-when { margin-bottom: 8px; flex-wrap: wrap; }
.single-event .event-date { width: 84px; height: 84px; color: var(--ink); border-color: var(--line); }
.single-event .event-date.wide { width: auto; min-width: 84px; height: auto; padding: 14px 20px; }
.single-event .event-date .d { font-size: 34px; }
.single-event .event-date.wide .d { font-size: 26px; }
.single-event .event-time { color: var(--ink); border-color: var(--line); font-size: 18px; white-space: nowrap; }
.single-event h1 { font-size: clamp(34px, 4.6vw, 52px); letter-spacing: -.02em; margin: 18px 0 22px; }
.single-event .event-place { color: var(--muted); margin: 0 0 26px; opacity: 1; font-size: 13px; }

/* Гостевая книга */
.guest-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; margin-bottom: 40px; }
.comment-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.comment-list .comment {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
}
.comment-list .comment-author { font-weight: 700; font-family: var(--font-display); font-size: 19px; }
.comment-list .comment-meta { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.comment-list .children { list-style: none; margin-top: 18px; padding-left: 26px; border-left: 2px solid var(--line); }

input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], textarea, select {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  width: 100%;
}
label { font-size: 13px; font-weight: 700; margin-bottom: 6px; display: block; }
.form-row { margin-bottom: 16px; }

/* Фото/видео галереи */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-grid a { display: block; border-radius: var(--radius); overflow: hidden; }
.gallery-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .3s ease; }
.gallery-grid a:hover img { transform: scale(1.04); }

/* Поиск: результаты */
.search-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.search-item h3 { font-size: 23px; margin: 0 0 8px; }
.search-item h3 a { color: var(--ink); }
.search-item h3 a:hover { color: var(--accent); }
.search-item mark { background: var(--accent); color: #fff; padding: 0 3px; border-radius: 3px; }

/* 404 */
.nf { text-align: center; padding: 110px 0 130px; }
.nf h1 { font-size: clamp(80px, 14vw, 150px); color: var(--accent); margin: 0; }
.nf p { color: var(--muted); font-size: 18px; margin-bottom: 30px; }

/* ============================================================
   8. Версия для слабовидящих
   ============================================================ */
.a11y-panel { background: #111; color: #fff; padding: 10px 0; }
.a11y-panel__inner { display: flex; gap: 14px 22px; flex-wrap: wrap; align-items: center; }
.a11y-panel__group { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.a11y-panel__group > span { font-size: 14px; margin-right: 4px; font-weight: 600; }
.a11y-panel button {
  background: #fff;
  color: #111;
  border: 2px solid transparent;
  padding: 6px 10px;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
}
.a11y-panel button:hover { border-color: #999; }
.a11y-panel button.is-active { border-color: var(--accent); font-weight: 700; }
.topbar-blind.is-active { color: var(--accent); }

html.a11y-font-medium body { zoom: 1.25; }
html.a11y-font-large body { zoom: 1.5; }

html.a11y-spacing-medium body,
html.a11y-spacing-medium body * { letter-spacing: 0.06em !important; }
html.a11y-spacing-large body,
html.a11y-spacing-large body * { letter-spacing: 0.12em !important; }

html.a11y-leading-medium body,
html.a11y-leading-medium body * { line-height: 1.8 !important; }
html.a11y-leading-large body,
html.a11y-leading-large body * { line-height: 2.1 !important; }

html.a11y-serif body,
html.a11y-serif body * { font-family: Georgia, "Times New Roman", serif !important; }

html.a11y-no-images img,
html.a11y-no-images svg,
html.a11y-no-images video,
html.a11y-no-images iframe { visibility: hidden !important; }

html.a11y-on :focus-visible { outline: 3px solid var(--accent) !important; outline-offset: 2px; }

/* Чёрным по белому */
html.a11y-color-white,
html.a11y-color-white body { background: #fff !important; color: #000 !important; }
html.a11y-color-white body * {
  background-color: #fff !important;
  background-image: none !important;
  color: #000 !important;
  border-color: #000 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
html.a11y-color-white a,
html.a11y-color-white a * { color: #0000b3 !important; text-decoration: underline !important; }

/* Белым по чёрному */
html.a11y-color-black,
html.a11y-color-black body { background: #000 !important; color: #fff !important; }
html.a11y-color-black body * {
  background-color: #000 !important;
  background-image: none !important;
  color: #fff !important;
  border-color: #fff !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
html.a11y-color-black a,
html.a11y-color-black a * { color: #ffff8a !important; text-decoration: underline !important; }

/* Синим по голубому */
html.a11y-color-blue,
html.a11y-color-blue body { background: #9dd1ff !important; color: #063462 !important; }
html.a11y-color-blue body * {
  background-color: #9dd1ff !important;
  background-image: none !important;
  color: #063462 !important;
  border-color: #063462 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
html.a11y-color-blue a,
html.a11y-color-blue a * { color: #021833 !important; text-decoration: underline !important; }

/* Картинки в цветовых схемах — без подложки */
html.a11y-color-white img,
html.a11y-color-white svg,
html.a11y-color-white video,
html.a11y-color-black img,
html.a11y-color-black svg,
html.a11y-color-black video,
html.a11y-color-blue img,
html.a11y-color-blue svg,
html.a11y-color-blue video { background-color: transparent !important; }

/* Панель всегда тёмная, в любой схеме */
html.a11y-color-white .a11y-panel,
html.a11y-color-white .a11y-panel *,
html.a11y-color-black .a11y-panel,
html.a11y-color-black .a11y-panel *,
html.a11y-color-blue .a11y-panel,
html.a11y-color-blue .a11y-panel * {
  background-color: #111 !important;
  background-image: none !important;
  color: #fff !important;
  border-color: transparent !important;
}
html.a11y-color-white .a11y-panel button,
html.a11y-color-black .a11y-panel button,
html.a11y-color-blue .a11y-panel button {
  background-color: #fff !important;
  color: #111 !important;
}
html.a11y-color-white .a11y-panel button.is-active,
html.a11y-color-black .a11y-panel button.is-active,
html.a11y-color-blue .a11y-panel button.is-active {
  border-color: var(--accent) !important;
}

/* ============================================================
   9. Прочее
   ============================================================ */
.aligncenter { display: block; margin: 0 auto 1em; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  clip: rect(1px, 1px, 1px, 1px); overflow: hidden; white-space: nowrap;
}
.sticky-label {
  display: inline-block; background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 6px; margin-bottom: 10px;
}

@media (max-width: 1080px) {
  .news-layout, .about-layout, .contacts-layout { grid-template-columns: 1fr; }
  .events-grid, .collectives-grid, .cards-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-layout { grid-template-columns: 1fr; }
  .page-hero { margin-bottom: 40px; }
  .content-layout { grid-template-columns: 1fr; padding-top: 64px; }
  .content-full { padding-top: 64px; }
  .site-footer { margin-top: 40px; }
  .side-nav { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  /* Первый экран: текст сверху, иллюстрация здания ниже по центру. */
  .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero .container { order: 1; width: 100%; }
  .hero-art {
    position: relative;
    order: 2;
    top: auto; right: auto; bottom: auto;
    width: 100%;
    max-width: 540px;
    margin: 6px auto 0;
    padding: 0 16px;
  }
  .hero-art img {
    height: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero-inner { padding: 64px 0 30px; }
}

@media (max-width: 680px) {
  .section { padding: 56px 0; }
  .events-grid, .collectives-grid, .cards-grid, .gallery-grid { grid-template-columns: 1fr; }
  .news-feature { grid-template-columns: 1fr; }
  .event-wide { grid-template-columns: 1fr; gap: 18px; }
  .doc-row { grid-template-columns: 1fr auto; row-gap: 8px; }
  .doc-note { display: none; }
  .counters { grid-template-columns: 1fr 1fr; }
  .counter { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero { min-height: 480px; }
  .hero-inner { padding: 64px 0 72px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .topbar { font-size: 12px; }
  .topbar-links { gap: 10px; }
  .topbar .container { min-height: 34px; padding: 4px 12px; }
  .container { padding: 0 16px; }
  .logo img { height: 32px; }
  .site-header .container { gap: 10px; padding-top: 6px; padding-bottom: 6px; }
  .header-actions { margin-left: auto; }
  .header-actions .icon-btn { width: 36px; height: 36px; }
  .search-panel { padding: 24px; }
  .contact-row .lbl { width: 92px; }
  .single-event { padding: 24px 18px; }
}
