/*
Theme Name: Hasraion WP Theme
Theme URI: #
Author: SAVDA
Description: Адаптивная тема под шаблон admnkz.info (Gutenberg).
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: hasraion
*/

/* ============================================
   Каркас admnkz.info — оттенки серого, адаптив
   Breakpoints: 768, 1024, 1920 (FullHD), 2560 (2K), 2880 (3K), 3840 (4K)
   ============================================ */

:root {
  --gray-50:  #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #eeeeee;
  --gray-300: #e0e0e0;
  --gray-400: #bdbdbd;
  --gray-500: #9e9e9e;
  --gray-600: #757575;
  --gray-700: #616161;
  --gray-800: #424242;
  --gray-900: #212121;
  --gray-950: #171717;
  --gray-960: #005cb2;

  --bg-top:     var(--gray-900);
  --bg-header:  #fff;
  --bg-hero:    var(--gray-400);
  --bg-section: #f5f5f5;
  --bg-section-alt: var(--gray-100);
  --bg-footer:  var(--gray-100);
  --bg-footer-bottom: var(--gray-200);

  --text-dark:  var(--gray-900);
  --text-muted: var(--gray-600);
  --text-light: #fff;
  --text-top:   var(--gray-300);
  --border:     var(--gray-300);
  --accent-underline: var(--gray-600);

  --font-base: 1rem;
  --font-sm:   0.875rem;
  --font-xs:   0.75rem;
  --font-lg:   1.125rem;
  --font-xl:   1.25rem;
  --font-hero: clamp(1.5rem, 2.5vw + 1rem, 2.5rem);

  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  --container-max: 95rem;
  --container-padding: 1.25rem;
  --header-height: 90px;
  --top-bar-height: 2.25rem;

  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.3s;
  --duration-slow: 0.5s;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0.01ms;
    --duration-normal: 0.01ms;
    --duration-slow: 0.01ms;
  }
}

/* ========== Keyframes ========== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: var(--font-base);
  line-height: 1.5;
  color: var(--text-dark);
  background: var(--bg-section);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

/* ========== Top bar ========== */
.top-bar {
  min-height: var(--top-bar-height);
  position: relative;
  overflow: hidden;
  background: transparent;
  z-index: 5;
  color: var(--text-light);
  font-size: var(--font-xs);
}
.top-bar__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  width: 100%;
  z-index: 1;
  padding-top: var(--space-xs);
}

.top-bar__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.top-bar__catalog {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: inherit;
}
.top-bar__catalog:hover { color: #fff; }
.top-bar__catalog,
.top-bar__right a {
  transition: color var(--duration-fast) var(--ease-out);
}
.top-bar__icon {
  display: none;
  width: 1rem;
  height: 1rem;
  background: var(--gray-500);
  flex-shrink: 0;
}
.top-bar__site {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}
.top-bar__right {
  display: flex;
  gap: var(--space-lg);
}
.top-bar__right a {
  position: relative;
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}
.top-bar__right a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.1rem;
  width: 100%;
  height: 1px;
  background: #00ae46;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s var(--ease-out);
}
.top-bar__right a:hover {
  color: #00ae46;
}
.top-bar__right a:hover::after {
  transform: scaleX(1);
}
@media (max-width: 768px) {
  :root { --header-height: 4rem; }
  .top-bar__site { position: static; transform: none; }
  .top-bar__inner { flex-wrap: wrap; justify-content: flex-start; }
}

/* ========== Main header (sticky) ========== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /*background: var(--bg-header);*/
  background: transparent; /* закругления делаем у inner */
  border-bottom: none;
}

.main-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  height: 90px;
  min-height: 90px;
  flex: 1;
  min-width: 0;
  width: auto;
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 50px;
  overflow: visible; /* чтобы dropdown подпункты не обрезались */
  position: relative;
  z-index: 0;
  padding-block: 0.35rem;
  padding-left: 2.5rem;
  padding-right: 0;
  max-width: 1597px;
}

.main-header__layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  width: 100%;
}

/* Фон "капсулы" по ширине контента (без padding-inline контейнера) */
.main-header__inner::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--container-padding);
  right: var(--container-padding);
  background: var(--gray-960);
  border-radius: 1rem;
  z-index: -1;
  pointer-events: none;
  display: none; /* отключаем, чтобы вернуть исходный вид */
}
.main-header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--text-dark);
  flex-shrink: 0;
}
.main-header__logo:hover { color: var(--text-dark); }
.main-header__logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border-radius: 0.25rem;
  display: block;
}
.main-header__logo-text {
  font-weight: 700;
  font-size: var(--font-lg);
  letter-spacing: 0.02em;
  text-align: center;
}
.main-header .main-nav {
  flex: 1;
  min-width: 0;
  border-bottom: none;
  padding-right: 0.4rem;
  position: static;
}
.main-header .main-nav__list {
  justify-content: flex-start;
  flex-wrap: wrap;
}
.main-header__actions {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex-shrink: 0;
  position: static;
  transform: none;
  height: 90px;
  z-index: auto;
}
.main-header__btn-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  flex-shrink: 0;
}
.main-header__btn-circle:hover { background: rgba(255,255,255,0.2); }

/* Кнопки поиска и бургера отдельно выделяем (как на референсе) */
.main-header__search-toggle,
.main-header__menu-toggle {
  background: #00ae46;
  box-shadow: 0 0 0 3px rgba(0, 174, 70, 0.15);
}
.main-header__search-toggle:hover,
.main-header__menu-toggle:hover {
  background: #00c14f;
}
.main-header__menu-toggle {
  background: #00492b;
  box-shadow: 0 0 0 3px rgba(0, 73, 43, 0.2);
}
.main-header__menu-toggle:hover {
  background: #00492b;
}

/* Верхнее меню в стиле "overlay": текст и интерактивные элементы светлые */
.main-header .main-nav__link {
  color: var(--text-dark);
  background: transparent;
}
.main-header .main-nav__link:hover {
  color: #00ae46;
  background: transparent;
}
.main-header .main-nav__link--highlight {
  background: rgba(0,0,0,0.06);
  color: var(--text-dark);
}
.main-header .main-nav__link--highlight:hover {
  background: rgba(0,0,0,0.1);
}
.main-header .main-nav__sublist {
  top: 100%;
  left: 0;
  right: 0;
  min-width: 100%;
  background: #fff;
  border: 1px solid #e8edf2;
  box-shadow: 0 14px 34px rgba(9, 23, 41, 0.14);
  border-radius: 1.85rem;
  padding: 1.35rem 1.5rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2.1rem;
  row-gap: 0.1rem;
}
.main-header .main-nav__item--dropdown { position: static; }
.main-header .main-nav__sublist a {
  color: #253445;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  border-radius: 0.7rem;
  padding: 0.55rem 0.75rem;
}
.main-header .main-nav__sublist a:hover {
  color: #00ae46;
  background: #f4f7f9;
}
.main-header__btn-icon {
  display: block;
  width: 1.45rem;
  height: 1.45rem;
  background: currentColor;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}
.main-header__btn-icon--search {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
}
.main-header.search-open .main-header__btn-icon--search {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E");
}
.main-header__btn-icon--menu {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M3 6h18v2H3V6zm0 5h18v2H3v-2zm0 5h18v2H3v-2z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M3 6h18v2H3V6zm0 5h18v2H3v-2zm0 5h18v2H3v-2z'/%3E%3C/svg%3E");
}

.main-header.menu-open .main-header__btn-icon--menu,
.main-header__menu-overlay .main-header__btn-icon--menu {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E");
}

.main-header__search-popup {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.5rem);
  pointer-events: none;
  transition: opacity var(--duration-fast), visibility var(--duration-fast),
    transform var(--duration-fast) var(--ease-out);
  z-index: 90;
}
.main-header.search-open .main-header__search-popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.main-header__search-card {
  background: #f7f7f7;
  border: 1px solid #ececec;
  border-radius: 1.6rem;
  padding: 1.2rem 1.4rem 1.35rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}
.main-header__search-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 9999px;
  padding: 0.4rem 0.45rem 0.4rem 1.05rem;
  margin-bottom: 0.95rem;
}
.main-header__search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0.3rem 0.2rem;
  font-size: 2rem;
  color: var(--text-dark);
  outline: none;
}
.main-header__search-input::placeholder { color: #2f2f2f; }
.main-header__search-hint {
  color: #bababa;
  font-size: 0.86rem;
  white-space: nowrap;
}
.main-header__search-submit {
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 50%;
  background: #35c25a;
  color: var(--text-light);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s var(--ease-out);
}
.main-header__search-submit:hover { background: #2ca546; }
.main-header__search-submit::before {
  content: '';
  width: 0.78rem;
  height: 0.78rem;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  transform: rotate(45deg);
  display: block;
  margin-left: -0.18rem;
}
.main-header__search-popular-title {
  position: relative;
  display: inline-block;
  font-size: 1.55rem;
  font-weight: 500;
  color: #2d2d2d;
  margin-bottom: 0.75rem;
}
.main-header__search-popular-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.1rem;
  width: 100%;
  height: 2px;
  background: #35c25a;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease-out);
}
.main-header__search-popular-title:hover::after {
  transform: scaleX(1);
}
.main-header__search-popular-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.main-header__search-popular-item {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  border-radius: 999px;
  padding: 0.2rem 0.95rem;
  background-color: #ececec;
  background-image: linear-gradient(#35c25a, #35c25a);
  background-repeat: no-repeat;
  background-position: left top;
  background-size: 0% 100%;
  color: #3e3e3e;
  font-size: 0.88rem;
  transition: background-size 0.45s var(--ease-out),
    background-color 0.45s var(--ease-out),
    color 0.45s var(--ease-out);
}
.main-header__search-popular-item:hover {
  background-size: 100% 100%;
  color: #fff;
}

/* Попап-меню по бургеру с эффектом расширения от кнопки */
.main-header__menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 180;
  background: #00492b;
  clip-path: circle(0 at var(--menu-origin-x, calc(100% - 2.5rem)) var(--menu-origin-y, 2.5rem));
  -webkit-clip-path: circle(0 at var(--menu-origin-x, calc(100% - 2.5rem)) var(--menu-origin-y, 2.5rem));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: clip-path 0.65s var(--ease-out), -webkit-clip-path 0.65s var(--ease-out),
    opacity 0.25s var(--ease-out), visibility 0.25s var(--ease-out);
}
.main-header.menu-open + .main-header__menu-overlay {
  clip-path: circle(150vmax at var(--menu-origin-x) var(--menu-origin-y));
  -webkit-clip-path: circle(150vmax at var(--menu-origin-x) var(--menu-origin-y));
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.main-header__menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--text-light);
  background: rgba(255,255,255,0.12);
  z-index: 2;
}
.main-header__menu-close:hover { background: rgba(255,255,255,0.2); }
.main-header__menu-content {
  height: 100%;
  padding-top: 4.5rem;
  padding-bottom: 2rem;
  overflow: auto;
}
.main-header__menu-layout {
  min-height: calc(100vh - 6.5rem);
  display: grid;
  grid-template-columns: 16rem 1fr;
  gap: 2rem;
}
.main-header__menu-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.main-header__menu-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 7.5rem;
}
.main-header__menu-brand img {
  width: 4.75rem;
  height: 4.75rem;
  object-fit: contain;
  display: block;
}
.main-header__menu-brand-text {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  max-width: 15rem;
  text-align: center;
}
.main-header__menu-socials {
  display: grid;
  grid-template-columns: repeat(3, 4.5rem);
  column-gap: 0.5rem;
  row-gap: 0.5rem;
}
.main-header__menu-social {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 0.85rem;
  overflow: hidden;
}
.main-header__menu-social img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.main-header__menu-cta {
  grid-column: 1 / -1;
  margin-top: 0.25rem;
  height: 2.85rem;
  border-radius: 9999px;
  background: #2db355;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}
.main-header__menu-main {
  min-width: 0;
}
.main-header__menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 3rem;
}
.main-header__menu-col {
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity 0.25s var(--ease-out), transform 0.35s var(--ease-out);
}
.main-header.menu-open + .main-header__menu-overlay .main-header__menu-col {
  opacity: 1;
  transform: translateY(0);
}
.main-header__menu-title {
  color: var(--text-light);
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.main-header__menu-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.main-header__menu-title-link {
  margin-bottom: 0;
  display: block;
}
.main-header__menu-expand {
  display: none;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  color: rgba(255,255,255,0.9);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.main-header__menu-expand-icon {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease-out);
  display: block;
}
.main-header__menu-sublist {
  display: block;
}
.main-header__menu-link {
  display: block;
  color: rgba(255,255,255,0.88);
  font-size: var(--font-sm);
  line-height: 1.6;
  margin-bottom: 0.25rem;
}
.main-header__menu-link:hover { color: #fff; }

/* ========== Main nav + dropdown ========== */
.main-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0;
}
.main-nav__item { position: relative; }
.main-nav__link {
  display: block;
  padding: var(--space-md) 0.8rem;
  font-size: var(--font-sm);
  color: var(--text-dark);
  font-weight: 600; /* как в карточках actual-item */
  text-align: center;
  position: relative;
  text-decoration: none;
  transition: color var(--duration-fast), text-decoration-color var(--duration-fast);
}
.main-nav__link:hover {
  color: #00ae46;
  background: transparent;
  text-decoration-line: underline;
  text-decoration-color: #00ae46;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.95rem;
  text-decoration-skip-ink: none;
}
.main-nav__item.current-menu-item > .main-nav__link,
.main-nav__item.current-menu-ancestor > .main-nav__link {
  color: #00ae46;
  text-decoration-line: underline;
  text-decoration-color: #00ae46;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.95rem;
  text-decoration-skip-ink: none;
}
.main-nav__link--highlight {
  background: var(--gray-100);
  color: var(--text-dark);
  font-weight: 500;
}
.main-nav__link--highlight:hover { background: var(--gray-200); }
.main-nav__sublist {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 14rem;
  background: var(--bg-header);
  border: 1px solid var(--border);
  border-top: none;
  box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.08);
  padding: var(--space-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--duration-normal), visibility var(--duration-normal), transform var(--duration-normal) var(--ease-out);
  z-index: 50;
}
.main-nav__item--dropdown:hover .main-nav__sublist,
.main-nav__item--dropdown:focus-within .main-nav__sublist,
.main-nav__item--dropdown.is-open .main-nav__sublist {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.main-nav__sublist li { margin: 0; }
.main-nav__sublist a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-sm);
  color: var(--text-muted);
  font-weight: 600;
  text-align: center;
}
.main-nav__sublist a:hover { color: var(--text-dark); background: var(--gray-100); }

/* ========== Hello-block (hero по образцу эталона) ========== */
.hello-block {
  min-height: 100vh;
  background: var(--bg-hero);
  display: flex;
  align-items: center;
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
  /* сдвигаем секцию вверх под sticky-шапку */
  margin-top: calc(-1 * (var(--header-height) + var(--top-bar-height)));
}
.hello-block__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hello-block__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.35);
}
.hello-block__splash {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #004a2b;
  transform: translateY(0);
  opacity: 1;
  pointer-events: none;
  transition: transform 1.1s var(--ease-out), opacity 1.1s var(--ease-out);
}
.hello-block.has-splash-lifted .hello-block__splash {
  transform: translateY(-102%);
  opacity: 0;
}
.hello-block__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
  width: 100%;
  text-align: left;
  position: relative;
  z-index: 3;
  /* возвращаем контент вниз, чтобы он не перекрывался меню */
  padding-top: calc(var(--header-height) + var(--top-bar-height));
}
.hello-block__title {
  margin: 0 0 var(--space-lg);
  font-size: var(--font-hero);
  font-weight: 700;
  /*color: var(--text-dark);*/
  color: #fff;
  line-height: 1.2;
  animation: fadeInUp var(--duration-slow) var(--ease-out) both;
}
.hello-block__description {
  margin: 0 0 var(--space-md);
  font-size: var(--font-base);
  line-height: 1.6;
  /*color: var(--gray-700);*/
  color: #fff;
  max-width: 36rem;
  animation: fadeInUp var(--duration-slow) var(--ease-out) 0.1s both;
}
.hello-block__link {
  display: inline-block;
  margin-bottom: var(--space-lg);
  font-size: var(--font-sm);
  /*color: var(--gray-800);*/
  color: #fff;
  text-decoration: underline;
  transition: color var(--duration-fast), opacity var(--duration-fast);
  animation: fadeInUp var(--duration-slow) var(--ease-out) 0.15s both;
}
.hello-block__link:hover { opacity: 0.85; }
.hello-block__search-field {
  display: block;
  max-width: 34rem;
  width: 100%;
  animation: fadeInDown var(--duration-slow) var(--ease-out) 0.2s both;
}
.hello-block__search-field form {
  display: flex;
  position: relative;
  border-radius: 9999px;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(46, 46, 46, 0.32);
  backdrop-filter: blur(4px);
  min-height: 3.65rem;
  transition: box-shadow var(--duration-fast);
}
.hello-block__search-field form:focus-within { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35); }
.hello-block__search-field .search-field__input {
  flex: 1;
  padding: 0.95rem 1.3rem;
  padding-right: 5.35rem;
  border: none;
  font-size: 0.95rem;
  font-weight: 400;
  color: #fff;
  background: transparent;
  min-width: 0;
}
.hello-block__search-field .search-field__input::placeholder { color: rgba(255, 255, 255, 0.85); }
.hello-block__search-field .search-field__button {
  width: 4.15rem;
  height: 4.15rem;
  flex-shrink: 0;
  background: #2da448;
  color: var(--text-light);
  position: absolute;
  right: -4.3rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  border-radius: 50%;
  border: none;
  transition: background-color 0.3s var(--ease-out);
}
.hello-block__search-field .search-field__button:hover { background: #35c25a; }
.hello-block__search-field .search-field__button::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.9rem;
  height: 0.9rem;
  border-top: 2.5px solid currentColor;
  border-right: 2.5px solid currentColor;
  transform: translate(-60%, -50%) rotate(45deg);
}
.search-field__tip {
  margin-top: var(--space-sm);
  font-size: var(--font-xs);
  color: rgba(255, 255, 255, 0.75);
}
.hello-block__popular { animation: fadeInUp var(--duration-slow) var(--ease-out) 0.25s both; }
.hello-block__popular-button {
  margin: 0 0 var(--space-sm);
  font-size: var(--font-sm);
  color: #fff;
}
.hello-block__popular-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.hello-block__popular-item {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background-color: rgba(18, 24, 34, 0.88);
  background-image: linear-gradient(#35c25a, #35c25a);
  background-repeat: no-repeat;
  background-position: left top;
  background-size: 0% 100%;
  color: #fff;
  font-size: var(--font-xs);
  border-radius: 9999px;
  transition: background-size 0.3s var(--ease-out),
    background-color 0.3s var(--ease-out),
    color 0.3s var(--ease-out),
    transform 0.3s var(--ease-out);
}
.hello-block__popular-item:hover {
  background-size: 100% 100%;
  color: #fff;
  transform: translateY(-1px);
}
@media (max-width: 768px) {
  .hello-block__container { grid-template-columns: 1fr; text-align: center; }
  .hello-block__description { max-width: none; }
  .hello-block__search-field { margin-inline: auto; max-width: 100%; }
  .hello-block__search-field .search-field__input {
    padding-right: 4rem;
  }
  .hello-block__search-field .search-field__button {
    right: 0.45rem;
    width: 3.15rem;
    height: 3.15rem;
  }
  .hello-block__popular-list { justify-content: center; }
}

/* ========== Sections ========== */
.section {
  padding: var(--space-2xl) 0;
  background: var(--bg-section);
  /*background: #005cb2;*/
}
.section--gray { background: var(--bg-section-alt); }
.section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}
.section__title {
  margin: 0;
  font-size: var(--font-xl);
  font-weight: 700;
  color: var(--text-dark);
}
.section__title--standalone { margin-bottom: var(--space-lg); }
.section__title--active { border-bottom: 2px solid var(--accent-underline); }
.section__link {
  font-size: var(--font-sm);
  color: var(--text-muted);
  transition: color var(--duration-fast);
}
.section__link:hover { color: var(--text-dark); }
.section__action { margin-top: var(--space-xl); text-align: center; }

/* Появление заголовков секций при скролле */
.section.animate-in .section__title,
.section.animate-in .section__header .section__title,
.section.animate-in .news-block__title,
.section.animate-in .mayor-block__title,
.section.animate-in .h3 { animation: fadeInUp var(--duration-normal) var(--ease-out) both; }

/* ========== News-block (по образцу эталона) ========== */
.news-block__container {
  max-width: 1520px;
}
.news-block__title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}
.news-block__title { margin: 0; font-size: var(--font-xl); font-weight: 700; color: var(--text-dark); }
.news-block__list.news__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.news__item.news-item {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 0;
  background: #fff;
  position: relative;
  margin: 0;
  border: 0;
  transition: border-radius 0.45s var(--ease-out),
    transform 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out);
}
.news-item:hover {
  border-radius: 2rem;
  transform: none;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}
.news-item__bg {
  aspect-ratio: 16 / 10;
  background: var(--gray-300);
  flex-shrink: 0;
  transition: transform var(--duration-slow) var(--ease-out);
  overflow: hidden; /* чтобы картинка cover не давала "полос" по краям */
}
.news-item:hover .news-item__bg { transform: scale(1.03); }

.news-item__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: newsImageSlideUp 1.4s var(--ease-out) both;
}
.news-item--wide { grid-column: span 2; }
.news-item--wide .news-item__bg { aspect-ratio: 16 / 7.2; }
.news-item__link {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.news-item__link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: newsImageSlideUp 1.4s var(--ease-out) both;
}
.news-item--wide .news-item__link {
  background: var(--gray-300);
}
.news-item__body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  flex: 1;
  min-height: 0;
}
.news-item__date {
  font-size: var(--font-sm);
  color: var(--text-muted);
}
.news-item__date--white { color: rgba(255,255,255,0.92); }
.news-item__title {
  margin: 0;
  font-size: var(--font-base);
  font-weight: 600;
  line-height: 1.3;
}
.news-item__title--white { color: #fff; }
.news-item--wide .news-item__title { font-size: var(--font-lg); }
.news-item__tag {
  margin-top: auto;
  font-size: var(--font-xs);
  color: var(--text-muted);
  position: relative;
  z-index: 2;
}
.news-item__tag:hover { color: var(--text-dark); }
.news-item--has-image .news-item__body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  color: #fff;
  background: linear-gradient(180deg, rgba(2, 8, 18, 0) 0%, rgba(2, 8, 18, 0.72) 100%);
  padding: 1rem 1rem 0.9rem;
}
.news-item--has-image .news-item__date { color: rgba(255,255,255,0.9); }
.news-item--has-image .news-item__title { color: #fff; }
.news-item--has-image .news-item__tag {
  display: inline-flex;
  margin-top: 0.4rem;
  align-self: flex-start;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  background: #00ae46;
  color: #fff;
  text-transform: lowercase;
}
.news-item--wide .news-item__tag { display: none; }
.d-none { display: none; }
@media (min-width: 576px) { .d-sm-inline-block { display: inline-block; } }
.link { color: var(--text-muted); transition: color var(--duration-fast); }
.link:hover { color: var(--text-dark); }
.mt-24 { margin-top: var(--space-xl); }

/* Пагинация архива новостей */
.news-pagination .page-numbers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}
.news-pagination .page-numbers li {
  margin: 0;
  display: inline-flex;
  align-items: center;
}
.news-pagination .page-numbers a,
.news-pagination .page-numbers span {
  min-width: 1.5rem;
  height: 1.9rem;
  padding: 0 0.35rem;
  border-radius: 0;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1;
  color: var(--text-dark);
  background: transparent;
  transition: color var(--duration-fast), background var(--duration-fast);
}
.news-pagination .page-numbers a:hover {
  color: #00ae46;
}
.news-pagination .page-numbers .current {
  min-width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #00ae46;
  color: #fff;
  font-size: var(--font-sm);
  font-weight: 600;
}
.news-pagination .page-numbers .dots {
  background: transparent;
  min-width: auto;
  padding: 0 0.15rem;
}
.news-pagination .page-numbers .prev,
.news-pagination .page-numbers .next {
  font-size: var(--font-base);
  padding: 0 0.25rem;
}
.news-pagination .page-numbers .prev:hover,
.news-pagination .page-numbers .next:hover {
  color: #00ae46;
}

/* Архив новостей с фильтром по разделам */
.news-archive { background: #f5f5f5; }
.news-archive__container { max-width: 1520px; }
.news-archive__topbar {
  display: grid;
  grid-template-columns: 14rem 1fr;
  column-gap: 1.25rem;
  align-items: center;
  margin-bottom: var(--space-lg);
}
.news-archive__back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: calc(var(--font-sm) + 2.5px);
  color: var(--text-muted);
  justify-self: start;
  transition: color var(--duration-fast);
}
.news-archive__back::before {
  content: '';
  width: 0.48rem;
  height: 0.48rem;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: border-color var(--duration-fast);
}
.news-archive__back:hover {
  color: #00ae46;
}
.news-archive__breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: calc(0.78rem + 2.5px);
  color: var(--text-muted);
  justify-self: start;
}
.news-archive__breadcrumbs--top {
  margin: 0;
}
.news-archive__breadcrumbs a:hover { color: var(--text-dark); }
.news-archive__crumb-sep { opacity: 0.75; }
.news-archive__layout {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: 1.25rem;
}
.news-archive__sidebar {
  padding-top: 0.75rem;
}
.news-archive__filter-title {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0.85rem 0 0.55rem;
}
.news-archive__filter-panel {
  background: #ececec;
  border-radius: 0.85rem;
  padding: 0.85rem 0.95rem;
}
.news-archive__filter-summary {
  list-style: none;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 500;
  color: #2f2f2f;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.news-archive__filter-summary::-webkit-details-marker { display: none; }
.news-archive__filter-summary::after {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid #353535;
  border-bottom: 2px solid #353535;
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease-out);
}
.news-archive__filter-panel[open] .news-archive__filter-summary::after {
  transform: rotate(-135deg);
  margin-top: 0.25rem;
}
.news-archive__filter-form {
  margin-top: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.news-archive__filter-input {
  width: 100%;
  min-height: 3rem;
  border-radius: 0.95rem;
  border: 1px solid #d2d2d2;
  padding: 0 0.95rem;
  font-size: 1rem;
  color: #222;
  background: #f9f9f9;
}
.news-archive__filter-input::placeholder { color: #a8a8a8; }
.news-archive__filter-apply {
  min-height: 3.1rem;
  border-radius: 999px;
  background: #35c25a;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 600;
  transition: background 0.25s var(--ease-out);
}
.news-archive__filter-apply:hover { background: #2ca546; }
.news-archive__filter-reset {
  color: #b5b5b5;
  font-size: 1.05rem;
  text-align: center;
  display: inline-block;
}
.news-archive__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.news-archive__chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0.25rem 0.9rem;
  font-size: 0.86rem;
  border-radius: 0.6rem;
  background: #ececec;
  color: #2b2b2b;
}
.news-archive__chip:hover { color: #00ae46; }
.news-archive__chip.is-active {
  background: #35c25a;
  color: #fff;
}
.news-archive__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  gap: 1rem;
}
.news-archive__per-page {
  position: relative;
  min-width: 11.25rem;
}
.news-archive__per-page[open] {
  z-index: 30;
}
.news-archive__per-page-summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: #2f2f2f;
  padding: 0.55rem 0.65rem;
  border-radius: 0.75rem;
}
.news-archive__per-page-summary::-webkit-details-marker { display: none; }
.news-archive__per-page-summary::after {
  content: '';
  width: 0.4rem;
  height: 0.4rem;
  border-right: 2px solid #88b89c;
  border-bottom: 2px solid #88b89c;
  transform: rotate(45deg);
  margin-left: 0.4rem;
}
.news-archive__per-page[open] .news-archive__per-page-summary::after {
  transform: rotate(-135deg);
  margin-top: 0.25rem;
}
.news-archive__per-page-current { color: #00ae46; }
.news-archive__per-page-menu {
  display: none;
}
.news-archive__per-page[open] .news-archive__per-page-menu {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 0.25rem);
  right: 0;
  min-width: 11.25rem;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  padding: 0.35rem 0.65rem 0.65rem;
  gap: 0.15rem;
}
.news-archive__per-page-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2rem;
  color: #1f1f1f;
  font-size: 0.82rem;
}
.news-archive__per-page-item:hover { color: #00ae46; }
.news-archive__per-page-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #00ae46;
}
.news-archive__title {
  margin: 0;
  font-size: clamp(1.6rem, 2.5vw, 2.25rem);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.news-archive__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 1.5rem;
  border-radius: 999px;
  font-size: var(--font-xs);
  color: var(--text-light);
  background: #1db954;
}
.news-archive__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: transparent;
}
.news-archive__item {
  position: relative;
  background: #fff;
  min-height: 20rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 0;
  transition: border-radius 0.45s var(--ease-out),
    transform 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out);
}
.news-archive__item:hover {
  border-radius: 2rem;
  transform: none;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}
.news-archive__image-link {
  display: block;
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--gray-300);
}
.news-archive__image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: newsImageSlideUp 1.4s var(--ease-out) both;
}
.news-archive__item-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 1.35rem;
  min-height: 100%;
  text-align: left;
}
.news-archive__date {
  font-size: 0.74rem;
  color: var(--text-muted);
}
.news-archive__item-title {
  font-size: 1.02rem;
  line-height: 1.35;
  color: var(--text-dark);
  font-weight: 600;
}
.news-archive__tag {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  width: fit-content;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  background: var(--gray-200);
  font-size: 0.64rem;
  color: var(--text-muted);
}
.news-archive__item--image::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.58) 100%);
}

@keyframes newsImageSlideUp {
  from {
    transform: translateY(100%);
    opacity: 1;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.news-archive__item--image .news-archive__date,
.news-archive__item--image .news-archive__item-title {
  color: #fff;
}
.news-archive__item--image .news-archive__tag {
  background: #00ae46;
  color: #fff;
}

/* Контент обычных WP-страниц */
.page-content {
  overflow-x: hidden;
  background: #f5f5f5;
}
.single-news .section { background: #f5f5f5; }
.single-news__container {
  max-width: 70rem;
  margin: 0 auto;
}
.single-news .news-archive__topbar {
  grid-template-columns: 1fr;
  row-gap: 0.35rem;
  align-items: start;
}
.single-news .news-archive__back {
  align-self: start;
}
.single-news__title {
  max-width: 70rem;
  margin: 0 auto 1.5rem;
}
.single-news__thumb {
  margin: 1.5rem auto;
  max-width: 70rem;
}
.single-news__thumb img {
  width: 100%;
  height: auto;
}
.single-news__content {
  max-width: 70rem;
  margin: 0 auto;
}
.single-news__gallery {
  max-width: 70rem;
  margin: 2rem auto 0;
}
.single-news__gallery-title {
  margin: 0 0 1rem;
}
.single-news__article {
  max-width: 70rem;
  margin: 0 auto;
}
.single-news__infinite {
  padding-top: 0;
}
.single-news__infinite-list {
  display: grid;
  gap: 2.5rem;
}
.single-news__infinite-trigger {
  width: 100%;
  height: 1px;
}
.single-news-gallery {
  position: relative;
  border-radius: 1.5rem;
}
.single-news-gallery__viewport {
  overflow: hidden;
  border-radius: 1.5rem;
  background: #e9edf2;
}
.single-news-gallery__track {
  display: flex;
  transition: transform 0.45s var(--ease-out);
  will-change: transform;
}
.single-news-gallery__slide {
  margin: 0;
  min-width: 100%;
}
.single-news-gallery__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.single-news-gallery__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background var(--duration-fast), transform var(--duration-fast);
}
.single-news-gallery__btn:hover {
  background: rgba(0, 0, 0, 0.58);
}
.single-news-gallery__btn:active {
  transform: translateY(-50%) scale(0.96);
}
.single-news-gallery__btn--prev {
  left: 0.75rem;
}
.single-news-gallery__btn--next {
  right: 0.75rem;
}
.single-news-gallery__btn::before {
  content: '';
  width: 0.55rem;
  height: 0.55rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  display: block;
}
.single-news-gallery__btn--prev::before {
  transform: rotate(-135deg);
  margin-left: 0.15rem;
}
.single-news-gallery__btn--next::before {
  transform: rotate(45deg);
  margin-right: 0.15rem;
}
.single-news-gallery__dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.8rem;
}
.single-news-gallery__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: none;
  background: #c8c8c8;
  cursor: pointer;
  transition: background var(--duration-fast), transform var(--duration-fast);
}
.single-news-gallery__dot.is-active {
  background: #00ae46;
}
.single-news-gallery__dot:hover {
  transform: scale(1.08);
}
.page-content .wp-block-group,
.page-content .wp-block-columns,
.page-content .wp-block-column,
.page-content .wp-block-paragraph,
.page-content p,
.page-content li,
.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4 {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ========== Buttons ========== */
.btn {
  padding: var(--space-md) var(--space-xl);
  font-size: var(--font-base);
  border-radius: 0.25rem;
  font-weight: 500;
  transition: background var(--duration-fast), color var(--duration-fast),
    border-color var(--duration-fast), transform var(--duration-fast);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--gray-600);
  color: var(--text-light);
}
.btn--primary:hover { background: var(--gray-700); }
.btn--outline {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid var(--border);
}
.btn--outline:hover { border-color: var(--gray-500); }

/* ========== Глава города (mayor-block по образцу эталона) ========== */
.mayor-block {
  padding: var(--space-2xl) 0;
  background: var(--bg-section-alt);
  /* Фиксированная высота карточки, чтобы слайдер не "дергался" от разной длины текста */
  --mayor-post-height: 17.4rem;
}
.mayor-block__container {
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) 2fr;
  gap: var(--space-2xl);
  align-items: start;
}
.mayor-block__title {
  margin: 0 0 var(--space-lg);
  font-size: var(--font-xl);
  font-weight: 700;
  color: var(--text-dark);
}
.mayor-block__about-mayor {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}
.mayor-block__avatar {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: var(--gray-400);
  flex-shrink: 0;
}
.dropdown { position: relative; }
.dropdown__button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--font-base);
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  padding: var(--space-xs) 0;
}
.dropdown__button::after {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--gray-600);
  border-bottom: 2px solid var(--gray-600);
  transform: rotate(45deg);
}
.dropdown__list {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 12rem;
  background: var(--bg-section);
  border: 1px solid var(--border);
  box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.08);
  padding: var(--space-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--duration-normal), visibility var(--duration-normal), transform var(--duration-normal) var(--ease-out);
  z-index: 50;
}
.dropdown:hover .dropdown__list,
.dropdown:focus-within .dropdown__list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown__item { margin: 0; }
.dropdown__link {
  display: block;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-sm);
  color: var(--text-muted);
}
.dropdown__link:hover { color: var(--text-dark); background: var(--gray-100); }
.social.mayor-block__social {
  display: grid;
  grid-template-columns: repeat(5, max-content);
  column-gap: 0.35rem;
  row-gap: 0.35rem;
  align-items: center;
}
.social__booking {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background: var(--gray-960);
  color: var(--text-light);
  font-size: var(--font-sm);
  font-weight: 500;
  border-radius: 0.5rem;
  transition: background var(--duration-fast);
  grid-column: 1 / -1;
  justify-self: stretch;
  width: 100%;
  justify-content: center;
  text-align: center;
  margin-bottom: var(--space-sm);
}
.social__booking:hover { background: #00ae46; color: var(--text-light); }
.social__messanger {
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 0.325rem;
  background: transparent; /* убираем серую подложку вокруг иконок */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-fast);
  overflow: hidden; /* чтобы внутренние элементы не создавали "рамку" */
}
.social__messanger:hover { background: transparent; }
.social__messanger span {
  width: 100%;
  height: 100%;
  background: transparent; /* убираем "серую/светлую обводку" от span */
  border-radius: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}
.social__messanger img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* помещаем без обрезки, но не уменьшаем */
  display: block;
}
.mayor-block__slider {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.mayor-block__viewport {
  flex: 1;
  overflow: hidden;
  height: 18rem; /* запасной размер; точная высота выставляется JS */
}

.mayor-block__posts {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  will-change: transform;
  transition: transform var(--duration-normal) var(--ease-out);
}

.mayor-block__slider-controls {
  width: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
  justify-content: center;
}

.mayor-block__slider-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #35c25a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-light);
  transition: background 0.3s var(--ease-out);
  flex-shrink: 0;
}

.mayor-block__slider-btn:hover { background: #2ca546; }

.mayor-block__slider-btn::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  display: block;
}

.mayor-block__slider-btn--up::before { transform: rotate(-45deg); margin-top: 0.1rem; }
.mayor-block__slider-btn--down::before { transform: rotate(135deg); margin-bottom: 0.1rem; }
.mayor-block__post {
  position: relative;
  padding: var(--space-lg);
  background: var(--gray-100);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  height: var(--mayor-post-height);
  display: flex;
  flex-direction: column;
  transition: background var(--duration-normal), border-color var(--duration-normal),
    transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal);
}
.mayor-block__post:hover {
  background: var(--gray-200);
  border-color: var(--gray-400);
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.mayor-block__post-hide-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.mayor-block__post-date {
  font-size: var(--font-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}
.mayor-block__post-text {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.5;
  color: #000;
  /* Ограничиваем текст, чтобы карточки имели одинаковую высоту */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.mayor-block__post-info {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-sm);
  color: var(--text-muted);
  margin-top: auto; /* прижимаем автора к низу карточки */
}
.mayor-block__post-avatar {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--gray-400) url("images/ard-avatar.png") center / cover no-repeat;
  flex-shrink: 0;
  display: inline-block;
}
.mayor-block__post-link {
  flex: 1;
  color: #35c25a;
  font-weight: 600;
}
.mayor-block__post-arrow {
  width: 0.5rem;
  height: 0.5rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
  display: inline-block;
  color: #35c25a;
}
@media (max-width: 1024px) {
  .mayor-block__container { grid-template-columns: 1fr; }
  .mayor-block { --mayor-post-height: 16.2rem; }
}

/* Карточки MAX (mayor-block__post) на мобильных — по референсу */
@media (max-width: 768px) {
  .mayor-block {
    --mayor-post-height: auto;
  }
  .mayor-block__posts {
    gap: 0.9375rem;
  }
  .mayor-block__post {
    min-height: 0;
    height: auto;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 1.875rem;
    box-shadow: none;
  }
  .mayor-block__post:hover {
    background: #fff;
    border-color: #d0d0d0;
    transform: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  }
  .mayor-block__post-date {
    color: #a0a0a0;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }
  .mayor-block__post-text {
    color: #000;
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    -webkit-line-clamp: 8;
    line-clamp: 8;
    flex: 0 1 auto;
  }
  .mayor-block__post-info {
    gap: 0.5rem;
    margin-top: 0;
    font-size: 0.95rem;
  }
  .mayor-block__post-avatar {
    width: 2rem;
    height: 2rem;
  }
  .mayor-block__post-link {
    flex: 1;
    color: #2b7a3d;
    font-size: 0.95rem;
    font-weight: 500;
  }
  .mayor-block__post-arrow {
    color: #2b7a3d;
  }
}

/* ========== Актуальное (section--with-background-dark, tabs, actual-item по образцу эталона) ========== */
.section--with-background-dark {
  background: #f5f5f5;
  border-radius: 0 0 1rem 1rem;
}
.section--with-padding-bottom {
  padding-bottom: var(--space-3xl);
}
.mb-56 { margin-bottom: var(--space-2xl); }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.h3 { margin: 0; font-size: var(--font-xl); font-weight: 700; color: var(--text-dark); }
.tabs { margin-bottom: var(--space-xl); }
.section--with-background-dark .tabs__bar {
  border-bottom: 1px solid #e2e2e2;
  margin-bottom: 1rem;
}
.tabs__bar-inner {
  display: flex;
  gap: 1.25rem;
}
.tabs__item {
  padding: 0.25rem 0.1rem 0.45rem;
  font-size: 0.75rem;
  color: #4a4a4a;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color var(--duration-fast), border-color var(--duration-fast);
}
.tabs__item:hover { color: #1f1f1f; }
.tabs__item--active {
  font-weight: 600;
  color: #00ae46;
  border-bottom-color: #00ae46;
}
.tabs__content { margin-top: var(--space-lg); }
.tabs__tab { display: none; }
.tabs__tab.tabs__tab--show { display: block; }
.flex { display: flex; flex-wrap: wrap; }
.actual-grid {
  /* viewport для горизонтального "слайда" */
  display: block; /* перебиваем утилиту .flex в разметке */
  width: calc(50vw + 50%);
  padding-left: 0;
  box-sizing: border-box;
  overflow: hidden;
}
.actual-track {
  display: flex;
  gap: 0;
  transition: transform 0.35s var(--ease-out);
  will-change: transform;
}
.actual-page {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 0;
}
.actual-col {
  flex: 0 0 calc(100% / 6.5);
  display: grid;
  grid-template-rows: repeat(2, auto);
  gap: 0;
}
.actual-item {
  position: relative;
  padding: 40px;
  min-width: 258px;  /* 178 + 40 + 40 */
  min-height: 251px; /* 171 + 40 + 40 */
  background: #efefef;
  border-radius: 0;
  font-size: 0.84rem;
  font-weight: 500;
  color: #2f2f2f;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  transition: border-radius 0.45s var(--ease-out),
    background 0.45s var(--ease-out),
    transform 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out);
}
.actual-item--bg-1 { background: #f4f4f4; }
.actual-item--bg-1:hover {
  background: #e6e6e6;
}
.actual-item--bg-2 { background: #ebebeb; color: #2f2f2f; }
.actual-item--bg-3 { background: #dcdcdc; color: #2f2f2f; }
.actual-item:hover {
  background: #2aa54a;
  color: var(--text-light);
  border-radius: 2rem;
  transform: none;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}
.actual-item__link {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.slider__nav.simple-slider__nav {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}
.slider__prev,
.slider__next {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #35c25a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-light);
  transition: background 0.3s var(--ease-out);
}
.slider__prev:hover,
.slider__next:hover { background: #2ca546; }
.slider__nav-icon {
  width: 0.5rem;
  height: 0.5rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  display: block;
  color: var(--text-light);
}
.slider__prev .slider__nav-icon { transform: rotate(-135deg); margin-left: 0.05rem; }
.slider__next .slider__nav-icon { transform: rotate(45deg); margin-right: 0.05rem; }

/* Общие табы (Услуги и меры поддержки) */
.services-tabs {
  display: flex;
  gap: 0;
  margin-bottom: var(--space-lg);
}
.tabs__btn {
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--font-sm);
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
}
.tabs__btn:hover { color: var(--text-dark); }
.tabs__btn--active {
  font-weight: 600;
  color: var(--text-dark);
  border-bottom-color: var(--accent-underline);
}

/* ========== Комитеты и Управления ========== */
.committees-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}
.committee-card {
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0.25rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  transition: background var(--duration-normal), box-shadow var(--duration-normal),
    transform var(--duration-normal) var(--ease-out);
}
.committee-card:hover {
  background: transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}
.committee-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.committee-card__title {
  height: 1.5rem;
  background: var(--gray-400);
  border-radius: 0.125rem;
  margin-bottom: var(--space-md);
}
.committee-card__links {
  height: 2rem;
  background: var(--gray-200);
  border-radius: 0.125rem;
}

/* ========== Услуги и меры поддержки ========== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}
.services-col { display: flex; flex-direction: column; gap: var(--space-sm); }
.services-item {
  min-height: 2rem;
  background: var(--gray-200);
  border-radius: 0.25rem;
}

/* ========== Комитеты и управления (горизонтальный ряд) ========== */
.committees-row-grid {
  display: block;
  width: calc(50vw + 50%);
  overflow: hidden;
}
.committees-row-track {
  display: flex;
  gap: 0;
  transition: transform 0.35s var(--ease-out);
  will-change: transform;
}
.committee-row-item {
  position: relative;
  flex: 0 0 calc(100% / 5.5);
  min-height: 10.5rem;
  padding: 1.125rem 1.275rem;
  border: 1px solid #e2e2e2;
  background: #efefef;
  display: flex;
  flex-direction: column;
  gap: 0.675rem;
  border-radius: 0;
  transition: border-radius 0.45s var(--ease-out),
    background 0.45s var(--ease-out),
    border-color 0.45s var(--ease-out),
    transform 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out);
}
.committee-row-item:hover {
  border-radius: 2rem;
  background: #2aa54a;
  border-color: #2aa54a;
  transform: none;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}
.committee-row-item:hover .committee-row-item__title,
.committee-row-item:hover .committee-row-item__link {
  color: var(--text-light);
}
.committee-row-item__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.committee-row-item__title {
  margin: 0;
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.4;
  color: #2f2f2f;
  position: relative;
  z-index: 2;
}
.committee-row-item__links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: auto;
  position: relative;
  z-index: 2;
}
.committee-row-item__link {
  font-size: 0.9rem;
  line-height: 1.35;
  color: #3d3d3d;
  text-decoration: none;
}
.committee-row-item__link:hover { color: #00ae46; }

/* ========== Национальные проекты (горизонтальный ряд) ========== */
.np-row-grid {
  display: block;
  width: calc(50vw + 50%);
  overflow: hidden;
}
.np-row-track {
  display: flex;
  gap: 0.9rem;
  transition: transform 0.35s var(--ease-out);
  will-change: transform;
}
.np-row-item {
  position: relative;
  flex: 0 0 calc((100% - 4 * 0.9rem) / 4.8);
  min-height: 4.62rem;
  border: 1px solid #d8d8d8;
  border-radius: 9999px;
  background: #efefef;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.77rem 1.68rem;
  box-sizing: border-box;
  overflow: hidden;
  transition: border-color var(--duration-fast), transform var(--duration-fast), box-shadow var(--duration-fast);
}
.np-row-item:hover {
  background: #efefef;
  border-color: #d8d8d8;
  transform: none;
  box-shadow: none;
}
.np-row-item:hover .np-row-item__title,
.np-row-item:hover .np-row-item__subtitle { color: #2f2f2f; }
.np-row-item:hover .np-row-item__arrow {
  border-top-color: var(--gray-960);
  border-right-color: var(--gray-960);
}
.np-row-item__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.np-row-item__title {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  color: #2f2f2f;
  position: relative;
  z-index: 2;
}
.np-row-item__bottom {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  position: relative;
  z-index: 2;
}
.np-row-item__subtitle {
  font-size: 0.82rem;
  color: var(--gray-960);
  letter-spacing: 0.02em;
}
.np-row-item__arrow {
  width: 0.45rem;
  height: 0.45rem;
  border-top: 1px solid var(--gray-960);
  border-right: 1px solid var(--gray-960);
  transform: rotate(45deg);
  display: inline-block;
}

/* ========== Национальные проекты ========== */
.np-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.np-item {
  min-height: 3rem;
  background: transparent;
  border-radius: 0.25rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-normal), transform var(--duration-fast);
}
.np-item:hover {
  background: transparent;
  transform: translateY(-1px);
}

.np-item img {
  display: block;
  /* возвращаем "как было": не растягиваем, только масштабируем по ширине */
  width: auto;
  height: auto;
  object-fit: initial;
}

/* ========== Banner ========== */
.banner-placeholder {
  min-height: 8rem;
  background: var(--gray-400);
  border-radius: 0.25rem;
}

.banners-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}
.banner-card {
  display: block;
  border: 1px solid #dcdcdc;
  border-radius: 0.6rem;
  overflow: hidden;
  background: #f5f5f5;
  aspect-ratio: 16 / 5;
  transition: transform var(--duration-fast), box-shadow var(--duration-fast);
}
.banner-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}
.banner-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ========== Footer (section--with-background footer по образцу эталона) ========== */
.section--with-background.footer {
  background: var(--bg-footer);
  padding: var(--space-3xl) 0;
}
.row { display: block; }
.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--border);
  width: 100%;
}
.footer__title {
  margin: 0 0 var(--space-md);
  font-size: var(--font-sm);
  font-weight: 700;
  color: var(--text-dark);
}
.footer__logo-link {
  font-weight: 700;
  font-size: var(--font-sm);
  color: var(--text-dark);
  display: block;
  margin-bottom: var(--space-md);
}
.footer__logo-link:hover { color: var(--text-dark); }
.micro-text { font-size: var(--font-sm); color: var(--text-muted); }
.mb-24 { margin-bottom: var(--space-xl); }
.footer__menu { list-style: none; margin: 0; padding: 0; }
.footer__menu-item { margin-bottom: var(--space-xs); }
.footer__menu-link { color: inherit; }
.footer__menu-link:hover { color: var(--text-dark); }
.footer__bottom-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-lg);
  width: 100%;
}
.footer__reg {
  font-weight: 700;
  font-size: var(--font-sm);
  color: var(--text-dark);
}
.footer__age {
  margin-left: var(--space-sm);
  font-size: var(--font-xs);
  color: var(--text-muted);
}
.footer__license {
  font-size: var(--font-xs);
  color: var(--text-muted);
  max-width: 20rem;
  text-align: center;
}
.footer__info-link {
  font-size: var(--font-sm);
  color: var(--text-muted);
}
.footer__info-link:hover { color: var(--text-dark); }

/* ============================================
   Адаптив
   ============================================ */
@media (max-width: 1024px) {
  .news-archive__topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 0;
    row-gap: 0.25rem;
  }
  .news-block__list.news__list { grid-template-columns: 1fr; }
  .news-item--wide { grid-column: auto; }
  .news-archive__layout { grid-template-columns: 1fr; }
  .news-archive__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .committees-grid { grid-template-columns: repeat(2, 1fr); }
  .actual-grid { width: 100%; padding-left: 0; }
  .np-grid { grid-template-columns: repeat(2, 1fr); }
  .committees-row-grid { width: 100%; }
  .committee-row-item { flex-basis: calc(100% / 3.5); }
  .np-row-grid { width: 100%; }
  .np-row-item { flex-basis: calc((100% - 2 * 0.75rem) / 3.2); }
  .banners-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --container-padding: 1rem; }

  /* Мобильная шапка: одна шапка, упрощенный вид */
  .top-bar {
    display: block;
    min-height: 1.9rem;
    background: rgba(24, 24, 24, 0.72);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
  .top-bar__inner {
    min-height: 1.9rem;
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .top-bar__icon,
  .top-bar__site { display: none; }
  .top-bar__catalog {
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 500;
    opacity: 0.95;
  }
  .top-bar__catalog::after {
    content: "Каталог сайтов";
  }
  .top-bar__right a {
    color: #fff;
    font-size: 0.62rem;
    font-weight: 500;
    opacity: 0.95;
  }

  .main-header { top: 0; padding-top: 0.35rem; }
  .main-header__layout { align-items: center; }
  .main-header__inner {
    min-height: 3.45rem;
    height: 3.45rem;
    border-radius: 999px;
    background: #fff;
    padding-left: 0.75rem;
    padding-right: 0.35rem;
    gap: 0.35rem;
    justify-content: space-between;
  }
  .main-header .main-nav { display: none; }
  .main-header__logo {
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
    align-items: center;
  }
  .main-header__logo-icon { width: 2rem; height: 2rem; flex-shrink: 0; }
  .main-header__logo-text {
    display: block;
    flex: 1;
    min-width: 0;
    font-size: 0.78rem;
    line-height: 1.2;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
  }
  .main-header__actions {
    position: static;
    transform: none;
    margin-left: auto;
    z-index: auto;
    height: 100%;
  }
  .main-header__search-toggle { display: none; }
  .main-header__menu-toggle {
    width: 2.5rem;
    height: 2.5rem;
    background: #007243;
    box-shadow: none;
  }
  .main-header__btn-circle { width: 2.5rem; height: 2.5rem; }

  .main-header__search-popup {
    top: calc(100% + 0.4rem);
    z-index: 200;
  }
  .main-header__search-form {
    border-radius: 0.85rem;
    padding: 0.35rem;
  }
  .main-header__search-input { font-size: 0.95rem; }
  .main-header__menu-overlay { z-index: 250; }
  .main-header__menu-close {
    position: fixed;
    top: calc(1.9rem + 0.45rem);
    right: 1rem;
  }
  .main-header__menu-content { padding-top: 4.25rem; }

  .news-archive__header { flex-wrap: wrap; }
  .news-archive__per-page { margin-left: auto; }
  .committees-grid { grid-template-columns: 1fr; }
  .news-archive__grid { grid-template-columns: 1fr; }
  .actual-grid { width: 100%; padding-left: 0; }
  .services-grid { grid-template-columns: 1fr; }
  .committee-row-item { flex-basis: calc(100% / 1.2); }
  .np-row-item { flex-basis: calc(100% - 2rem); }
  .np-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; text-align: left; }
  .footer__bottom-info { flex-direction: column; }
  .main-header__menu-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .main-header__menu-side { order: 2; }
  .main-header__menu-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .main-header__menu-col { border-bottom: none; padding-bottom: 0.55rem; }
  .main-header__menu-title { font-size: 1.35rem; }
  .main-header__menu-expand { display: inline-flex; }
  .main-header__menu-sublist {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease-out), opacity 0.25s var(--ease-out), margin-top 0.25s var(--ease-out);
    margin-top: 0;
  }
  .main-header__menu-col.is-expanded .main-header__menu-sublist {
    max-height: 24rem;
    opacity: 1;
    margin-top: 0.3rem;
  }
  .main-header__menu-col.is-expanded .main-header__menu-expand-icon { transform: rotate(-135deg); }
  .main-header__menu-link {
    margin-bottom: 0.18rem;
    font-size: 0.76rem;
    line-height: 1.45;
  }
  .single-news__gallery {
    margin-top: 1.5rem;
  }
  .single-news-gallery__viewport {
    border-radius: 1rem;
  }
  .single-news-gallery__btn {
    width: 2.25rem;
    height: 2.25rem;
  }
  .single-news-gallery__btn--prev {
    left: 0.5rem;
  }
  .single-news-gallery__btn--next {
    right: 0.5rem;
  }
}

/* ========== Страница «Документы» (шаблон page-documents.php) ========== */
.documents-page {
  background: #f5f5f5;
}
.documents-page__container {
  max-width: 1520px;
}
.documents-page__topbar {
  display: grid;
  grid-template-columns: 14rem 1fr;
  column-gap: 1.25rem;
  align-items: start;
  margin-bottom: var(--space-lg);
}
.documents-page__breadcrumbs {
  justify-self: start;
}
.documents-page__layout {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: 1.5rem;
  align-items: start;
}
.documents-page__types {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.documents-page__type-chip {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 0.65rem;
  background: #ececec;
  color: var(--text-dark);
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  line-height: 1.25;
  transition: background var(--duration-fast), color var(--duration-fast);
}
.documents-page__type-chip:hover {
  background: #e0e0e0;
  color: var(--text-dark);
}
.documents-page__type-chip.is-active {
  background: #00ae46;
  color: #fff;
}
.documents-page__header {
  margin-bottom: 1rem;
}
.documents-page__title {
  margin: 0;
  font-size: var(--font-xl);
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.documents-page__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #00ae46;
  color: #fff;
  font-size: var(--font-sm);
  font-weight: 600;
}
.documents-page__filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}
.documents-page__input,
.documents-page__select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #d4d4d4;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  background: #fff;
}
.documents-page__advanced {
  margin: 0.35rem 0 0.75rem;
}
.documents-page__advanced-summary {
  cursor: pointer;
  color: #00ae46;
  font-weight: 600;
  font-size: var(--font-sm);
  list-style: none;
}
.documents-page__advanced-summary::-webkit-details-marker { display: none; }
.documents-page__filter-row--advanced {
  grid-template-columns: 1fr 1fr 1fr;
  margin-top: 0.75rem;
}
.documents-page__filter-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.documents-page__apply {
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: 0.5rem;
  background: #00ae46;
  color: #fff;
  font-weight: 600;
  font-size: var(--font-sm);
  cursor: pointer;
  transition: background var(--duration-fast);
}
.documents-page__apply:hover {
  background: #2ca546;
}
.documents-page__reset {
  font-size: var(--font-sm);
  color: var(--text-muted);
  text-decoration: underline;
}
.documents-page__toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}
.documents-page__per-page {
  position: relative;
}
.documents-page__per-page-summary {
  cursor: pointer;
  list-style: none;
  font-size: var(--font-sm);
  color: var(--text-muted);
}
.documents-page__per-page-summary::-webkit-details-marker { display: none; }
.documents-page__per-page-menu {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.25rem;
  min-width: 8rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 0.35rem 0;
  z-index: 20;
  display: none;
}
.documents-page__per-page[open] .documents-page__per-page-menu {
  display: block;
}
.documents-page__per-page-item {
  display: block;
  padding: 0.4rem 0.75rem;
  font-size: var(--font-sm);
  color: var(--text-dark);
  text-decoration: none;
}
.documents-page__per-page-item.is-active {
  color: #00ae46;
  font-weight: 600;
}
.documents-page__list {
  border-top: 1px solid #dcdcdc;
}
.documents-page__item {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid #e6e6e6;
}
.documents-page__item-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
}
.documents-page__item-date {
  font-size: var(--font-sm);
  color: var(--text-dark);
}
.documents-page__item-number {
  font-size: var(--font-sm);
  font-weight: 600;
  color: #00ae46;
}
.documents-page__item-tag {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 0.35rem;
  background: #ececec;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-dark);
}
.documents-page__item-body {
  min-width: 0;
}
.documents-page__item-title {
  display: block;
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-dark);
  text-decoration: none;
}
.documents-page__item-title:hover {
  color: #00ae46;
}
.documents-page__item-title--no-file {
  color: var(--text-dark);
}
.documents-page__item-org {
  margin: 0;
  font-size: var(--font-sm);
  color: #7a7a7a;
}
.documents-page__item-files {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  font-size: var(--font-sm);
  color: var(--text-muted);
}
.documents-page__item-files a {
  color: #00ae46;
  text-decoration: underline;
}
.documents-page__item-files a:hover {
  color: #2ca546;
}
.documents-page__empty {
  padding: 2rem 0;
  color: var(--text-muted);
}
.documents-page__pagination {
  border-top: 1px solid #dcdcdc;
  padding-top: 1rem;
}

/* ========== Страница «Фотогалерея» (page-photo-gallery.php) ========== */
.photo-gallery-page {
  background: #fff;
  /* чуть меньше отступ снизу: контент короткий, без лишней «пустоты» перед подвалом */
  padding-bottom: var(--space-xl);
}
.photo-gallery-page__container {
  max-width: 1520px;
}
.photo-gallery-page__topbar {
  display: grid;
  grid-template-columns: 14rem 1fr;
  column-gap: 1.25rem;
  align-items: center;
  margin-bottom: var(--space-lg);
}
.photo-gallery-page__breadcrumbs {
  justify-self: start;
}
.photo-gallery-page__bc-current {
  color: var(--text-muted);
}
.photo-gallery-page__title {
  margin: 0 0 2rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-dark);
}
.photo-gallery-block {
  margin-bottom: 3rem;
}
.photo-gallery-block:last-of-type {
  margin-bottom: 0;
}
.photo-gallery-block__heading {
  margin: 0 0 0.85rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  color: var(--text-dark);
}
.photo-gallery-block__toolbar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.photo-gallery__nav {
  width: 2.65rem;
  height: 2.65rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity var(--duration-fast), transform var(--duration-fast);
}
.photo-gallery__nav--prev {
  background: #e8e8e8;
}
.photo-gallery__nav--next {
  background: #00ae46;
}
.photo-gallery__nav::after {
  content: '';
  display: block;
  width: 0.45rem;
  height: 0.45rem;
  border-style: solid;
  border-width: 0 0 2px 2px;
}
.photo-gallery__nav--prev::after {
  border-color: #555;
  transform: rotate(45deg) translate(1px, -1px);
}
.photo-gallery__nav--next::after {
  border-color: #fff;
  transform: rotate(-135deg) translate(1px, -1px);
}
.photo-gallery__nav.is-disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
.photo-gallery-block__viewport {
  overflow: hidden;
  border-radius: 0.5rem;
  margin: 0 -0.25rem;
  min-width: 0;
  width: 100%;
}
.photo-gallery-block__track {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  will-change: transform;
  min-width: 0;
}
.photo-gallery-block__slide {
  flex: 0 0 75%;
  max-width: 52rem;
  min-width: 0;
  margin: 0;
}
.photo-gallery-block__link {
  display: block;
  border-radius: 0.45rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  min-width: 0;
}
.photo-gallery-block__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  vertical-align: middle;
  object-fit: cover;
}
.photo-gallery-page__empty {
  margin: 2rem 0 0;
  color: var(--text-muted);
}

/* Лайтбокс фотогалереи (page-photo-gallery.php) */
.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 4vw, 2.5rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.photo-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.photo-lightbox__backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}
.photo-lightbox__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-fast);
}
.photo-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
}
.photo-lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-fast);
}
.photo-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.28);
}
.photo-lightbox__nav--prev {
  left: clamp(0.35rem, 2vw, 1rem);
}
.photo-lightbox__nav--next {
  right: clamp(0.35rem, 2vw, 1rem);
}
.photo-lightbox__nav.is-hidden {
  display: none;
}
.photo-lightbox__nav::after {
  content: '';
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  border-style: solid;
  border-width: 0 0 2px 2px;
}
.photo-lightbox__nav--prev::after {
  border-color: #fff;
  transform: rotate(45deg) translate(2px, -2px);
}
.photo-lightbox__nav--next::after {
  border-color: #fff;
  transform: rotate(-135deg) translate(2px, -2px);
}
.photo-lightbox__stage {
  position: relative;
  z-index: 1;
  max-width: min(100%, 92vw);
  max-height: min(92vh, 100%);
  margin: 0 auto;
  touch-action: manipulation;
}
.photo-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: min(88vh, 100%);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.25rem;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
}

/* ========== Страница «Структура администрации» (page-administration-structure.php) ========== */
.admin-structure-page {
  background: #f5f5f5;
}
.admin-structure-page__container {
  max-width: 1520px;
}
.admin-structure-page__title {
  margin: 0 0 1.35rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-dark);
}
.admin-structure-item {
  display: grid;
  grid-template-columns: 17rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  padding: 1.1rem;
  border-radius: 0.75rem;
  background: #fff;
  margin-bottom: 1rem;
}
.admin-structure-item__photo-wrap {
  width: 100%;
}
.admin-structure-item__photo {
  width: 100%;
  max-width: 17rem;
  border-radius: 0.6rem;
  /* Чтобы фото не «срезалось» по краям — показываем всё изображение целиком */
  object-fit: contain;
  aspect-ratio: 3 / 4;
  background: #e7e7e7;
}
.admin-structure-item__photo--empty {
  border: 1px dashed #cdcdcd;
}
.admin-structure-item__name {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
}
.admin-structure-item__position {
  font-size: var(--font-sm);
  font-weight: 600;
  color: #00ae46;
  margin-bottom: 0.65rem;
}
.admin-structure-item__description {
  color: var(--text-dark);
  font-size: 0.98rem;
  line-height: 1.55;
}
.admin-structure-item__description p {
  margin: 0 0 0.55rem;
}
.admin-structure-item__description p:last-child {
  margin-bottom: 0;
}
.admin-structure-page__empty {
  color: var(--text-muted);
  margin: 1.5rem 0 0;
}

@media (max-width: 768px) {
  .photo-gallery-block__slide {
    flex: 0 0 88%;
  }
  .photo-gallery-page__topbar {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .admin-structure-item {
    grid-template-columns: 1fr;
  }
  .admin-structure-item__photo {
    max-width: 100%;
    width: min(22rem, 100%);
  }
}

/* ========== Одиночная запись «Документ» (single-hasraion_document.php) ========== */
.document-single {
  background: #f5f5f5;
}
.document-single__container {
  max-width: 1520px;
}
.document-single__topbar {
  display: grid;
  grid-template-columns: 14rem 1fr;
  column-gap: 1.25rem;
  align-items: start;
  margin-bottom: var(--space-lg);
}
.document-single__back {
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
}
.document-single__back:hover {
  color: #00ae46;
}
.document-single__breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: var(--font-sm);
  color: var(--text-muted);
  line-height: 1.4;
}
.document-single__breadcrumbs a {
  color: var(--text-dark);
  text-decoration: none;
}
.document-single__breadcrumbs a:hover {
  color: #00ae46;
}
.document-single__bc-sep {
  color: #b0b0b0;
}
.document-single__bc-current {
  color: var(--text-muted);
  max-width: 100%;
}
.document-single__article {
  background: #fff;
  border-radius: 0.65rem;
  padding: 1.5rem 1.75rem 2rem;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}
.document-single__header {
  margin: 0;
}
.document-single__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.15rem, 2.5vw, 1.65rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
}
.document-single__meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 1rem 2rem;
  align-items: start;
}
.document-single__meta-col--left {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: flex-start;
}
.document-single__date {
  font-size: var(--font-sm);
  color: var(--text-dark);
}
.document-single__number {
  font-size: var(--font-sm);
  color: var(--text-dark);
}
.document-single__number-value {
  color: #00ae46;
  font-weight: 600;
}
.document-single__type-badge {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: #ececec;
  color: var(--text-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.document-single__org {
  margin: 0;
  font-size: var(--font-sm);
  color: var(--text-dark);
  line-height: 1.45;
}
.document-single__divider {
  margin: 1.75rem 0 1.25rem;
  border: none;
  border-top: 1px solid #dcdcdc;
}
.document-single__docs {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 1rem 1.5rem;
  align-items: start;
}
.document-single__docs-heading {
  margin: 0;
  font-size: var(--font-md);
  font-weight: 700;
  color: var(--text-dark);
}
.document-single__file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.document-single__file-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 0.65rem;
  background: #ececec;
}
.document-single__file-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.document-single__file-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.document-single__file-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
  word-break: break-word;
}
.document-single__file-type {
  font-size: var(--font-sm);
  color: var(--text-muted);
}
.document-single__file-view {
  flex-shrink: 0;
  font-size: var(--font-sm);
  font-weight: 600;
  color: #00ae46;
  text-decoration: none;
  white-space: nowrap;
}
.document-single__file-view:hover {
  color: #2ca546;
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .document-single__meta {
    grid-template-columns: 1fr;
  }
  .document-single__docs {
    grid-template-columns: 1fr;
  }
  .document-single__topbar {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .documents-page__layout {
    grid-template-columns: 1fr;
  }
  .documents-page__types {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .documents-page__type-chip {
    flex: 1 1 auto;
    min-width: 8rem;
  }
  .documents-page__filter-row,
  .documents-page__filter-row--advanced {
    grid-template-columns: 1fr;
  }
  .documents-page__item {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Высокие разрешения
   ============================================ */
@media (min-width: 1920px) {
  :root { --container-max: 95rem; --container-padding: 1.5rem; }
  html { font-size: 17px; }
}
@media (min-width: 2560px) {
  :root { --container-max: 95rem; --container-padding: 2rem; }
  html { font-size: 18px; }
}
@media (min-width: 2880px) {
  :root { --container-max: 95rem; --container-padding: 2.5rem; }
  html { font-size: 19px; }
}
@media (min-width: 3840px) {
  :root { --container-max: 95rem; --container-padding: 3rem; }
  html { font-size: 20px; }
}
